@font-face {
  font-family: 'Squada One';
  src: url('../fonts/squada-one-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist-regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Urbanist';
  src: url('../fonts/urbanist-600.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --membrane: #141619;
  --membrane-deep: #101214;
  --water: #0F5F86;
  --water-light: #7FB8D6;
  --ground: #F0EFEB;
  --wet: #DDDBD4;
  --card: #FFFFFF;
  --steel: #5B5F63;
  --tag: #E8DCC0;
  
  --radius: 4px;
  --radius-lg: 8px;
  
  --text-main: var(--membrane-deep);
  --text-muted: var(--steel);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #101214;
    --wet: #1B1E22;
    --card: #1B1E22;
    --membrane: #141619;
    --membrane-deep: #0a0b0d;
    --text-main: #ECEAE4;
    --text-muted: #A0A4A8;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Urbanist', sans-serif;
  font-weight: 400;
  color: var(--text-main);
  background-color: var(--ground);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: 60px; /* sticky mobile bar */
}
@media (min-width: 768px) {
  body {
    padding-bottom: 0;
  }
}

h1, h2, h3, h4 {
  font-family: 'Squada One', sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.1;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul, ol {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

/* Typography Utilities */
.kicker {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px; /* The prompt said 13px, but maybe 1.3px? 13px is huge. "letterspaced 13px" -> probably 1.3px or 0.13em. Let's use 0.13em */
  letter-spacing: 0.13em;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
  display: block;
}

.text-water-light { color: var(--water-light); }
.text-white { color: #ffffff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  text-align: center;
  text-decoration: none !important;
  border: 1px solid transparent;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  transition: all 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .btn, .preview-ribbon, details summary {
    transition: none;
  }
}

.btn-membrane {
  background-color: var(--membrane);
  color: #ffffff;
}
.btn-membrane:hover {
  background-color: var(--membrane-deep);
}

.btn-white {
  background-color: #ffffff;
  color: var(--membrane);
}
.btn-white:hover {
  background-color: #f0f0f0;
}

.btn-white-outline {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}
.btn-white-outline:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Preview Ribbon */
.preview-ribbon {
  position: static;
  background-color: #F8F9FA;
  color: #212529;
  font-size: 0.75rem;
  padding: 0.5rem 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  z-index: 1000;
  flex-wrap: wrap;
  text-align: center;
  border-bottom: 1px solid #dee2e6;
}
@media (prefers-color-scheme: dark) {
  .preview-ribbon {
    background-color: #343a40;
    color: #f8f9fa;
    border-bottom-color: #495057;
  }
}

.preview-ribbon a {
  background-color: #e9ecef;
  color: #212529;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .preview-ribbon a {
    background-color: #495057;
    color: #f8f9fa;
  }
}

.preview-ribbon .close-ribbon {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  padding: 0 0.25rem;
  color: inherit;
}

/* Masthead */
.masthead {
  position: sticky;
  top: 0;
  background-color: var(--membrane);
  color: #ffffff;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem;
  min-height: 56px;
}


.masthead-logo-lockup {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none !important;
}

.masthead-mark {
  font-family: 'Squada One', sans-serif;
  font-size: 1.5rem;
  background-color: #ffffff;
  color: var(--membrane);
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius);
  line-height: 1;
}

.masthead-text {
  display: flex;
  flex-direction: column;
}

.masthead-title {
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0.05em;
}

.masthead-subtitle {
  font-size: 0.65rem;
  color: var(--water-light);
  letter-spacing: 0.05em;
}

.masthead-nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}
.masthead-nav-desktop a {
  font-weight: 600;
  font-size: 0.9rem;
}
@media (min-width: 768px) {
  .masthead-nav-desktop { display: flex; }
}

.masthead-nav-mobile {
  display: block;
}
@media (min-width: 768px) {
  .masthead-nav-mobile { display: none; }
}
.masthead-nav-mobile details {
  position: relative;
}
.masthead-nav-mobile summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  min-width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.masthead-nav-mobile summary::-webkit-details-marker {
  display: none;
}
.masthead-nav-mobile .menu-icon {
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  position: relative;
}
.masthead-nav-mobile .menu-icon::before,
.masthead-nav-mobile .menu-icon::after {
  content: '';
  position: absolute;
  width: 24px;
  height: 2px;
  background-color: #ffffff;
  left: 0;
}
.masthead-nav-mobile .menu-icon::before { top: -6px; }
.masthead-nav-mobile .menu-icon::after { bottom: -6px; }

.masthead-nav-mobile .mobile-menu-content {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--membrane);
  padding: 1rem;
  border-radius: var(--radius);
  margin-top: 0.5rem;
  min-width: 200px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
}

/* Mobile Call Bar */
.mobile-call-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--membrane-deep);
  color: #ffffff;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  text-align: center;
  font-weight: 600;
}
@media (min-width: 768px) {
  .mobile-call-bar { display: none; }
}
.mobile-call-bar a {
  display: block;
  width: 100%;
}

/* Transfer Tag */
.transfer-tag {
  background-color: var(--tag);
  color: #141619;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  position: relative;
  width: max-content;
  max-width: 100%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transform: rotate(-6deg);
  text-align: center;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
}
.transfer-tag::before {
  content: '';
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 8px;
  background-color: var(--membrane-deep);
  border-radius: 50%;
  border: 2px solid rgba(0,0,0,0.1);
}
.transfer-tag-title {
  font-family: 'Squada One', sans-serif;
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.25rem;
  margin-top: 0.5rem;
}
.transfer-tag-sub {
  font-family: 'Urbanist', sans-serif;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
  color: rgba(20, 22, 25, 0.7);
}
.transfer-tag-note {
  font-size: 0.75rem;
  font-style: italic;
  color: rgba(20, 22, 25, 0.6);
}

/* State Stamp */
.state-stamp {
  font-family: 'Squada One', sans-serif;
  text-transform: uppercase;
  padding: 0.1rem 0.5rem;
  border-radius: var(--radius);
  border: 2px solid currentColor;
  font-size: 0.85rem;
  display: inline-block;
  line-height: 1.2;
}
.state-stamp.in-process {
  color: #0F5F86;
  transform: rotate(4deg);
}
.state-stamp.complete {
  color: #2E7D32;
  transform: rotate(-4deg);
}
@media (prefers-color-scheme: dark) {
  .state-stamp.in-process { color: #7FB8D6; }
  .state-stamp.complete { color: #81C784; }
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--membrane);
  color: #ffffff;
  min-height: 730px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 4rem 0;
}
@media (max-width: 767px) {
  .hero {
    min-height: auto;
    padding-top: 2rem;
    padding-bottom: 4rem;
  }
}
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}
.hero-scrim {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(20, 22, 25, 0.95) 0%, rgba(20, 22, 25, 0.7) 40%, transparent 100%);
  z-index: 2;
}
@media (max-width: 767px) {
  .hero-scrim {
    background: linear-gradient(to bottom, rgba(20, 22, 25, 0.9) 0%, rgba(20, 22, 25, 0.7) 60%, rgba(20, 22, 25, 0.4) 100%);
  }
}
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 600px;
}
.hero h1 {
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 500px;
}
.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
.hero-tag-wrapper {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  z-index: 4;
}
@media (max-width: 767px) {
  .hero-tag-wrapper {
    display: none;
  }
}

/* Secondary Hero (Services) */
.secondary-hero {
  background-color: var(--membrane);
  color: #ffffff;
  padding: 4rem 0;
}

/* Sections */
section {
  padding: 5rem 0;
}

.bg-wet { background-color: var(--wet); }
.bg-ground { background-color: var(--ground); }
.bg-membrane { background-color: var(--membrane); color: #ffffff; }
.bg-white { background-color: var(--card); }

/* Warranty Band */
.warranty-band .container {
  display: flex;
  align-items: center;
  gap: 4rem;
}
@media (max-width: 767px) {
  .warranty-band .container {
    flex-direction: column;
    text-align: center;
    gap: 2.5rem;
  }
}
.warranty-band-content {
  flex: 1;
}
.warranty-band-quote {
  font-size: 1.25rem;
  font-style: italic;
  margin-bottom: 1rem;
  color: var(--text-muted);
}
.warranty-band-text {
  font-size: 1rem;
}

/* Job Log */
.job-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}
@media (max-width: 991px) {
  .job-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .job-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.job-card {
  background-color: var(--card);
  padding: 1rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.job-card img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 1rem;
}
.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}
.job-card-title {
  font-family: 'Squada One', sans-serif;
  font-size: 1.25rem;
  margin: 0;
}
.job-card-caption {
  font-size: 0.8125rem; /* 13px */
  color: var(--text-muted);
}

/* Static rotations based on child index */
.job-card:nth-child(1) { transform: rotate(2deg); }
.job-card:nth-child(2) { transform: rotate(-1deg); }
.job-card:nth-child(3) { transform: rotate(1.5deg); }
.job-card:nth-child(4) { transform: rotate(-2deg); }
.job-card:nth-child(5) { transform: rotate(1deg); }
.job-card:nth-child(6) { transform: rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) {
  /* Prompt says: "rotation 0 under prefers-reduced-motion is NOT needed, rotation is static" 
     So we leave the rotations active regardless. */
}

/* How it goes */
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3rem;
}
@media (max-width: 767px) {
  .how-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.how-step {
  padding: 0 2rem;
  border-left: 1px solid var(--wet);
}
@media (max-width: 767px) {
  .how-step {
    border-left: none;
    padding: 0;
  }
}
.how-step-num {
  font-family: 'Squada One', sans-serif;
  font-size: 3rem;
  color: var(--water);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.how-step-title {
  font-family: 'Squada One', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Trust band */
.trust-band .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
@media (max-width: 767px) {
  .trust-band .container {
    flex-direction: column;
    text-align: center;
  }
}
.trust-quote {
  color: #C9CDD1;
  font-style: italic;
  font-size: 1.125rem;
}
.trust-stats {
  text-align: right;
}
@media (max-width: 767px) {
  .trust-stats { text-align: center; }
}
.trust-stats-primary {
  font-family: 'Squada One', sans-serif;
  font-size: 2rem;
  color: var(--water-light);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

/* Ask band */
.ask-band .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 767px) {
  .ask-band .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}
.ask-content h2 {
  margin-bottom: 1rem;
}
.ask-content p {
  margin-bottom: 1.5rem;
  font-size: 1.125rem;
}
.ask-content .ask-contact {
  margin-top: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.ask-form-card {
  background-color: var(--card);
  padding: 2.5rem;
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.ask-form-card h3 {
  font-family: 'Squada One', sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--wet);
  border-radius: var(--radius);
  background-color: var(--ground);
  color: var(--text-main);
  font-family: 'Urbanist', sans-serif;
}
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--water);
}
.form-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 1rem;
  text-align: center;
}

/* Services Page specific */
.service-section {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--wet);
}
.service-section:last-child {
  border-bottom: none;
}
@media (max-width: 767px) {
  .service-section {
    flex-direction: column;
    gap: 2rem;
  }
  .service-section.reverse {
    flex-direction: column;
  }
}
.service-section.reverse {
  flex-direction: row-reverse;
}
.service-content {
  flex: 1;
}
.service-images {
  flex: 1;
  display: flex;
  gap: 1rem;
  flex-direction: column;
}
@media (min-width: 768px) {
  .service-images.dual {
    flex-direction: row;
  }
}
.service-img-wrapper {
  background-color: var(--card);
  padding: 0.5rem;
  border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  flex: 1;
}
.service-img-wrapper img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin-bottom: 0.5rem;
}
.service-img-wrapper .job-card-header {
  margin-bottom: 0;
}
.service-desc {
  font-size: 1.125rem;
  margin-bottom: 1.5rem;
}

/* Footer */
.footer {
  background-color: var(--membrane-deep);
  color: #ffffff;
  padding: 3rem 0;
  font-size: 0.875rem;
}
.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}
@media (max-width: 767px) {
  .footer .container {
    flex-direction: column;
  }
}
.footer-logo {
  font-family: 'Squada One', sans-serif;
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}
.footer-text {
  color: var(--text-muted);
}
.footer-links {
  text-align: right;
}
@media (max-width: 767px) {
  .footer-links { text-align: left; }
}
.footer-links a {
  color: var(--water-light);
}
.footer-links p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}
