/* ============================================
   FONTS (self-hosted, latin subset, SIL OFL 1.1, see fonts/)
   ============================================ */
@font-face {
  font-family: 'DM Serif Display';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/dm-serif-display-latin-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-sans-latin-var.woff2') format('woff2');
}

/* ============================================
   CSS VARIABLES & RESET
   ============================================ */
:root {
  --green:      #154700;
  --cream:      #EFE7DA;
  --charcoal:   #1C2826;
  --orange-deep: #A15300;  /* orange text on cream/white, 4.5:1+ */
  --orange-soft: #FAAC59;  /* orange text on green, 4.5:1+ */
  --burgundy:   #2F0601;
  --orange:     #F77F00;
  --text-dark:  #1C2826;
  --text-light: #EFE7DA;

  --font-display: 'DM Serif Display', serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;

  --section-pad: clamp(60px, 8vw, 120px);
  --content-max: 1200px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.65;
  color: var(--text-dark);
  background: var(--cream);
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* Section label */
.section-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

/* Headline utility */
.section-headline {
  font-family: var(--font-display);
  line-height: 1.15;
  margin-bottom: 24px;
}

/* Fade-in animation */
.fade-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.fade-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   1. NAV
   ============================================ */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}
.site-nav.scrolled {
  background: var(--cream);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--green);
  white-space: nowrap;
  transition: color 0.3s;
}
.site-nav:not(.scrolled) .nav-logo {
  color: var(--cream);
}
.nav-logo {
  display: flex;
  align-items: center;
}
.nav-logo img {
  display: block;
  height: 40px;
  width: auto;
}
.site-nav .logo-on-light,
.site-nav.scrolled .logo-on-dark {
  display: none;
}
.site-nav.scrolled .logo-on-light {
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--charcoal);
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--orange);
}
.site-nav:not(.scrolled) .nav-links a {
  color: var(--cream);
}
.site-nav:not(.scrolled) .nav-links a:hover {
  color: var(--orange);
}

.nav-cta {
  display: inline-block;
  padding: 10px 24px;
  background: var(--orange);
  color: var(--charcoal) !important;
  font-weight: 600;
  font-size: 14px;
  border-radius: 6px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(247,127,0,0.35);
  color: var(--charcoal) !important;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}
.site-nav:not(.scrolled) .hamburger span {
  background: var(--cream);
}
.hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile drawer */
.mobile-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  width: 100%;
  background: var(--cream);
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  padding: 24px 0;
  transform: translateY(-110%);
  transition: transform 0.35s ease;
  z-index: 999;
}
.mobile-drawer.open {
  transform: translateY(0);
}
.mobile-drawer a {
  display: block;
  padding: 14px clamp(20px, 4vw, 40px);
  font-size: 16px;
  font-weight: 500;
  color: var(--charcoal);
}
.mobile-drawer a:hover {
  color: var(--orange);
}
.mobile-drawer .nav-cta {
  margin: 12px clamp(20px, 4vw, 40px) 0;
  text-align: center;
}

/* ============================================
   2. HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  overflow: hidden;
}

/* Subtle organic texture overlay (CSS noise) */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.5;
  pointer-events: none;
}

/* Animated radial gradient pulse */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(21,71,0,0.25) 0%, transparent 70%);
  animation: pulse 8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 820px;
  padding: 120px 0 80px;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 80px);
  line-height: 1.1;
  color: var(--cream);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--cream);
  opacity: 0.7;
  max-width: 620px;
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-primary {
  display: inline-block;
  padding: 14px 32px;
  background: var(--orange);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(247,127,0,0.35);
}

.btn-ghost {
  display: inline-block;
  padding: 14px 32px;
  background: transparent;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  border: 2px solid var(--cream);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.btn-ghost:hover {
  background: var(--cream);
  color: var(--charcoal);
}

/* ============================================
   3. THE STAKES
   ============================================ */
.stakes {
  background: var(--green);
  color: var(--cream);
  padding: var(--section-pad) 0;
}

.stakes .section-headline {
  font-size: clamp(32px, 4.5vw, 56px);
  color: var(--cream);
  max-width: 780px;
}

.stakes-body {
  max-width: 720px;
  margin-bottom: 56px;
}
.stakes-body p {
  margin-bottom: 20px;
  opacity: 0.9;
}

/* ============================================
   4. SERVICES
   ============================================ */
.services {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.services .section-headline {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--green);
  max-width: 640px;
  margin-bottom: 48px;
}

.tiers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
  margin-bottom: 56px;
}

.tier-card {
  border-radius: 16px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s;
}
.tier-card:hover {
  transform: translateY(-4px);
}

.tier-card--ground {
  background: var(--charcoal);
  color: var(--cream);
}
.tier-card--build {
  background: var(--green);
  color: var(--cream);
  position: relative;
  /* Elevated / taller */
  padding-top: 48px;
  padding-bottom: 48px;
  box-shadow: 0 12px 40px rgba(21,71,0,0.3);
  z-index: 2;
}
.tier-card--sustain {
  background: var(--charcoal);
  color: var(--cream);
}

.tier-label {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge-popular {
  background: var(--orange);
  color: var(--charcoal);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.tier-tagline {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.tier-subtagline {
  font-size: 15px;
  opacity: 0.75;
  margin-bottom: 24px;
  line-height: 1.5;
}

.tier-features {
  margin-bottom: 28px;
  flex-grow: 1;
}
.tier-features li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 15px;
  line-height: 1.5;
  opacity: 0.9;
}
.tier-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
}

.tier-cta {
  font-size: 15px;
  font-weight: 600;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s;
}
.tier-cta:hover {
  gap: 12px;
}
.tier-cta svg {
  width: 16px;
  height: 16px;
}

.tier-footnote {
  margin-top: 16px;
  font-size: 13px;
  opacity: 0.6;
  font-style: italic;
}

/* ============================================
   5. ADD-ON SERVICES
   ============================================ */
.addons {
  background: var(--charcoal);
  padding: var(--section-pad) 0;
}

.addons .section-headline {
  font-size: clamp(28px, 3.5vw, 44px);
  color: var(--cream);
  margin-bottom: 48px;
}

.addons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.addon-card {
  display: flex;
  gap: 20px;
  padding: 32px;
  border-left: 4px solid var(--green);
  background: white;
  border-radius: 0 12px 12px 0;
  transition: transform 0.25s;
}
.addon-card:hover {
  transform: translateX(4px);
}
.addon-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  border-radius: 10px;
  color: var(--cream);
}
.addon-icon svg {
  width: 22px;
  height: 22px;
}

.addon-title {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--charcoal);
}
.addon-desc {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.8;
}

/* ============================================
   6. OUR VALUES
   ============================================ */
.values {
  background: var(--cream);
  padding: var(--section-pad) 0;
}

.values .section-headline {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--green);
  margin-bottom: 48px;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.value-card {
  padding: 32px;
  background: white;
  border-radius: 12px;
  transition: transform 0.25s, box-shadow 0.25s;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.value-icon {
  width: 48px;
  height: 48px;
  background: var(--green);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--cream);
}
.value-icon svg {
  width: 24px;
  height: 24px;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--charcoal);
}
.value-card p {
  font-size: 15px;
  line-height: 1.55;
  opacity: 0.8;
}

/* ============================================
   7. WHO WE ARE
   ============================================ */
.team {
  background: var(--green);
  color: var(--cream);
  padding: var(--section-pad) 0;
}

.team .section-headline {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--cream);
  margin-bottom: 48px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: rgba(239, 231, 218, 0.08);
  border: 1px solid rgba(239, 231, 218, 0.12);
  border-radius: 16px;
  padding: 40px;
}

.team-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 24px;
}
.team-photo {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(239, 231, 218, 0.12);
  border: 2px solid rgba(239, 231, 218, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(239, 231, 218, 0.55);
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.team-photo svg {
  width: 44px;
  height: 44px;
}
.team-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--cream);
  margin-bottom: 4px;
}
.team-card .team-role {
  font-size: 14px;
  font-weight: 600;
  color: var(--orange);
  letter-spacing: 0.05em;
}
.team-card p {
  font-size: 16px;
  opacity: 0.88;
  line-height: 1.7;
}

/* ============================================
   8. CONTACT
   ============================================ */
.contact {
  background: var(--charcoal);
  color: var(--cream);
  padding: var(--section-pad) 0;
}

.contact .section-headline {
  font-size: clamp(32px, 4vw, 52px);
  color: var(--cream);
  margin-bottom: 48px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.contact-copy p {
  font-size: 17px;
  opacity: 0.85;
  line-height: 1.65;
  margin-bottom: 24px;
}

/* 17hats embedded contact form */
.contact-form-embed {
  background: var(--cream);
  border-radius: 12px;
  padding: 12px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.contact-form-embed iframe {
  display: block;
  width: 100%;
  /* Fixed height: no 17hats resizer script runs on our page (it could change our page at
     17hats' discretion). Measured 2026-10-25: about 1,024px at 320px wide, 894-961px at
     desktop widths. If 17hats lengthens the form, it scrolls inside the frame. */
  height: 1080px;
  border: 0;
  border-radius: 6px;
}
@media (min-width: 900px) {
  .contact-form-embed iframe {
    height: 1000px;
  }
}

/* ============================================
   9. FOOTER
   ============================================ */
.site-footer {
  background: var(--green);
  color: var(--cream);
  padding: 56px 0 32px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-brand .footer-logo {
  margin-bottom: 10px;
}
.footer-brand .footer-logo img {
  display: block;
  height: 44px;
  width: auto;
}
.footer-brand .footer-tagline {
  font-size: 14px;
  opacity: 0.7;
  max-width: 320px;
  line-height: 1.5;
}

.footer-nav {
  display: flex;
  gap: 28px;
}
.footer-nav a {
  font-size: 14px;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s, color 0.2s;
}
.footer-nav a:hover {
  opacity: 1;
  color: var(--orange);
}

.footer-social {
  display: flex;
  gap: 16px;
}
.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(239,231,218,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover {
  background: rgba(239,231,218,0.2);
}
.footer-social svg {
  width: 18px;
  height: 18px;
  color: var(--cream);
}

.footer-bottom {
  border-top: 1px solid rgba(239,231,218,0.15);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}
.footer-bottom p {
  font-size: 13px;
  opacity: 0.75;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .tiers-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
  }
  .tier-card--build {
    order: -1;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .hamburger {
    display: flex;
  }
  .mobile-drawer {
    display: block;
  }

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

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

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

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

  .footer-inner {
    flex-direction: column;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* ============================================
   INNER PAGES (privacy, 404)
   ============================================ */
.page-hero {
  background: var(--charcoal);
  color: var(--cream);
  padding: 144px 0 56px;
}
.page-hero-tall {
  min-height: 70vh;
  display: flex;
  align-items: center;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  margin-bottom: 16px;
}
.page-hero-sub {
  font-size: clamp(16px, 2vw, 18px);
  opacity: 0.75;
  max-width: 620px;
  line-height: 1.6;
  margin-bottom: 32px;
}
.legal {
  padding: 56px 0 96px;
}
.legal .container {
  max-width: 760px;
}
.legal h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  line-height: 1.2;
  color: var(--green);
  margin: 40px 0 12px;
}
.legal p,
.legal li {
  font-size: 17px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.legal ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

/* Contrast: orange text on light and green backgrounds (WCAG AA 4.5:1) */
.services .section-label {
  color: var(--orange-deep);
}
.tier-card--build .tier-cta,
.team-card .team-role {
  color: var(--orange-soft);
}
.team-card .team-role {
  opacity: 1;
}

/* Visible keyboard focus on light and dark backgrounds: charcoal ring inside a cream ring */
:focus-visible {
  outline: 2px solid var(--charcoal);
  outline-offset: 2px;
  box-shadow: 0 0 0 5px var(--cream);
}
iframe:focus-visible {
  outline-offset: 4px;
}

/* Skip link: hidden until focused */
.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 2000;
  background: var(--cream);
  color: var(--charcoal);
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 6px;
}
.skip-link:focus {
  top: 16px;
}

/* Closed mobile drawer is hidden from keyboard and screen readers */
.mobile-drawer {
  visibility: hidden;
  transition: transform 0.35s ease, visibility 0s linear 0.35s;
}
.mobile-drawer.open {
  visibility: visible;
  transition: transform 0.35s ease, visibility 0s;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
  }
  .fade-section {
    opacity: 1;
    transform: none;
  }
}
