/* ============================================
   NA LE, CPA, EA — Shared Stylesheet (4-page, mobile-optimized)
   Navy #0F2748 / Gold #D4A43C / Cream #FBF8F2
   ============================================ */

:root {
  --navy: #0F2748;
  --navy-deep: #0A1C38;
  --gold: #D4A43C;
  --gold-soft: #E3C88A;
  --gold-tint: #F6EBD4;
  --cream: #FBF8F2;
  --cream-alt: #F4EEE2;
  --ink: #2A2E38;
  --muted: #6B7280;
  --line: #E7DFCF;
  --white: #FFFFFF;

  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --script: "Dancing Script", cursive;

  --wrap: 1160px;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 39, 72, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 39, 72, 0.14);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
/* default: line-style icons unless a rule sets fill explicitly */
svg { fill: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; }
.serif { font-family: var(--serif); }
.script { font-family: var(--script); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 24px; max-width: var(--wrap); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0; }
.brand-text h1 { font-size: 18px; letter-spacing: .5px; line-height: 1.1; }
.brand-text h1 b { color: var(--gold); font-weight: 700; }
.brand-text small {
  display: block; font-family: var(--body); color: var(--muted);
  font-size: 9.5px; letter-spacing: 1.5px; text-transform: uppercase; margin-top: 2px;
}

.nav-links { display: flex; align-items: center; gap: 22px; list-style: none; }
.nav-links a {
  font-size: 13px; letter-spacing: .6px; text-transform: uppercase;
  color: var(--navy); font-weight: 600; padding: 6px 0; position: relative;
  transition: color .2s; white-space: nowrap;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--gold);
}

.btn-consult {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--gold); color: var(--white);
  font-family: var(--body); font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
  padding: 12px 18px; border-radius: 8px; border: none; cursor: pointer;
  transition: background .2s, transform .15s;
}
.btn-consult:hover { background: #bd9130; transform: translateY(-1px); }
.btn-consult svg { width: 16px; height: 16px; flex-shrink: 0; }

.lang-switch {
  display: inline-flex; align-items: center;
  border: 1px solid var(--gold); border-radius: 7px; overflow: hidden;
  font-size: 11.5px; font-weight: 700; letter-spacing: .5px; white-space: nowrap;
}
.lang-switch a { padding: 7px 10px; color: var(--navy); transition: background .2s, color .2s; }
.lang-switch a.active { background: var(--gold); color: #fff; }
.lang-switch a:not(.active):hover { background: var(--gold-tint); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

/* ---------- Buttons ---------- */
.btn-outline {
  display: inline-flex; align-items: center; gap: 9px;
  background: transparent; color: var(--navy); border: 1px solid var(--navy);
  font-family: var(--body); font-size: 12px; letter-spacing: .8px;
  text-transform: uppercase; font-weight: 700; white-space: nowrap;
  padding: 12px 18px; border-radius: 8px; cursor: pointer; transition: .2s;
}
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { background: var(--cream); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 420px; }
.hero-copy { padding: 60px 40px 60px 0; max-width: 580px; margin-left: auto; }
.hero-eyebrow {
  font-family: var(--body); text-transform: uppercase; letter-spacing: 2px;
  font-size: 12px; font-weight: 700; color: var(--gold); margin-bottom: 14px;
}
.hero h2 { font-size: clamp(32px, 5vw, 54px); line-height: 1.05; }
.hero h2 .gold { color: var(--gold); }
.hero .diamond-rule { margin: 22px 0; }
.hero p { color: var(--ink); font-size: 16px; max-width: 480px; }
.hero-img { min-height: 100%; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; object-position: center 25%; }

.diamond-rule { display: flex; align-items: center; gap: 6px; }
.diamond-rule::before { content: ""; height: 2px; width: 90px; background: var(--gold); border-radius: 2px; }
.diamond-rule::after { content: "◆"; color: var(--gold); font-size: 9px; }

.sec-head { text-align: center; margin: 0 auto 40px; }
.sec-head h3 { font-size: clamp(26px, 4vw, 38px); }
.sec-head .diamond-rule { justify-content: center; margin: 14px 0 0; }
.sec-head .diamond-rule::before { width: 70px; }
.sec-head p { color: var(--muted); margin-top: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }

section { padding: 64px 0; }
.bg-alt { background: var(--cream-alt); }
.bg-navy { background: var(--navy); color: var(--white); }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: var(--white); }

/* ---------- Cards ---------- */
.card-grid { display: grid; gap: 22px; }
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px; text-align: center;
  box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.icon-badge {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--gold-tint); display: grid; place-items: center; margin: 0 auto 16px;
}
.icon-badge svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.card h4 { font-size: 19px; margin-bottom: 8px; }
.card .sub { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.card ul { list-style: none; text-align: left; display: inline-block; margin: 0 auto; }
.card ul li { font-size: 13.5px; color: var(--ink); padding: 4px 0 4px 24px; position: relative; }
.card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 700; font-size: 12px; }
.learn { display: inline-block; margin-top: 18px; color: var(--gold); font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; font-weight: 700; cursor: pointer; }
.learn:hover { color: #bd9130; }

.price-pill {
  display: block; background: var(--gold-tint); border-radius: 8px;
  padding: 10px; margin-top: 14px; font-size: 14px; color: var(--navy); font-weight: 600;
}
.price-pill b { color: var(--gold); font-size: 20px; font-family: var(--serif); }

/* ---------- Feature row ---------- */
.feature-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.feature { text-align: center; padding: 0 8px; }
.feature h4 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 13px; color: var(--muted); }

/* trust bar */
.trust-bar { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; border-top: 1px solid var(--line); padding-top: 30px; margin-top: 10px; }
.trust { display: flex; gap: 12px; align-items: flex-start; }
.trust svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; }
.trust b { display: block; color: var(--navy); font-family: var(--serif); font-size: 16px; }
.trust span { font-size: 12.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--white); border-radius: var(--radius); padding: 40px; display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.cta-band h3 { color: var(--white); font-size: 28px; }
.cta-band p { color: rgba(255,255,255,.8); font-size: 15px; margin-top: 6px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: start; }
.contact-info .ci-row { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.contact-info .ci-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--navy); display: grid; place-items: center; flex-shrink: 0; }
.contact-info .ci-icon svg { width: 22px; height: 22px; stroke: var(--gold); fill: none; stroke-width: 1.8; }
.contact-info .ci-row b { font-family: var(--serif); color: var(--navy); font-size: 18px; display: block; }
.contact-info .ci-row span, .contact-info .ci-row a { font-size: 14px; color: var(--ink); }
.contact-info .ci-row .muted { color: var(--muted); font-style: italic; font-size: 13px; }

.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 26px; margin-bottom: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.field label .req { color: #c0392b; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line); border-radius: 8px;
  font-family: var(--body); font-size: 16px; background: var(--white); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold-soft); border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-card .btn-consult { width: 100%; justify-content: center; padding: 15px; font-size: 13px; margin-top: 6px; }
.form-note { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }
.form-success { display: none; text-align: center; padding: 20px 0; }
.form-success.show { display: block; }
.form-success svg { width: 56px; height: 56px; stroke: var(--gold); fill: none; stroke-width: 1.5; margin: 0 auto 14px; }
.form-success h4 { font-size: 22px; margin-bottom: 8px; }
.form-success p { color: var(--muted); font-size: 14px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 50px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 34px; }
.site-footer h4 { color: var(--gold); font-family: var(--body); font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.75); font-size: 14px; display: block; padding: 4px 0; }
.site-footer a:hover { color: var(--gold); }
.footer-brand .brand img { width: 44px; height: 44px; }
.footer-brand .brand-text h1 { color: #fff; }
.footer-brand p { font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; font-size: 12.5px; color: rgba(255,255,255,.5); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(10, 28, 56, 0.6);
  backdrop-filter: blur(3px); display: none; align-items: center; justify-content: center;
  z-index: 1000; padding: 20px;
}
.modal-overlay.show { display: flex; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: var(--cream); border-radius: 14px; max-width: 560px; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: var(--shadow-lg); animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(16px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { background: var(--navy); color: var(--white); padding: 24px 30px; border-radius: 14px 14px 0 0; position: relative; }
.modal-head h3 { color: var(--white); font-size: 24px; }
.modal-head p { color: rgba(255,255,255,.8); font-size: 13.5px; margin-top: 4px; }
.modal-close { position: absolute; top: 18px; right: 20px; background: none; border: none; color: var(--white); font-size: 26px; cursor: pointer; line-height: 1; opacity: .8; }
.modal-close:hover { opacity: 1; }
.modal-body { padding: 26px 30px 30px; }
.modal .btn-consult { width: 100%; justify-content: center; padding: 15px; font-size: 13px; margin-top: 6px; }

/* ============================================
   RESPONSIVE — Tablet
   ============================================ */
@media (max-width: 960px) {
  .nav-links, .nav > .btn-consult { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream); padding: 18px 24px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .nav-links.open li { width: 100%; }
  .nav-links.open a { display: block; padding: 12px 0; font-size: 15px; width: 100%; }
  .nav-links.open a.active::after { display: none; }
  .nav-links.open .lang-item { margin-top: 10px; }
  .nav-links.open .btn-consult { display: inline-flex; margin-top: 10px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { padding: 44px 0; max-width: 100%; margin: 0; }
  .hero-img { order: -1; }
  .hero-img img { min-height: 300px; max-height: 420px; object-position: center 20%; }

  .feature-row { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .contact-grid { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .trust-bar { grid-template-columns: repeat(2,1fr); gap: 22px; }
  .card-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .about-split { grid-template-columns: 1fr !important; gap: 36px !important; }
}

/* ============================================
   RESPONSIVE — Phone
   ============================================ */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  section { padding: 44px 0; }

  .nav { padding: 10px 18px; }
  .brand img { width: 44px; height: 44px; }
  .brand-text h1 { font-size: 16px; }
  .brand-text small { font-size: 8.5px; letter-spacing: 1px; }

  .hero-copy { padding: 32px 0; }
  .hero h2 { font-size: clamp(28px, 8vw, 40px); }
  .hero p { font-size: 15px; }
  .hero-img img { min-height: 240px; }

  .hero-copy .btn-consult, .hero-copy .btn-outline { width: 100%; justify-content: center; }

  .card { padding: 26px 20px; }
  .card-grid { grid-template-columns: 1fr !important; }
  .feature-row { grid-template-columns: 1fr; gap: 24px; }
  .trust-bar { grid-template-columns: 1fr; gap: 18px; }

  .cta-band { padding: 28px 22px; flex-direction: column; align-items: flex-start; text-align: left; }
  .cta-band h3 { font-size: 24px; }
  .cta-band .btn-consult, .cta-band .btn-outline { width: 100%; justify-content: center; }

  .form-card { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }

  .modal-head { padding: 20px 22px; }
  .modal-body { padding: 22px; }

  .footer-bottom { flex-direction: column; }
}

/* small helper */
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ensure inline svgs that aren't in a badge render as line icons, not filled blocks */
.notary-row svg { width: 26px; height: 26px; stroke: var(--gold); fill: none; stroke-width: 1.6; flex-shrink: 0; }
.hd-icon svg { width: 30px; height: 30px; stroke: var(--gold); fill: none; stroke-width: 1.6; flex-shrink: 0; }
