/* ══════════════════════════════════════════════════════════════
   HARTWELL & PINE LEGAL — Shared Stylesheet
   Melbourne Boutique Law Firm
   ══════════════════════════════════════════════════════════════ */

/* ── 1. Custom Properties ─────────────────────────────────────── */
:root {
  /* Colour */
  --c-navy:      #1B2A4A;
  --c-navy-deep: #0F1B30;
  --c-ivory:     #F5F0E8;
  --c-ivory-2:   #E8DFC9;
  --c-gold:      #C9A84C;
  --c-gold-dark: #A88A36;
  --c-white:     #FFFFFF;
  --c-muted:     rgba(27, 42, 74, 0.52);

  /* Typography */
  --f-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --f-sans:  'DM Sans', system-ui, -apple-system, sans-serif;

  /* Easing */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);

  /* Layout */
  --max-w:      1200px;
  --nav-h:      80px;
}

/* ── 2. Reset & Base ──────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--f-sans);
  background-color: var(--c-ivory);
  color: var(--c-navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; background: none; border: none; font: inherit; color: inherit; }

/* ── 3. Typography ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

p { max-width: 68ch; }

/* ── 4. Layout Utilities ──────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 64px);
}

.section {
  padding-block: clamp(72px, 10vw, 120px);
}

.section--white  { background-color: var(--c-white); }
.section--ivory  { background-color: var(--c-ivory); }
.section--ivory2 { background-color: var(--c-ivory-2); }
.section--navy   { background-color: var(--c-navy); color: var(--c-ivory); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: var(--c-gold);
}

/* ── 5. Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition:
    background-color 240ms var(--ease-out),
    color 240ms var(--ease-out),
    border-color 240ms var(--ease-out),
    transform 160ms var(--ease-out);
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

/* Gold fill */
.btn--gold {
  background-color: var(--c-gold);
  color: var(--c-navy);
  border: 1px solid var(--c-gold);
}
@media (hover: hover) and (pointer: fine) {
  .btn--gold:hover {
    background-color: transparent;
    color: var(--c-gold);
  }
}

/* Outline on dark */
.btn--outline-ivory {
  background-color: transparent;
  color: rgba(245, 240, 232, 0.85);
  border: 1px solid rgba(245, 240, 232, 0.35);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline-ivory:hover {
    background-color: var(--c-ivory);
    color: var(--c-navy);
    border-color: var(--c-ivory);
  }
}

/* Outline on light */
.btn--outline-navy {
  background-color: transparent;
  color: var(--c-navy);
  border: 1px solid rgba(27, 42, 74, 0.3);
}
@media (hover: hover) and (pointer: fine) {
  .btn--outline-navy:hover {
    background-color: var(--c-navy);
    color: var(--c-ivory);
    border-color: var(--c-navy);
  }
}

/* ── 6. Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  padding-inline: clamp(24px, 5vw, 64px);
  display: flex;
  align-items: center;
  transition:
    background-color 400ms var(--ease-out),
    box-shadow 400ms var(--ease-out);
}

.nav.nav--scrolled,
.nav.nav--opaque {
  background-color: var(--c-ivory);
  box-shadow: 0 1px 0 var(--c-ivory-2);
}

.nav__inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-family: var(--f-serif);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--c-ivory);
  transition: color 400ms var(--ease-out);
  line-height: 1;
  flex-shrink: 0;
}
.nav__logo em {
  font-style: italic;
  color: var(--c-gold);
}
.nav.nav--scrolled .nav__logo,
.nav.nav--opaque .nav__logo {
  color: var(--c-navy);
}

.nav__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__link {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.75);
  transition: color 240ms var(--ease-out);
  position: relative;
  padding-bottom: 2px;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--c-gold);
  transition: width 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--c-gold); }
  .nav__link:hover::after { width: 100%; }
}
.nav.nav--scrolled .nav__link,
.nav.nav--opaque .nav__link {
  color: rgba(27, 42, 74, 0.65);
}
.nav__link.is-active,
.nav.nav--scrolled .nav__link.is-active,
.nav.nav--opaque .nav__link.is-active {
  color: var(--c-gold);
}
.nav__link.is-active::after { width: 100%; }
/* When is-active is on a gold button, keep the navy text readable */
.nav__link.btn--gold.is-active,
.nav.nav--scrolled .nav__link.btn--gold.is-active,
.nav.nav--opaque .nav__link.btn--gold.is-active {
  color: var(--c-navy);
}

.nav__cta-btn {
  margin-left: 8px;
}

/* Hamburger */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  flex-shrink: 0;
}
.nav__toggle span {
  display: block;
  height: 1.5px;
  background: var(--c-ivory);
  transition:
    background 400ms var(--ease-out),
    transform 300ms var(--ease-out),
    opacity 200ms var(--ease-out);
}
.nav.nav--scrolled .nav__toggle span,
.nav.nav--opaque .nav__toggle span {
  background: var(--c-navy);
}
.nav__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ── 7. Homepage Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  height: 100dvh;
  min-height: 620px;
  display: flex;
  align-items: flex-end;
  background-color: var(--c-navy);
  background-image: url('https://images.unsplash.com/photo-1589829545856-d10d557cf95f?auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center 30%;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(27, 42, 74, 0.25) 0%,
    rgba(27, 42, 74, 0.55) 50%,
    rgba(27, 42, 74, 0.88) 100%
  );
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(64px, 9vw, 130px);
  max-width: 860px;
}

/* Entrance animations */
.hero__label,
.hero__headline,
.hero__sub,
.hero__actions {
  opacity: 0;
  transform: translateY(22px);
  animation: heroReveal 900ms var(--ease-out) forwards;
}
.hero__label    { animation-delay: 180ms; }
.hero__headline { animation-delay: 320ms; }
.hero__sub      { animation-delay: 480ms; }
.hero__actions  { animation-delay: 620ms; }

@keyframes heroReveal {
  to { opacity: 1; transform: translateY(0); }
}

.hero__label {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--f-sans);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 24px;
}
.hero__label::before {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: var(--c-gold);
}

.hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(64px, 9.5vw, 118px);
  font-weight: 300;
  line-height: 0.93;
  color: var(--c-ivory);
  margin-bottom: 32px;
  letter-spacing: -0.025em;
}
.hero__headline em {
  font-style: italic;
  color: var(--c-gold);
}

.hero__sub {
  font-size: clamp(15px, 1.4vw, 17px);
  font-weight: 300;
  line-height: 1.8;
  color: rgba(245, 240, 232, 0.72);
  max-width: 54ch;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 44px;
  right: clamp(24px, 5vw, 64px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: heroReveal 900ms var(--ease-out) 900ms forwards;
}
.hero__scroll-label {
  font-size: 9px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(245, 240, 232, 0.4);
  writing-mode: vertical-rl;
}
.hero__scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, rgba(201,168,76,0), rgba(201,168,76,0.6));
  animation: scrollPulse 2.4s ease-in-out 1.8s infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.6; transform: scaleY(1); }
  50%       { opacity: 1;   transform: scaleY(0.6); }
}

/* ── 8. Inner Page Hero ───────────────────────────────────────── */
.page-hero {
  background-color: var(--c-navy);
  padding-top: calc(var(--nav-h) + clamp(52px, 7vw, 96px));
  padding-bottom: clamp(52px, 7vw, 96px);
  position: relative;
  overflow: hidden;
}
/* Subtle texture: diagonal hairlines */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    transparent,
    transparent 40px,
    rgba(201, 168, 76, 0.04) 40px,
    rgba(201, 168, 76, 0.04) 41px
  );
  pointer-events: none;
}
/* Gold rule at bottom-left */
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: clamp(24px, 5vw, 64px);
  width: 56px;
  height: 1px;
  background: var(--c-gold);
}

.page-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 24px;
}
.page-hero__eyebrow::before {
  content: '';
  display: block;
  width: 30px;
  height: 1px;
  background: var(--c-gold);
}

.page-hero__headline {
  font-family: var(--f-serif);
  font-size: clamp(44px, 6.5vw, 78px);
  font-weight: 300;
  color: var(--c-ivory);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 820px;
}
.page-hero__headline em {
  font-style: italic;
  color: var(--c-gold);
}

/* ── 9. Home — Why Section ────────────────────────────────────── */
.why {
  background-color: var(--c-white);
}
.why__inner {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: center;
}
.why__ornament {
  font-family: var(--f-serif);
  font-size: clamp(100px, 14vw, 190px);
  font-weight: 300;
  font-style: italic;
  line-height: 1;
  color: var(--c-ivory-2);
  user-select: none;
  pointer-events: none;
  letter-spacing: -0.04em;
}
.why__rule {
  width: 40px;
  height: 1px;
  background: var(--c-gold);
  margin-bottom: 28px;
}
.why__right h2 {
  font-size: clamp(32px, 4vw, 50px);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.12;
}
.why__right p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--c-muted);
  margin-bottom: 20px;
}
.why__right .btn { margin-top: 12px; }

/* ── 10. Home — Areas Preview ─────────────────────────────────── */
.areas-preview {
  background-color: var(--c-ivory);
}
.areas-preview__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 56px;
}
.areas-preview__header h2 {
  font-size: clamp(32px, 4.5vw, 54px);
  font-weight: 300;
  line-height: 1.08;
  max-width: 480px;
}

.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-ivory-2);
  border: 1px solid var(--c-ivory-2);
}
.area-card {
  background: var(--c-white);
  padding: clamp(28px, 3.5vw, 48px);
  transition: background 280ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .area-card:hover { background: var(--c-ivory); }
}
.area-card__num {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 20px;
}
.area-card__title {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 14px;
}
.area-card__desc {
  font-size: 13.5px;
  line-height: 1.78;
  color: var(--c-muted);
}

/* ── 11. Home — Quote ─────────────────────────────────────────── */
.quote-section {
  background-color: var(--c-navy);
  padding-top: clamp(140px, 18vw, 220px);
  padding-bottom: clamp(80px, 12vw, 160px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.quote-section::before {
  content: '\201C';
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-serif);
  font-size: clamp(220px, 28vw, 360px);
  font-weight: 300;
  font-style: italic;
  color: rgba(201, 168, 76, 0.07);
  line-height: 1;
  user-select: none;
  pointer-events: none;
}
.quote-section blockquote {
  position: relative;
  z-index: 1;
}
.quote-section blockquote p {
  font-family: var(--f-serif);
  font-size: clamp(22px, 3vw, 38px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  color: var(--c-ivory);
  max-width: 780px;
  margin-inline: auto;
  margin-bottom: 36px;
}
.quote-section blockquote cite {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-gold);
  font-style: normal;
}

/* ── 12. CTA Strip ────────────────────────────────────────────── */
.cta-strip {
  background-color: var(--c-ivory-2);
  padding-block: clamp(60px, 8vw, 100px);
  text-align: center;
}
.cta-strip h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.1;
}
.cta-strip p {
  color: var(--c-muted);
  font-size: 15px;
  margin-bottom: 40px;
  margin-inline: auto;
}

/* ── 13. About Page ───────────────────────────────────────────── */
.about-body {
  background-color: var(--c-white);
}
.about-body__inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: clamp(40px, 7vw, 110px);
  align-items: start;
}
.about-body__aside {
  position: sticky;
  top: calc(var(--nav-h) + 48px);
}
.about-body__aside-year {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 16px;
}
.about-body__aside h3 {
  font-family: var(--f-serif);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 300;
  line-height: 1.2;
  margin-bottom: 28px;
}
.about-body__aside-rule {
  width: 40px;
  height: 1px;
  background: var(--c-gold);
}
.about-body__text p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.9;
  color: var(--c-muted);
  margin-bottom: 28px;
}
.about-body__text p:first-child {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-style: italic;
  font-weight: 300;
  color: var(--c-navy);
  line-height: 1.6;
}

/* Values grid */
.about-values {
  background-color: var(--c-navy);
}
.about-values__intro {
  margin-bottom: 56px;
}
.about-values__intro h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  color: var(--c-ivory);
  margin-top: 8px;
  line-height: 1.08;
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(245, 240, 232, 0.08);
  border: 1px solid rgba(245, 240, 232, 0.08);
}
.value-card {
  background: var(--c-navy);
  padding: clamp(32px, 4vw, 52px) clamp(28px, 3.5vw, 44px);
}
.value-card__num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 20px;
}
.value-card__title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 400;
  color: var(--c-ivory);
  margin-bottom: 12px;
}
.value-card__text {
  font-size: 13.5px;
  line-height: 1.78;
  color: rgba(245, 240, 232, 0.55);
}

/* ── 14. Practice Areas Page ──────────────────────────────────── */
.practice-intro {
  background-color: var(--c-ivory);
  border-bottom: 1px solid var(--c-ivory-2);
}
.practice-intro p {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.65;
  color: var(--c-muted);
  max-width: 680px;
}

.practices-full {
  background-color: var(--c-ivory);
}
.practices-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 24px;
}
.practice-card {
  grid-column: span 2;
  background: var(--c-white);
  border: 1px solid var(--c-ivory-2);
  overflow: hidden;
  transition: transform 300ms var(--ease-out), box-shadow 300ms var(--ease-out);
}
.practice-card:nth-child(4) { grid-column: 2 / span 2; }
.practice-card:nth-child(5) { grid-column: 4 / span 2; }
@media (hover: hover) and (pointer: fine) {
  .practice-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 48px rgba(27, 42, 74, 0.1);
  }
}
.practice-card__img {
  width: 100%;
  height: 200px;
  overflow: hidden;
}
.practice-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .practice-card:hover .practice-card__img img { transform: scale(1.06); }
}
.practice-card__body {
  padding: 28px 26px 32px;
}
.practice-card__num {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--c-gold);
  margin-bottom: 12px;
}
.practice-card__title {
  font-family: var(--f-serif);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
  color: var(--c-navy);
}
.practice-card__desc {
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--c-muted);
}

/* ── 15. Contact Page ─────────────────────────────────────────── */
.contact-main {
  background-color: var(--c-white);
}
.contact-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: clamp(48px, 8vw, 128px);
  align-items: start;
}
.contact-form__heading {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  line-height: 1.12;
  margin-bottom: 44px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.form-group {
  margin-bottom: 32px;
}
.form-group label {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 10px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--c-ivory-2);
  padding: 10px 0;
  font-family: var(--f-sans);
  font-size: 15px;
  color: var(--c-navy);
  outline: none;
  transition: border-color 200ms var(--ease-out);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-bottom-color: var(--c-gold);
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
  line-height: 1.6;
  margin-top: 2px;
}
.form-group select {
  cursor: pointer;
  color: var(--c-navy);
  -webkit-text-fill-color: var(--c-navy);
}
.form-group select option {
  color: var(--c-navy);
  background-color: var(--c-white);
  -webkit-text-fill-color: var(--c-navy);
}
.form-group select option[disabled] {
  color: rgba(27, 42, 74, 0.35);
  -webkit-text-fill-color: rgba(27, 42, 74, 0.35);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(27,42,74,0.3);
}

.form-note {
  font-size: 12px;
  color: var(--c-muted);
  margin-top: -16px;
  margin-bottom: 36px;
  line-height: 1.6;
}

/* Contact info sidebar */
.contact-info__block {
  margin-bottom: 36px;
}
.contact-info__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 10px;
}
.contact-info__value {
  font-family: var(--f-serif);
  font-size: 18px;
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-navy);
}
.contact-info__value a {
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-info__value a:hover { color: var(--c-gold); }
}

.contact-rule {
  width: 40px;
  height: 1px;
  background: var(--c-gold);
  margin-block: 40px;
}

.contact-note {
  font-size: 13px;
  line-height: 1.7;
  color: var(--c-muted);
  max-width: 34ch;
}

/* ── 16. Footer ───────────────────────────────────────────────── */
.footer {
  background-color: var(--c-navy-deep);
  color: rgba(245, 240, 232, 0.65);
  padding-block: clamp(60px, 8vw, 100px) 44px;
  border-top: 1px solid var(--c-gold);
}
.footer__main {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  gap: clamp(40px, 6vw, 80px);
  margin-bottom: 64px;
}
.footer__logo {
  font-family: var(--f-serif);
  font-size: 21px;
  font-weight: 400;
  color: var(--c-ivory);
  margin-bottom: 14px;
  letter-spacing: 0.03em;
  line-height: 1;
}
.footer__logo em { font-style: italic; color: var(--c-gold); }
.footer__tagline {
  font-size: 13px;
  line-height: 1.75;
  color: rgba(245, 240, 232, 0.42);
  max-width: 280px;
  margin-bottom: 28px;
}
.footer__col h4 {
  font-family: var(--f-sans);
  font-size: 9.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 20px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul a {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.55);
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .footer__col ul a:hover { color: var(--c-ivory); }
}
.footer__contact-item {
  font-size: 13px;
  color: rgba(245, 240, 232, 0.55);
  margin-bottom: 8px;
  line-height: 1.6;
}
.footer__bottom {
  border-top: 1px solid rgba(245, 240, 232, 0.08);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}
.footer__copy {
  font-size: 11.5px;
  color: rgba(245, 240, 232, 0.3);
}
.footer__disclaimer {
  font-size: 11px;
  color: rgba(245, 240, 232, 0.22);
  text-align: right;
  max-width: 420px;
  line-height: 1.6;
}

/* ── 17. Scroll Animations ────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 680ms var(--ease-out),
    transform 680ms var(--ease-out);
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.fade-in-d1 { transition-delay: 80ms; }
.fade-in-d2 { transition-delay: 160ms; }
.fade-in-d3 { transition-delay: 240ms; }
.fade-in-d4 { transition-delay: 320ms; }

/* ── 18. Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .why__inner { grid-template-columns: 1fr; }
  .why__ornament { display: none; }
  .about-body__inner { grid-template-columns: 1fr; }
  .about-body__aside { position: static; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .footer__main { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  /* Mobile nav overlay */
  .nav__menu {
    position: fixed;
    inset: 0;
    top: var(--nav-h);
    background-color: var(--c-navy);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    transform: translateX(100%);
    transition: transform 400ms var(--ease-out);
    z-index: 99;
  }
  .nav__menu.is-open { transform: translateX(0); }
  .nav__link {
    font-size: 13px !important;
    color: rgba(245,240,232,0.8) !important;
  }
  .nav__link.is-active { color: var(--c-gold) !important; }
  .nav__cta-btn { display: none; }
  .nav__toggle { display: flex; }

  .areas-grid { grid-template-columns: 1fr; }
  .areas-preview__header { flex-direction: column; align-items: flex-start; gap: 24px; }
  .practices-grid { gap: 16px; }

  .practices-grid { grid-template-columns: 1fr; }
  .practice-card,
  .practice-card:nth-child(4),
  .practice-card:nth-child(5) { grid-column: 1 / -1; }

  .values-grid { grid-template-columns: 1fr; }

  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }

  .footer__main { grid-template-columns: 1fr; gap: 40px; }
  .footer__bottom { flex-direction: column; }
  .footer__disclaimer { text-align: left; max-width: none; }
}

/* ── 19. Reduced Motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; }
  .hero__label, .hero__headline, .hero__sub,
  .hero__actions { opacity: 1; transform: none; }
}

/* ── 20. Image Layouts ────────────────────────────────────────── */

/* Full-bleed split: image one side, content other */
.why-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: clamp(480px, 60vw, 680px);
  background: var(--c-white);
}
.why-split__img {
  position: relative;
  overflow: hidden;
}
.why-split__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 800ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .why-split:hover .why-split__img img { transform: scale(1.04); }
}
.why-split__content {
  padding: clamp(56px, 7vw, 96px) clamp(40px, 6vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--c-white);
}
.why-split__content h2 {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 300;
  margin-bottom: 28px;
  line-height: 1.1;
}
.why-split__content p {
  font-size: 15.5px;
  line-height: 1.85;
  color: var(--c-muted);
  margin-bottom: 20px;
}
.why-split__rule {
  width: 40px;
  height: 1px;
  background: var(--c-gold);
  margin-bottom: 28px;
}
.why-split__content .btn { margin-top: 16px; }

/* Image strip — full width atmospheric */
.img-strip {
  position: relative;
  height: clamp(240px, 32vw, 460px);
  overflow: hidden;
}
.img-strip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.img-strip__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(27, 42, 74, 0.5) 0%,
    rgba(27, 42, 74, 0.15) 55%,
    rgba(27, 42, 74, 0.05) 100%
  );
}
.img-strip__caption {
  position: absolute;
  bottom: clamp(24px, 4vw, 48px);
  left: clamp(24px, 5vw, 64px);
  z-index: 1;
  max-width: 520px;
}
.img-strip__caption p {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2.5vw, 28px);
  font-weight: 300;
  font-style: italic;
  color: var(--c-ivory);
  line-height: 1.4;
  max-width: none;
}

/* Area card — image at top */
.area-card__img {
  height: 190px;
  overflow: hidden;
  margin: calc(-1 * clamp(28px, 3.5vw, 48px));
  margin-bottom: 28px;
}
.area-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 600ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .area-card:hover .area-card__img img { transform: scale(1.06); }
}

/* Practice item — inline image */
.practice-item__img {
  margin-top: 24px;
  height: 170px;
  overflow: hidden;
  border-radius: 1px;
}
.practice-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .practice-item:hover .practice-item__img img { transform: scale(1.05); }
}

/* Full-width page image block */
.page-img-block {
  height: clamp(280px, 36vw, 500px);
  overflow: hidden;
  position: relative;
}
.page-img-block img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  display: block;
}
.page-img-block__tint {
  position: absolute;
  inset: 0;
  background: rgba(27, 42, 74, 0.12);
}

/* ── 21. Modal ────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15, 27, 48, 0.84);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(16px, 4vw, 40px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 300ms var(--ease-out);
}
.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}
.modal-card {
  background: var(--c-ivory);
  width: 100%;
  max-width: 640px;
  max-height: 90dvh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.95) translateY(18px);
  transition: transform 320ms var(--ease-out);
  scrollbar-width: thin;
  scrollbar-color: var(--c-gold) var(--c-ivory-2);
}
.modal-card::-webkit-scrollbar { width: 4px; }
.modal-card::-webkit-scrollbar-track { background: var(--c-ivory-2); }
.modal-card::-webkit-scrollbar-thumb { background: var(--c-gold); }
.modal-overlay.is-open .modal-card {
  transform: scale(1) translateY(0);
}
.modal-head {
  background: var(--c-navy);
  padding: 32px 44px 28px;
  position: relative;
}
.modal-head__eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 8px;
}
.modal-head__title {
  font-family: var(--f-serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 300;
  color: var(--c-ivory);
  line-height: 1.1;
}
.modal-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(245, 240, 232, 0.5);
  font-size: 26px;
  line-height: 1;
  transition: color 180ms var(--ease-out), transform 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .modal-close:hover { color: var(--c-ivory); transform: rotate(90deg); }
}
.modal-close:active { transform: scale(0.88); }

.modal-body { padding: 36px 44px 48px; }

.modal-success {
  display: none;
  text-align: center;
  padding: clamp(48px, 6vw, 80px) 44px;
}
.modal-success__icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--c-gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  font-size: 28px;
  color: var(--c-navy);
  font-weight: 700;
}
.modal-success__title {
  font-family: var(--f-serif);
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.1;
}
.modal-success__sub {
  font-size: 15px;
  line-height: 1.75;
  color: var(--c-muted);
  max-width: 38ch;
  margin-inline: auto;
}

/* ── 22. Contact Hub (redesigned contact page) ────────────────── */
.contact-hub {
  background: var(--c-white);
}
.contact-hub__intro {
  max-width: 680px;
  margin-bottom: clamp(52px, 7vw, 80px);
}
.contact-hub__intro p {
  font-family: var(--f-serif);
  font-size: clamp(18px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.6;
  color: var(--c-muted);
}
.contact-hub__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-ivory-2);
  border: 1px solid var(--c-ivory-2);
  margin-bottom: clamp(56px, 8vw, 96px);
}
.contact-hub__item {
  background: var(--c-white);
  padding: clamp(32px, 4vw, 52px);
}
.contact-hub__item--cta {
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-hub__label {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-gold);
  margin-bottom: 10px;
}
.contact-hub__value {
  font-family: var(--f-serif);
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.55;
  color: var(--c-navy);
}
.contact-hub__value a {
  transition: color 200ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .contact-hub__value a:hover { color: var(--c-gold); }
}
.contact-hub__item--cta .contact-hub__label { color: var(--c-gold); }
.contact-hub__cta-title {
  font-family: var(--f-serif);
  font-size: clamp(22px, 2.5vw, 30px);
  font-weight: 300;
  color: var(--c-ivory);
  line-height: 1.2;
  flex-grow: 1;
}
.contact-hub__hours {
  border-top: 1px solid var(--c-ivory-2);
  padding-top: clamp(28px, 3vw, 40px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.contact-hub__hours-item { }

/* ── Responsive additions ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .why-split { grid-template-columns: 1fr; min-height: auto; }
  .why-split__img { height: 360px; }
  .contact-hub__grid { grid-template-columns: 1fr 1fr; }
  .modal-head { padding: 28px 28px 24px; }
  .modal-body { padding: 28px 28px 40px; }
  .modal-success { padding: 48px 28px; }
}

@media (max-width: 768px) {
  .areas-grid { grid-template-columns: 1fr; }
  .practice-item__img { height: 140px; }
  .contact-hub__grid { grid-template-columns: 1fr; }
  .contact-hub__hours { grid-template-columns: 1fr; }
  .modal-head { padding: 24px 20px 20px; }
  .modal-body { padding: 24px 20px 36px; }
  .modal-success { padding: 40px 20px; }
  .modal-close { top: 16px; right: 14px; }
}
