/*
Theme Name: Kumar Kaustubh Advocate
Theme URI: https://sites.google.com/view/kumarkaustubhadv/home
Author: Built for Adv. Kumar Kaustubh
Description: A custom theme for Advocate Kumar Kaustubh, High Court of Himachal Pradesh & all subordinate courts. Palette and typography drawn from Shimla's surveyed ridgelines, deodar forests, and court-seal brass.
Version: 1.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kaustubh
*/

/* ---------------------------------------------------
   0. TOKENS
--------------------------------------------------- */
:root {
  --stone: #ede7d9;
  --stone-dark: #e1d9c6;
  --paper: #f7f4ec;
  --ink: #1e2621;
  --ink-soft: #33403a;
  --pine: #2c4a3b;
  --pine-dark: #172620;
  --brass: #9c6b2e;
  --brass-light: #c79a4b;
  --mist: #7c877d;
  --line: rgba(30, 38, 33, 0.14);
  --white: #ffffff;

  --font-display: "Fraunces", "Iowan Old Style", serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 3px;
  --container: 1180px;
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

@media (prefers-color-scheme: dark) {
}

/* ---------------------------------------------------
   1. RESET & BASE
--------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
body {
  margin: 0;
  background: var(--stone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* new */
}

.brand img {
  height: 50px;
  width: auto;
  display: block;
}
img {
  max-width: 100%;
  display: block;
}
a {
  color: inherit;
  text-decoration: none;
}
ul {
  margin: 0;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.01em;
}
p {
  margin: 0 0 1em;
}
button {
  font-family: inherit;
  cursor: pointer;
}
:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 3px;
}

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brass);
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-bottom: 0.9em;
}
.eyebrow::before {
  content: "§";
  font-size: 1.1em;
}
.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0;
}
.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-top: 0.85rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.6em;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.btn-brass {
  background: var(--brass);
  color: var(--white);
}
.btn-brass:hover {
  background: var(--brass-light);
  transform: translateY(-1px);
}
.btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}
.btn-outline-dark {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-outline-dark:hover {
  background: var(--ink);
  color: var(--white);
}
/* ---------------------------------------------------
   2. HEADER
--------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200; /* was 50 — now higher than .nav-overlay (100), so the whole
                   header, including the fixed nav inside it, paints above it */
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  /* the old background + backdrop-filter now live here instead of on
     .site-header directly, so .site-header no longer creates a containing
     block for its position:fixed descendants (#main-nav) */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(237, 231, 217, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  pointer-events: none;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.95rem 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0; /* allow shrinking inside .header-inner */
}
.seal {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass);
  font-size: 1.05rem;
  flex-shrink: 0;
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.08rem;
  line-height: 1.15;
  min-width: 0; /* required for text-overflow:ellipsis to actually apply in a flex row */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand-text small {
  display: block;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.63rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 2px;
}

.main-nav ul {
  display: flex;
  gap: 2.1rem;
  align-items: center;
}
.main-nav a {
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 0.3em 0;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1.5px;
  background: var(--brass);
  transition: width 0.25s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  width: 100%;
}
.nav-cta {
  margin-left: 0.5rem;
}
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 102;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
  transition: 0.25s;
}
.nav-toggle.is-active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle.is-active span:nth-child(2) {
  opacity: 0;
}
.nav-toggle.is-active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
  display: none;
}

@media (max-width: 860px) {
  .header-inner {
    flex-wrap: nowrap;
  }
  .brand {
    min-width: 0;
  }
  .brand-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    left: auto;
    bottom: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: var(--paper);
    transform: translateX(100%);
    transition: transform 0.3s ease;
    padding: 6.5rem 2rem 2rem;
    overflow-y: auto;
    box-shadow: -8px 0 30px rgba(0, 0, 0, 0.15);
    z-index: 101;
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .main-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.6rem;
    width: 100%;
  }
  .main-nav a {
    font-size: 1.2rem;
  }
  .nav-toggle {
    display: block;
  }

  .nav-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(23, 38, 32, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 100;
  }
  .nav-overlay.is-visible {
    opacity: 1;
    visibility: visible;
  }
}

body.nav-open {
  overflow: hidden;
}
/* ---------------------------------------------------
   3. HERO
--------------------------------------------------- */
.hero {
  position: relative;
  background: var(--pine-dark);
  color: var(--paper);
  overflow: hidden;
}
.hero .contours {
  position: absolute;
  inset: 0;
  color: var(--brass-light);
  opacity: 0.18;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: end;
}
.hero-inner2 {
  position: relative;
  z-index: 2;
  padding-top: clamp(4rem, 10vw, 7.5rem);
  padding-bottom: clamp(3rem, 8vw, 5rem);
  gap: 3rem;
  align-items: end;
}
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.3rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  color: var(--white);
}
.hero h1 em {
  font-style: italic;
  color: var(--brass-light);
  font-weight: 500;
}
.hero-role {
  font-size: clamp(0.9rem, 1.2vw, 1.05rem);
  color: var(--stone-dark);
  margin-top: 1.1rem;
  /* max-width: 36ch; */
}
.hero-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 2.2rem;
  flex-wrap: wrap;
}
.hero-portrait {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  aspect-ratio: 4/5;
  background: var(--ink);
}
.hero-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.credential-strip {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--pine);
}
.credential-strip .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  padding: 1.1rem var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  color: var(--stone-dark);
}
.credential-strip b {
  color: var(--brass-light);
  font-weight: 500;
}
.practice-desc {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: #666;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.75rem;
  margin-top: 3rem;
}

.trust-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 18px;
  padding: 2rem;
  transition: 0.3s;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.trust-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.08);
}

.trust-card h3 {
  margin: 0 0 0.8rem;
  font-size: 1.25rem;
  color: #182235;
}

.trust-card p {
  margin: 0;
  color: #5c6470;
  line-height: 1.8;
  font-size: 0.98rem;
}

.google-review-section {
  padding-top: 1rem;
}

.review-card {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  background: #fff;
  border-radius: 22px;
  padding: 3rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.05);
}

.review-logo {
  flex-shrink: 0;
}

.review-logo img {
  width: 90px;
  height: 90px;
}

.review-content {
  flex: 1;
}

.review-label {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: #9b7b39;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.review-content h2 {
  margin: 0 0 1rem;
  font-size: 2rem;
  color: #182235;
}

.review-content p {
  margin-bottom: 2rem;
  line-height: 1.9;
  color: #5d6571;
  max-width: 760px;
}

@media (max-width: 768px) {
  .review-card {
    flex-direction: column;
    text-align: center;
    padding: 2rem;
  }

  .review-content p {
    max-width: 100%;
  }

  .review-logo img {
    width: 70px;
    height: 70px;
  }
}
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-portrait {
    order: -1;
    max-width: 220px;
  }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-portrait {
    order: -1;
    max-width: 220px;
    margin: 0 auto 0.5rem;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}
@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* ---------------------------------------------------
   4. ABOUT / INTRO
--------------------------------------------------- */
/* ---------------------------------------------------
   4. ABOUT / INTRO
--------------------------------------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3.5rem;
  align-items: start;
}
.about-media {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.about-portrait {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius);
  object-fit: cover;
  aspect-ratio: 3/4;
}
.pull-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.35;
  color: var(--pine);
  border-left: 2px solid var(--brass);
  padding-left: 1.4rem;
}
.pull-quote cite {
  display: block;
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mist);
  margin-top: 1rem;
}
.about-body p {
  color: var(--ink-soft);
  font-size: 1.03rem;
}

/* fact grid — balances the portrait + pull-quote on the left */
.about-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem 1.8rem;
  margin: 1.7rem 0;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.fact {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fact-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.6rem;
  color: var(--brass);
  line-height: 1;
}
.fact-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  line-height: 1.35;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}
.chip {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  padding: 0.45em 0.9em;
  border: 1px solid var(--line);
  border-radius: 100px;
  color: var(--ink-soft);
}

.about-more-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 1.7rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--brass);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease;
}
.about-more-link:hover {
  border-bottom-color: var(--brass);
}

@media (max-width: 860px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
  .about-portrait {
    max-width: 100%;
    aspect-ratio: 16/10;
  }
}
@media (max-width: 480px) {
  .about-facts {
    grid-template-columns: 1fr;
  }
}
/* ---------------------------------------------------
   5. PANEL COUNSEL (dossier cards)
--------------------------------------------------- */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.dossier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  position: relative;
}
.dossier .tab {
  position: absolute;
  top: -1px;
  right: 1.6rem;
  background: var(--brass);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3em 0.7em;
  border-radius: 0 0 4px 4px;
}
.dossier h3 {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}
.dossier .sector {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brass);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.9rem;
  display: block;
}
.dossier p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  margin-bottom: 0;
}
@media (max-width: 960px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   6. PRACTICE AREAS ACCORDION
--------------------------------------------------- */
.statute-list {
  border-top: 1px solid var(--line);
}
.statute {
  border-bottom: 1px solid var(--line);
}
.statute-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  width: 100%;
  background: none;
  border: 0;
  padding: 1.15rem 0;
  text-align: left;
  font-family: var(--font-body);
}
.statute-head .idx {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.85rem;
  min-width: 2.6em;
}
.statute-head h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  flex: 1;
}
.statute-head .count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mist);
}
.statute-head .chevron {
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
  transition: transform 0.25s ease;
  margin-left: 0.6rem;
}
.statute[open] .chevron {
  transform: rotate(-135deg);
}
.statute-body {
  padding: 0 0 1.4rem 3.7rem;
}
.item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.5rem 1.5rem;
}
.item-grid li {
  font-size: 0.92rem;
  color: var(--ink-soft);
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--line);
  list-style: none;
}
details > summary {
  cursor: pointer;
  list-style: none;
}
details > summary::-webkit-details-marker {
  display: none;
}

/* ---------------------------------------------------
   7. EDITORIAL (Best Advocate in Shimla)
--------------------------------------------------- */
.editorial {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.5rem);
}
.editorial h2 {
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin-bottom: 1rem;
}
.editorial h3 {
  font-size: 1.2rem;
  margin: 1.8rem 0 0.6rem;
  color: var(--pine);
}
.editorial p {
  color: var(--ink-soft);
}
.editorial ul {
  margin: 0.8rem 0 1.2rem 0;
}
.editorial li {
  list-style: none;
  padding-left: 1.4rem;
  position: relative;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}
.editorial li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1.5px;
  background: var(--brass);
}
.editorial li b {
  color: var(--ink);
}

/* ---------------------------------------------------
   8. VIDEO / EXHIBIT
--------------------------------------------------- */
.exhibit {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.exhibit-frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--ink);
}
.exhibit-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
.exhibit-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
  margin-bottom: 0.7rem;
  display: block;
}
@media (max-width: 860px) {
  .exhibit {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   9. CONTACT / FOOTER
--------------------------------------------------- */
.contact-cta {
  background: var(--pine-dark);
  color: var(--stone);
  position: relative;
  overflow: hidden;
}
.contact-cta .contours {
  position: absolute;
  inset: 0;
  color: var(--brass-light);
  opacity: 0.12;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  padding: clamp(2.5rem, 6vw, 4rem); /* moved out of inline style */
}
.contact-inner h2 {
  color: var(--white);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
}
.contact-inner > div > p {
  color: var(--stone-dark);
  max-width: 44ch;
}
.contact-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  padding: 1.8rem;
}
.contact-row {
  display: flex;
  gap: 0.9rem;
  padding: 0.8rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.contact-row:last-child {
  border-bottom: 0;
}
.contact-row .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--brass-light);
  min-width: 6.5em;
}
.contact-row a,
.contact-row span {
  color: var(--white);
  font-size: 0.95rem;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.35rem 0;
  color: var(--stone-dark);
}
/* fix long values (emails/addresses) forcing horizontal scroll */
.contact-row {
  flex-wrap: wrap;
}
.contact-row a,
.contact-row span:not(.label) {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* prevent iOS auto-zoom on form focus (anything under 16px triggers it) */
.contact-form input,
.contact-form textarea,
.contact-form select {
  font-size: 16px;
}

@media (max-width: 600px) {
  .contact-panel,
  .contact-inner {
    padding: 1.75rem 1.25rem;
    gap: 2rem;
  }
  .contact-card {
    padding: 1.3rem;
  }
  .contact-row {
    gap: 0.5rem 0.9rem;
  }
  .contact-row .label {
    min-width: 100%; /* label sits on its own line, value below it */
  }
}

@media (max-width: 480px) {
  .contact-form button,
  .contact-inner .btn-brass {
    width: 100%;
    justify-content: center;
  }
  .contact-quick-actions {
    flex-direction: column;
  }
  .contact-quick-actions .btn {
    width: 100%;
  }
  .hours-row {
    flex-direction: column;
    gap: 0.15rem;
  }
}

.contact-form {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.8rem;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.8em 1em;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.92rem;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--mist);
}
.contact-form button {
  align-self: start;
}
.form-note {
  font-size: 0.82rem;
  color: var(--brass-light);
  margin-top: 0.5rem;
  background-color: #c79a4b;
}
.site-footer {
  background: var(--ink);
  color: var(--stone-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1fr;
  gap: 2.5rem;
  padding: clamp(3rem, 6vw, 4.5rem) var(--gutter) 3rem;
}

.footer-brand-col .brand {
  margin-bottom: 1rem;
}
.footer-brand-col .brand-text {
  color: var(--stone);
}
.footer-brand-col .brand-text small {
  color: var(--mist);
}
.footer-about {
  color: var(--mist);
  font-size: 0.9rem;
  max-width: 32ch;
  margin: 0;
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}

.footer-links,
.footer-contact,
.footer-hours {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.footer-links li,
.footer-contact li,
.footer-hours li {
  list-style: none;
}
.footer-links a {
  color: var(--stone-dark);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-links a:hover {
  color: var(--brass-light);
}

.footer-contact li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.footer-contact .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mist);
}
.footer-contact a,
.footer-contact span:not(.label) {
  color: var(--stone-dark);
  font-size: 0.92rem;
}
.footer-contact a:hover {
  color: var(--brass-light);
}

.footer-hours li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.87rem;
  color: var(--stone-dark);
}
.footer-cta {
  margin-top: 1.4rem;
  width: fit-content;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  padding: 1.4rem var(--gutter);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--mist);
}
.footer-bottom .tagline {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--stone);
}

@media (max-width: 960px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}
@media (max-width: 860px) {
  .contact-inner {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   10. GENERIC PAGE (fallback)
--------------------------------------------------- */
.page-content {
  padding: 5rem 0;
  max-width: 760px;
}
.page-content h1 {
  font-size: 2.4rem;
  margin-bottom: 1.2rem;
}
.page-content p {
  color: var(--ink-soft);
}

/* reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------------------------------------------------
   11. STATS STRIP (homepage)
--------------------------------------------------- */
.stats-strip {
  background: var(--pine);
  color: var(--stone);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding: 2.2rem var(--gutter);
}
.stat {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  text-align: center;
}
.stat-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--brass-light);
}
.stat-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--stone-dark);
}
@media (max-width: 860px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ---------------------------------------------------
   12. PRACTICE AREA TEASER CARDS (homepage)
--------------------------------------------------- */
.practice-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
}
.practice-teaser-card {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}
.practice-teaser-card:hover {
  transform: translateY(-2px);
  border-color: var(--brass);
}
.practice-teaser-card .idx {
  font-family: var(--font-mono);
  color: var(--brass);
  font-size: 0.8rem;
}
.practice-teaser-card h3 {
  font-family: var(--font-body);
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0.2rem 0;
}
.practice-teaser-card .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist);
}
@media (max-width: 960px) {
  .practice-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .practice-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   13. TESTIMONIALS
--------------------------------------------------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.testimonial-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.9rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.testimonial-card .stars {
  color: var(--brass);
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.testimonial-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.5;
  flex: 1;
}
.testimonial-who {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.testimonial-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  display: block;
}
.testimonial-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.testimonial-who strong {
  display: block;
  font-size: 0.95rem;
}
.testimonial-who span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--mist);
}
@media (max-width: 960px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------------------
   14. BLOG GRID / CARDS
--------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
}
.blog-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.blog-card-media {
  display: block;
  aspect-ratio: 16/10;
  background: var(--pine-dark);
  overflow: hidden;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
.blog-card:hover .blog-card-media img {
  transform: scale(1.04);
}
.blog-card-media-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.4rem;
  color: var(--brass-light);
}
.blog-card-body {
  padding: 1.4rem 1.4rem 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.blog-card-meta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--mist);
  text-transform: uppercase;
}
.blog-card-body h3 {
  font-size: 1.15rem;
}
.blog-card-body h3 a {
  transition: color 0.2s ease;
}
.blog-card-body h3 a:hover {
  color: var(--brass);
}
.blog-card-body p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  margin: 0;
  flex: 1;
}
.blog-card-link {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--brass);
  font-weight: 500;
}
@media (max-width: 960px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

/* Single blog post typography */
.post-content {
  color: var(--ink-soft);
  font-size: 1.05rem;
}
.post-content h2,
.post-content h3 {
  color: var(--ink);
  margin: 2rem 0 0.8rem;
}
.post-content p {
  margin-bottom: 1.2rem;
}
.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem 1.3rem;
}
.post-content li {
  margin-bottom: 0.4rem;
}
.post-content img {
  border-radius: var(--radius);
  margin: 1.2rem 0;
}
.post-content a {
  color: var(--brass);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-content blockquote {
  border-left: 2px solid var(--brass);
  padding-left: 1.3rem;
  font-style: italic;
  color: var(--pine);
  margin: 1.5rem 0;
}

/* ---------------------------------------------------
   15. PAGINATION
--------------------------------------------------- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 2.5rem;
}
.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4em;
  height: 2.4em;
  padding: 0 0.6em;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink-soft);
  background: var(--paper);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}
.pagination .page-numbers.current {
  background: var(--brass);
  color: var(--white);
  border-color: var(--brass);
}
.pagination a.page-numbers:hover {
  background: var(--stone-dark);
}

/* ---------------------------------------------------
   16. CONTACT PAGE MAP
--------------------------------------------------- */
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 21/9;
}
.map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}
@media (max-width: 860px) {
  .map-frame {
    aspect-ratio: 4/3;
  }
}
/* ---------------------------------------------------
   17. ABOUT PAGE
--------------------------------------------------- */
.about-hero-inner {
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
.about-hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3.2rem;
  align-items: start;
}
.about-main {
  max-width: 720px;
}

.lede {
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 2.2rem;
}

.about-figure {
  margin: 0 0 2.6rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}
.about-figure img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.2rem 0 2.8rem;
}
.expertise-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}
.expertise-card h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.expertise-card p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

.about-prose h2 {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  margin: 2.2rem 0 1rem;
  color: var(--pine);
}
.about-prose p {
  color: var(--ink-soft);
  font-size: 1.03rem;
  margin-bottom: 1.1rem;
}
.about-prose ul {
  margin: 0.6rem 0 1.4rem;
  display: grid;
  gap: 0.65rem;
}
.about-prose li {
  list-style: none;
  padding-left: 1.3rem;
  position: relative;
  color: var(--ink-soft);
}
.about-prose li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 1.5px;
  background: var(--brass);
}
.about-prose li b {
  color: var(--ink);
}

.about-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.2rem;
  align-items: center;
  margin-bottom: 1rem;
}
.about-figure-split {
  margin-bottom: 0;
}
.about-figure-split img {
  aspect-ratio: 3/4;
}
.about-split .about-prose h2 {
  margin-top: 0;
}

/* sidebar */
.about-sidebar {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}
.sidebar-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.sidebar-facts {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.sidebar-facts li {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.sidebar-facts .label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass);
}
.sidebar-facts li > span:not(.label) {
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.sidebar-cta h3 {
  font-family: var(--font-body);
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}
.sidebar-cta p {
  font-size: 0.88rem;
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
}
.sidebar-cta .btn {
  width: 100%;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.sidebar-cta .btn:last-child {
  margin-bottom: 0;
}

@media (max-width: 960px) {
  .about-layout {
    grid-template-columns: 1fr;
  }
  .about-main {
    max-width: 100%;
  }
  .about-sidebar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-card {
    flex: 1 1 280px;
  }
}
@media (max-width: 700px) {
  .expertise-grid {
    grid-template-columns: 1fr;
  }
  .about-split {
    grid-template-columns: 1fr;
  }
  .about-figure-split img {
    aspect-ratio: 16/10;
  }
  .about-sidebar {
    flex-direction: column;
  }
}

/* ---------------------------------------------------
   18. CONTACT PAGE
--------------------------------------------------- */
.contact-hero {
  padding-bottom: 2rem;
}
.contact-hero-inner {
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
.contact-hero-title {
  font-size: clamp(2.2rem, 4.4vw, 3.4rem);
}

.contact-panel {
  background: var(--pine-dark);
  border-radius: var(--radius);
  padding: clamp(2.5rem, 6vw, 4rem);
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
}
.contact-panel-contours {
  position: absolute;
  inset: 0;
  color: var(--brass-light);
  opacity: 0.12;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.contact-panel-col {
  position: relative;
  z-index: 2;
}
.contact-panel-col h2 {
  color: var(--white);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}
.contact-panel-lede {
  color: var(--stone-dark);
  max-width: 44ch;
  margin-top: 0.6rem;
}

.contact-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem;
}
.contact-form-note {
  font-size: 0.8rem;
  color: var(--mist);
  margin: 0.6rem 0 0;
}

.form-note {
  font-size: 0.85rem;
  margin-top: 0.6rem;
  padding: 0.7em 1em;
  border-radius: var(--radius);
}
.form-note-success {
  background: rgba(199, 154, 75, 0.15);
  color: var(--brass-light);
}
.form-note-error {
  background: rgba(255, 255, 255, 0.08);
  color: var(--stone-dark);
}

.contact-card-hours {
  margin-top: 1rem;
}
.contact-quick-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.2rem;
  flex-wrap: wrap;
}
.contact-quick-actions .btn {
  flex: 1;
  justify-content: center;
}

.contact-map-head {
  margin-bottom: 1.8rem;
}

@media (max-width: 860px) {
  .contact-panel {
    grid-template-columns: 1fr;
  }
  .contact-form-row {
    grid-template-columns: 1fr;
  }
}

.statute-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}
.statute-card:hover {
  background: var(--stone-dark);
}
.statute-card .count {
  white-space: nowrap;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.contact-form select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 100%;
  background-color: #fff;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23555' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
  padding: 12px 40px 12px 14px;
  border: 1px solid #d9d3c7;
  border-radius: 4px;
  font-family: inherit;
  font-size: 15px;
  color: #333;
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

/* Placeholder-style option (the disabled "Select..." one) shows muted */
.contact-form select:invalid,
.contact-form select option[value=""][disabled] {
  color: #888;
}

.contact-form select:focus {
  outline: none;
  border-color: #b08d57; /* brass tone to match .btn-brass */
  box-shadow: 0 0 0 3px rgba(176, 141, 87, 0.15);
}

.contact-form select:hover {
  border-color: #b3a68f;
}

/* Keep dropdown pairs side-by-side like the name/phone row */
.contact-form-row select {
  flex: 1;
  min-width: 0;
}

/* ---------------------------------------------------
   19. DISCLAIMER GATE
--------------------------------------------------- */
.disclaimer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(23, 38, 32, 0.92);
  backdrop-filter: blur(6px);
}

/* Hidden state — toggled by JS once a prior acceptance is found */
.disclaimer-overlay[hidden] {
  display: none;
}

/* Locks the page underneath while the overlay is up */
body.disclaimer-locked {
  overflow: hidden;
  height: 100vh;
}
body.disclaimer-locked .site-header,
body.disclaimer-locked main,
body.disclaimer-locked .site-footer,
body.disclaimer-locked .nav-overlay {
  pointer-events: none;
  user-select: none;
}

.disclaimer-modal {
  position: relative;
  width: min(640px, 100%);
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.disclaimer-seal {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--brass);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brass);
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.disclaimer-modal h2 {
  font-size: 1.5rem;
  color: var(--pine);
  margin-bottom: 1rem;
}

.disclaimer-body {
  overflow-y: auto;
  padding-right: 0.5rem;
  margin-bottom: 1.4rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 1.1rem;
  padding-bottom: 1.1rem;
}
.disclaimer-body p {
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.7;
}
.disclaimer-body p:last-child {
  margin-bottom: 0;
}

.disclaimer-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 1.3rem;
}
.disclaimer-check input {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  accent-color: var(--brass);
  flex-shrink: 0;
  cursor: pointer;
}

.disclaimer-agree {
  width: 100%;
  justify-content: center;
  border: none;
}
.disclaimer-agree:disabled {
  background: var(--mist);
  cursor: not-allowed;
  opacity: 0.6;
}
.disclaimer-agree:disabled:hover {
  background: var(--mist);
  transform: none;
}

/* Optional: locks scroll immediately via the inline script's class,
   before the external JS has even loaded */
html.disclaimer-pending,
html.disclaimer-pending body {
  overflow: hidden;
  height: 100%;
}
@media (max-width: 480px) {
  .disclaimer-modal {
    padding: 1.5rem;
    max-height: 92vh;
  }
}
