/* ============================================================
   Custom Barns USA — Shared Stylesheet
   custombarnsusa.com
   ============================================================ */

/* ── Color System ─────────────────────────────────────────── */
:root {
  --amber-50:  #FAEEDA;
  --amber-100: #FAC775;
  --amber-400: #EF9F27;
  --amber-600: #854F0B;
  --amber-800: #633806;
  --amber-900: #412402;

  --green-50:  #EAF3DE;
  --green-100: #C0DD97;
  --green-600: #3B6D11;
  --green-700: #2E5A0D;

  --blue-50:   #E6F1FB;
  --blue-600:  #185FA5;
  --blue-800:  #0C447C;

  --navy:      #1B2A4A;
  --navy-dark: #111D33;

  --gray-50:   #FAF9F6;
  --gray-100:  #F1EFE8;
  --gray-200:  #D3D1C7;
  --gray-400:  #9A9890;
  --gray-600:  #5A5A55;
  --gray-800:  #2C2C2A;

  --white:     #FFFFFF;

  /* Spacing */
  --section-pad: 5rem 1.5rem;
  --max-w: 1160px;

  /* Typography */
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.10);
  --shadow-md: 0 4px 16px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.16);

  /* Transitions */
  --ease: .22s ease;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--gray-800);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

h1, h2, h3, h4, h5 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -.02em;
}

/* ── USA Banner ───────────────────────────────────────────── */
.usa-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: .45rem 1rem;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.usa-banner span { color: var(--amber-100); margin: 0 .4rem; }

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 900;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--amber-800);
  letter-spacing: -.01em;
}
.nav-logo-icon {
  width: 38px; height: 38px;
  background: var(--amber-600);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-600);
  transition: color var(--ease);
  position: relative;
  padding-bottom: 2px;
}
.nav-links a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px;
  background: var(--amber-600);
  transform: scaleX(0);
  transition: transform var(--ease);
  transform-origin: left;
}
.nav-links a:hover,
.nav-links a.active { color: var(--amber-800); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }

.nav-cta {
  background: var(--amber-600);
  color: var(--white) !important;
  padding: .55rem 1.2rem;
  border-radius: 6px;
  font-weight: 700 !important;
  transition: background var(--ease) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--amber-800) !important; color: var(--white) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .4rem;
  background: none;
  border: none;
}
.nav-hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--gray-800);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}

/* Mobile nav open state */
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 840px) {
  .nav-hamburger { display: flex; }
  .nav-links {
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 1.2rem;
    border-top: 1px solid var(--gray-200);
    box-shadow: var(--shadow-lg);
    transform: translateY(-110%);
    transition: transform .3s ease;
    z-index: 800;
  }
  .nav-links.open { transform: translateY(0); }
  .nav-links a { font-size: 1rem; }
  .nav-cta { align-self: stretch; text-align: center; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .95rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--amber-600);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--amber-800);
  box-shadow: 0 4px 16px rgba(133,79,11,.35);
}
.btn-outline {
  background: transparent;
  border-color: var(--white);
  color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--amber-800);
}
.btn-outline-dark {
  background: transparent;
  border-color: var(--amber-600);
  color: var(--amber-600);
}
.btn-outline-dark:hover {
  background: var(--amber-600);
  color: var(--white);
}
.btn-green {
  background: var(--green-600);
  color: var(--white);
}
.btn-green:hover { background: var(--green-700); }
.btn-blue {
  background: var(--blue-600);
  color: var(--white);
}
.btn-blue:hover { background: var(--blue-800); }

/* ── Section Helpers ──────────────────────────────────────── */
.section { padding: var(--section-pad); }
.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
  display: inline-block;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--amber-600);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--gray-800);
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 640px;
  margin-bottom: 2.5rem;
}

.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* Alternating section backgrounds */
.bg-amber-50  { background: var(--amber-50); }
.bg-gray-50   { background: var(--gray-50); }
.bg-green-50  { background: var(--green-50); }
.bg-blue-50   { background: var(--blue-50); }
.bg-navy      { background: var(--navy); color: var(--white); }
.bg-amber-900 { background: var(--amber-900); color: var(--white); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.52);
  transition: opacity 1s;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(65,36,2,.7) 0%, rgba(27,42,74,.4) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 5rem 1.5rem;
  color: var(--white);
}
.hero-eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--amber-100);
  margin-bottom: 1rem;
}
.hero-title {
  font-size: clamp(2rem, 5.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  max-width: 700px;
}
.hero-title em { color: var(--amber-100); font-style: normal; }
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,.88);
  max-width: 560px;
  margin-bottom: 2rem;
  line-height: 1.7;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* ── Feature Strips ───────────────────────────────────────── */
.feature-strip {
  background: var(--amber-900);
  color: var(--white);
}
.feature-strip-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
}
.feature-item {
  display: flex;
  align-items: center;
  gap: .85rem;
  font-size: .9rem;
  font-weight: 600;
}
.feature-item-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* ── Cards ────────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.card-grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.card-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.card {
  background: var(--white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}
.card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.card-body {
  padding: 1.4rem;
}
.card-tag {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--amber-600);
  background: var(--amber-50);
  border-radius: 4px;
  padding: .2rem .6rem;
  margin-bottom: .75rem;
}
.card-tag.green { color: var(--green-700); background: var(--green-50); }
.card-tag.blue  { color: var(--blue-800);  background: var(--blue-50);  }
.card-title { font-size: 1.15rem; margin-bottom: .5rem; }
.card-text  { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }
.card-footer {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-price { font-weight: 700; color: var(--amber-800); }
.card-link {
  font-size: .85rem;
  font-weight: 700;
  color: var(--amber-600);
  display: flex;
  align-items: center;
  gap: .3rem;
  transition: gap var(--ease);
}
.card-link:hover { gap: .6rem; }

/* ── Icon Cards ───────────────────────────────────────────── */
.icon-card {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}
.icon-card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  background: var(--amber-50);
}
.icon-card-icon.green { background: var(--green-50); }
.icon-card-icon.blue  { background: var(--blue-50);  }
.icon-card h3 { font-size: 1.05rem; margin-bottom: .5rem; }
.icon-card p  { font-size: .9rem; color: var(--gray-600); line-height: 1.6; }

/* ── Photo Gallery ────────────────────────────────────────── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto;
  gap: .75rem;
}
.gallery-item {
  overflow: hidden;
  border-radius: 10px;
}
.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform .4s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item.wide {
  grid-column: span 2;
}
.gallery-item.wide img { height: 320px; }

@media (max-width: 680px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .gallery-item.wide { grid-column: span 2; }
}
@media (max-width: 420px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item.wide { grid-column: span 1; }
}

/* ── 3D Designer Section ──────────────────────────────────── */
.designer-wrap {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .designer-wrap { grid-template-columns: 1fr; }
}

#barn-canvas-container {
  background: linear-gradient(180deg, #d6e8f7 0%, #f0e8d4 100%);
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16/10;
  cursor: grab;
  box-shadow: var(--shadow-lg);
  min-height: 300px;
}
#barn-canvas-container:active { cursor: grabbing; }
#barn-canvas-container canvas { width: 100% !important; height: 100% !important; }

.designer-controls { display: flex; flex-direction: column; gap: 1.25rem; }

.control-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .07em;
  margin-bottom: .5rem;
}
.control-group input[type=range] {
  width: 100%;
  accent-color: var(--amber-600);
}
.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--gray-400);
  margin-top: .2rem;
}

.color-swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.color-swatch {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease);
}
.color-swatch.active,
.color-swatch:hover { transform: scale(1.15); border-color: var(--gray-800); }

.addon-toggles { display: flex; flex-direction: column; gap: .75rem; }
.addon-toggle {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease);
  font-size: .9rem;
  font-weight: 600;
  user-select: none;
}
.addon-toggle:hover { background: var(--amber-50); border-color: var(--amber-100); }
.addon-toggle.active { background: var(--amber-50); border-color: var(--amber-400); color: var(--amber-800); }

/* Toggle switch */
.toggle-switch {
  position: relative;
  width: 40px; height: 22px;
  flex-shrink: 0;
}
.toggle-switch input { display: none; }
.toggle-slider {
  position: absolute; inset: 0;
  background: var(--gray-200);
  border-radius: 11px;
  transition: background var(--ease);
}
.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: var(--white);
  border-radius: 50%;
  transition: transform var(--ease);
}
.addon-toggle.active .toggle-slider { background: var(--amber-400); }
.addon-toggle.active .toggle-slider::after { transform: translateX(18px); }

/* ── Off-Grid Section ─────────────────────────────────────── */
.offgrid-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.offgrid-card {
  border-radius: 16px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-md);
}
.offgrid-card-header {
  padding: 2rem 1.75rem 1.25rem;
  position: relative;
}
.offgrid-card-header.solar  { background: linear-gradient(135deg, #1B2A4A, #185FA5); }
.offgrid-card-header.water  { background: linear-gradient(135deg, #1a4a1B, #3B6D11); }
.offgrid-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.offgrid-card-header h3 { color: var(--white); font-size: 1.35rem; margin-bottom: .4rem; }
.offgrid-card-header p  { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.6; }
.offgrid-card-body { padding: 1.5rem 1.75rem; }
.offgrid-features { display: flex; flex-direction: column; gap: .6rem; }
.offgrid-feature {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .9rem; color: var(--gray-700, var(--gray-600));
}
.offgrid-feature::before {
  content: '✓';
  color: var(--green-600);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: .1rem;
}
.offgrid-card-footer {
  padding: 1rem 1.75rem 1.5rem;
  border-top: 1px solid var(--gray-100);
}

/* ── Process Steps ────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}
.steps-grid::before {
  content: '';
  position: absolute;
  top: 32px; left: calc(100% / 8); right: calc(100% / 8);
  height: 2px;
  background: var(--amber-100);
  z-index: 0;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
  position: relative;
  z-index: 1;
}
.step-num {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--amber-600);
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 12px rgba(133,79,11,.3);
}
.step h3 { font-size: 1rem; margin-bottom: .4rem; }
.step p   { font-size: .85rem; color: var(--gray-600); }

/* ── Testimonials ─────────────────────────────────────────── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.75rem;
}
.testimonial {
  background: var(--white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.testimonial-stars { color: var(--amber-400); font-size: 1.1rem; margin-bottom: .75rem; }
.testimonial-text {
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 1.25rem;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.testimonial-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--amber-100);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--amber-800);
  flex-shrink: 0;
}
.testimonial-name { font-weight: 700; font-size: .9rem; }
.testimonial-loc  { font-size: .8rem; color: var(--gray-400); }

/* ── FAQ Accordion ────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 1.2rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-question:hover { color: var(--amber-800); }
.faq-icon {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--amber-600);
  transition: transform .25s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.faq-answer-inner {
  padding: 0 0 1.25rem;
  font-size: .95rem;
  color: var(--gray-600);
  line-height: 1.75;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--amber-900) 0%, var(--amber-800) 100%);
  padding: var(--section-pad);
  text-align: center;
}
.cta-banner h2 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: var(--amber-100);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.cta-banner .btn-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* ── Made in USA Bar ──────────────────────────────────────── */
.made-in-usa {
  background: var(--navy);
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--white);
}
.made-in-usa h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
}
.made-in-usa p {
  color: rgba(255,255,255,.75);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1rem;
}
.usa-flag { font-size: 1.8rem; }

/* ── Page Hero (inner pages) ──────────────────────────────── */
.page-hero {
  position: relative;
  padding: 5rem 1.5rem;
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.45);
}
.page-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(65,36,2,.65) 0%, rgba(27,42,74,.4) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-w);
  margin: 0 auto;
  color: var(--white);
  text-align: center;
}
.page-hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1rem;
}
.page-hero-content p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.85);
  max-width: 580px;
  margin: 0 auto;
}
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-size: .82rem;
  color: rgba(255,255,255,.65);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--amber-100); }
.breadcrumb a:hover { text-decoration: underline; }

/* ── Quote / Contact Form ─────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }

.contact-form {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .4rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .7rem .9rem;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .95rem;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--amber-400);
  box-shadow: 0 0 0 3px rgba(239,159,39,.18);
}
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit {
  width: 100%;
  padding: .9rem;
  font-size: 1rem;
  border-radius: 8px;
}

.contact-info h3 { font-size: 1.35rem; margin-bottom: 1.5rem; }
.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.contact-detail-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: .1rem;
}
.contact-detail h4 { font-size: .9rem; font-weight: 700; margin-bottom: .25rem; }
.contact-detail p  { font-size: .9rem; color: var(--gray-600); }
.contact-detail a  { color: var(--amber-600); }
.contact-detail a:hover { text-decoration: underline; }

/* ── Stats Bar ────────────────────────────────────────────── */
.stats-bar {
  background: var(--amber-600);
  padding: 2.5rem 1.5rem;
}
.stats-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  text-align: center;
}
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: .3rem;
}
.stat-label {
  font-size: .82rem;
  font-weight: 600;
  color: rgba(255,255,255,.8);
  text-transform: uppercase;
  letter-spacing: .07em;
}

/* ── Founder Cards ────────────────────────────────────────── */
.founder-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}
.founder-card-header {
  background: linear-gradient(135deg, var(--amber-900), var(--amber-800));
  padding: 2.5rem;
  text-align: center;
}
.founder-avatar {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--white);
  margin: 0 auto 1rem;
  border: 3px solid rgba(255,255,255,.3);
}
.founder-card-header h3 { color: var(--white); font-size: 1.35rem; }
.founder-card-header p  { color: var(--amber-100); font-size: .85rem; }
.founder-card-body { padding: 1.75rem; }
.founder-card-body p { font-size: .95rem; color: var(--gray-600); line-height: 1.75; }

/* ── Barndominium Features ────────────────────────────────── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.split-section.reverse { direction: rtl; }
.split-section.reverse > * { direction: ltr; }
@media (max-width: 860px) {
  .split-section { grid-template-columns: 1fr; }
  .split-section.reverse { direction: ltr; }
}
.split-img {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.split-img img { width: 100%; height: 380px; object-fit: cover; }
.split-text .section-label { display: block; }
.split-features { margin-top: 1.5rem; display: flex; flex-direction: column; gap: .75rem; }
.split-feature {
  display: flex; align-items: flex-start; gap: .85rem;
}
.split-feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--amber-50);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.split-feature h4 { font-size: .95rem; margin-bottom: .2rem; }
.split-feature p  { font-size: .85rem; color: var(--gray-600); }

/* ── Pricing Cards ────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  background: var(--white);
  border-radius: 14px;
  border: 2px solid var(--gray-200);
  padding: 2rem;
  transition: border-color var(--ease), box-shadow var(--ease);
}
.pricing-card:hover { border-color: var(--amber-400); box-shadow: var(--shadow-md); }
.pricing-card.featured {
  border-color: var(--amber-600);
  background: var(--amber-50);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--amber-600);
  color: var(--white);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .25rem .8rem;
  border-radius: 20px;
}
.pricing-name { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.pricing-range {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--amber-800);
  margin-bottom: .25rem;
}
.pricing-note { font-size: .8rem; color: var(--gray-400); margin-bottom: 1.25rem; }
.pricing-features { display: flex; flex-direction: column; gap: .6rem; margin-bottom: 1.5rem; }
.pricing-feature {
  display: flex; align-items: center; gap: .6rem;
  font-size: .88rem;
  color: var(--gray-600);
}
.pricing-feature::before { content: '✓'; color: var(--green-600); font-weight: 800; }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--gray-800);
  color: rgba(255,255,255,.75);
  padding: 4rem 1.5rem 2rem;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 3rem;
}
@media (max-width: 760px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .footer-top { grid-template-columns: 1fr; }
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
  margin-top: .85rem;
  max-width: 260px;
}
.footer-brand .nav-logo { margin-bottom: .5rem; color: var(--white); }
.footer-brand .nav-logo-icon { background: var(--amber-600); }

.footer-col h4 {
  font-size: .82rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: .55rem; }
.footer-col a {
  font-size: .88rem;
  color: rgba(255,255,255,.65);
  transition: color var(--ease);
}
.footer-col a:hover { color: var(--amber-100); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .82rem;
}
.footer-bottom a { color: rgba(255,255,255,.5); }
.footer-bottom a:hover { color: var(--amber-100); }

/* ── Utility ──────────────────────────────────────────────── */
.mt-1  { margin-top: .5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mb-1  { margin-bottom: .5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Form success / error */
.form-success {
  display: none;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  color: var(--green-700);
  font-weight: 600;
  margin-top: 1rem;
}

/* Responsive helpers */
@media (max-width: 600px) {
  :root { --section-pad: 3.5rem 1.25rem; }
  .btn { padding: .65rem 1.35rem; font-size: .88rem; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid::before { display: none; }
  .footer-top { grid-template-columns: 1fr; }
}
