/* ============================================================
   Halloran & West — boutique law firm
   Deep navy, warm cream ink, brass accent, Fraunces serif.
   Restrained and trustworthy. Photo placeholders mark exactly
   where firm/headshot photography goes.
   ============================================================ */

:root {
  --bg:       #0c1622;
  --bg-soft:  #0f1c2c;
  --panel:    #122031;
  --panel-2:  #16273b;
  --line:     rgba(201, 168, 106, 0.16);
  --line-soft:rgba(231, 224, 210, 0.10);

  --text:     #f3efe6;
  --muted:    #b8b3a6;
  --muted-2:  #837f74;

  --brass:    #c9a86a;
  --brass-2:  #e0c489;
  --brass-ink:#1a1206;

  --radius:    6px;
  --radius-sm: 4px;
  --maxw:      1140px;

  --ease:      cubic-bezier(0.16, 1, 0.3, 1);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --body:  "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(55% 45% at 80% -8%, rgba(201,168,106,0.10), transparent 60%),
    radial-gradient(50% 40% at 8% 4%, rgba(201,168,106,0.05), transparent 55%),
    var(--bg);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; }
::selection { background: rgba(201,168,106,0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 3px; }

.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--brass); color: var(--brass-ink); padding: 10px 16px; border-radius: 4px; font-weight: 600; transition: top .2s var(--ease); }
.skip-link:focus { top: 12px; }

/* ---------------- buttons ---------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--body); font-weight: 600; font-size: 0.92rem; letter-spacing: 0.01em; padding: 12px 24px; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), color .25s var(--ease); }
.btn--lg { padding: 14px 30px; font-size: 0.98rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--brass); color: var(--brass-ink); }
.btn--primary:hover { transform: translateY(-2px); background: var(--brass-2); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brass); color: var(--brass); }

/* ---------------- nav ---------------- */
.nav { position: sticky; top: 0; z-index: 100; backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); background: rgba(12,22,34,0.6); border-bottom: 1px solid transparent; transition: background .3s var(--ease), border-color .3s var(--ease); }
.nav.is-scrolled { background: rgba(12,22,34,0.92); border-bottom-color: var(--line); }
.nav__inner { max-width: var(--maxw); margin: 0 auto; padding: 16px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; flex-direction: column; line-height: 1; margin-right: auto; }
.brand__name { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; letter-spacing: 0.01em; color: #fff; }
.brand__amp { color: var(--brass); font-style: italic; }
.brand__sub { font-family: var(--body); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.3em; text-transform: uppercase; color: var(--muted-2); margin-top: 5px; }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: var(--muted); font-size: 0.9rem; font-weight: 500; position: relative; transition: color .25s var(--ease); }
.nav__links a::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 100%; height: 1px; background: var(--brass); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav__links a:hover { color: #fff; }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 18px; }
.phone { font-size: 0.92rem; font-weight: 600; color: var(--text); white-space: nowrap; }
.phone:hover { color: var(--brass); }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav__toggle span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--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); }
.nav__mobile { display: none; flex-direction: column; padding: 6px 24px 22px; border-bottom: 1px solid var(--line); background: rgba(12,22,34,0.97); }
.nav__mobile a { padding: 13px 4px; color: var(--muted); font-size: 1rem; border-bottom: 1px solid var(--line-soft); }
.nav__mobile a:last-child { border-bottom: 0; }
.nav__mobile-cta { margin-top: 14px; color: var(--brass-ink); }
.nav__mobile.is-open { display: flex; }

/* ---------------- layout ---------------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 104px 24px; position: relative; }
.section__head { max-width: 680px; margin: 0 0 54px; }
.section__title { font-size: clamp(1.9rem, 4.2vw, 2.9rem); margin-bottom: 16px; }
.section__lead { color: var(--muted); font-size: 1.1rem; max-width: 58ch; }
.kicker { display: inline-block; font-family: var(--body); font-size: 0.74rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--brass); margin-bottom: 16px; }

/* ---------------- hero ---------------- */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 84px 24px 92px; }
.hero__grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.eyebrow { display: inline-block; font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; color: var(--brass); padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.hero__title { font-size: clamp(2.7rem, 6.5vw, 4.4rem); font-weight: 400; letter-spacing: -0.02em; margin-bottom: 24px; }
.hero__sub { color: var(--muted); font-size: 1.18rem; max-width: 520px; margin-bottom: 32px; }
.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero__assurance { color: var(--muted-2); font-size: 0.88rem; }

/* code-drawn seal */
.seal { position: relative; aspect-ratio: 1; max-width: 360px; margin-inline: auto; display: grid; place-items: center; color: var(--brass); }
.seal__ring { position: absolute; inset: 0; width: 100%; height: 100%; filter: drop-shadow(0 0 18px rgba(201,168,106,0.25)); animation: sealIn 1.4s var(--ease) both; }
.seal__scales { animation: sealFade 1.6s var(--ease) .4s both; }
.seal__mono { font-family: var(--serif); font-weight: 500; font-size: 2.6rem; color: var(--text); letter-spacing: 0.02em; transform: translateY(34px); }
.seal__est { position: absolute; bottom: 16%; font-family: var(--body); font-size: 0.66rem; letter-spacing: 0.4em; color: var(--brass); }
@keyframes sealIn { from { opacity: 0; transform: scale(0.92) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes sealFade { from { opacity: 0; } to { opacity: 1; } }

/* ---------------- practice cards ---------------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.card { background: var(--bg); padding: 34px 30px; transition: background .35s var(--ease); }
.card:hover { background: var(--panel); }
.card__num { font-family: var(--serif); font-size: 0.95rem; color: var(--brass); letter-spacing: 0.1em; }
.card__title { font-size: 1.34rem; margin: 12px 0 10px; }
.card__body { color: var(--muted); font-size: 0.97rem; }

/* ---------------- approach ---------------- */
.approach { background: var(--bg-soft); max-width: none; border-block: 1px solid var(--line-soft); }
.approach__grid { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 54px; }
.approach__list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 36px; }
.approach__list h3 { font-size: 1.18rem; margin-bottom: 8px; }
.approach__list h3::before { content: ""; display: block; width: 30px; height: 2px; background: var(--brass); margin-bottom: 14px; }
.approach__list p { color: var(--muted); font-size: 0.96rem; }

/* ---------------- the firm / people ---------------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.person { display: flex; flex-direction: column; }
.person figcaption { margin-top: 16px; }
.person figcaption strong { display: block; font-family: var(--serif); font-weight: 500; font-size: 1.16rem; }
.person figcaption span { color: var(--muted); font-size: 0.86rem; }

/* ---------------- placeholders ---------------- */
.ph { position: relative; aspect-ratio: 1; display: grid; place-items: center; align-content: center; text-align: center; gap: 10px; padding: 22px; border: 1.5px dashed var(--line); border-radius: var(--radius); background: repeating-linear-gradient(45deg, rgba(231,224,210,0.03) 0 14px, transparent 14px 28px), var(--panel); color: var(--muted); overflow: hidden; }
.ph::before { content: ""; width: 36px; height: 36px; border-radius: 50%; background: rgba(201,168,106,0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c9a86a' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='9' r='3.4'/%3E%3Cpath d='M5 20a7 7 0 0 1 14 0'/%3E%3C/svg%3E") center / 20px no-repeat; border: 1px solid rgba(201,168,106,0.3); }
.ph__tag { font-size: 0.66rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--brass); }
.ph__desc { font-size: 0.82rem; line-height: 1.5; max-width: 28ch; color: var(--muted); }

/* real photography frames */
.shot { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); filter: saturate(0.96); }
.shot:hover img { transform: scale(1.04); }
.person__photo { aspect-ratio: 1; }

/* ---------------- results ---------------- */
.results { background: var(--bg-soft); border-block: 1px solid var(--line-soft); }
.results__grid { max-width: var(--maxw); margin: 0 auto; padding: 64px 24px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.result__num { font-family: var(--serif); font-weight: 500; font-size: clamp(2.3rem, 5vw, 3.3rem); color: var(--brass); line-height: 1; margin-bottom: 10px; }
.result__label { color: var(--muted); font-size: 0.92rem; }

/* ---------------- testimonial ---------------- */
.quote-sec { text-align: center; }
.bigquote blockquote { font-family: var(--serif); font-weight: 400; font-style: italic; font-size: clamp(1.5rem, 3.4vw, 2.3rem); line-height: 1.4; max-width: 26ch; margin: 0 auto 22px; text-wrap: balance; }
.bigquote blockquote::before { content: "“"; color: var(--brass); }
.bigquote blockquote::after { content: "”"; color: var(--brass); }
.bigquote figcaption { color: var(--muted); font-size: 0.96rem; }
.bigquote strong { color: var(--text); }

/* ---------------- consultation ---------------- */
.consultbox { display: grid; grid-template-columns: 1fr 1.05fr; gap: 48px; align-items: start; padding: 52px; border: 1px solid var(--line); border-radius: var(--radius); background: radial-gradient(80% 120% at 0% 0%, rgba(201,168,106,0.1), transparent 60%), var(--panel); }
.consultbox__title { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 14px; }
.consultbox__sub { color: var(--muted); font-size: 1.04rem; }
.consultform { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.76rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.field input, .field textarea, .field select { font-family: var(--body); font-size: 0.96rem; color: var(--text); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brass); }
.consultform .btn { grid-column: 1 / -1; }
.consultform__fine { grid-column: 1 / -1; color: var(--muted-2); font-size: 0.78rem; }

/* ---------------- footer ---------------- */
.footer { border-top: 1px solid var(--line); background: var(--bg-soft); padding: 64px 24px 34px; }
.footer__top { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-soft); }
.footer__brand .brand__name { font-size: 1.5rem; color: #fff; }
.footer__tag { color: var(--muted); font-size: 0.94rem; margin-top: 14px; max-width: 280px; }
.footer__col { display: flex; flex-direction: column; }
.footer__col h4 { font-family: var(--body); font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.footer__col a, .footer__col span { color: var(--muted); font-size: 0.93rem; padding: 5px 0; transition: color .25s var(--ease); }
.footer__col a:hover { color: var(--brass); }
.footer__bottom { max-width: var(--maxw); margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 0.8rem; }
.footer__legal { display: flex; gap: 22px; }
.footer__legal a:hover { color: var(--brass); }

/* ---------------- reveal ---------------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------------- responsive ---------------- */
@media (max-width: 940px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .seal { max-width: 280px; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .approach__grid { grid-template-columns: 1fr; gap: 36px; }
  .people { grid-template-columns: repeat(2, 1fr); }
  .results__grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .consultbox { grid-template-columns: 1fr; padding: 40px 30px; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .nav__links, .phone { display: none; }
  .nav__toggle { display: flex; }
  .section { padding: 80px 24px; }
}
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .approach__list { grid-template-columns: 1fr; }
  .people { grid-template-columns: 1fr 1fr; }
  .results__grid { grid-template-columns: 1fr 1fr; }
  .consultform { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 380px) {
  .nav__inner { gap: 12px; padding: 12px 16px; }
  .section, .hero { padding-left: 16px; padding-right: 16px; }
}

/* ---------------- reduced motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .seal__ring, .seal__scales { animation: none; }
}
