/* ==========================================================================
   EmbassyHost — "Diplomatic Premium" design system
   Part 1 of the master build document. Bump ?v=N in layouts/app.blade.php on edit.
   ========================================================================== */

:root {
  /* Brand */
  --navy:   #0B1F3A;
  --navy-2: #123055;
  --gold:   #C9A227;
  --gold-2: #E0BE47;
  --ivory:  #F7F4EE;
  --ink:    #141414;
  --green:  #1E8A5A;
  --claret: #8A1E2D;

  --paper:      #FFFFFF;
  --muted:      #5A6472;
  --line:       #E3DED4;
  --line-navy:  rgba(247, 244, 238, 0.18);

  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-ui: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgba(11,31,58,.06), 0 8px 28px rgba(11,31,58,.08);
  --shadow-lg: 0 2px 6px rgba(11,31,58,.08), 0 24px 60px rgba(11,31,58,.14);

  --wrap: 1140px;
  --gap: clamp(1rem, 3vw, 2rem);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 .5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }

p { margin: 0 0 1.1em; }
a { color: var(--navy); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }

img, svg { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gap); }

.section { padding: clamp(3rem, 8vw, 6rem) 0; }
.section--navy { background: var(--navy); color: var(--ivory); }
.section--navy h1, .section--navy h2, .section--navy h3 { color: var(--ivory); }
.section--paper { background: var(--paper); }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); margin: 0 0 .9rem;
}
.lede { font-size: clamp(1.05rem, 1.9vw, 1.28rem); color: var(--muted); max-width: 62ch; }
.section--navy .lede { color: rgba(247,244,238,.82); }

/* ---------- Buttons: pill, navy fill, ivory text, gold hover ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  font-family: var(--font-ui); font-size: 1rem; font-weight: 600; line-height: 1;
  padding: .95rem 1.7rem; border-radius: 999px; border: 2px solid transparent;
  background: var(--navy); color: var(--ivory); text-decoration: none; cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn:hover { background: var(--gold); color: var(--navy); transform: translateY(-1px); }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-2); color: var(--navy); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: var(--ivory); }
.section--navy .btn--ghost { color: var(--ivory); border-color: var(--line-navy); }
.section--navy .btn--ghost:hover { background: var(--ivory); color: var(--navy); }
.btn--wide { width: 100%; }
.btn--sm { padding: .62rem 1.15rem; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--navy); color: var(--ivory);
  border-bottom: 1px solid var(--line-navy);
}
.site-header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 72px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ivory); }
.brand__crest { width: 34px; height: 40px; flex: none; }
.brand__word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.22rem;
  letter-spacing: .04em; color: var(--ivory);
}
.nav { margin-left: auto; display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: rgba(247,244,238,.85); text-decoration: none; font-size: .96rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav__cta { margin-left: .4rem; }

.nav-toggle { display: none; background: none; border: 0; color: var(--ivory); padding: .5rem; cursor: pointer; }

@media (max-width: 900px) {
  .nav-toggle { display: block; margin-left: auto; }
  .nav {
    position: absolute; inset: 72px 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; background: var(--navy); border-bottom: 1px solid var(--line-navy);
    padding: .5rem 0 1.2rem; margin: 0; display: none;
  }
  .nav[data-open="true"] { display: flex; }
  .nav a { padding: .85rem var(--gap); }
  .nav__cta { margin: .8rem var(--gap) 0; }
}

/* ---------- Hero + search ---------- */
.hero { background: var(--navy); color: var(--ivory); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; right: -8%; top: -20%; width: 46vw; height: 140%;
  background: radial-gradient(closest-side, rgba(201,162,39,.16), transparent 70%);
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; padding-block: clamp(3.2rem, 9vw, 6.5rem); }
.hero h1 { color: var(--ivory); max-width: 16ch; }
.hero .lede { color: rgba(247,244,238,.85); }
.hero__crest { width: 56px; height: 66px; margin-bottom: 1.4rem; }

.searchbar {
  display: grid; gap: .7rem; margin-top: 2rem; padding: .7rem;
  grid-template-columns: 1.4fr 1fr 1fr auto;
  background: var(--ivory); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
}
.searchbar input, .searchbar select {
  font-family: var(--font-ui); font-size: 1rem; color: var(--ink);
  padding: .95rem 1rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); width: 100%; min-width: 0;
}
.searchbar input:focus, .searchbar select:focus {
  outline: 3px solid rgba(201,162,39,.45); outline-offset: 1px; border-color: var(--gold);
}
.searchbar .btn { white-space: nowrap; }
.searchbar__micro { margin: .9rem 0 0; font-size: .9rem; color: rgba(247,244,238,.7); }

@media (max-width: 860px) {
  .searchbar { grid-template-columns: 1fr; }
}

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: clamp(1rem, 2.4vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(275px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); }

.card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(1.3rem, 2.6vw, 1.9rem); box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }

.step { counter-increment: step; }
.step__num {
  font-family: var(--font-display); font-size: 2.1rem; color: var(--gold); line-height: 1;
  display: block; margin-bottom: .5rem;
}

.trade-card {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1rem 1.15rem; text-decoration: none; color: var(--navy); font-weight: 600;
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.trade-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); }
.trade-card span[aria-hidden] { color: var(--gold); }

/* ---------- Protection block ---------- */
.protect { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: auto 1fr; align-items: start; }
.protect__shield { width: clamp(84px, 12vw, 132px); height: auto; flex: none; }
@media (max-width: 720px) { .protect { grid-template-columns: 1fr; } }

.assurance { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: .85rem; }
.assurance li { display: flex; gap: .75rem; align-items: flex-start; }
.assurance li::before {
  content: "✓"; color: var(--navy); background: var(--gold);
  width: 1.5rem; height: 1.5rem; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: .82rem; font-weight: 700; margin-top: .12rem;
}

/* ---------- Pricing ---------- */
.plans { display: grid; gap: clamp(1rem, 2.4vw, 1.7rem); grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.plan {
  position: relative; background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan--popular { border: 2px solid var(--gold); box-shadow: var(--shadow-lg); }
.plan__ribbon {
  position: absolute; top: -.85rem; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--navy); font-size: .74rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; padding: .38rem 1rem; border-radius: 999px;
  white-space: nowrap;
}
.plan__name { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin: 0 0 .2rem; }
.plan__strap { color: var(--muted); font-size: .97rem; margin: 0 0 1.1rem; }
.plan__price { font-family: var(--font-display); font-size: 2.7rem; color: var(--navy); line-height: 1; }
.plan__price span { font-family: var(--font-ui); font-size: .95rem; color: var(--muted); font-weight: 500; }
.plan__features { list-style: none; margin: 1.3rem 0 1.7rem; padding: 0; display: grid; gap: .68rem; font-size: .97rem; }
.plan__features li { display: flex; gap: .6rem; align-items: flex-start; }
.plan__features li::before { content: "✓"; color: var(--green); font-weight: 700; flex: none; }
.plan__features li.is-inherited::before { content: "＋"; color: var(--gold); }
.plan .btn { margin-top: auto; }

.toggle {
  display: inline-flex; background: var(--paper); border: 1px solid var(--line);
  border-radius: 999px; padding: .3rem; gap: .2rem; margin: 0 auto 2rem;
}
.toggle button {
  font-family: var(--font-ui); font-size: .93rem; font-weight: 600; color: var(--muted);
  background: none; border: 0; padding: .6rem 1.25rem; border-radius: 999px; cursor: pointer;
}
.toggle button[aria-pressed="true"] { background: var(--navy); color: var(--ivory); }

/* ---------- Forms ---------- */
.form { max-width: 460px; }
.form__row { margin-bottom: 1.15rem; }
.form label { display: block; font-weight: 600; font-size: .94rem; margin-bottom: .38rem; color: var(--navy); }
.form input, .form select, .form textarea {
  width: 100%; font-family: var(--font-ui); font-size: 1rem; padding: .85rem 1rem;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus {
  outline: 3px solid rgba(201,162,39,.4); outline-offset: 1px; border-color: var(--gold);
}
.form__hint { font-size: .87rem; color: var(--muted); margin: .4rem 0 0; }
.form__error { color: var(--claret); font-size: .88rem; margin: .4rem 0 0; }

.alert { padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.5rem; font-size: .96rem; }
.alert--error { background: rgba(138,30,45,.08); border: 1px solid rgba(138,30,45,.3); color: var(--claret); }
.alert--ok { background: rgba(30,138,90,.08); border: 1px solid rgba(30,138,90,.3); color: var(--green); }

/* ---------- Status dots ---------- */
.dot { width: .6rem; height: .6rem; border-radius: 50%; display: inline-block; flex: none; }
.dot--available { background: var(--green); }
.dot--taken { background: var(--claret); }

/* ---------- Prose (legal pages) ---------- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 2.4rem; font-size: clamp(1.35rem, 2.4vw, 1.7rem); }
.prose h3 { margin-top: 1.8rem; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4rem 0; font-size: .95rem; }
.prose th, .prose td { text-align: left; padding: .7rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--navy); font-weight: 600; }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.05rem 1.25rem; margin-bottom: .8rem;
}
.faq summary { font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "＋"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { margin-bottom: .7rem; }
.faq p:last-child { margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(247,244,238,.75); padding: clamp(2.5rem, 6vw, 4rem) 0 2rem; font-size: .94rem; }
.site-footer h4 { color: var(--ivory); font-family: var(--font-ui); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .9rem; }
.site-footer a { color: rgba(247,244,238,.75); text-decoration: none; }
.site-footer a:hover { color: var(--gold); }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer__legal {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line-navy);
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: .87rem;
  color: rgba(247,244,238,.6);
}

/* ---------- Utility ---------- */
.center { text-align: center; }
.center .lede { margin-inline: auto; }
.stack > * + * { margin-top: 1.2rem; }
.mt-0 { margin-top: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; background: var(--gold); color: var(--navy);
  padding: .8rem 1.2rem; z-index: 100; border-radius: 0 0 var(--radius) 0; font-weight: 600;
}
.skip-link:focus { left: 0; top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
