:root {
  --bg: #f7f5f1;
  --surface: #ffffff;
  --surface-2: #f0f3ef;
  --text: #1f2a2a;
  --muted: #5f6b68;
  --line: #d9ded9;
  --sage: #8fa89b;
  --sage-dark: #6f8a78;
  --blue: #7f9db5;
  --shadow: 0 10px 30px rgba(31, 42, 42, 0.08);
  --radius: 22px;
  --max: 1180px;
  --transition: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(143,168,155,0.12), transparent 30%),
    radial-gradient(circle at top right, rgba(127,157,181,0.10), transparent 26%),
    var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.skip-link { 
  position: absolute; 
  left: -999px; 
  top: 12px; 
  background: var(--surface); 
  color: var(--text); 
  padding: 10px 14px; 
  border-radius: 999px; 
  box-shadow: var(--shadow); 
  z-index: 9999; 
}
.skip-link:focus { left: 12px; }
.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

/* TWO-ROW HEADER SYSTEM */
.topbar {
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(217, 222, 217, 0.8);
  position: sticky;
  top: 0;
  z-index: 40;
  transition: background var(--transition), backdrop-filter var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.topbar-main {
  border-bottom: 1px solid rgba(217, 222, 217, 0.4);
}
.main-row-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  transition: padding var(--transition);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex-shrink: 0; }
/* New Logo Image Styling */
.brand-logo {
  height: 60px;         /* Constrains the height so the header stays elegant */
  width: auto;          /* Automatically calculates width (approx 72px) based on your 150x100 aspect ratio */
  object-fit: contain;  /* Prevents any stretching or distortion */
  flex-shrink: 0;
}


.cta-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: flex-end; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 12px 18px; border: 1px solid transparent;
  cursor: pointer; transition: var(--transition); font-weight: 600; white-space: nowrap;
}
.btn-primary { background: linear-gradient(135deg, var(--sage-dark), var(--blue)); color: white; box-shadow: 0 12px 24px rgba(111,138,120,0.22); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-secondary { background: var(--surface); border-color: var(--line); color: var(--text); }
.btn-secondary:hover { background: #fafcf9; }
.mobile-menu-btn { display: none; }
/* --- CSS HAMBURGER DRAWING --- */
.mobile-menu-btn {
  display: none; /* Hidden on desktop */
  padding: 8px 12px;
  align-items: center;
  justify-content: center;
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: inline-block;
  position: relative;
}

/* --- FIXED CSS HAMBURGER DRAWING --- */
.mobile-menu-btn {
  display: none; /* Hidden on desktop */
  width: 44px;   /* Explicit square dimensions ensure a perfect circle */
  height: 44px;
  padding: 0;    /* Remove padding so it doesn't push the absolute inner box */
  border-radius: 12%; /* Makes the button wrapper a neat circle */
  background: var(--sage-dark); /* Changed background color to your dark sage */
  border: 1px solid var(--line); /* Crisp gray border separation line */
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
}

.hamburger-box {
  width: 20px;
  height: 14px;
  display: block;
  position: relative;
}

/* The three bars of the hamburger */
.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
  width: 20px;
  height: 2px;
  background-color: var(--text);
  border-radius: 4px;
  position: absolute;
  left: 0; /* CRITICAL: Anchors the bars precisely to the left boundary of the box */
  transition: transform var(--transition), top var(--transition), background-color var(--transition);
}
/* --- THE NEW ACTIVE HOVER STATE --- */
.mobile-menu-btn:hover {
  background: var(--sage-dark); /* Flashes to solid dark sage when hovered */
  border-color: var(--sage-dark); /* Matches border line to the dark sage box fill */
}
/* Inverts the inner lines to white smoothly during hover */
.mobile-menu-btn:hover .hamburger-inner,
.mobile-menu-btn:hover .hamburger-inner::before,
.mobile-menu-btn:hover .hamburger-inner::after {
  background-color: #ffffff; 
}
/* Bounding core box wrapper logic remains stable */
.hamburger-box {
  width: 20px;
  height: 14px;
  display: block;
  position: relative;
}

.hamburger-inner {
  top: 50%;
  transform: translateY(-50%);
}

.hamburger-inner::before {
  content: "";
  top: -6px;
}

.hamburger-inner::after {
  content: "";
  top: 6px;
}
.topbar-nav {
  padding: 10px 0;
  transition: padding var(--transition);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.nav-link {
  border: 1px solid transparent; background: transparent; color: var(--muted);
  padding: 10px 14px; border-radius: 999px; cursor: pointer; display: inline-flex;
  transition: padding var(--transition), font-size var(--transition), background var(--transition), color var(--transition);
}
.nav-link:hover { background: rgba(143,168,155,0.10); color: var(--text); }
.nav-link.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow); border-color: rgba(217,222,217,0.7); }

/* SCROLLED COMPRESSION STATE */
.topbar.scrolled {
  background: var(--surface-2);
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 20px rgba(31, 42, 42, 0.08);
  border-bottom-color: var(--line);
}
.topbar.scrolled .main-row-wrap { padding: 6px 0; }
.topbar.scrolled .brand-mark { width: 30px; height: 30px; border-radius: 10px; }
.topbar.scrolled .brand-mark::before, .topbar.scrolled .brand-mark::after { inset: 6px; }
.topbar.scrolled .brand-text strong { font-size: 0.92rem; }
.topbar.scrolled .brand-text span { display: none; }
.topbar.scrolled .topbar-nav { padding: 2px 0; }
.topbar.scrolled .nav-link { padding: 6px 10px; font-size: 0.9rem; }
.topbar.scrolled .btn { padding: 8px 14px; font-size: 0.88rem; }

/* REFACTORED CLEAN PAGE VIEW LAYOUT */
.main-content { padding: 34px 0 72px; }

/* LAYOUT COMPONENTS & SECTIONS */
.hero { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 28px; align-items: center; margin-top: 10px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(111,138,120,0.18); background: rgba(255,255,255,0.62);
  border-radius: 999px; color: var(--sage-dark); font-weight: 600; font-size: 0.92rem;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 999px; background: var(--sage-dark); box-shadow: 0 0 0 5px rgba(111,138,120,0.12); }

h1, h2, h3 { line-height: 1.15; margin: 0; }
h1 { font-size: clamp(2.4rem, 5vw, 4.8rem); letter-spacing: -0.05em; margin-top: 18px; max-width: 12ch; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.6rem); letter-spacing: -0.03em; }
h3 { font-size: 1.1rem; }
p { margin: 0; color: var(--muted); }

.lead { margin-top: 18px; font-size: 1.08rem; max-width: 60ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 28px; }
.stat {
  background: rgba(255,255,255,0.72); border: 1px solid rgba(217,222,217,0.85);
  border-radius: 18px; padding: 16px; box-shadow: 0 8px 18px rgba(31,42,42,0.05);
}
.stat strong { display: block; font-size: 1.25rem; color: var(--text); }
.stat span { display: block; margin-top: 4px; font-size: 0.92rem; color: var(--muted); }

.hero-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.92), rgba(240,243,239,0.9));
  border: 1px solid rgba(217,222,217,0.9); border-radius: 30px;
  overflow: hidden; box-shadow: var(--shadow); align-self: center; margin-top: 24px;
}
.image-frame {
  min-height: 540px; display: flex; flex-direction: column; justify-content: flex-end; position: relative;
  background: linear-gradient(180deg, rgba(31,42,42,0.06), rgba(31,42,42,0.18)), 
              url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 1400'%3E%3Cdefs%3E%3ClinearGradient id='g1' x1='0' x2='0' y1='0' y2='1'%3E%3Cstop stop-color='%23f7f5f1'/%3E%3Cstop offset='1' stop-color='%23dfe7e1'/%3E%3C/linearGradient%3E%3ClinearGradient id='g2' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%238fa89b'/%3E%3Cstop offset='1' stop-color='%237f9db5'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='1400' fill='url(%23g1)'/%3E%3Ccircle cx='950' cy='170' r='170' fill='%23edf2ee'/%3E%3Ccircle cx='190' cy='1120' r='230' fill='%23e7efe9'/%3E%3Crect x='140' y='390' width='920' height='520' rx='36' fill='%23ffffff' fill-opacity='.62'/%3E%3Cpath d='M240 826c80-212 220-314 370-314 149 0 273 102 352 314' fill='none' stroke='url(%23g2)' stroke-width='34' stroke-linecap='round'/%3E%3Cpath d='M432 730c64-118 118-178 178-178 57 0 103 59 137 178' fill='none' stroke='%236f8a78' stroke-width='28' stroke-linecap='round' stroke-opacity='.8'/%3E%3Ccircle cx='600' cy='472' r='56' fill='%23fff' fill-opacity='.74'/%3E%3Cpath d='M600 530c-44 70-101 156-186 234' stroke='%237f9db5' stroke-width='26' stroke-linecap='round' fill='none'/%3E%3Cpath d='M600 530c39 56 92 133 174 228' stroke='%238fa89b' stroke-width='26' stroke-linecap='round' fill='none'/%3E%3Cpath d='M321 937h558' stroke='%23bfc9c2' stroke-width='18' stroke-linecap='round'/%3E%3Cpath d='M356 1045h490' stroke='%23d7ddd8' stroke-width='10' stroke-linecap='round'/%3E%3C/svg%3E") center/cover no-repeat;
}
.image-overlay {
  position: relative; margin: 18px; background: rgba(255, 255, 255, 0.82);
  border-radius: 20px; padding: 20px; border: 1px solid rgba(255,255,255,0.68);
  backdrop-filter: blur(10px);-webkit-backdrop-filter: blur(10px); /* Safari support */
  /* --- THE RENDERING FIX --- */
  transform: translateZ(0);       /* Forces hardware acceleration layer */
  will-change: transform, opacity; /* Tells the browser to keep this layer ready to paint instantly */
}
.overlay-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; max-width: 100%;
  min-height: 44px; line-height: 1.4; border-radius: 999px; background: rgba(143,168,155,0.14); color: var(--sage-dark); font-weight: 600; font-size: 0.9rem;
}
.overlay-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 14px; }
.mini { background: rgba(255,255,255,0.78); border-radius: 16px; padding: 12px; border: 1px solid rgba(217,222,217,0.9); }
.mini strong { display: block; margin-bottom: 4px; }

.section {
  margin-top: 34px; background: rgba(255,255,255,0.66);
  border: 1px solid rgba(217,222,217,0.8); border-radius: 28px;
  box-shadow: 0 12px 28px rgba(31,42,42,0.05); padding: 28px;
}
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-end; margin-bottom: 20px; flex-wrap: wrap; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid rgba(217,222,217,0.95); border-radius: 22px; padding: 20px; box-shadow: 0 10px 22px rgba(31,42,42,0.04); }
.card strong { display: block; margin-bottom: 8px; font-size: 1.04rem; }

.benefit { display: flex; gap: 14px; align-items: flex-start; }
.icon { width: 44px; height: 44px; border-radius: 16px; background: rgba(143,168,155,0.16); color: var(--sage-dark); display: grid; place-items: center; font-size: 1.2rem; flex: 0 0 auto; }
.timeline { display: grid; gap: 14px; }
.step { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: start; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.step-num { width: 54px; height: 54px; border-radius: 18px; background: linear-gradient(135deg, rgba(111,138,120,0.14), rgba(127,157,181,0.14)); color: var(--text); display: grid; place-items: center; font-weight: 800; font-size: 1.05rem; }

.pricing { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.price-card { position: relative; overflow: hidden; }
.price-card.featured { border-color: rgba(111,138,120,0.35); box-shadow: 0 18px 34px rgba(111,138,120,0.13); }
.badge { position: absolute; top: 16px; right: 16px; background: rgba(111,138,120,0.12); color: var(--sage-dark); border: 1px solid rgba(111,138,120,0.15); border-radius: 999px; padding: 6px 10px; font-size: 0.8rem; font-weight: 700; }
.price { font-size: 2rem; font-weight: 800; margin: 8px 0 12px; letter-spacing: -0.04em; }
.price span { font-size: 0.95rem; font-weight: 600; color: var(--muted); }
.list { display: grid; gap: 10px; margin: 16px 0 18px; padding: 0; list-style: none; }
.list li { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); }
.list li::before { content: "✓"; color: var(--sage-dark); font-weight: 800; margin-top: 1px; }

.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
.quote { position: relative; padding-top: 16px; }
.quote::before { content: "“"; position: absolute; top: -6px; left: 0; font-size: 3rem; color: rgba(111,138,120,0.18); line-height: 1; }
.quote footer { margin-top: 14px; font-weight: 700; color: var(--text); }
.quote small { color: var(--muted); font-weight: 500; }

form { display: grid; gap: 14px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 8px; font-weight: 600; color: var(--text); font-size: 0.95rem; }
input, textarea, select {
  width: 100%; padding: 14px 15px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; color: var(--text); outline: none; transition: var(--transition);
}
input:focus, textarea:focus, select:focus { border-color: rgba(111,138,120,0.55); box-shadow: 0 0 0 4px rgba(111,138,120,0.10); }
textarea { min-height: 140px; resize: vertical; }

.footer { padding: 28px 0 40px; color: var(--muted); font-size: 0.95rem; text-align: center; }
.notice { background: rgba(127,157,181,0.10); border: 1px solid rgba(127,157,181,0.18); padding: 14px 16px; border-radius: 16px; color: #415264; }
.small-note { font-size: 0.92rem; color: var(--muted); margin-top: 10px; }
.link-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 999px; background: rgba(143,168,155,0.12); color: var(--text); border: 1px solid rgba(143,168,155,0.18); font-weight: 600; margin-top: 12px; }

/* MEDIA QUERIES */
@media (max-width: 1120px) {
  .topbar-nav {
    display: none;
    width: 100%;
    background: var(--surface);
    padding: 16px 0;
    border-top: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .topbar-nav.open { display: block; }
  .nav { flex-direction: column; align-items: stretch; }
  .nav-link { width: 100%; justify-content: flex-start; border-radius: 12px; }
  .mobile-menu-btn { display: inline-flex; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; }
  .grid-3, .pricing, .testimonials { grid-template-columns: 1fr 1fr; }
  .image-frame { min-height: 420px; }
  .stats { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .main-row-wrap { flex-wrap: wrap; }
  .cta-row { width: 100%; justify-content: space-between; margin-top: 4px; }
  .mobile-menu-btn { order: 3; }
  .grid-3, .grid-2, .pricing, .testimonials { grid-template-columns: 1fr; }
  .section { padding: 20px; }
  .overlay-grid { grid-template-columns: 1fr; }
  .image-frame { min-height: auto; padding-top: 0; }
  .image-overlay { margin: 16px; }
  .pill { width: 100%; justify-content: center; text-align: center; }
  .hero-card { margin-top: 0; align-self: stretch; }
}
/* --- MOBILE RESPONSIVENESS TWEAKS (BELOW 912px) --- */
@media (max-width: 912px) {
  
  .main-row-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;           /* PREVENTS elements from ever breaking to a new line */
    gap: 8px;                    /* Tighter gap to make room */
    padding: 8px 0;
  }
  .brand {
    flex-shrink: 0;              /* Stops the logo from compressing or warping */
  }
  .brand-logo {
    height: 48px;                /* Scales logo from 60px to 48px below 912px to save space */
  }
  
  .cta-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-shrink: 1;
  }

  /* Force the circular menu toggle to sit to the LEFT of the action buttons */
  .mobile-menu-btn {
    display: inline-flex;
    order: -1; /* Pushes the menu icon to the far left of the cta-row container */
    width: 38px;                 /* Slightly more compact toggle tile */
    height: 38px;
  }

  .btn {
    padding: 6px 12px;
    font-size: 0.88rem;
  }
}