/* ---------- Design tokens ---------- */
:root {
  --navy-900: #0b1d39;
  --navy-800: #112a52;
  --navy-700: #1a3a6e;
  --navy-50:  #f4f7fc;
  --gold-500: #c9a24a;
  --gold-600: #b08a36;
  --ink:      #1a1f2e;
  --muted:    #5b6577;
  --line:     #e4e8ef;
  --bg:       #ffffff;
  --bg-alt:   #f7f9fc;
  --danger:   #c0392b;
  --success:  #1f7a4c;
  --shadow-sm: 0 1px 2px rgba(11,29,57,.06), 0 1px 3px rgba(11,29,57,.08);
  --shadow-md: 0 6px 18px rgba(11,29,57,.08), 0 2px 6px rgba(11,29,57,.06);
  --shadow-lg: 0 20px 50px rgba(11,29,57,.15);
  --radius: 12px;
  --radius-sm: 8px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--gold-600); }
h1, h2, h3, h4 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--navy-900);
  letter-spacing: -.01em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); }
h3 { font-size: 1.25rem; font-family: 'Inter', sans-serif; font-weight: 700; }
h4 { font-size: 1rem; font-family: 'Inter', sans-serif; font-weight: 700; }
p  { margin: 0 0 1em; color: var(--ink); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head p { color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold-600);
  font-weight: 700;
  margin-bottom: 12px;
}
.accent { color: var(--gold-600); }
.hide-sm { display: inline; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--navy-900);
  color: #d6dcea;
  font-size: .82rem;
  padding: 8px 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; }
.topbar-left span + span { margin-left: 18px; }

/* ---------- Navbar ---------- */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy-900); }
.brand-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: var(--gold-500);
  border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 800;
  font-family: 'Playfair Display', serif;
  letter-spacing: .02em;
  border: 1px solid rgba(201,162,74,.4);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: 'Playfair Display', serif; font-size: 1.15rem; }
.brand-text small { color: var(--muted); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }

.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a {
  color: var(--ink);
  font-weight: 500;
  font-size: .94rem;
  position: relative;
  padding: 6px 0;
}
.nav-links a.active, .nav-links a:hover { color: var(--navy-900); }
.nav-links a.active::after, .nav-links a:hover::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold-500); border-radius: 2px;
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: .92rem;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--navy-900); color: #fff; }
.btn-primary:hover { background: var(--navy-800); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy-900); border-color: var(--navy-900); }
.btn-outline:hover { background: var(--navy-900); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy-900); }
.btn-ghost:hover { background: var(--navy-50); }

/* ---------- Hamburger ---------- */
.hamburger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
}
.hamburger span { width: 18px; height: 2px; background: var(--navy-900); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(201,162,74,.18), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(26,58,110,.12), transparent 60%),
    linear-gradient(180deg, #fafbff, #ffffff);
  padding: 96px 0 88px;
  position: relative;
  overflow: hidden;
}
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-text h1 { margin-bottom: 18px; }
.hero-text p { color: var(--muted); font-size: 1.08rem; max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; max-width: 520px; }
.hero-stats > div { border-left: 3px solid var(--gold-500); padding: 4px 0 4px 14px; }
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--navy-900); font-family: 'Playfair Display', serif; }
.hero-stats span { color: var(--muted); font-size: .85rem; }

.hero-art { position: relative; height: 460px; }
.hero-card {
  position: absolute;
  width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-md);
}
.hero-card h4 { margin: 8px 0 4px; }
.hero-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.hc-icon {
  width: 44px; height: 44px;
  background: var(--navy-50);
  color: var(--navy-800);
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: 1.4rem;
}
.hc1 { top: 0; right: 40px; }
.hc2 { top: 150px; left: 0; }
.hc3 { bottom: 0; right: 0; }

/* ---------- About ---------- */
.check-list { list-style: none; padding: 0; margin: 16px 0 0; }
.check-list li {
  padding-left: 28px;
  position: relative;
  margin-bottom: 10px;
  color: var(--ink);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 20px; height: 20px;
  background: var(--navy-900);
  color: var(--gold-500);
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .72rem;
  font-weight: 800;
}
.about-card {
  background: var(--navy-900);
  color: #d6dcea;
  border-radius: var(--radius);
  padding: 36px;
  position: relative;
  overflow: hidden;
}
.about-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  background: linear-gradient(135deg, rgba(201,162,74,.25), transparent 60%);
  pointer-events: none;
}
.about-card h3 { color: var(--gold-500); margin-top: 0; }
.about-card h3:not(:first-of-type) { margin-top: 24px; }
.about-card p { color: #d6dcea; }

/* ---------- Services ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-500);
}
.svc-icon {
  width: 52px; height: 52px;
  background: linear-gradient(135deg, var(--navy-50), #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.service-card h3 { margin-bottom: 8px; }
.service-card p { color: var(--muted); margin: 0; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  margin: 0;
  display: flex; flex-direction: column;
  position: relative;
}
.t-card::before {
  content: '"';
  position: absolute;
  top: -8px; left: 20px;
  font-family: 'Playfair Display', serif;
  font-size: 5rem;
  color: var(--gold-500);
  line-height: 1;
}
.t-card blockquote {
  margin: 16px 0 22px;
  font-size: .98rem;
  color: var(--ink);
  font-style: italic;
}
.t-card figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: auto;
}
.t-avatar {
  width: 44px; height: 44px;
  background: var(--navy-900);
  color: var(--gold-500);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: .9rem;
}
.t-card figcaption strong { display: block; color: var(--navy-900); }
.t-card figcaption span { color: var(--muted); font-size: .82rem; }

/* ---------- Contact ---------- */
.contact-info { display: grid; gap: 20px; margin-top: 24px; }
.ci-item { display: flex; gap: 16px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  display: grid; place-items: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}
.ci-item strong { display: block; color: var(--navy-900); margin-bottom: 2px; }
.ci-item p { margin: 0; color: var(--muted); font-size: .94rem; }

.contact-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow-sm);
}
.contact-form h3 { margin-bottom: 20px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label, .modal-form label { display: block; margin-bottom: 14px; }
.contact-form label > span, .modal-form label > span {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--navy-900);
  margin-bottom: 6px;
}
.contact-form input, .contact-form textarea,
.modal-form input {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  font-size: .95rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.contact-form input:focus, .contact-form textarea:focus,
.modal-form input:focus {
  outline: none;
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px rgba(26,58,110,.12);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: .82rem;
  color: var(--muted);
  background: var(--navy-50);
  padding: 12px 14px;
  border-radius: 8px;
  margin: 4px 0 18px !important;
  line-height: 1.45;
}
.consent input { margin-top: 3px; }
.consent span { font-weight: 400 !important; color: var(--muted) !important; }
.consent a { color: var(--navy-800); font-weight: 600; text-decoration: underline; }
.form-status { font-size: .88rem; margin: 12px 0 0; min-height: 1.2em; }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }

/* ---------- Page hero (legal pages) ---------- */
.page-hero {
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  padding: 80px 0 64px;
  text-align: center;
}
.page-hero h1 { color: #fff; margin-bottom: 8px; }
.page-hero p { color: rgba(255,255,255,.7); margin: 0; }
.page-hero .eyebrow { color: var(--gold-500); }

.legal { max-width: 820px; margin: 0 auto; }
.legal h2 {
  font-family: 'Inter', sans-serif;
  font-size: 1.25rem;
  margin: 32px 0 10px;
  color: var(--navy-900);
}
.legal ul { padding-left: 22px; margin: 0 0 14px; }
.legal li { margin-bottom: 6px; }
.legal address {
  font-style: normal;
  background: var(--bg-alt);
  border-left: 3px solid var(--gold-500);
  padding: 16px 18px;
  border-radius: 6px;
  margin-top: 10px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: #c8d0e2;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer h4 {
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: .95rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer a { color: #c8d0e2; font-size: .92rem; }
.footer a:hover { color: var(--gold-500); }
.footer p { color: #c8d0e2; font-size: .92rem; margin-bottom: 8px; }
.brand-footer .brand-text strong { color: #fff; }
.brand-footer .brand-text small { color: rgba(255,255,255,.6); }
.footer-tag { margin-top: 14px; color: rgba(255,255,255,.7); font-size: .92rem; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 18px 0;
  font-size: .85rem;
}
.footer-bottom .container { display: flex; justify-content: space-between; }

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,29,57,.55);
  backdrop-filter: blur(4px);
}
.modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-lg);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  animation: pop .2s ease;
}
@keyframes pop {
  from { opacity: 0; transform: translateY(8px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 8px;
  border: none;
  background: var(--bg-alt);
  font-size: 1.4rem;
  color: var(--navy-900);
  cursor: pointer;
  line-height: 1;
}
.modal-close:hover { background: var(--line); }
.modal-dialog h2 { margin-bottom: 6px; }
.modal-sub { color: var(--muted); margin-bottom: 22px; font-size: .94rem; }
.modal-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .85rem;
  margin: 4px 0 16px;
}
.inline-check { display: flex !important; align-items: center; gap: 8px; margin: 0 !important; }
.inline-check span { font-size: .85rem !important; font-weight: 500 !important; color: var(--ink) !important; margin: 0 !important; }
.link-muted { color: var(--muted); }
.link-muted:hover { color: var(--navy-900); }
.modal-foot { text-align: center; font-size: .9rem; color: var(--muted); margin: 16px 0 0; }
.modal-foot a { color: var(--navy-800); font-weight: 600; }

body.modal-open { overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hide-sm { display: none; }
  .grid-2 { grid-template-columns: 1fr; gap: 36px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { display: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .section { padding: 64px 0; }
  .hero { padding: 64px 0 56px; }
}

@media (max-width: 720px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links a {
    padding: 12px 24px;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links a.active::after, .nav-links a:hover::after { display: none; }
  .hamburger { display: flex; }
  .nav-actions .btn { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom .container { flex-direction: column; gap: 6px; text-align: center; }
  .form-row { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; }
  .contact-form, .about-card { padding: 24px; }
  .modal-dialog { padding: 28px 22px; }
}
