/* ================================= */
/* Brand Palette (CSS Variables)     */
/* ================================= */
:root {
  --bg: #f7f5f0;
  --paper: #ffffff;
  --panel: #faf7f0;
  --text: #1a1a1a;
  --text2: #faf7f0;
  --muted: #64696e;
  --brand: #4e7a6e;
  --brand-light: #e8f0ed;
  --brand-600: #3d6158;
  --action: #d96a3f;
  --action-light: #fdf0eb;
  --radius: 16px;
  --radius-sm: 12px;
  --maxw: 1140px;
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,0.12);
  --hair: #e5e2da;
  --ink: #000;
  --header-h: 68px;
  --transition: 0.3s cubic-bezier(.4,0,.2,1);
}

/* ================================= */
/* Base / Reset                      */
/* ================================= */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', 'Inter', ui-sans-serif, system-ui, -apple-system,
    'Segoe UI', Roboto, Arial, sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-size: 16px;
}

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

a {
  color: var(--brand);
  text-decoration-skip-ink: auto;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.center { text-align: center; }
.narrow { max-width: 760px; margin: 0 auto; }
.accent { color: var(--action); font-weight: 600; }
.muted { color: var(--muted); }

/* ================================= */
/* Typography                        */
/* ================================= */
h1, h2, h3, h4, h5 {
  font-family: 'DM Serif Display', 'Georgia', serif;
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-top: 0; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.35rem; }
h5 { font-size: 1.35rem; }

.lead {
  font-size: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--brand);
  margin-bottom: 1rem;
  display: inline-block;
  padding: 6px 18px;
  background: var(--brand-light);
  border-radius: 100px;
}

/* ================================= */
/* Skip link for accessibility       */
/* ================================= */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--paper);
  color: var(--text);
  padding: 0.7rem 1rem;
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  font-weight: 600;
  z-index: 10000;
}
.skip-link:focus {
  left: 16px;
  top: 16px;
}

/* ================================= */
/* Header / Navigation               */
/* ================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(250, 247, 240, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: var(--header-h);
  transition: background var(--transition), box-shadow var(--transition);
}

.site-header.scrolled {
  background: rgba(250, 247, 240, 0.96);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
}

.nav {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand img {
  height: 42px;
  display: block;
  transition: transform var(--transition);
}
.brand:hover img {
  transform: scale(1.04);
}

/* Desktop menu */
.menu {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  font-size: 0.92rem;
  padding: 8px 14px;
  border-radius: 8px;
  transition: background var(--transition), color var(--transition);
  position: relative;
}
.menu a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--action);
  border-radius: 2px;
  transition: transform var(--transition);
}
.menu a:hover::after,
.menu a:focus::after,
.menu a.active::after {
  transform: translateX(-50%) scaleX(1);
}
.menu a:hover,
.menu a:focus {
  background: var(--action-light);
  color: var(--action);
}
.menu a.active {
  color: var(--action);
  font-weight: 700;
}

/* ================================= */
/* Hamburger Icon                    */
/* ================================= */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  margin-left: auto;
  z-index: 1001;
  border-radius: 8px;
  transition: background var(--transition);
}
.menu-toggle:hover {
  background: rgba(0,0,0,0.04);
}

.menu-toggle-bars,
.menu-toggle-bars::before,
.menu-toggle-bars::after {
  --bar-w: 22px;
  --bar-h: 2px;
  --bar-gap: 6px;
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: var(--bar-w);
  height: var(--bar-h);
  background: var(--text);
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.3s ease, opacity 0.3s ease;
}
.menu-toggle-bars {
  top: 50%;
  transform: translate(-50%, -50%);
}
.menu-toggle-bars::before {
  top: calc(-1 * (var(--bar-gap) + var(--bar-h)));
}
.menu-toggle-bars::after {
  top: calc(var(--bar-gap) + var(--bar-h));
}

/* Open state */
.menu-toggle.is-open .menu-toggle-bars {
  background: transparent;
}
.menu-toggle.is-open .menu-toggle-bars::before {
  top: 0;
  transform: translateX(-50%) rotate(45deg);
  background: var(--action);
}
.menu-toggle.is-open .menu-toggle-bars::after {
  top: 0;
  transform: translateX(-50%) rotate(-45deg);
  background: var(--action);
}

/* ================================= */
/* Mobile Navigation (<=1024px)      */
/* ================================= */
@media (max-width: 1024px) {
  .menu-toggle { display: block; }

  .menu {
    flex-direction: column;
    padding: 1.5rem 1.25rem;
    gap: 0.25rem;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    background: rgba(250, 247, 240, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
    z-index: 999;
    transition: max-height 0.4s ease, opacity 0.3s ease, transform 0.3s ease;
    border-bottom: 1px solid var(--hair);
  }
  .menu.show {
    max-height: calc(100vh - var(--header-h));
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .menu li a {
    display: block;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 1rem;
  }
  .menu li a::after { display: none; }
  .menu li a:hover,
  .menu li a:focus,
  .menu li a.active {
    background: var(--action-light);
    color: var(--action);
  }
  body.nav-open { overflow: hidden; }
  body.nav-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 998;
    backdrop-filter: blur(2px);
  }
}

/* ================================= */
/* Buttons                           */
/* ================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--brand);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  box-shadow: 0 2px 8px rgba(78,122,110,0.18);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  z-index: 2;
  margin-bottom: max(0.5rem, env(safe-area-inset-bottom));
}
.btn:hover,
.btn:focus-visible {
  background: var(--brand-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78,122,110,0.25);
  text-decoration: none;
  color: #fff;
}
.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(78,122,110,0.18);
}
a.btn,
a.btn:hover,
a.btn:focus {
  text-decoration: none;
}

/* Ghost button */
.btn.ghost {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
  box-shadow: none;
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
  background: var(--brand);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(78,122,110,0.25);
}

/* Full-width */
.btn.full {
  width: 100%;
  padding: 14px 18px;
}

/* CTA group */
.cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ================================= */
/* Hero Section                      */
/* ================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background:
    radial-gradient(ellipse 1200px 600px at 50% 0%, rgba(78,122,110,0.08), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--bg) 100%);
  overflow: hidden;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 0.5rem;
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--muted);
  margin: 0 auto 2rem;
  max-width: 680px;
  line-height: 1.75;
}

.hero .wrap {
  position: relative;
  z-index: 1;
  padding: 160px 20px 80px;
  max-width: 900px;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 110%;
  object-fit: cover;
  filter: grayscale(20%) contrast(110%) brightness(0.82);
  opacity: 0.22;
  z-index: 0;
}

/* ================================= */
/* Scroll Hint                       */
/* ================================= */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translate(-50%, 0); }
  40% { transform: translate(-50%, -10px); }
  60% { transform: translate(-50%, -5px); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
.scroll-hint {
  position: relative;
  bottom: -120px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  opacity: 0;
  animation: fadeIn 1s ease forwards 1.5s, bounce 2.5s infinite 2.5s;
  letter-spacing: 1px;
}

/* ================================= */
/* Scroll Reveal Animation           */
/* ================================= */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-stagger.show > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.show > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.show > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.show > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.show > * {
  opacity: 1;
  transform: translateY(0);
}

/* ================================= */
/* Sections                          */
/* ================================= */
section {
  padding: 80px 0;
}

.section-alt {
  background: var(--paper);
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
}

/* Section headings */
section > .wrap > h2 {
  text-align: center;
  margin-bottom: 0.75rem;
}
section > .wrap > h2 + .muted {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 2.5rem;
  font-size: 1.05rem;
}

/* ================================= */
/* Panels & Layout                   */
/* ================================= */
.grid-2 {
  display: grid;
  gap: 28px;
}
@media (min-width: 900px) {
  .grid-2 {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: start;
  }
}

.panel {
  background: var(--paper);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
}
.panel:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.panel-plain {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  overflow: hidden;
}

.list {
  margin: 0.75rem 0 0 1.1rem;
}
.list li {
  margin: 0.5rem 0;
  line-height: 1.6;
}
.list.cols-2 {
  columns: 2;
  column-gap: 2rem;
}
@media (max-width: 600px) {
  .list.cols-2 { columns: 1; }
}

/* ================================= */
/* How It Works Steps                */
/* ================================= */
.steps {
  margin-top: 2rem;
  display: grid;
  gap: 20px;
  list-style: none;
  padding: 0;
}
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.step {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px 22px;
  box-shadow: var(--shadow);
  position: relative;
  transition: all var(--transition);
}
.step:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
  border-color: var(--brand-light);
}
.step h3 {
  color: var(--brand);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.step p {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0;
  line-height: 1.6;
}

/* Feature stack */
.feature-stack {
  margin-top: 3rem;
  padding: 32px;
  background: var(--brand-light);
  border-radius: var(--radius);
  border: 1px solid rgba(78,122,110,0.12);
}
.feature-stack h3 {
  color: var(--brand-600);
  margin-bottom: 1rem;
}

/* ================================= */
/* Pricing Section                   */
/* ================================= */
.pricing {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 2.5rem;
}
@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pricing { grid-template-columns: 1fr; }
}

.price-card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
  position: relative;
}
.price-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.price-card h3 {
  margin-bottom: 0.5rem;
  color: var(--brand);
  font-size: 1.4rem;
}

.price-card p.muted {
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.price-card ul.list {
  list-style: none;
  margin: 0 0 1.75rem 0;
  padding: 0;
}
.price-card ul.list li {
  margin: 0.5rem 0;
  line-height: 1.5;
  padding-left: 24px;
  position: relative;
  font-size: 0.93rem;
}
.price-card ul.list li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.85rem;
}

.cta-card {
  margin-top: auto;
  text-align: center;
}

.price-card .btn {
  margin-top: 0.5rem;
  width: 100%;
}

/* Featured pricing card */
.price-card.featured {
  border-color: var(--brand);
  border-width: 2px;
  box-shadow: var(--shadow-lg);
  transform: scale(1.02);
}
.price-card.featured:hover {
  transform: scale(1.02) translateY(-4px);
}
.price-card.featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--action);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* ================================= */
/* Contact / Forms                   */
/* ================================= */
.contact-form {
  max-width: 720px;
  text-align: center;
}
.contact-form h2,
.contact-form h5 {
  margin-bottom: 0.5rem;
}
.contact-form form {
  display: grid;
  gap: 0.9rem;
  margin: 1.5rem auto 0;
  max-width: 540px;
  text-align: left;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
  font: inherit;
  font-size: 0.95rem;
  padding: 14px 16px;
  background: var(--paper);
  color: var(--text);
  border: 1px solid var(--hair);
  border-radius: var(--radius-sm);
  width: 100%;
  max-width: 100%;
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(78,122,110,0.1);
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #aaa;
}
.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}
.contact-form button {
  border: none;
  cursor: pointer;
  width: 100%;
}

.alt-contact {
  margin-top: 0.75rem;
  font-size: 0.92rem;
}
.alt-contact a {
  color: var(--action);
  text-decoration: none;
  font-weight: 600;
  transition: color var(--transition);
}
.alt-contact a:hover {
  color: var(--brand-600);
}

/* ================================= */
/* Footer                            */
/* ================================= */
.site-footer {
  background: #111;
  text-align: center;
  padding: 2.5rem 1rem;
  color: rgba(255,255,255,0.5);
  font-size: 0.9rem;
}
.site-footer p { margin: 0.3rem 0; }
.site-footer .link {
  color: var(--brand);
  text-decoration: none;
  transition: color var(--transition);
}
.site-footer .link:hover {
  color: #7fb3a4;
  text-decoration: underline;
}

/* ================================= */
/* Partner Page                      */
/* ================================= */
.hero-split {
  padding: 100px 0 60px;
  background: var(--bg);
}
.hero-split .grid-2 {
  align-items: center;
}
.hero-split h1 {
  margin-bottom: 0.75rem;
}
.hero-visual img {
  max-width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.hero-text .btn {
  margin-top: 1.5rem;
}

#partners-logos {
  background: var(--paper);
  padding: 2.5rem 1rem;
  border-bottom: 1px solid var(--hair);
}
#partners-logos .logos {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  margin-top: 1rem;
}

#partners-testimonials {
  padding: 80px 0;
}
#partners-testimonials .panel {
  background: var(--paper);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
  padding: 2rem;
}

/* ================================= */
/* FAQ Page                          */
/* ================================= */
#faq-list {
  padding: 40px 0 80px;
}

.faq-item {
  border-bottom: 1px solid var(--hair);
  margin-bottom: 0;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  font: inherit;
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text);
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  transition: color var(--transition);
  position: relative;
  line-height: 1.5;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--muted);
  transition: transform var(--transition), color var(--transition);
}
.faq-question.open::after {
  content: '\2212';
  color: var(--action);
  transform: translateY(-50%);
}
.faq-question:hover { color: var(--action); }
.faq-question.open { color: var(--action); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-answer p {
  margin: 0 0 1.25rem;
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* FAQ CTA */
#faq-list + .section-alt {
  padding: 80px 0 100px;
  text-align: center;
}
#faq-list + .section-alt h1 {
  margin-bottom: 0.75rem;
}
#faq-list + .section-alt .btn {
  margin-top: 1.25rem;
}

/* ================================= */
/* Utilities                         */
/* ================================= */
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-light);
  color: var(--brand-600);
}

/* ================================= */
/* Responsive Refinements            */
/* ================================= */
@media (max-width: 768px) {
  section { padding: 60px 0; }
  .hero .wrap { padding: 120px 16px 60px; }
  .grid-2 { gap: 20px; }
  .pricing { gap: 16px; }
  .price-card.featured { transform: none; }
  .price-card.featured:hover { transform: translateY(-4px); }
  .panel { padding: 24px 20px; }
  .feature-stack { padding: 24px 20px; }
  .contact-form form { gap: 0.75rem; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 16px; }
  h1 { font-size: 1.9rem; }
  .hero .wrap { padding: 100px 16px 50px; }
  .cta { flex-direction: column; align-items: center; }
  .cta .btn { width: 100%; max-width: 300px; }
}

/* Print */
@media print {
  .site-header, .site-footer, .scroll-hint { display: none; }
  .hero { min-height: auto; }
  .hero-video { display: none; }
  body { background: #fff; }
}
