/* ============================================
   VIGIL MEDICAL DESIGN SYSTEM
   Ivory / Navy / Gold — Luxury Medical Theme
   ============================================ */

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

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

:root {
  --navy: #1a2340;
  --navy-deep: #111828;
  --ivory: #faf7f2;
  --ivory-mid: #f3ede4;
  --gold: #c8902a;
  --gold-light: #e0aa44;
  --text: #1a2340;
  --muted: #7a8a9a;
  --border: #e0d8cc;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(26,35,64,0.10);
  --shadow-lg: 0 12px 48px rgba(26,35,64,0.16);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  background: var(--ivory);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--gold); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; height: auto; }

/* --- Navigation --- */
nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(26,35,64,0.97); backdrop-filter: blur(12px);
  padding: 0 5vw; display: flex; align-items: center; justify-content: space-between;
  height: 60px; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--gold); display: flex; align-items: center; justify-content: center; font-size: 16px; }
.nav-logo-text { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 700; color: #fff; letter-spacing: 0.5px; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a { color: rgba(255,255,255,0.65); text-decoration: none; font-size: 13px; font-weight: 500; letter-spacing: 0.3px; transition: color 0.2s; }
.nav-links a:hover { color: #fff; }
.nav-cta { background: var(--gold); color: var(--navy-deep); padding: 7px 18px; border-radius: 6px; font-size: 13px; font-weight: 600; text-decoration: none; letter-spacing: 0.3px; transition: background 0.2s; }
.nav-cta:hover { background: var(--gold-light); }

/* Mobile menu */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: 0.3s; }

/* --- Legal Pages --- */
.legal-page { padding: 100px 5vw 80px; max-width: 800px; margin: 0 auto; }
.legal-page h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px); font-weight: 700;
  color: var(--navy); line-height: 1.15; margin-bottom: 8px;
}
.legal-page .last-updated { font-size: 0.9rem; color: var(--muted); margin-bottom: 40px; }
.legal-page h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 700;
  color: var(--navy); margin-top: 40px; margin-bottom: 16px;
}
.legal-page h3 { font-size: 1.1rem; font-weight: 600; color: var(--navy); margin-top: 24px; margin-bottom: 12px; }
.legal-page p { font-size: 0.95rem; color: var(--text); line-height: 1.8; margin-bottom: 16px; }
.legal-page ul, .legal-page ol { padding-left: 24px; margin-bottom: 16px; }
.legal-page li { font-size: 0.95rem; color: var(--text); line-height: 1.8; margin-bottom: 8px; }
.legal-page a { color: var(--gold); }
.legal-page a:hover { text-decoration: underline; }
.legal-page strong { color: var(--navy); }

/* Callouts */
.callout { padding: 16px 20px; border-radius: 8px; margin: 16px 0; font-size: 0.9rem; line-height: 1.6; }
.callout-important { background: rgba(200,144,42,0.1); border-left: 4px solid var(--gold); color: var(--text); }
.callout-info { background: rgba(26,35,64,0.06); border-left: 4px solid var(--navy); color: var(--text); }
.callout-success { background: rgba(34,197,94,0.08); border-left: 4px solid #22c55e; color: var(--text); }
.callout-danger { background: rgba(239,68,68,0.08); border-left: 4px solid #ef4444; color: var(--text); }

/* Contact Box */
.contact-box {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 28px; margin: 16px 0;
}
.contact-box p { margin-bottom: 6px; font-size: 0.95rem; color: var(--text); }

/* Tables */
.legal-page table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 0.9rem; }
.legal-page th { background: var(--navy); color: #fff; padding: 12px 14px; text-align: left; font-weight: 600; }
.legal-page td { padding: 12px 14px; border-bottom: 1px solid var(--border); color: var(--text); }
.legal-page tr:nth-child(even) td { background: var(--ivory-mid); }

/* FAQ */
.faq-item { background: var(--white); border: 1px solid var(--border); border-radius: 14px; margin-bottom: 12px; overflow: hidden; }
.faq-question { padding: 16px 20px; font-weight: 600; font-size: 0.95rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; color: var(--navy); }
.faq-question:hover { background: var(--ivory-mid); }
.faq-answer { padding: 0 20px 16px; font-size: 0.9rem; color: var(--muted); display: none; }
.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-arrow { transition: transform 0.2s; font-size: 12px; color: var(--muted); }

/* Form */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; font-family: inherit;
  background: var(--white); color: var(--text); transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(200,144,42,0.15);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-submit {
  background: var(--gold); color: var(--navy-deep);
  padding: 14px 32px; border: none; border-radius: 8px;
  font-size: 1rem; font-weight: 700; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.form-submit:hover { background: var(--gold-light); transform: translateY(-1px); }

/* Disclaimer */
.disclaimer {
  background: var(--ivory-mid); border: 1px solid var(--border);
  border-radius: 14px; padding: 24px 32px; margin: 40px 0;
  display: flex; align-items: flex-start; gap: 16px;
}
.disclaimer-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.disclaimer p { font-size: 0.9rem; color: var(--text); line-height: 1.6; }

/* Footer */
footer {
  background: var(--navy-deep); padding: 52px 5vw 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.06); }
.footer-brand p { font-size: 13px; color: rgba(255,255,255,0.4); line-height: 1.8; margin-top: 10px; max-width: 260px; }
.footer-col h4 { font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.5); text-decoration: none; font-size: 13px; margin-bottom: 8px; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,0.2); max-width: 480px; text-align: right; line-height: 1.6; }

/* --- Responsive --- */
@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  nav .nav-links { display: none; }
  .nav-toggle { display: block; }
  .legal-page { padding: 80px 20px 60px; }
  .legal-page h1 { font-size: 1.8rem; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-disclaimer { text-align: center; }
  .disclaimer { flex-direction: column; }
}
