/* ============================================================
   BGC Legal — style.css
   Palette: deep navy / antique gold / ivory
   ============================================================ */

:root {
  --navy-900: #0a1830;
  --navy-800: #0e1f38;
  --navy-700: #132a4d;
  --navy-600: #1b3a66;
  --gold-500: #c8a558;
  --gold-400: #d8bc7d;
  --gold-600: #a98a41;
  --ivory:    #f7f5f0;
  --white:    #ffffff;
  --ink:      #1c2533;
  --slate:    #55617a;
  --line:     #e3e0d8;

  --font-serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-sans:  "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 10px;
  --shadow-sm: 0 2px 10px rgba(10, 24, 48, 0.07);
  --shadow-md: 0 10px 34px rgba(10, 24, 48, 0.12);
  --container: 1140px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img, svg, iframe { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}

/* Anchored sections clear the sticky header */
section[id] { scroll-margin-top: 84px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 6px 18px rgba(200, 165, 88, 0.35);
}
.btn--gold:hover { background: var(--gold-400); }

.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
}
.btn--ghost:hover { border-color: var(--gold-400); color: var(--gold-400); }

.btn--navy {
  background: var(--navy-800);
  color: var(--white);
}
.btn--navy:hover { background: var(--navy-600); }

.btn--block { width: 100%; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.8rem;
}
.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 26px;
  justify-content: center;
  padding-block: 8px;
}
.topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.topbar__item svg { width: 14px; height: 14px; color: var(--gold-500); flex: none; }
a.topbar__item:hover { color: var(--gold-400); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.header--scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--line);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--navy-800);
  color: var(--gold-500);
  flex: none;
}
.brand__mark svg { width: 22px; height: 22px; }
.brand__text {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--navy-800);
  letter-spacing: 0.01em;
}
.brand__accent { color: var(--gold-600); }

.nav { display: flex; align-items: center; gap: 28px; }
.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-block: 6px;
}
.nav__link::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--gold-500);
  transition: width 0.22s ease;
}
.nav__link:hover::after, .nav__link.active::after { width: 100%; }
.nav__cta { padding: 10px 20px; font-size: 0.88rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--navy-800);
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    linear-gradient(160deg, rgba(10, 24, 48, 0.5), rgba(10, 24, 48, 0.5)),
    var(--navy-800)
    url("https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=70")
    center 30% / cover no-repeat;
  color: var(--white);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(175deg, rgba(10, 24, 48, 0.82) 0%, rgba(14, 31, 56, 0.68) 55%, rgba(10, 24, 48, 0.9) 100%);
}
.hero__content {
  position: relative;
  padding-block: 110px 90px;
  max-width: 860px;
}
.hero__eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-400);
  border: 1px solid rgba(200, 165, 88, 0.4);
  border-radius: 999px;
  padding: 7px 18px;
  margin-bottom: 26px;
}
.hero__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2.2rem, 5.4vw, 3.9rem);
  line-height: 1.12;
  margin-bottom: 22px;
}
.hero__title em {
  font-style: italic;
  color: var(--gold-400);
}
.hero__lead {
  font-size: 1.07rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.85);
  max-width: 620px;
  margin-bottom: 34px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 44px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 28px;
}
.hero__badge { display: flex; flex-direction: column; }
.hero__badge strong {
  font-family: var(--font-serif);
  font-size: 1.12rem;
  color: var(--gold-400);
}
.hero__badge span { font-size: 0.82rem; color: rgba(255, 255, 255, 0.65); }

/* ---------- Sections (shared) ---------- */
.section { padding-block: 90px; }
.section--tinted { background: var(--ivory); }

.section__eyebrow {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.section__title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  color: var(--navy-800);
  line-height: 1.2;
  margin-bottom: 16px;
}
.section__sub { color: var(--slate); max-width: 560px; margin-inline: auto; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 56px; }

/* ---------- About ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 70px;
  align-items: center;
}
.about__media { position: relative; }
.about__photo {
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 31, 56, 0.15), rgba(14, 31, 56, 0.35)),
    var(--navy-700)
    url("https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=900&q=70")
    center / cover no-repeat;
  box-shadow: var(--shadow-md);
}
.about__card {
  position: absolute;
  bottom: -24px;
  right: -18px;
  background: var(--navy-800);
  color: var(--white);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-md);
  border-bottom: 3px solid var(--gold-500);
}
.about__card-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold-400);
}
.about__card-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.75); line-height: 1.45; }

.about__body p { color: var(--slate); margin-bottom: 16px; }
.about__list { margin: 10px 0 30px; }
.about__list li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 12px;
  color: var(--ink);
  font-weight: 500;
  font-size: 0.95rem;
}
.about__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--gold-500);
  -webkit-mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M4 12l5 5L20 7"/></svg>') center / contain no-repeat;
          mask: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="black" stroke-width="3"><path d="M4 12l5 5L20 7"/></svg>') center / contain no-repeat;
}

/* ---------- Practice areas ---------- */
.practice__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}
.pcard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 28px;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.pcard:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.pcard__icon {
  width: 54px; height: 54px;
  border-radius: 12px;
  background: var(--navy-800);
  color: var(--gold-500);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
}
.pcard__icon svg { width: 28px; height: 28px; }
.pcard h3 {
  font-family: var(--font-serif);
  font-size: 1.22rem;
  color: var(--navy-800);
  margin-bottom: 10px;
}
.pcard p { font-size: 0.92rem; color: var(--slate); }

/* ---------- Attorneys ---------- */
.attorneys__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.acard {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.acard:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.acard__photo {
  aspect-ratio: 1 / 1;
  background: var(--ivory);
  position: relative;
  overflow: hidden;
}
.acard__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.acard:hover .acard__photo img { transform: scale(1.03); }
.acard__body { padding: 24px 24px 28px; border-top: 3px solid var(--gold-500); }
.acard__name {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.acard__role {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}
.acard__bio { font-size: 0.9rem; color: var(--slate); }

/* ---------- CTA strip ---------- */
.cta-strip {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding-block: 56px;
}
.cta-strip__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 6px;
}
.cta-strip p { color: rgba(255, 255, 255, 0.7); font-size: 0.95rem; }

/* ---------- Appointment ---------- */
.appointment__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
}
.appointment__intro > p { color: var(--slate); margin-bottom: 26px; }
.appointment__steps { margin-bottom: 30px; }
.appointment__steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  font-weight: 500;
  font-size: 0.95rem;
}
.appointment__steps li span {
  width: 32px; height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--navy-800);
  color: var(--gold-400);
  display: grid;
  place-items: center;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 0.95rem;
}
.appointment__note {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--navy-700);
  font-weight: 500;
  background: rgba(200, 165, 88, 0.14);
  border-left: 3px solid var(--gold-500);
  padding: 12px 16px;
  border-radius: 0 6px 6px 0;
}
.appointment__note svg { width: 18px; height: 18px; flex: none; color: var(--gold-600); }

.form {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
}
.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form__group { margin-bottom: 18px; }
.form__group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy-800);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 0.93rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  outline: none;
  border-color: var(--gold-500);
  box-shadow: 0 0 0 3px rgba(200, 165, 88, 0.18);
}
.form__group textarea { resize: vertical; min-height: 110px; }

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.8rem;
  color: var(--slate);
  cursor: pointer;
}
.checkbox input {
  width: 16px !important;
  height: 16px;
  margin-top: 3px;
  flex: none;
  accent-color: var(--gold-600);
}
.checkbox a {
  color: var(--navy-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--gold-500);
}
.checkbox a:hover { color: var(--gold-600); }

.form__status {
  margin-top: 14px;
  font-size: 0.88rem;
  font-weight: 500;
  text-align: center;
  min-height: 1.2em;
}
.form__status.ok { color: #1c7c43; }
.form__status.err { color: #b3372f; }

/* ---------- Contact ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 44px;
  align-items: stretch;
}
.contact__item {
  display: flex;
  gap: 18px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.contact__item:last-child { border-bottom: none; }
.contact__icon {
  width: 48px; height: 48px;
  flex: none;
  border-radius: 10px;
  background: var(--ivory);
  color: var(--gold-600);
  display: grid;
  place-items: center;
}
.contact__icon svg { width: 24px; height: 24px; }
.contact__item h3 {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  color: var(--navy-800);
  margin-bottom: 4px;
}
.contact__item p { font-size: 0.92rem; color: var(--slate); }
.contact__item a { color: var(--navy-700); font-weight: 600; }
.contact__item a:hover { color: var(--gold-600); }
.muted { color: #98a0b3; font-size: 0.84rem; }

.contact__map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  min-height: 380px;
}
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- Footer ---------- */
.footer {
  background: var(--navy-900);
  color: rgba(255, 255, 255, 0.72);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 44px;
  padding-block: 64px 48px;
}
.brand--footer .brand__text { color: var(--white); }
.brand--footer .brand__mark { background: rgba(255, 255, 255, 0.08); }
.footer__brand p { margin-top: 16px; font-size: 0.9rem; max-width: 320px; }
.footer__col h4 {
  font-family: var(--font-serif);
  color: var(--gold-400);
  font-size: 1.02rem;
  margin-bottom: 16px;
}
.footer__col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: color 0.18s ease;
}
.footer__col a:hover { color: var(--gold-400); }
.footer__col p { font-size: 0.88rem; line-height: 1.7; }

.footer__bottom { border-top: 1px solid rgba(255, 255, 255, 0.1); }
.footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 30px;
  justify-content: space-between;
  padding-block: 20px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.45);
}
/* ---------- Legal / privacy page ---------- */
.legal-hero {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  padding-block: 64px;
}
.legal-hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 10px;
}
.legal-hero__sub { color: rgba(255, 255, 255, 0.65); font-size: 0.9rem; max-width: 640px; }

.legal { max-width: 760px; }
.legal h2 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--navy-800);
  margin: 38px 0 12px;
}
.legal h2:first-child { margin-top: 0; }
.legal p { color: var(--slate); margin-bottom: 14px; }
.legal ul { margin: 0 0 14px 0; padding-left: 22px; list-style: disc; }
.legal li { color: var(--slate); margin-bottom: 8px; }
.legal li::marker { color: var(--gold-600); }
.legal a { color: var(--navy-700); font-weight: 600; border-bottom: 1px solid var(--gold-500); }
.legal a:hover { color: var(--gold-600); }
.legal strong { color: var(--ink); }

.footer__link { color: rgba(255, 255, 255, 0.6); }
.footer__link:hover { color: var(--gold-400); }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 960px) {
  .about__grid,
  .appointment__grid,
  .contact__grid { grid-template-columns: 1fr; }

  .about__grid { gap: 60px; }
  .about__media { max-width: 440px; margin-inline: auto; }
  .about__card { right: 0; }

  .practice__grid { grid-template-columns: repeat(2, 1fr); }
  .attorneys__grid { grid-template-columns: repeat(2, 1fr); }

  .section { padding-block: 70px; }
}

@media (max-width: 720px) {
  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0; right: 0;
    height: 100dvh;
    width: min(78vw, 320px);
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 96px 32px 32px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 90;
    box-shadow: -20px 0 50px rgba(0, 0, 0, 0.3);
  }
  .nav.open { transform: translateX(0); }
  .nav__link {
    color: var(--white);
    font-size: 1.05rem;
    padding-block: 12px;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav__cta { margin-top: 18px; width: 100%; }
  .nav-toggle { display: flex; position: relative; z-index: 95; }
  .nav-toggle[aria-expanded="true"] span { background: var(--white); }

  .topbar__item--hide-sm { display: none; }

  .hero__content { padding-block: 84px 66px; }
  .hero__badges { gap: 18px 28px; }

  .practice__grid,
  .attorneys__grid { grid-template-columns: 1fr; }
  .acard { max-width: 420px; margin-inline: auto; }

  .form { padding: 28px 20px; }
  .form__row { grid-template-columns: 1fr; gap: 0; }

  .cta-strip__inner { text-align: center; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; gap: 34px; padding-block: 48px 36px; }
  .footer__bottom-inner { justify-content: center; text-align: center; }
}

@media (max-width: 400px) {
  .hero__actions .btn { width: 100%; }
  .about__card { padding: 14px 18px; bottom: -18px; }
  .about__card-num { font-size: 1.5rem; }
}

/* nav--simple must stay a plain inline link at every width,
   overriding the mobile drawer styles above */
.nav--simple {
  position: static;
  height: auto;
  width: auto;
  background: none;
  padding: 0;
  transform: none;
  flex-direction: row;
  box-shadow: none;
}
.nav--simple .nav__link {
  color: var(--ink);
  border-bottom: none;
  width: auto;
  font-size: 0.92rem;
  padding-block: 6px;
}
