/* Ace Jurix — Law Chambers of Ramakant Gaur
   Palette A — Midnight Counsel: navy #06101F / cream #F4F0E8 / gold #D4AE5C (deeper + richer)
   Premium legal aesthetic: trust, clarity, restraint */

:root {
  /* Palette A — Midnight Counsel */
  --navy: #06101f;
  --navy-mid: #0c1a2e;
  --navy-light: #143556;
  --charcoal: #2a2f36;
  --charcoal-soft: #3d4450;
  --off-white: #f4f0e8;
  --cream: #ebe4d8;
  --gold: #d4ae5c;
  --gold-dim: #b8923f;
  --gold-muted: rgba(212, 174, 92, 0.22);
  --mist: #e8eef5;
  --text: #1a1e24;
  --text-muted: #5c6470;
  --text-on-dark: #f4f0e8;
  --text-on-dark-muted: #b8c0cc;
  --border: rgba(11, 28, 51, 0.1);
  --border-dark: rgba(244, 240, 232, 0.12);
  --radius: 2px;
  --max: 1120px;
  --nav-h: 72px;
  --font-display: "Cormorant Garamond", "Times New Roman", Georgia, serif;
  --font-body: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 12px 40px rgba(11, 28, 51, 0.1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--off-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

a:hover {
  color: var(--gold-dim);
}

a:focus-visible,
button:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

ul {
  list-style: none;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--navy);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 3.5vw, 2.75rem); }
h3 { font-size: clamp(1.35rem, 2vw, 1.6rem); }

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container--narrow {
  width: min(100% - 2.5rem, 720px);
}

/* —— Skip link —— */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100%;
  z-index: 1000;
  background: var(--gold);
  color: var(--navy);
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

/* —— Header / Nav —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(10, 22, 40, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  gap: 0.1rem;
}

.logo:hover {
  color: inherit;
  opacity: 0.9;
}

.logo__mark {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--off-white);
  letter-spacing: 0.04em;
  line-height: 1;
}

.logo__mark span {
  color: var(--gold);
}

.logo__sub {
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  font-weight: 400;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav__list a {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-on-dark-muted);
}

.nav__list a:hover,
.nav__list a[aria-current="page"] {
  color: var(--gold);
}

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border-dark);
  color: var(--off-white);
  width: 44px;
  height: 44px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.25s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
}

.btn--primary {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}

.btn--primary:hover {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

.btn--outline {
  background: transparent;
  color: var(--off-white);
  border-color: rgba(232, 228, 220, 0.35);
}

.btn--outline:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn--outline-dark {
  background: transparent;
  color: var(--navy);
  border-color: rgba(10, 22, 40, 0.25);
}

.btn--outline-dark:hover {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--off-white);
}

.btn--dark {
  background: var(--navy);
  color: var(--off-white);
  border-color: var(--navy);
}

.btn--dark:hover {
  background: var(--navy-light);
  color: var(--off-white);
  border-color: var(--navy-light);
}

/* —— Hero —— */
.hero {
  position: relative;
  background: var(--navy);
  color: var(--text-on-dark);
  padding: clamp(4rem, 10vw, 7rem) 0 clamp(5rem, 12vw, 8rem);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 40%, rgba(196, 165, 116, 0.04) 100%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(28, 51, 77, 0.8), transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  right: -5%;
  top: 10%;
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  border: 1px solid rgba(196, 165, 116, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--off-white);
  max-width: 16ch;
  margin-bottom: 1.5rem;
}

.hero__lead {
  font-size: clamp(1.1rem, 2vw, 1.25rem);
  color: var(--text-on-dark-muted);
  max-width: 38ch;
  margin-bottom: 0.75rem;
  line-height: 1.65;
}

.hero__mantra {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-style: italic;
  color: var(--gold);
  margin-bottom: 2.5rem;
  letter-spacing: 0.02em;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__meta {
  margin-top: 3.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 640px;
}

.hero__meta dt {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 0.35rem;
}

.hero__meta dd {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--off-white);
  font-weight: 500;
}



/* —— Split hero (portrait half) —— */
.hero--split {
  padding: clamp(3rem, 7vw, 5.5rem) 0;
}

.hero--split::after {
  display: none;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero__copy {
  min-width: 0;
}

.hero--split .hero h1,
.hero--split h1 {
  max-width: 14ch;
}

.hero--split .hero__lead {
  max-width: 42ch;
}

.hero--split .hero__meta {
  max-width: none;
}

.hero__visual {
  margin: 0;
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.hero__visual img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  border: 1px solid rgba(212, 174, 92, 0.35);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.hero__caption {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted, #b8c0cc);
  text-align: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.9fr);
    gap: clamp(2rem, 5vw, 4rem);
    align-items: start; /* portrait top-right, beside headline */
  }

  .hero__visual {
    width: 100%;
    max-width: 440px;
    justify-self: end;
    align-self: start;
    margin-top: 0;
  }

  .hero__visual img {
    object-position: center 12%;
  }

  .hero__caption {
    text-align: right;
  }

  .hero--split .hero__meta {
    margin-top: 2.75rem;
  }

  /* Keep headline block starting at same top as photo */
  .hero__copy {
    padding-top: 0;
  }
}

@media (max-width: 899px) {
  .hero--split .hero__meta {
    grid-template-columns: 1fr;
  }
}

/* —— Sections —— */
.section {
  padding: clamp(4rem, 8vw, 6.5rem) 0;
}

.section--alt {
  background: var(--cream);
}

.section--navy {
  background: var(--navy);
  color: var(--text-on-dark);
}

.section--navy h2,
.section--navy h3 {
  color: var(--off-white);
}

.section__header {
  margin-bottom: 3rem;
  max-width: 36rem;
}

.section__eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 0.75rem;
}

.section--navy .section__eyebrow {
  color: var(--gold);
}

.section__header p {
  margin-top: 1rem;
  color: var(--text-muted);
}

.section--navy .section__header p {
  color: var(--text-on-dark-muted);
}

/* —— Value strip —— */
.value-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow);
}

.value-strip__item {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.value-strip__item:nth-child(2n) {
  border-right: none;
}

.value-strip__item:nth-last-child(-n+2) {
  border-bottom: none;
}

.value-strip__num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--gold-dim);
  line-height: 1;
  margin-bottom: 0.75rem;
}

.value-strip h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.value-strip p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* —— Practice grid —— */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.practice-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.75rem 1.5rem;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.practice-card:hover {
  border-color: rgba(196, 165, 116, 0.45);
  box-shadow: var(--shadow);
}

.practice-card__icon {
  width: 36px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 1.25rem;
}

.practice-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.practice-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.practice-list-full {
  display: grid;
  gap: 1.5rem;
}

.practice-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.practice-row:first-child {
  border-top: 1px solid var(--border);
}

.practice-row h3 {
  font-size: 1.3rem;
}

.practice-row p {
  color: var(--text-muted);
}

/* —— About —— */
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}

.about-panel {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 2.5rem;
  position: relative;
}

.about-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--gold);
}

.about-panel__label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.about-panel h2 {
  color: var(--off-white);
  font-size: 1.85rem;
  margin-bottom: 0.5rem;
}

.about-panel__role {
  font-size: 0.95rem;
  color: var(--text-on-dark-muted);
  margin-bottom: 1.75rem;
}

.about-panel__mantra {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-style: italic;
  color: var(--gold);
  border-top: 1px solid var(--border-dark);
  padding-top: 1.5rem;
  margin-top: 0.5rem;
}

.about-body p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.about-body p:first-of-type {
  color: var(--text);
  font-size: 1.125rem;
}

.forums {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--cream);
  border-left: 3px solid var(--gold);
}

.forums h4 {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}

.forums p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.forums__note {
  font-size: 0.8rem !important;
  margin-top: 0.75rem !important;
  font-style: italic;
}

/* —— CTA band —— */
.cta-band {
  text-align: center;
  padding: clamp(3.5rem, 7vw, 5rem) 0;
}

.cta-band h2 {
  color: var(--off-white);
  margin-bottom: 1rem;
}

.cta-band p {
  color: var(--text-on-dark-muted);
  max-width: 36rem;
  margin: 0 auto 2rem;
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* —— Contact —— */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-block h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.contact-block p,
.contact-block a {
  color: var(--text-muted);
}

.contact-block a {
  text-decoration: none;
  color: var(--navy);
  font-weight: 500;
}

.contact-block a:hover {
  color: var(--gold-dim);
}

.contact-emails {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.contact-emails a {
  word-break: break-all;
}

.contact-card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem;
}

.contact-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.contact-card .field {
  margin-bottom: 1.25rem;
}

.contact-card input,
.contact-card textarea,
.contact-card select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--border);
  background: var(--off-white);
  color: var(--text);
  border-radius: var(--radius);
}

.contact-card input:focus,
.contact-card textarea:focus,
.contact-card select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 0;
  border-color: var(--gold);
}

.contact-card textarea {
  min-height: 140px;
  resize: vertical;
}

.contact-card .form-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.linkedin-links {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.page-hero {
  background: var(--navy);
  color: var(--text-on-dark);
  padding: 3.5rem 0 3rem;
}

.page-hero h1 {
  color: var(--off-white);
  margin-bottom: 0.75rem;
}

.page-hero p {
  color: var(--text-on-dark-muted);
  max-width: 40rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy-mid);
  color: var(--text-on-dark-muted);
  padding: 3.5rem 0 2rem;
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand .logo__mark {
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}

.footer-brand p {
  margin-top: 1rem;
  max-width: 28ch;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  text-decoration: none;
  color: var(--text-on-dark-muted);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid var(--border-dark);
  padding-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-disclaimer {
  font-size: 0.8rem;
  line-height: 1.55;
  max-width: 70ch;
  color: rgba(168, 176, 188, 0.85);
}

.footer-copy {
  font-size: 0.8rem;
}

/* —— Utility —— */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.text-center { text-align: center; }

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero__meta {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .value-strip {
    grid-template-columns: 1fr;
  }

  .value-strip__item {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .value-strip__item:nth-child(2n) {
    border-right: none;
  }

  .value-strip__item:nth-last-child(-n+2) {
    border-bottom: 1px solid var(--border);
  }

  .value-strip__item:last-child {
    border-bottom: none;
  }

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

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .practice-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: var(--navy);
    border-bottom: 1px solid var(--border-dark);
    padding: 1.5rem;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    transform: translateY(-120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease), visibility 0.3s;
  }

  .nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav__list {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .nav .btn {
    width: 100%;
  }
}

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


/* Principal portrait */
.about-panel__photo {
  display: block;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: 2px;
  margin: 0 auto 1.25rem;
  border: 1px solid rgba(196, 165, 116, 0.35);
  box-shadow: var(--shadow);
}

@media (min-width: 768px) {
  .about-panel__photo {
    max-width: 100%;
  }
}

/* Social links — informational, not promotional */
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  margin: 0.75rem 0 0;
  padding: 0;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.65rem;
  border: 1px solid var(--border-dark, rgba(244, 240, 232, 0.18));
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: inherit;
  opacity: 0.9;
}
.site-footer .social-links a {
  color: var(--text-on-dark, #f4f0e8);
  border-color: rgba(244, 240, 232, 0.22);
}
.social-links a:hover {
  opacity: 1;
  border-color: var(--gold, #d4ae5c);
  color: var(--gold, #d4ae5c);
}
.footer-col .social-links {
  margin-top: 0.85rem;
}


/* Google Map embed */
.map-embed {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 2px;
  border: 1px solid var(--border, rgba(11, 28, 51, 0.1));
  background: var(--mist, #e8eef5);
  aspect-ratio: 16 / 9;
  max-height: 420px;
}
.map-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.map-embed__note {
  margin-top: 0.85rem;
  font-size: 0.95rem;
}


/* —— Mobile polish —— */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

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

.site-header .container {
  gap: 0.75rem;
}

.logo {
  min-width: 0;
}

.logo__mark {
  white-space: nowrap;
}

.logo__sub {
  display: block;
  max-width: 12rem;
  line-height: 1.25;
}

/* Hero mobile: photo under copy, face-safe crop */
@media (max-width: 899px) {
  .hero--split {
    padding: 2.5rem 0 3rem;
  }

  .hero__grid {
    gap: 1.75rem;
  }

  .hero--split h1 {
    max-width: none;
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  .hero--split .hero__lead {
    max-width: none;
  }

  .hero__actions {
    width: 100%;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
    text-align: center;
    min-height: 44px;
  }

  .hero__visual {
    width: 100%;
    max-width: 320px;
    order: 0;
  }

  .hero__visual img {
    aspect-ratio: 1 / 1;
    object-position: center 18%;
  }

  .hero__caption {
    text-align: center;
  }

  .hero--split .hero__meta {
    grid-template-columns: 1fr;
    margin-top: 1.75rem;
    padding-top: 1.5rem;
  }

  .map-embed {
    aspect-ratio: 4 / 3;
    max-height: none;
  }

  .social-links a {
    min-height: 44px;
    min-width: 44px;
  }

  .contact-block a[href^="tel:"],
  .contact-emails a {
    word-break: break-word;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 1.15rem;
    padding-right: 1.15rem;
  }

  .logo__sub {
    font-size: 0.65rem;
    max-width: 9.5rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }
}
