/* ============================================
   ERVESTIUM — css/style.css
   Light tones: cream + sage green
   Fonts: Outfit (body), Libre Baskerville (headings)
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&display=swap');

:root {
  --bg: #FAFAF8;
  --bg2: #F2F0EC;
  --bg3: #E8E6E0;
  --white: #FFFFFF;
  --tx: #1A1A18;
  --tx2: #4A4A46;
  --tx3: #8A8A84;
  --ac: #2D6A4F;
  --ac2: #40916C;
  --ac3: #B7E4C7;
  --ac4: #D8F3DC;
  --gd: linear-gradient(135deg, #2D6A4F, #40916C);
  --err: #D94F4F;
  --f1: 'Outfit', sans-serif;
  --f2: 'Libre Baskerville', Georgia, serif;
  --r: 16px;
  --r2: 24px;
  --sh: 0 4px 24px rgba(0,0,0,.06);
  --sh2: 0 8px 40px rgba(0,0,0,.08);
  --max: 1180px;
  --trans: .25s ease;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-family: var(--f1); background: var(--bg); color: var(--tx); font-size: 15px; line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--ac); text-decoration: none; transition: color var(--trans); }
a:hover { color: var(--ac2); }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ─── UTILITY ─── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 2rem; }
.section { padding: 5rem 2rem; }
.section-alt { background: var(--white); }
.tag { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--ac); font-weight: 700; margin-bottom: .5rem; }
.section-h { font-family: var(--f2); font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 700; line-height: 1.2; margin-bottom: .8rem; letter-spacing: -.02em; }
.section-p { font-size: .92rem; color: var(--tx2); line-height: 1.85; max-width: 640px; }
.section-p.center { margin: 0 auto; text-align: center; }

/* ─── NAV ─── */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: rgba(250,250,248,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color var(--trans), box-shadow var(--trans); }
.nav.scrolled { border-bottom-color: rgba(0,0,0,.06); box-shadow: 0 2px 20px rgba(0,0,0,.04); }
.nav-w { max-width: var(--max); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; padding: 0 2rem; height: 64px; }
.nav-logo { font-family: var(--f2); font-size: 1.25rem; font-weight: 700; color: var(--tx); letter-spacing: -.02em; }
.nav-logo em { font-style: normal; color: var(--ac); }
.nav-links { display: flex; gap: 1.6rem; align-items: center; }
.nav-links a { font-size: .8rem; color: var(--tx2); font-weight: 500; transition: color var(--trans); }
.nav-links a:hover, .nav-links a.active { color: var(--ac); }
.nav-cta { padding: .45rem 1.1rem; background: var(--gd); color: #fff !important; border-radius: 8px; font-weight: 600; font-size: .78rem; }
.nav-cta:hover { opacity: .9; }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--tx); margin: 5px 0; transition: var(--trans); border-radius: 2px; }

/* ─── HERO ─── */
.hero { min-height: 100vh; display: flex; align-items: center; padding: 100px 2rem 60px; }
.hero-w { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 1fr 400px; gap: 4rem; align-items: center; width: 100%; }
.hero h1 { font-family: var(--f2); font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; line-height: 1.15; letter-spacing: -.03em; margin-bottom: 1.2rem; }
.hero h1 span { color: var(--ac); }
.hero p { font-size: .95rem; color: var(--tx2); line-height: 1.85; margin-bottom: 2rem; max-width: 520px; }
.hero-stats { display: flex; gap: 2rem; margin-bottom: 2rem; }
.hero-stat { text-align: center; }
.hero-stat-n { font-size: 1.5rem; font-weight: 800; color: var(--ac); }
.hero-stat-l { font-size: .68rem; color: var(--tx3); text-transform: uppercase; letter-spacing: .08em; margin-top: .1rem; }
.hero-badges { display: flex; gap: .7rem; flex-wrap: wrap; }
.hero-badge { display: flex; align-items: center; gap: .35rem; padding: .35rem .7rem; background: var(--bg2); border-radius: 8px; font-size: .7rem; color: var(--tx2); }

/* ─── FORM CARD ─── */
.form-card { background: var(--white); border-radius: var(--r2); padding: 2rem; box-shadow: var(--sh2); border: 1px solid rgba(0,0,0,.04); }
.form-title { font-family: var(--f2); font-size: 1.15rem; font-weight: 700; text-align: center; margin-bottom: .2rem; }
.form-sub { font-size: .76rem; color: var(--tx3); text-align: center; margin-bottom: 1.4rem; }
.fg { margin-bottom: .7rem; }
.fg label { display: block; font-size: .7rem; font-weight: 600; color: var(--tx2); margin-bottom: .2rem; text-transform: uppercase; letter-spacing: .05em; }
.fg input { width: 100%; padding: .65rem .85rem; border: 1.5px solid var(--bg3); border-radius: 10px; font-family: var(--f1); font-size: .84rem; background: var(--bg); transition: border-color var(--trans); outline: none; }
.fg input:focus { border-color: var(--ac); }
.fg input.error { border-color: var(--err); background: #fef2f2; }
.iti { width: 100%; }
.iti input { width: 100%; }
.form-btn { width: 100%; padding: .75rem; background: var(--gd); color: #fff; border: none; border-radius: 12px; font-family: var(--f1); font-weight: 700; font-size: .88rem; cursor: pointer; transition: opacity var(--trans); margin-top: .2rem; }
.form-btn:hover { opacity: .88; }
.form-btn.loading { opacity: .5; pointer-events: none; }
.form-agree { font-size: .6rem; color: var(--tx3); text-align: center; margin-top: .7rem; line-height: 1.5; }
.form-agree a { color: var(--ac); }
.form-trust { display: flex; justify-content: center; gap: 1rem; margin-top: .8rem; font-size: .63rem; color: var(--tx3); }

/* ─── GRID CARDS ─── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin-top: 2.5rem; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; align-items: start; }
.card { background: var(--white); border-radius: var(--r); padding: 2rem; border: 1px solid var(--bg3); transition: border-color var(--trans), transform var(--trans); }
.card:hover { border-color: var(--ac3); transform: translateY(-3px); }
.card-icon { width: 48px; height: 48px; background: var(--ac4); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem; }
.card h3 { font-size: .95rem; font-weight: 700; margin-bottom: .4rem; }
.card p { font-size: .8rem; color: var(--tx2); line-height: 1.75; }

/* ─── ABOUT VISUAL ─── */
.about-visual { background: var(--bg); border-radius: var(--r2); padding: 2.5rem; position: relative; overflow: hidden; }
.about-visual::before { content: ''; position: absolute; top: -30px; right: -30px; width: 140px; height: 140px; background: var(--ac3); border-radius: 50%; opacity: .35; }
.about-metric { display: flex; align-items: baseline; gap: .5rem; margin-bottom: 1.5rem; }
.about-metric-n { font-size: 2.5rem; font-weight: 800; color: var(--ac); }
.about-metric-l { font-size: .82rem; color: var(--tx2); }

/* ─── TEAM ─── */
.team-card { text-align: center; background: var(--white); border-radius: var(--r); padding: 2rem; border: 1px solid var(--bg3); }
.team-avatar { width: 80px; height: 80px; border-radius: 50%; background: var(--ac4); margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 800; color: var(--ac); font-family: var(--f2); }
.team-card h3 { font-size: .92rem; font-weight: 700; margin-bottom: .15rem; }
.team-card .role { font-size: .72rem; color: var(--ac2); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .6rem; }
.team-card p { font-size: .78rem; color: var(--tx2); line-height: 1.7; }

/* ─── TABLE ─── */
.styled-table { width: 100%; border-collapse: collapse; margin-top: 2rem; }
.styled-table th { text-align: left; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--tx3); padding: .8rem 1rem; border-bottom: 2px solid var(--bg3); }
.styled-table td { padding: .85rem 1rem; font-size: .84rem; border-bottom: 1px solid var(--bg2); }
.styled-table tr:hover td { background: var(--bg); }

/* ─── STEPS ─── */
.step { text-align: center; }
.step-num { width: 52px; height: 52px; background: var(--gd); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 1rem; }
.step h3 { font-size: .92rem; font-weight: 700; margin-bottom: .35rem; }
.step p { font-size: .78rem; color: var(--tx2); line-height: 1.75; }

/* ─── REVIEWS ─── */
.review { background: var(--bg); border-radius: var(--r); padding: 1.8rem; }
.review-stars { color: #f5a623; font-size: .9rem; margin-bottom: .5rem; }
.review-text { font-size: .8rem; color: var(--tx2); line-height: 1.8; margin-bottom: .8rem; font-style: italic; }
.review-author { font-size: .78rem; font-weight: 700; }
.review-date { font-size: .64rem; color: var(--tx3); }

/* ─── FAQ ─── */
.faq-list { max-width: 720px; margin: 2rem auto 0; }
.faq-item { border-bottom: 1px solid var(--bg3); padding: 1.2rem 0; }
.faq-q { font-weight: 700; font-size: .88rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; user-select: none; }
.faq-q::after { content: '+'; font-size: 1.2rem; color: var(--ac); transition: transform .3s; flex-shrink: 0; margin-left: 1rem; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease, padding .3s; font-size: .82rem; color: var(--tx2); line-height: 1.8; }
.faq-item.open .faq-a { max-height: 400px; padding-top: .8rem; }

/* ─── CTA ─── */
.cta-section { background: var(--gd); padding: 4rem 2rem; text-align: center; color: #fff; }
.cta-section h2 { font-family: var(--f2); font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: .8rem; }
.cta-section p { opacity: .85; margin-bottom: 1.8rem; font-size: .9rem; }
.cta-btn { display: inline-block; padding: .7rem 2.2rem; background: #fff; color: var(--ac); border-radius: 12px; font-weight: 700; font-size: .88rem; transition: transform var(--trans); }
.cta-btn:hover { transform: translateY(-2px); color: var(--ac); }

/* ─── CONTACT FORM ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 2.5rem; }
.contact-info-item { display: flex; gap: .8rem; margin-bottom: 1.5rem; }
.contact-info-item .icon { width: 42px; height: 42px; background: var(--ac4); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.contact-info-item h3 { font-size: .85rem; font-weight: 700; margin-bottom: .15rem; }
.contact-info-item p { font-size: .8rem; color: var(--tx2); }

/* ─── LEGAL PAGES ─── */
.legal-wrap { max-width: 760px; margin: 0 auto; padding: 6rem 2rem 4rem; }
.legal-wrap .back { display: inline-block; margin-bottom: 2rem; color: var(--ac); font-weight: 600; font-size: .82rem; }
.legal-wrap h1 { font-family: var(--f2); font-size: 1.8rem; margin-bottom: .5rem; }
.legal-wrap h2 { font-size: 1.05rem; margin: 2rem 0 .5rem; color: var(--ac); }
.legal-wrap p { color: var(--tx2); margin-bottom: 1rem; font-size: .86rem; }
.legal-wrap .date { font-size: .74rem; color: var(--tx3); margin-bottom: 2rem; }

/* ─── FOOTER ─── */
.ft { background: var(--tx); color: rgba(255,255,255,.55); padding: 3rem 2rem 2rem; }
.ft-w { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.ft-brand { font-family: var(--f2); font-size: 1.1rem; color: #fff; margin-bottom: .4rem; }
.ft-desc { font-size: .74rem; line-height: 1.7; max-width: 260px; }
.ft h4 { color: rgba(255,255,255,.8); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .6rem; }
.ft-links { display: flex; flex-direction: column; gap: .35rem; }
.ft-links a { color: rgba(255,255,255,.45); font-size: .76rem; transition: color var(--trans); }
.ft-links a:hover { color: #fff; }
.ft-copy { text-align: center; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.08); font-size: .66rem; }
.ft-disc { max-width: var(--max); margin: 1.2rem auto 0; font-size: .58rem; line-height: 1.6; opacity: .35; text-align: center; }

/* ─── SCROLL REVEAL ─── */
.sr { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.sr.visible { opacity: 1; transform: translateY(0); }

/* ─── MOBILE ─── */
@media (max-width: 960px) {
  .hero-w { grid-template-columns: 1fr; gap: 2rem; }
  .form-card { max-width: 480px; margin: 0 auto; }
  .grid-3, .grid-2, .contact-grid { grid-template-columns: 1fr; }
  .ft-w { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; position: fixed; top: 64px; left: 0; right: 0; background: var(--bg); flex-direction: column; padding: 1.5rem 2rem; gap: 1rem; border-bottom: 1px solid var(--bg3); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .nav-cta { text-align: center; }
}
@media (max-width: 600px) {
  .hero-stats { gap: 1rem; }
  .ft-w { grid-template-columns: 1fr; }
  .section { padding: 3.5rem 1.5rem; }
}
