/* ============================================================
   SUNFLOWER SIDING — Design System
   ============================================================ */

:root {
  --gold:      #F5B700;
  --bark:      #3E3430;
  --primed:    #FBF8F2;
  --pine:      #1E2A24;
  --cedar:     #C9C1B4;
  --white:     #FFFFFF;
  --smoke:     #F4F2EF;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(62,52,48,0.07);
  --shadow-md: 0 8px 28px rgba(62,52,48,0.11);
  --shadow-lg: 0 24px 56px rgba(62,52,48,0.14);

  --transition: 0.22s ease;
}

/* ── Fonts ── */
@font-face {
  font-family: 'Cinzel';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Cinzel-SemiBold.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  src: url('/fonts/Archivo-Regular.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  src: url('/fonts/Archivo-Medium.woff2') format('woff2');
  font-display: swap;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  src: url('/fonts/Archivo-SemiBold.woff2') format('woff2');
  font-display: swap;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Archivo', sans-serif;
  font-weight: 400;
  background-color: var(--primed);
  color: var(--bark);
  line-height: 1.65;
  font-size: clamp(16px, 1.15vw, 18px);
}

/* ── Typography ── */
h1, h2 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.15;
  margin: 0 0 1rem;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); }

h3, h4, h5, h6 {
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}
h3 { font-size: 1.2rem; }

p { margin: 0 0 1.25rem; }

a {
  color: var(--bark);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover, a:focus { color: var(--gold); }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

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

/* ── Layout ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.9rem;
  font-family: 'Archivo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--pine);
  color: var(--white);
}

.btn-gold {
  background-color: var(--gold);
  color: var(--bark);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 200;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

/* ── Logo ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo img {
  height: 44px;
  width: 44px;
  flex-shrink: 0;
}

.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.logo-name {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: var(--bark);
  white-space: nowrap;
}

.logo-sub {
  font-family: 'Cinzel', Georgia, serif;
  font-weight: 600;
  font-size: 0.5rem;
  letter-spacing: 0.28em;
  color: var(--cedar);
  white-space: nowrap;
  margin-top: 3px;
}

/* ── Hamburger Button ── */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1.5px solid var(--cedar);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 10px;
  transition: border-color var(--transition), background var(--transition);
  flex-shrink: 0;
}

.nav-toggle:hover {
  border-color: var(--bark);
  background: var(--smoke);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background-color: var(--bark);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease, width 0.2s ease;
  transform-origin: center;
}

/* X state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  width: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Nav Drawer ── */
.main-nav {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--smoke);
  box-shadow: var(--shadow-md);
  z-index: 190;
  animation: navSlideDown 0.22s ease;
}

@keyframes navSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.main-nav.is-open {
  display: block;
}

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 1rem 28px;
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.main-nav ul li a {
  display: block;
  padding: 0.75rem 1rem;
  font-weight: 500;
  font-size: 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
}

.main-nav ul li a:hover {
  background: var(--smoke);
  color: var(--pine);
}

.main-nav .nav-cta {
  padding: 1.25rem 28px;
  border-top: 1px solid var(--smoke);
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav .nav-cta .btn {
  flex: 1;
  max-width: 260px;
}

/* Nav overlay */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  top: 72px;
  background: rgba(20, 36, 26, 0.55);
  z-index: 180;
}

.nav-overlay.is-open {
  display: block;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 5rem 0 4rem;
  background: var(--primed);
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gold);
  color: var(--pine);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero-body {
  font-size: 1.05rem;
  color: #5a4d48;
  margin-bottom: 2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-note {
  font-size: 0.82rem;
  color: var(--cedar);
  margin: 0;
}

.hero-image-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/3;
}

/* Stats card variant — replaces hero image on for-builders */
.hero-stats-card {
  background: var(--pine);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  flex-direction: column;
  padding: 3rem;
  text-align: center;
  aspect-ratio: unset;
  overflow: visible;
  align-self: stretch;
}

.hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip {
  background: var(--pine);
  padding: 2.5rem 0;
}

.stats-strip .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
}

.stat-item {
  text-align: center;
  padding: 1rem 2rem;
  border-right: 1px solid rgba(201,193,180,0.15);
}

.stat-item:last-child { border-right: none; }

.stat-number {
  font-family: 'Cinzel', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--cedar);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: 5rem 0;
}

.section-dark {
  background: var(--pine);
  color: var(--primed);
}

.section-dark h2, .section-dark h3, .section-dark h4 {
  color: var(--white);
}

.section-dark a:not(.btn) { color: var(--gold); }
.section-dark a:not(.btn):hover { color: var(--white); }

.section-header {
  margin-bottom: 3rem;
}

.section-header p {
  font-size: 1.05rem;
  color: #5a4d48;
  max-width: 540px;
  margin: 0;
}

.section-dark .section-header p {
  color: var(--cedar);
}

/* ============================================================
   COURSING LINES
   ============================================================ */
.coursing {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
  margin: 3rem 0;
}

.coursing__line {
  height: 1px;
  background-color: var(--cedar);
  width: 0;
  transition: width 0.45s ease-out;
}

.coursing.is-visible .coursing__line { width: 100%; }

.coursing__line:nth-child(1) { margin-bottom: 16px; transition-delay: 0ms; }
.coursing__line:nth-child(2) { margin-bottom: 12px; transition-delay: 80ms; }
.coursing__line:nth-child(3) { margin-bottom: 9px;  transition-delay: 160ms; }
.coursing__line:nth-child(4) { margin-bottom: 7px;  transition-delay: 240ms; }

.coursing__line--gold {
  background-color: var(--gold);
  height: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .coursing__line { transition: none; width: 100%; }
}

/* ============================================================
   CARDS & GRIDS
   ============================================================ */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,193,180,0.4);
}

.card h3 {
  color: var(--pine);
  margin-top: 0;
}

.card-dark {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(201,193,180,0.12);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.card-dark h3 { color: var(--white); margin-top: 0; }
.card-dark p  { color: var(--cedar); margin-bottom: 0; }

.project-card {
  background: var(--white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(201,193,180,0.3);
  transition: transform var(--transition), box-shadow var(--transition);
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.project-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.project-card-content { padding: 1.5rem; }
.project-card h3 { margin-top: 0; margin-bottom: 0.4rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--pine);
  color: var(--primed);
  padding: 4rem 0 2rem;
}

.site-footer a { color: var(--cedar); }
.site-footer a:hover { color: var(--white); }

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand h2 {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.footer-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-nav ul li a {
  font-size: 0.9rem;
}

.footer-nap p { font-size: 0.9rem; margin-bottom: 0.5rem; }

.footer-legal {
  border-top: 1px solid rgba(201,193,180,0.15);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: rgba(201,193,180,0.7);
  text-align: center;
}

.lp-badge {
  display: flex;
  justify-content: center;
  padding: 1.5rem 0 0.75rem;
}

.lp-badge img {
  display: block;
  max-width: 180px;
  height: auto;
}

/* ============================================================
   PROSE PAGES
   ============================================================ */
.prose {
  max-width: 780px;
  margin: 0 auto;
}

.prose h2 { margin-top: 3rem; }

.prose ul {
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.prose li { margin-bottom: 0.5rem; }

/* ============================================================
   LP IFRAME
   ============================================================ */
.lp-iframe-container iframe {
  height: 3700px !important;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero .container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-image-wrap {
    max-height: 340px;
  }

  .hero-stats-card {
    max-height: none;
    min-height: unset;
    padding: 2rem;
    width: 100%;
  }

  .stats-strip .container {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid rgba(201,193,180,0.15);
    padding: 1.25rem;
  }

  .stat-item:last-child { border-bottom: none; }

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

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }

  .hero { padding: 3rem 0 2.5rem; }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .lp-iframe-container iframe { height: 5200px !important; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .site-header, .site-footer, .coursing, .hero-image-wrap,
  .nav-toggle, .nav-overlay { display: none !important; }

  body { background: white; color: black; }

  .container { width: 100%; max-width: 100%; padding: 0; }

  a { color: black; text-decoration: underline; }
}
