/* ============================================================
   ZinovyMed — Shared Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,500&family=Inter:wght@300;400;500;600&display=swap');

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

/* Prevent horizontal scroll on all devices */
html, body { overflow-x: hidden; max-width: 100%; }

:root {
  --navy:   #0e1c36;
  --navy2:  #162240;
  --gold:   #b89660;
  --gold-lt:#d4b07a;
  --cream:  #faf8f4;
  --white:  #ffffff;
  --gray:   #6b7280;
  --light:  #f0ede7;
  --border: #e2ddd5;
  --dark-footer: #080f1e;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: var(--navy); background: var(--white); line-height: 1.6; font-size: 16px; }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-family: 'Cormorant Garamond', serif; font-weight: 400; line-height: 1.12; }
h1 { font-size: clamp(40px,6vw,72px); font-weight: 300; }
h2 { font-size: clamp(32px,4vw,52px); }
h3 { font-size: clamp(22px,2.5vw,32px); }
h4 { font-size: 20px; font-weight: 500; }
p  { font-weight: 300; line-height: 1.75; }
strong,b { font-weight: 600; }
a  { color: var(--navy); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold); }

/* ── NAV ─────────────────────────────────────────────── */
.nav {
  position: fixed; top:0; left:0; right:0; z-index:100;
  background: rgba(14,28,54,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,150,96,0.2);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
}
.nav-logo { font-family:'Cormorant Garamond',serif; font-size:22px; font-weight:500; color:var(--white); letter-spacing:.08em; text-decoration:none; }
.nav-logo span { color:var(--gold); }
.nav-links { display:flex; align-items:center; gap:32px; list-style:none; }
.nav-links a { color:rgba(255,255,255,0.72); font-size:12px; font-weight:400; letter-spacing:.08em; text-transform:uppercase; transition:color .2s; }
.nav-links a:hover, .nav-links a.active { color:var(--gold-lt); }
.nav-dropdown { position:relative; }
.nav-dropdown-menu { display:none; position:absolute; top:100%; left:0; background:var(--navy); border:1px solid rgba(184,150,96,0.2); min-width:200px; padding:8px 0; }
.nav-dropdown:hover .nav-dropdown-menu { display:block; }
.nav-dropdown-menu a { display:block; padding:10px 20px; font-size:12px; color:rgba(255,255,255,0.65); border-bottom:none; }
.nav-dropdown-menu a:hover { color:var(--gold); background:rgba(184,150,96,0.08); }
.nav-cta { border:1px solid var(--gold) !important; color:var(--gold) !important; padding:8px 20px; border-radius:2px; }
.nav-cta:hover { background:var(--gold) !important; color:var(--navy) !important; }

/* Mobile nav */
.nav-hamburger { display:none; background:none; border:none; cursor:pointer; padding:4px; }
.nav-hamburger span { display:block; width:22px; height:2px; background:var(--white); margin:5px 0; transition:.3s; }
.nav-mobile-menu { display:none; position:fixed; top:72px; left:0; right:0; bottom:0; background:var(--navy); z-index:99; overflow-y:auto; padding:32px 24px; }
.nav-mobile-menu.open { display:block; }
.nav-mobile-menu a { display:block; color:rgba(255,255,255,0.8); font-size:18px; padding:14px 0; border-bottom:1px solid rgba(255,255,255,0.08); font-family:'Cormorant Garamond',serif; }
.nav-mobile-menu a:hover { color:var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn { display:inline-block; font-size:12px; font-weight:500; letter-spacing:.12em; text-transform:uppercase; padding:14px 34px; border-radius:2px; cursor:pointer; transition:background .2s, color .2s, transform .15s; border:none; text-decoration:none; }
.btn-gold { background:var(--gold); color:var(--navy); }
.btn-gold:hover { background:var(--gold-lt); color:var(--navy); transform:translateY(-1px); }
.btn-navy { background:var(--navy); color:var(--white); }
.btn-navy:hover { background:var(--navy2); color:var(--white); }
.btn-outline { background:transparent; color:var(--navy); border:1px solid var(--navy); }
.btn-outline:hover { background:var(--navy); color:var(--white); }
.btn-ghost { background:transparent; color:rgba(255,255,255,.8); border:1px solid rgba(255,255,255,.3); }
.btn-ghost:hover { border-color:rgba(255,255,255,.7); color:var(--white); }

/* ── LAYOUT HELPERS ──────────────────────────────────── */
.inner { max-width:1160px; margin:0 auto; }
.section { padding:88px 48px; }
.section-cream { background:var(--cream); }
.section-navy { background:var(--navy); }
.section-white { background:var(--white); }

/* Eyebrow + titles */
.eyebrow { font-size:11px; font-weight:500; letter-spacing:.22em; text-transform:uppercase; color:var(--gold); margin-bottom:14px; display:block; }
.section-title { font-family:'Cormorant Garamond',serif; font-size:clamp(34px,4vw,52px); font-weight:400; color:var(--navy); line-height:1.12; margin-bottom:18px; }
.section-title.light { color:var(--white); }
.section-lead { font-size:16px; font-weight:300; color:var(--gray); line-height:1.75; max-width:600px; }
.section-lead.light { color:rgba(255,255,255,.65); }
.center { text-align:center; }
.center .section-lead { margin:0 auto; }

/* ── PAGE HERO (inner pages) ─────────────────────────── */
.page-hero { background:linear-gradient(135deg,var(--navy) 0%,#1a2d50 100%); padding:140px 48px 80px; position:relative; overflow:hidden; }
.page-hero::before { content:''; position:absolute; inset:0; background:radial-gradient(ellipse at 70% 50%,rgba(184,150,96,.07) 0%,transparent 60%); }
.page-hero-content { position:relative; z-index:1; max-width:680px; }
.page-hero h1 { color:var(--white); font-size:clamp(38px,5vw,62px); font-weight:300; margin-bottom:16px; }
.page-hero p { color:rgba(255,255,255,.7); font-size:17px; font-weight:300; line-height:1.75; max-width:540px; }

/* ── DIVIDER ─────────────────────────────────────────── */
.divider { height:1px; background:var(--border); }
.divider-gold { height:1px; background:rgba(184,150,96,.35); margin:24px 0; }

/* ── CARDS ───────────────────────────────────────────── */
.card-grid-3 { display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.card-grid-2 { display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.card { border:1px solid var(--border); padding:40px 36px; transition:border-color .2s, box-shadow .2s; }
.card:hover { border-color:var(--gold); box-shadow:0 8px 32px rgba(184,150,96,.1); }
.card-dark { background:rgba(255,255,255,.05); border:1px solid rgba(184,150,96,.2); padding:40px 36px; border-radius:3px; transition:background .2s, border-color .2s; }
.card-dark:hover { background:rgba(184,150,96,.1); border-color:rgba(184,150,96,.5); }

/* Feature grid (numbered) */
.feature-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:2px; background:var(--border); border:1px solid var(--border); }
.feature-card { background:var(--white); padding:44px 40px; transition:background .2s; }
.feature-card:hover { background:var(--cream); }
.section-cream .feature-card { background:var(--cream); }
.section-cream .feature-card:hover { background:var(--white); }
.feature-num { font-family:'Cormorant Garamond',serif; font-size:48px; font-weight:300; color:var(--gold); opacity:.35; line-height:1; margin-bottom:16px; }
.feature-card h3 { font-size:22px; margin-bottom:10px; color:var(--navy); }
.feature-card p { font-size:14px; font-weight:300; color:var(--gray); line-height:1.7; }

/* Check list */
.check-list { list-style:none; display:flex; flex-direction:column; gap:10px; }
.check-list li { font-size:14px; font-weight:300; display:flex; align-items:flex-start; gap:10px; line-height:1.55; }
.check-list li::before { content:'✦'; color:var(--gold); flex-shrink:0; font-size:11px; margin-top:3px; }

/* ── CTA BAND ────────────────────────────────────────── */
.cta-band { background:var(--navy); padding:88px 48px; text-align:center; }
.cta-band .section-title { color:var(--white); margin-bottom:14px; }
.cta-band p { font-size:17px; font-weight:300; color:rgba(255,255,255,.6); max-width:480px; margin:0 auto 36px; line-height:1.75; }
.cta-actions { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }
.cta-phone { display:flex; align-items:center; justify-content:center; gap:8px; color:rgba(255,255,255,.5); font-size:14px; font-weight:300; text-decoration:none; margin-top:18px; }
.cta-phone:hover { color:var(--gold); }

/* ── FOOTER ──────────────────────────────────────────── */
.footer { background:var(--dark-footer); padding:56px 48px 36px; }
.footer-top { max-width:1160px; margin:0 auto; display:grid; grid-template-columns:2fr 1fr 1fr 1fr; gap:56px; padding-bottom:44px; border-bottom:1px solid rgba(255,255,255,.07); margin-bottom:28px; }
.footer-brand { font-family:'Cormorant Garamond',serif; font-size:20px; color:var(--white); letter-spacing:.08em; margin-bottom:14px; }
.footer-brand span { color:var(--gold); }
.footer-desc { font-size:13px; font-weight:300; color:rgba(255,255,255,.4); line-height:1.7; max-width:280px; }
.footer-col h4 { font-size:10px; font-weight:500; letter-spacing:.18em; text-transform:uppercase; color:var(--gold); margin-bottom:18px; font-family:'Inter',sans-serif; }
.footer-col ul { list-style:none; display:flex; flex-direction:column; gap:9px; }
.footer-col a { font-size:13px; font-weight:300; color:rgba(255,255,255,.5); transition:color .2s; }
.footer-col a:hover { color:var(--gold); }
.footer-bottom { max-width:1160px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; }
.footer-copy { font-size:12px; color:rgba(255,255,255,.28); font-weight:300; }
.footer-legal { display:flex; gap:20px; }
.footer-legal a { font-size:12px; color:rgba(255,255,255,.28); }
.footer-legal a:hover { color:rgba(255,255,255,.6); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width:960px) {
  .nav { padding:0 20px; }
  .nav-links { display:none; }
  .nav-hamburger { display:block; }
  .section { padding:64px 20px; }
  .page-hero { padding:100px 20px 56px; }
  .cta-band { padding:64px 20px; }
  .footer { padding:48px 20px 28px; }
  .footer-top { grid-template-columns:1fr 1fr; gap:32px; }
  .card-grid-3, .feature-grid { grid-template-columns:1fr; }
  .card-grid-2 { grid-template-columns:1fr; }
}

@media (max-width:600px) {
  .nav { padding:0 16px; }
  .section { padding:56px 16px; }
  .page-hero { padding:96px 16px 48px; }
  .cta-band { padding:56px 16px; }
  .footer { padding:40px 16px 24px; }
  .footer-top { grid-template-columns:1fr; }
  .footer-bottom { flex-direction:column; gap:12px; text-align:center; }

  /* Mobile menu full-width, no overflow */
  .nav-mobile-menu {
    width:100vw;
    max-width:100%;
    left:0;
    right:0;
    padding:24px 16px;
  }
  .nav-mobile-menu a {
    font-size:16px;
    padding:12px 0;
  }

  /* Prevent wide inline styles from overflowing on small screens */
  section [style*="grid-template-columns"],
  .inner [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  section [style*="display:grid"],
  .inner [style*="display:grid"] {
    display: block !important;
  }

  /* Images full width */
  img { max-width:100%; height:auto; }

  /* Tables scroll horizontally rather than breaking layout */
  table { display:block; overflow-x:auto; }
}
