/* ─────────────────────────────────────────────
   main.css — Fin-Pro shared styles
───────────────────────────────────────────── */

/* SELF-HOSTED FONTS */
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-normal.woff2') format('woff2');
  font-weight: 100 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Cormorant Garamond';
  src: url('/fonts/cormorant-italic.woff2') format('woff2');
  font-weight: 100 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans-ext.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
  font-display: swap;
}
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
  font-display: swap;
}

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

/* TOKENS */
:root {
  --white: #FAFAF8;
  --off-white: #F2F2EE;
  --green-deep: #1A3D2B;
  --green-mid: #2D6A4F;
  --green-light: #52B788;
  --green-pale: #D8F3DC;
  --green-accent: #40916C;
  --text-dark: #111410;
  --text-mid: #3A3D38;
  --text-light: #5E6359;
  --border: #E0E4DC;
}

/* BASE */
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  font-weight: 400;
  background: var(--white);
  color: var(--text-dark);
  overflow-x: hidden;
}

/* NAV */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 60px;
  background: rgba(250,250,248,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--green-deep);
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo span { color: var(--green-light); }

.nav-links {
  display: flex;
  flex-direction: row;
  gap: 36px;
  list-style: none;
}
.nav-links li { display: flex; align-items: center; }
.nav-links li::before { display: none; }
.nav-links a {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-mid);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.active { color: var(--green-mid); }

.nav-cta {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-deep);
  padding: 10px 24px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s;
  flex-shrink: 0;
}
.nav-cta:hover { background: var(--green-mid); }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  z-index: 101;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--green-deep);
  border-radius: 1px;
  transition: transform 0.3s, opacity 0.3s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav panel */
.nav-panel {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 99;
  padding: 100px 40px 40px;
  flex-direction: column;
}
.nav-panel.open { display: flex; }
.nav-panel ul { list-style: none; display: flex; flex-direction: column; gap: 0; }
.nav-panel ul li { border-bottom: 1px solid var(--border); }
.nav-panel ul li::before { display: none; }
.nav-panel ul a {
  display: block;
  padding: 18px 0;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dark);
  text-decoration: none;
  transition: color 0.2s;
}
.nav-panel ul a:hover { color: var(--green-mid); }
.nav-panel .nav-cta {
  display: block;
  margin-top: 32px;
  text-align: center;
  padding: 16px;
}

/* FOOTER */
footer {
  background: #0E2318;
  padding: 40px 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 400;
  color: rgba(255,255,255,0.8);
  letter-spacing: 0.04em;
}
.footer-logo span { color: var(--green-light); }
.footer-copy {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.04em;
}
.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}
.footer-links li::before { display: none; }
.footer-links a {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--green-light); }

/* BUTTONS */
.btn {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--green-mid);
  padding: 16px 36px;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.25s;
  white-space: nowrap;
}
.btn:hover { background: var(--green-light); }

/* CALLOUT */
.callout {
  background: var(--green-pale);
  border-left: 3px solid var(--green-accent);
  padding: 24px 28px;
  margin: 40px 0;
  border-radius: 0 2px 2px 0;
}
.callout p {
  font-size: 15px;
  color: var(--green-deep);
  font-weight: 400;
  margin: 0;
  line-height: 1.7;
}

/* CTA SECTION */
.cta-section { background: var(--green-deep); padding: 80px 60px; }
.cta-inner {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.cta-text h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  font-weight: 300;
  color: var(--white);
  margin: 0 0 8px;
}
.cta-text h2 em { font-style: italic; color: var(--green-light); }
.cta-text p { font-size: 14px; font-weight: 400; color: rgba(255,255,255,0.6); margin: 0; }

/* FAQ (shared base — works with <details>/<summary>) */
details.faq-item { cursor: default; }
details.faq-item summary { list-style: none; cursor: pointer; }
details.faq-item summary::-webkit-details-marker { display: none; }
.faq-question {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 400;
  color: var(--green-deep);
  line-height: 1.3;
  padding-right: 28px;
  position: relative;
}
.faq-question::after {
  content: '+';
  position: absolute;
  right: 0; top: 0;
  font-weight: 300;
  color: var(--green-light);
  transition: transform 0.3s;
}
details[open] .faq-question::after { transform: rotate(45deg); }
.faq-answer {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.8;
  color: var(--text-mid);
  padding-top: 14px;
}

/* EYEBROW (shared) */
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: '';
  width: 28px; height: 1px;
  background: var(--green-light);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* STICKY CTA PILL */
.sticky-cta {
  position: fixed;
  bottom: 28px; right: 28px;
  background: var(--green-deep);
  color: var(--white);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 12px 22px;
  border-radius: 100px;
  text-decoration: none;
  box-shadow: 0 4px 24px rgba(26,61,43,0.3);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, background 0.2s;
  z-index: 90;
  white-space: nowrap;
}
.sticky-cta.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.sticky-cta:hover { background: var(--green-mid); }

/* RESPONSIVE (shared) */
@media (max-width: 1024px) {
  nav { padding: 20px 32px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  footer { flex-direction: column; gap: 20px; padding: 32px; text-align: center; }
  .footer-links { justify-content: center; }
  .cta-section { padding: 60px 24px; }
  .cta-inner { flex-direction: column; }
}
@media (max-width: 768px) {
  .sticky-cta { bottom: 20px; right: 20px; padding: 10px 18px; }
}
