/* ============================================================
   EDIFICIO BUILDERS — Static Site CSS
   Design system extracted from edificiobuilders.com
   ============================================================ */

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 18px;
  line-height: 27px;
  color: #666;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
p { margin: 0 0 28px; }
p:last-child { margin-bottom: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
/* Reset list style only for nav/layout lists, not content lists */
nav ul, nav ol, .values-grid ul, .guide-filters ul { list-style: none; }
.page-content ul { list-style: disc; padding-left: 20px; }
.page-content ol { list-style: decimal; padding-left: 20px; }
h1, h2, h3, h4 { line-height: 1.25; font-weight: 600; color: #333; }
/* On dark/teal sections, headings inherit white */
.section--teal h1, .section--teal h2, .section--teal h3, .section--teal h4,
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: inherit; }

/* --- Design Tokens --- */
:root {
  --teal: #3C8D9B;
  --teal-button: #33bfd8;
  --dark: #313437;
  --dark-footer: #313437;
  --text: #666;
  --text-light: #555;
  --white: #fff;
  --bg-light: #f3f5f7;
  --border: rgba(0,0,0,0.12);
  --max-width: 1170px;
  --max-width-narrow: 920px;
  --section-padding: 80px 0;
  --content-padding: 0 24px;
}

/* --- Layout --- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--content-padding);
}
.container--narrow {
  max-width: var(--max-width-narrow);
  margin: 0 auto;
  padding: var(--content-padding);
}
.section { padding: var(--section-padding); }
.section--teal { background: var(--teal); color: var(--white); }
.section--teal p, .section--teal li { color: inherit; }
.section--dark { background: var(--dark); color: var(--white); }
.section--dark p, .section--dark li { color: inherit; }
.section--light { background: var(--white); }
.section--separator {
  padding: 0;
  display: flex;
  justify-content: center;
}
.separator {
  width: 100%;
  max-width: var(--max-width);
  height: 1px;
  background: var(--border);
  margin: 0 24px;
}

/* --- Typography --- */
.heading-section {
  font-size: 35px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 16px;
}
.heading-section--center { text-align: center; }
.heading-sub {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 16px;
}
.heading-card {
  font-size: 23px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: normal;
  margin-bottom: 16px;
  text-align: center;
  text-wrap: balance;
}
.text-center { text-align: center; }
.text-muted { opacity: 0.85; }
.text-subtitle {
  font-size: 18px;
  opacity: 0.9;
  margin-bottom: 8px;
}

/* --- Header --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: none;
  transition: background 0.7s ease, box-shadow 0.7s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.25);
}
/* Hero pages: transparent header initially */
.has-hero .site-header:not(.scrolled) {
  background: transparent;
  box-shadow: none;
}
/* Interior pages: add top padding so content doesn't hide behind fixed header */
.page-content {
  padding-top: 90px;
}
.has-hero .page-content {
  padding-top: 0;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 90px;
}
.logo img {
  height: 69px !important;
  width: auto !important;
  max-width: none !important;
}
.nav-desktop {
  display: flex;
  gap: 8px;
  align-items: center;
}
.nav-desktop a {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 0 16px;
  line-height: 50px;
  color: rgba(255,255,255,0.66);
  transition: color 0.25s;
}
.nav-desktop a:hover {
  color: #fff;
}
.nav-mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  font-size: 24px;
  color: rgba(255,255,255,0.8);
}
.nav-mobile {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--white);
  flex-direction: column;
  padding: 24px;
  z-index: 999;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  color: var(--dark);
}

/* --- Hero --- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
/* No full-image overlay — WP doesn't use one. Only the dark band provides contrast. */
.hero-overlay { display: none; }
/* Title floats over the image; band holds subtitle + tagline + CTA */
.hero-title-float {
  position: relative;
  z-index: 2;
  width: 100%;
  text-align: center;
  padding: 0 24px 150px;
}
.hero-content-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  background: rgba(0,0,0,0.5);
  padding: 20px 0 28px;
}
.hero-content {
  max-width: 840px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.hero-band { display: none; }
.hero-title {
  font-size: 60px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  color: #fff;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.3s;
}
.hero-subtitle {
  font-size: 54px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.1;
  margin-bottom: 16px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.8s;
}
.hero-tagline {
  font-size: 34px;
  font-weight: 400;
  letter-spacing: 2px;
  line-height: 1.2;
  margin-bottom: 36px;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 1.4s;
}
.hero-cta {
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 2.0s;
}
.hero-cta .btn {
  font-family: 'Roboto', 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  padding: 0 20px;
  line-height: 50px;
  background: #33bfd8;
  border-color: #33bfd8;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 11px 30px;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn--solid {
  background: var(--teal-button);
  color: var(--white);
  border: 2px solid var(--teal-button);
}
.btn--solid:hover {
  background: #2aa8bf;
  border-color: #2aa8bf;
}
.btn--outline {
  background: transparent;
  border: 2px solid currentColor;
}
.btn--outline:hover {
  background: rgba(255,255,255,0.12);
}
.btn--highlight {
  background: var(--teal);
  color: var(--white);
  border: 2px solid var(--teal);
}
.btn--highlight:hover {
  background: #347d89;
  border-color: #347d89;
}
.btn--white-outline {
  border: 2px solid #fff;
  color: var(--white);
}
.btn--white-outline:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--white);
}

/* --- Value Props (auto-fit: 5 cols at wide, 3 at medium, 2 at narrow) --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px 24px;
  text-align: center;
}
.values-grid > div {
  padding: 24px 16px;
  border: 1px solid rgba(255,255,255,0.12);
}
.values-grid p {
  font-size: 18px;
  line-height: 27px;
  opacity: 0.9;
}

/* --- Image Grid (Gallery Section) --- */
.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  max-width: 960px;
}
.gallery-grid__hero {
  grid-row: 1 / 3;
}
.gallery-grid__small-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid__tall {
  grid-row: 1 / 3;
}
.gallery-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.gallery-link:hover .gallery-img {
  transform: scale(1.02);
}
.gallery-link {
  display: block;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* --- Steps (3-column) --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
}
.step h2 {
  font-size: 30px;
  font-weight: 600;
  margin-bottom: 16px;
}
.step img {
  width: 100%;
  box-shadow: 6px 6px 18px rgba(0,0,0,0.35), -3px -3px 10px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.step p {
  font-size: 18px;
  line-height: 27px;
  opacity: 0.9;
}

/* --- Two-Column Layout --- */
.split {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 48px;
  align-items: start;
}
.split--reverse {
  grid-template-columns: 2fr 1fr;
}
.split--even {
  grid-template-columns: 1fr 1fr;
}
.split--text-wide {
  grid-template-columns: 1fr 3fr;
}
/* Named splits for responsive control (replaces inline styles) */
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; align-items: start; }
.grid-1-1 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.grid-1-3 { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; align-items: start; }

/* --- Testimonial (values from WP computed styles) --- */
.testimonial {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  padding: 48px 24px;
  color: #666;
}
.testimonial blockquote {
  font-size: 27px;
  font-weight: 600;
  line-height: 33px;
  color: #333;
  margin-bottom: 8px;
}
.testimonial blockquote em {
  display: block;
  font-size: 18px;
  font-weight: 400;
  line-height: 27px;
  color: #666;
  margin-top: 8px;
}
.testimonial-avatar {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  margin: 24px auto 16px;
  object-fit: cover;
}
.testimonial-name {
  font-weight: 700;
  font-size: 18px;
  color: #666;
}
.testimonial-location {
  font-weight: 400;
  font-size: 18px;
  color: #666;
}
/* Testimonials on dark/teal backgrounds */
.section--teal .testimonial,
.section--dark .testimonial { color: rgba(255,255,255,0.85); }
.section--teal .testimonial blockquote,
.section--dark .testimonial blockquote { color: #fff; }
.section--teal .testimonial blockquote em,
.section--dark .testimonial blockquote em { color: rgba(255,255,255,0.85); }
.section--teal .testimonial-name, .section--teal .testimonial-location,
.section--dark .testimonial-name, .section--dark .testimonial-location { color: rgba(255,255,255,0.8); }

/* --- Video Embed --- */
.video-wrapper {
  position: relative;
  width: 100%;
}
wistia-player {
  display: block;
  width: 100%;
}

/* --- Footer --- */
.site-footer {
  background: var(--dark-footer);
  color: var(--white);
  padding: 60px 0;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.footer-copy {
  font-size: 18px;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
}
.footer-links a {
  font-size: 18px;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  transition: color 0.2s;
}
.footer-links a:hover {
  color: rgba(255,255,255,0.9);
}

/* --- WhatsApp Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  background: #25d366;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  transition: transform 0.2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.08);
}
.whatsapp-float svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* --- Guide Styles (full guide anatomy) --- */

/* Header zone: intro left, TL;DR right */
.guide-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 32px;
}
.guide-header-intro {
  flex: 1 1 400px;
  min-width: 0;
}
.guide-breadcrumb {
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin-bottom: 10px;
}
.guide-body p.guide-breadcrumb {
  font-size: 13px;
  line-height: 1.3;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.65;
  margin: 0 0 10px 0;
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: 0;
}
.guide-breadcrumb a {
  text-decoration: underline;
  color: inherit;
}
.guide-breadcrumb .sep { padding: 0 8px; opacity: 0.6; }
.guide-breadcrumb .arrow { padding: 0 6px; opacity: 0.6; }
.guide-page-title {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-align: center;
  color: #333;
  margin: 0 auto 10px auto;
  max-width: 820px;
  padding: 0 18px;
  position: relative;
  padding-bottom: 16px;
}
.guide-page-title::after {
  content: '';
  display: block;
  width: 30px;
  height: 3px;
  background: var(--teal);
  margin: 14px auto 0 auto;
}
.guide-title {
  font-size: 22px;
  line-height: 1.35;
  margin-bottom: 12px;
  color: #333;
}

/* Body text */
.guide-body { color: #666; max-width: 920px; margin: 0 auto; padding-top: 14px; }
.guide-body p {
  font-size: 18px;
  line-height: 1.7;
  opacity: 0.92;
  margin: 0 0 12px 0;
}
.guide-body h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 32px 0 12px 0;
  color: #333;
}
.guide-body h3 {
  font-size: 22px;
  line-height: 1.3;
  margin: 24px 0 10px 0;
  color: #333;
}
.guide-body ul, .guide-body ol {
  font-size: 18px;
  line-height: 1.75;
  margin: 0 0 14px 0;
  padding-left: 18px;
}
.guide-body a { color: inherit; text-decoration: underline; }
.guide-body strong { color: #333; }
.guide-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px 0;
  font-size: 16px;
}
.guide-body th {
  background: var(--bg-light);
  padding: 10px 14px;
  text-align: left;
  font-weight: 600;
  border: 1px solid var(--border);
  color: #333;
}
.guide-body td {
  padding: 10px 14px;
  border: 1px solid var(--border);
}

/* TL;DR panel */
.guide-tldr {
  flex: 0 1 370px;
  min-width: 280px;
  background: var(--teal);
  color: var(--white);
  padding: 16px 18px;
}
.guide-tldr-label {
  font-size: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
  margin: 0 0 8px 0;
}
.guide-tldr-thesis {
  font-size: 18px;
  line-height: 1.6;
  font-weight: 600;
  margin: 0 0 12px 0;
}
.guide-tldr strong {
  color: #fff;
}
.guide-tldr ul {
  margin: 0 0 14px 0;
  padding-left: 18px;
  font-size: 16px;
  line-height: 1.7;
}
.guide-tldr-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.guide-tldr-ctas a {
  display: inline-block;
  padding: 8px 10px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
}
.guide-tldr-ctas .btn-primary {
  background: #fff;
  color: var(--teal);
}
.guide-tldr-ctas .btn-secondary {
  border: 1px solid rgba(255,255,255,0.8);
  color: #fff;
}

/* Callout box (teal left border) */
.guide-callout {
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  background: var(--bg-light);
  padding: 22px;
  margin: 0 0 26px 0;
}
.guide-callout h2 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 10px 0;
  color: #333;
}
.guide-callout p {
  font-size: 18px;
  line-height: 1.7;
  margin: 0 0 12px 0;
}
.guide-callout p:last-child { margin-bottom: 0; }

/* Light box (short answer, bordered) */
.guide-light-box {
  border: 1px solid var(--border);
  background: #f4f7f9;
  padding: 22px;
  margin: 0 0 26px 0;
}

/* Micro-story callout */
.guide-story {
  border: 1px solid var(--border);
  border-left: 4px solid #bbb;
  background: #fafafa;
  padding: 18px 22px;
  margin: 0 0 26px 0;
}
.guide-story-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.55;
  margin: 0 0 8px 0;
}

/* Dark band (Quick Scan, FAQ) */
.guide-dark-band {
  background: #2f3336;
  color: var(--white);
  padding: 40px 0;
  /* Break out of container to full width */
  width: 100vw;
  margin-left: calc(50% - 50vw);
}
.guide-dark-band .container { color: inherit; }
.guide-dark-band h2 {
  font-size: 32px;
  line-height: 1.25;
  color: #fff;
  margin: 0 0 8px 0;
}
.guide-dark-band h3 {
  font-size: 22px;
  color: #fff;
  margin: 16px 0 8px 0;
}
.guide-dark-band p {
  font-size: 18px;
  line-height: 1.75;
  opacity: 0.85;
}

/* Quick Scan (two-column: green flags + red flags) */
.guide-quick-scan {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.guide-quick-scan-green {
  background: var(--teal);
  padding: 32px 28px;
  color: #fff;
}
.guide-quick-scan-red {
  background: #1a1c1e;
  padding: 32px 28px;
  color: rgba(255,255,255,0.7);
}
.guide-quick-scan-label {
  font-size: 16px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.8;
}
.guide-quick-scan-red .guide-quick-scan-label { opacity: 0.6; }
.guide-quick-scan ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
}
.guide-quick-scan li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.guide-quick-scan li:last-child { border-bottom: none; }
.guide-quick-scan-red li { border-color: rgba(255,255,255,0.08); }

/* FAQ in dark band */
.guide-faq h3 {
  font-size: 20px;
  margin: 20px 0 6px 0;
}
.guide-faq p {
  font-size: 17px;
  line-height: 1.7;
  opacity: 0.8;
  margin: 0 0 16px 0;
}

/* Guide CTA section */
.guide-cta-box {
  border: 1px solid var(--border);
  border-left: 6px solid var(--teal);
  padding: 22px;
  margin: 0 0 26px 0;
}
.guide-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 16px;
}
.guide-cta-buttons a {
  display: inline-block;
  padding: 10px 14px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}
.guide-cta-buttons .btn-primary {
  background: var(--teal);
  color: #fff;
}
.guide-cta-buttons .btn-secondary {
  border: 1px solid var(--teal);
  color: var(--teal);
}

/* Next guides */
.guide-next {
  border: 1px solid var(--border);
  padding: 22px;
  margin: 26px 0;
}
.guide-next h3 {
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 12px 0;
  color: #333;
}
.guide-next ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.guide-next li { padding: 4px 0; }
.guide-next a {
  color: var(--teal);
  text-decoration: underline;
  font-size: 17px;
}

/* --- Page Header (interior pages) --- */
.page-header {
  padding: 80px 0 60px;
  text-align: center;
}
.page-header h1 {
  font-size: 36px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}
.page-header p {
  font-size: 20px;
  opacity: 0.9;
  max-width: 640px;
  margin: 0 auto;
}

/* --- Guide Hub --- */
.guides-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.guide-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}
.guide-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.10);
  transform: translateY(-2px);
}
.guide-card__category {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--teal);
  margin-bottom: 8px;
}
.guide-card__title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}
.guide-card__title a {
  text-decoration: none;
  color: var(--text);
}
.guide-card__title a:hover {
  color: var(--teal);
}
.guide-card__desc {
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}
.guide-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
}
.guide-filter-btn {
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 8px 16px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s;
}
.guide-filter-btn.active,
.guide-filter-btn:hover {
  background: var(--dark);
  color: #fff;
  border-color: var(--dark);
}

/* --- Contact Form --- */
.contact-form { max-width: 520px; }
.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 16px;
  border: 1px solid rgba(0,0,0,0.15);
  margin-bottom: 16px;
  background: #fff;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--teal);
}
.contact-form textarea {
  min-height: 160px;
  resize: vertical;
}
.contact-form .honeypot {
  position: absolute;
  left: -9999px;
}

/* --- Project Card (Gallery) --- */
.project-card {
  padding: 60px 0;
}
.project-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 16px 0;
}
.project-specs li {
  font-size: 15px;
  padding: 4px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border);
}
.project-features li {
  font-size: 15px;
  line-height: 1.7;
  padding: 2px 0;
  list-style: disc;
  margin-left: 20px;
}
.project-images {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  margin: 24px 0;
}
.project-images img {
  width: 100%;
  object-fit: cover;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .hero-title { font-size: 48px; }
  .hero-subtitle { font-size: 42px; }
  .hero-tagline { font-size: 28px; }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 56px 0;
  }

  .nav-desktop { display: none; }
  .nav-mobile-toggle { display: block; }

  /* values-grid handled by auto-fit */

  .gallery-grid {
    grid-template-columns: 1fr;
  }
  .gallery-grid__tall {
    grid-row: auto;
    max-height: 400px;
  }
  .gallery-grid__small-row {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  /* Collapse ALL multi-column grids to single column on mobile */
  .split, .split--reverse, .split--even, .split--text-wide,
  .grid-1-2, .grid-2-1, .grid-1-1, .grid-1-3,
  .steps-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
  }

  /* Image grids: 3-col → 1-col, 2-col → 1-col */
  [style*="grid-template-columns: 1fr 1fr 1fr"],
  [style*="grid-template-columns: repeat(3"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: 2fr 1fr"],
  [style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }

  /* Full-bleed images + video on mobile — break out of ANY nesting to viewport edge */
  .section img:not(.testimonial-avatar),
  .page-content img:not(.testimonial-avatar):not([width="150"]):not([width="203"]):not([width="300"]) {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  /* Wistia video full-width on mobile */
  .page-content wistia-player,
  .section wistia-player {
    width: 100vw !important;
    max-width: none !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
  }
  /* Avatars stay circular and contained */
  .testimonial-avatar {
    width: 120px !important;
    height: 120px;
    margin-left: auto;
    margin-right: auto;
  }

  /* Mobile buttons: full-width, modern feel */
  .btn {
    display: block;
    text-align: center;
    padding: 16px 24px;
    font-size: 15px;
    letter-spacing: 0.5px;
  }
  .hero-cta .btn {
    display: inline-block;
    padding: 14px 32px;
  }

  /* Tighter section padding on mobile */
  .container, .container--narrow {
    padding: 0 16px;
  }

  .heading-section { font-size: 28px; }
  .hero-title { font-size: 36px; }
  .hero-title-float { padding-bottom: 80px; }
  .hero-subtitle { font-size: 30px; }
  .hero-tagline { font-size: 22px; }

  /* Values cards: stronger borders on mobile */
  .values-grid > div {
    border-color: rgba(255,255,255,0.3);
  }

  .testimonial blockquote { font-size: 20px; }

  .footer-inner {
    text-align: center;
  }

  .guides-grid {
    grid-template-columns: 1fr;
  }

  /* Guide pages: stack header, collapse quick scan */
  .guide-header { flex-direction: column; }
  .guide-tldr { flex: 1 1 100%; min-width: 0; }
  .guide-quick-scan { grid-template-columns: 1fr; }
  .guide-dark-band h2 { font-size: 26px; }
  .guide-body h2 { font-size: 24px; }

  .project-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 40px 0;
    --content-padding: 0 16px;
  }

  body { font-size: 16px; }

  /* values-grid handled by auto-fit */

  .header-inner { height: 72px; }
  .logo img { height: 54px !important; }

  .hero { min-height: 500px; }
  .hero-title { font-size: 34px; }
  .hero-title-float { padding-bottom: 40px; }
  .hero-subtitle { font-size: 26px; }
  .hero-tagline { font-size: 16px; }
  .hero-content { padding-bottom: 60px; }
  .hero-band { height: 280px; }

  .heading-section { font-size: 24px; }
  .heading-sub { font-size: 22px; }
  .heading-card { font-size: 15px; }
  .text-subtitle { font-size: 16px; }

  .testimonial blockquote { font-size: 18px; }
  .testimonial blockquote em { font-size: 16px; }

  .step h2 { font-size: 20px; }
  .step p { font-size: 15px; }

  .gallery-grid__small-row { gap: 8px; }
  .gallery-link { margin-bottom: 4px; }
}
