/* =========================================================
   Advorise Legal — Stylesheet
   Palette taken from the logo: deep navy + gold, serif display
   ========================================================= */

:root {
  --navy:      #16223e;
  --navy-2:    #1f3054;
  --navy-deep: #0f192e;
  --gold:      #bf9b5a;
  --gold-2:    #d4b878;
  --gold-soft: #f3ead6;
  --ink:       #22283a;
  --muted:     #5c6474;
  --line:      #e7e9ef;
  --bg:        #ffffff;
  --bg-soft:   #f7f6f2;
  --radius:    14px;
  --shadow:    0 18px 45px rgba(16, 25, 46, 0.12);
  --shadow-sm: 0 6px 20px rgba(16, 25, 46, 0.08);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans:  "Jost", -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1160px, 92%); margin-inline: auto; }

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); font-weight: 600; line-height: 1.15; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
em { font-style: italic; color: var(--gold); }

.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.6rem;
  border-radius: 999px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: var(--navy-deep);
  box-shadow: 0 10px 24px rgba(191, 155, 90, .35);
  font-weight: 600;
}
.btn--gold:hover { box-shadow: 0 14px 30px rgba(191, 155, 90, .5); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghost:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-deep);
  color: #cfd4e0;
  font-size: .82rem;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; }
.topbar__contact { display: flex; gap: 1.4rem; }
.topbar__contact a { display: inline-flex; align-items: center; gap: .35rem; }
.topbar__contact a:hover { color: var(--gold-2); }
.topbar__note { color: var(--gold-2); letter-spacing: .03em; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .2s ease;
}
.header.scrolled { box-shadow: var(--shadow-sm); }
.header__inner { display: flex; align-items: center; justify-content: space-between; padding: .7rem 0; }
.brand__logo { height: 52px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.9rem; }
.nav a { font-size: .95rem; font-weight: 400; color: var(--ink); position: relative; }
.nav a:not(.nav__cta):hover { color: var(--gold); }
.nav a:not(.nav__cta)::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.nav a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta { padding: .6rem 1.3rem; }

.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; }
.nav__toggle span { width: 26px; height: 2px; background: var(--navy); transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(191,155,90,.10), transparent 60%),
    linear-gradient(180deg, #fbfaf7 0%, #ffffff 100%);
  padding: 4.5rem 0 3.5rem;
  overflow: hidden;
}
.hero__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.2rem; align-items: center; }
.hero__copy h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); letter-spacing: -.5px; }
.hero__sub { color: var(--muted); font-size: 1.08rem; margin: 1.2rem 0 1.5rem; max-width: 40ch; }

.hero__points { list-style: none; display: grid; gap: .5rem; margin-bottom: 1.8rem; }
.hero__points li { font-size: 1rem; color: var(--ink); font-weight: 400; }

.hero__stats { display: flex; gap: 2.2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero__stats div { display: flex; flex-direction: column; }
.hero__stats strong { font-family: var(--serif); font-size: 1.9rem; color: var(--navy); font-weight: 700; }
.hero__stats span { font-size: .82rem; color: var(--muted); letter-spacing: .03em; }

/* ---------- Lead card ---------- */
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 5px solid var(--gold);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem 1.9rem;
}
.lead-card h3 { font-size: 1.7rem; }
.lead-card__sub { color: var(--muted); font-size: .92rem; margin: .3rem 0 1.3rem; }

.lead-form { display: grid; gap: .75rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: .8rem .95rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--ink);
  background: #fdfdfb;
  transition: border .15s ease, box-shadow .15s ease;
  resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(191,155,90,.18);
}
.field select:invalid { color: #9aa0ac; }
.lead-form button { margin-top: .3rem; }
.lead-form__status { font-size: .88rem; text-align: center; min-height: 1.1em; }
.lead-form__status.ok { color: #1a7f4b; font-weight: 500; }
.lead-form__status.err { color: #c0392b; font-weight: 500; }
.lead-form__fine { font-size: .76rem; color: var(--muted); text-align: center; }

/* ---------- Trust strip ---------- */
.trust { background: var(--navy); color: #fff; padding: 1rem 0; }
.trust__inner { display: flex; align-items: center; justify-content: center; gap: 2rem; flex-wrap: wrap; }
.trust__inner > span { color: #aeb7cc; font-size: .85rem; }
.trust__logos { display: flex; gap: 2rem; flex-wrap: wrap; }
.trust__logos span { font-weight: 600; letter-spacing: .12em; font-size: .82rem; color: var(--gold-2); opacity: .9; }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section--soft { background: var(--bg-soft); }
.section--navy { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 100%); }

.section__head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.4vw, 2.7rem); }
.section__head p { color: var(--muted); margin-top: .8rem; }
.section__head--light h2 { color: #fff; }
.section__head--light p { color: #b9c2d8; }

/* ---------- Cards / Services ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.7rem;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__icon {
  width: 56px; height: 56px; border-radius: 12px;
  display: grid; place-items: center; font-size: 1.6rem;
  background: var(--gold-soft); margin-bottom: 1.1rem;
}
.card h3 { font-size: 1.45rem; margin-bottom: .5rem; }
.card p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.card__link { color: var(--gold); font-weight: 500; font-size: .9rem; }
.card__link:hover { color: var(--navy); }

/* ---------- Why grid ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.why-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
}
.why-item__num { font-family: var(--serif); font-size: 2.2rem; color: var(--gold); font-weight: 700; margin-bottom: .5rem; }
.why-item h3 { color: #fff; font-size: 1.35rem; margin-bottom: .4rem; }
.why-item p { color: #b9c2d8; font-size: .9rem; }

/* ---------- Steps ---------- */
.steps { display: flex; align-items: stretch; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.step { flex: 1; min-width: 220px; text-align: center; padding: 1.5rem; }
.step__no {
  width: 60px; height: 60px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 1rem;
  font-family: var(--serif); font-size: 1.6rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--navy-2), var(--navy));
  box-shadow: 0 10px 22px rgba(22,34,62,.25);
}
.step h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.step p { color: var(--muted); font-size: .95rem; }
.step__arrow { display: flex; align-items: center; color: var(--gold); font-size: 1.6rem; }

/* ---------- Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.9rem 1.7rem; box-shadow: var(--shadow-sm);
}
.quote__stars { color: var(--gold); letter-spacing: .12em; margin-bottom: .8rem; }
.quote p { color: var(--ink); font-size: 1rem; font-style: italic; margin-bottom: 1.2rem; }
.quote footer { display: flex; flex-direction: column; }
.quote footer strong { color: var(--navy); font-weight: 600; }
.quote footer span { font-size: .84rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(600px 300px at 15% 20%, rgba(191,155,90,.18), transparent 60%),
    linear-gradient(120deg, var(--navy-deep), var(--navy-2));
  color: #fff; padding: 3.5rem 0;
}
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { color: #c3cbde; margin-top: .4rem; }
.cta-band__actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-deep); color: #b6bdcf; padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.2rem; padding-bottom: 2.5rem; }
.footer__logo { height: 48px; background: #fff; padding: 6px 10px; border-radius: 8px; margin-bottom: 1rem; }
.footer__col--brand p { font-size: .9rem; line-height: 1.7; }
.footer__col h4 { color: #fff; font-size: 1.2rem; margin-bottom: 1rem; }
.footer__col a { display: block; color: #b6bdcf; font-size: .9rem; padding: .28rem 0; }
.footer__col a:hover { color: var(--gold-2); }
.footer__col p { font-size: .9rem; margin-bottom: .6rem; }
.footer__social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer__social a {
  width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background .2s ease;
}
.footer__social a:hover { background: var(--gold); color: var(--navy-deep); }

.footer__bottom { border-top: 1px solid rgba(255,255,255,.10); padding: 1.2rem 0; font-size: .82rem; }
.footer__bottom-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer__bottom a:hover { color: var(--gold-2); }

/* ---------- Floating button ---------- */
.fab {
  position: fixed; right: 20px; bottom: 22px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-size: 1.6rem;
  background: #25d366; box-shadow: 0 10px 26px rgba(0,0,0,.25);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); }
  70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__form { order: -1; max-width: 480px; }
  .cards, .cards--3, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .step__arrow { display: none; }
}

@media (max-width: 760px) {
  .topbar__note { display: none; }
  .topbar__inner { justify-content: center; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(78%, 320px);
    background: #fff; flex-direction: column; align-items: flex-start;
    padding: 5rem 1.8rem; gap: 1.4rem; transform: translateX(100%);
    transition: transform .3s ease; box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav__toggle { display: flex; z-index: 70; }
  .nav.open ~ .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
}

@media (max-width: 560px) {
  .cards, .cards--3, .why-grid, .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 1.4rem; }
  .hero__stats strong { font-size: 1.5rem; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; }
  .topbar__contact { gap: .8rem; font-size: .75rem; }
}
