/* Krishna Legal — main stylesheet
   Shared by index.html, practice-area pages, blog pages, and legal utility pages.
   Organised by section for maintainability. Soft corners (6/10/14/20) — no pills on CTAs. */

/* ============================================================
   1. Tokens & reset
   ============================================================ */
:root {
  --charcoal: #1c1c1a;
  --dark-warm: #2a2825;
  --off-white: #f7f3ec;
  --cream: #e8dfc8;
  --cream-deep: #ddd3b5;
  --amber: #c17f3b;
  --amber-dark: #9f6429;
  --gold: #c9a84c;
  --navy: #1a2744;
  --whatsapp: #25d366;
  --text-dark: #1c1c1a;
  --text-muted: #5a5750;
  --text-light: #f7f3ec;
  --text-subtle: rgba(247, 243, 236, 0.68);
  --shadow: 0 22px 70px rgba(18, 17, 15, 0.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --container: 1180px;
  --fab-clearance: 96px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--off-white);
  color: var(--text-dark);
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: clip;
}

body.no-scroll { overflow: hidden; }

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

img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

[x-cloak] { display: none !important; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 10000;
  transform: translateY(-150%);
  background: var(--amber);
  color: var(--charcoal);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-weight: 700;
}

/* Only reveal the skip link on real keyboard navigation. Using :focus alone
   caused it to appear whenever focus landed on the link via programmatic
   shifts (e.g. after the disclaimer modal closed). :focus-visible scopes
   the reveal strictly to keyboard tab-into. */
.skip-link:focus-visible { transform: translateY(0); }

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

.section { padding: 96px 0; }
.section--cream { background: var(--cream); }
.section--light { background: var(--off-white); }
.section--dark { background: var(--charcoal); color: var(--text-light); }
.section--navy { background: var(--navy); color: var(--text-light); }

/* ============================================================
   2. Typography
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before, .eyebrow::after {
  content: "";
  width: 24px;
  height: 1px;
  background: currentColor;
}

.eyebrow--left::before { display: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: 0;
}

p { margin: 0; }

.section-title {
  margin-top: 1rem;
  font-size: 2.6rem;
}

.section-copy {
  color: var(--text-muted);
  max-width: 690px;
}

.dark-copy { color: var(--text-subtle); }

/* ============================================================
   3. Buttons (soft 10px corners — no full pills)
   ============================================================ */
.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.85rem 1.4rem;
  font-weight: 700;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button:hover { transform: translateY(-2px); }

.button:focus-visible,
.nav-link:focus-visible,
.icon-button:focus-visible {
  outline: 3px solid rgba(193, 127, 59, 0.45);
  outline-offset: 3px;
}

.button--primary {
  background: var( --gold);
  color: var(--charcoal);
}
.button--primary:hover { background: #c9a84c; }

.button--ghost {
  border-color: rgba(247, 243, 236, 0.5);
  color: var(--text-light);
}
.button--ghost:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.button--dark {
  border-color: rgba(28, 28, 26, 0.2);
  color: var(--charcoal);
}
.button--dark:hover {
  border-color: var(--amber);
  color: var(--amber-dark);
}

/* ============================================================
   4. Header & navigation
   ============================================================ */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  padding: 12px 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.16);
  background: rgba(18, 18, 16, 0.76);
  color: var(--text-light);
  transition: background 280ms ease, box-shadow 280ms ease, border-color 280ms ease, padding 280ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  border-color: rgba(201, 168, 76, 0.24);
  background: rgba(18, 18, 16, 0.94);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.site-header.is-scrolled { padding: 10px 0; }

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.9rem;
  padding-inline: 4px; /* equalises visual gap: brand-pill apex and hamburger sit symmetrically inside the container edges */
}

/* Brand — modern, no chrome: logo + stacked name + tagline.
   Tagline is always visible (mobile + desktop). */
.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 0.65rem;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  line-height: 1;
  gap: 4px;
}

.brand-name {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: #fff;
  font-size: 1.2rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: 0.005em;
  line-height: 1;
}

.brand-tagline {
  display: block;
  color: var(--gold);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
}

/* Desktop nav — no pill chrome, just clean text links with an underline reveal */
.desktop-nav {
  justify-self: end;
  display: none;
  align-items: center;
  gap: 1.6rem;
  padding: 0;
  background: transparent;
  border: 0;
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  color: rgba(247, 243, 236, 0.7);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  transition: color 200ms ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 240ms cubic-bezier(0.65, 0, 0.35, 1);
}

.nav-link:hover,
.nav-link.is-active {
  color: #fff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

/* Hamburger — bare icon, no circle. Lines animate into an X when the
   drawer opens (driven by .site-header.is-open). */
.icon-button {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: var(--text-light);
  padding: 0;
  flex: 0 0 auto;
  transition: color 200ms ease;
}

.icon-button:hover { color: var(--gold); }

.hamburger-lines {
  position: relative;
  display: block;
  width: 24px;
  height: 16px;
}

.hamburger-lines span {
  position: absolute;
  left: 0;
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition:
    transform 320ms cubic-bezier(0.65, 0, 0.35, 1),
    top 280ms cubic-bezier(0.65, 0, 0.35, 1),
    opacity 180ms ease;
}

.hamburger-lines span:nth-child(1) { top: 0; }
.hamburger-lines span:nth-child(2) { top: 7px; }
.hamburger-lines span:nth-child(3) { top: 14px; }

.site-header.is-open .hamburger-lines span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}
.site-header.is-open .hamburger-lines span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}
.site-header.is-open .hamburger-lines span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.mobile-drawer {
  position: relative;
  z-index: 2;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  border-top: 0 solid transparent;
  background: rgba(24, 24, 22, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: max-height 280ms ease, opacity 220ms ease, transform 260ms ease, border-color 260ms ease;
}

.mobile-drawer.is-open {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  border-top-width: 1px;
  border-color: rgba(247, 243, 236, 0.12);
}

.mobile-drawer-inner {
  display: grid;
  gap: 0.45rem;
  padding: 1rem 0 1.3rem;
}

.mobile-drawer a {
  display: flex;
  min-height: 50px;
  align-items: center;
  border-bottom: 1px solid rgba(247, 243, 236, 0.08);
  color: var(--text-light);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 220ms ease, transform 260ms ease, color 180ms ease;
}

.mobile-drawer.is-open a {
  opacity: 1;
  transform: translateX(0);
}


/* ============================================================
   5. Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--text-light);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    45deg,
    rgba(5, 7, 10, 0.9) 10%,
    rgba(9, 18, 25, 0.74) 26%,
    rgba(201, 168, 76, 0.2) 60%
  );
  pointer-events: none;
}

.hero::after {
  content: none;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  animation: hero-settle 1500ms ease-out both;
}

@keyframes hero-settle {
  from { transform: scale(1.03); }
  to { transform: scale(1); }
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-items: center;
  min-height: 100svh;
  min-height: 100dvh;
  padding: 110px 0 96px;
  gap: 2.4rem;
}

.hero-text {
  display: flex;
  max-width: 580px;
  flex-direction: column;
  align-items: flex-start;
  align-self: center;
}

.hero p {
  text-align: justify;
  text-align-last: left;
  hyphens: auto;
}

/* Hero portrait placeholder: 3:4 vertical frame, fits a real founder portrait
   the moment one is dropped in. */
.hero-portrait {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 320px;
}

.hero-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  display: grid;
  place-items: center;
  border: 1px solid rgba(227, 185, 117, 0.42);
  border-radius: var(--radius-lg);
  background: rgba(20, 20, 22, 0.88);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  overflow: hidden;
}

.hero-portrait-mark {
  color: var(--amber);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(4.5rem, 9vw, 6rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
}

/* Real founder photo overlays the KL monogram. If the image fails to load
   (file missing, network error), the inline `onerror` removes it and the
   monogram below shows through as a graceful fallback. */
.hero-portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

.hero-portrait-caption {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  width: 100%;
  padding: 0.6rem 1.05rem;
  border-radius: var(--radius);
  background: rgba(20, 20, 22, 0.78);
  border: 1px solid rgba(227, 185, 117, 0.28);
  text-align: center;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-portrait-caption strong {
  color: #ffffff;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.01em;
}

.hero-portrait-caption span {
  color: var(--gold);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 1.5rem;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1.1;
}

.hero p {
  max-width: 540px;
  margin-top: 1.3rem;
  color: rgba(247, 243, 236, 0.86);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-top: 2rem;
}

/* Hero CTA: scoped so shared buttons keep their existing styling. */
.hero-actions .button--primary {
  border-radius: var(--radius);
  padding: 0.88rem 1.4rem;
  font-size: 0.95rem;
  background: var(--gold);
  border-color: var(--amber);
  color: #1c1c1a;
  box-shadow: none;
}

.hero-actions .button--primary:hover {
  background: var(--amber);
  border-color: var(--amber);
}

.hero-actions .button--primary svg {
  margin-left: 0.15rem;
}

.hero-call {
  color: rgba(247, 243, 236, 0.78);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(247, 243, 236, 0.32);
  padding-bottom: 2px;
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-call:hover {
  color: var(--gold);
  border-color: var(--gold);
}

.fade-sequence {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 780ms ease forwards;
}

.delay-1 { animation-delay: 120ms; }
.delay-2 { animation-delay: 260ms; }
.delay-3 { animation-delay: 420ms; }

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   6. Sections — about, practice, team, faq
   ============================================================ */
.contact-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

/* About section — two-column on desktop (heading left, body right),
   matching the FAQ / contact pattern. Stacks cleanly on mobile. */
.about-profile {
  display: grid;
  gap: 2.4rem;
  align-items: start;
}

.about-profile__head {
  display: grid;
  gap: 1.1rem;
  max-width: 540px;
}

.about-profile__head .section-title {
  max-width: none;
  /* Allow the headline to size with the column rather than the page. */
  font-size: clamp(2.2rem, 3.4vw, 2.85rem);
  line-height: 1.1;
}

.about-profile__intro {
  display: grid;
  gap: 1.05rem;
  max-width: 640px;
  margin: 0;
  text-align: left;
}

.about-profile__intro p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.section-head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 3.2rem;
}

.section-head .section-copy {
  align-self: end;
  max-width: 460px;
}

/* Practice areas — card grid (1/2/3 columns responsive) */
.practice-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.4rem;
}

.practice-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.practice-card:hover {
  transform: translateY(-4px);
  border-color: rgba(193, 127, 59, 0.45);
  box-shadow: 0 18px 40px rgba(28, 28, 26, 0.12);
}

.practice-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: 1.5rem 1.4rem 1.55rem;
  flex: 1;
}

.practice-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 0.4rem;
  border-radius: var(--radius-lg);
  background: rgba(193, 127, 59, 0.1);
  border: 1px solid rgba(193, 127, 59, 0.22);
  color: var(--amber);
  transition: transform 320ms ease, background 320ms ease, color 320ms ease, border-color 320ms ease;
}

.practice-icon svg {
  width: 32px;
  height: 32px;
}

.practice-card:hover .practice-icon {
  transform: rotate(-4deg) scale(1.06);
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

@media (max-width: 599px) {
  .practice-icon {
    width: 56px;
    height: 56px;
  }
  .practice-icon svg {
    width: 28px;
    height: 28px;
  }
}

.practice-body h3 {
  font-size: 1.55rem;
  line-height: 1.15;
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}

.tag {
  display: inline-flex;
  border: 1px solid rgba(193, 127, 59, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.28rem 0.6rem;
  background: rgba(193, 127, 59, 0.06);
  color: var(--amber-dark);
  font-size: 0.74rem;
  font-weight: 600;
}

.practice-link {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--amber);
  font-weight: 700;
  font-size: 0.95rem;
}

.practice-link:hover { color: var(--amber-dark); }

/* ============================================================
   7. Testimonials (auto-scrolling strip)
   ============================================================ */
.testimonial-strip {
  overflow: hidden;
  background: var(--charcoal);
  color: var(--text-light);
  padding: 58px 0;
}

.testimonial-label {
  margin-bottom: 1.5rem;
  text-align: center;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.marquee {
  display: flex;
  width: max-content;
  gap: 1rem;
  animation: marquee 40s linear infinite;
}

.marquee:hover { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.testimonial-card {
  display: grid;
  width: 330px;
  min-height: 220px;
  align-content: space-between;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  color: var(--text-dark);
  padding: 1.35rem;
}

.quote-mark {
  color: var(--amber);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  line-height: 0.7;
}

.testimonial-card p {
  margin-top: 0.3rem;
  color: var(--text-muted);
}

.testimonial-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  border-top: 1px solid var(--cream-deep);
  padding-top: 1rem;
}

.avatar {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--navy);
  color: var(--text-light);
  font-weight: 800;
}

.stars {
  color: var(--amber);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.testimonial-cta {
  display: flex;
  justify-content: center;
  margin-top: 2rem;
  padding-inline: 20px;
}

.testimonial-cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.4rem;
  border-radius: var(--radius);
  background: #ffffff;
  color: #1f1f1f;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}

.testimonial-cta-button:hover {
  background: #fffaf2;
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.testimonial-cta-button:focus-visible {
  outline: 2px solid var(--amber, #c17f3b);
  outline-offset: 3px;
}

.testimonial-cta-icon {
  flex: 0 0 auto;
}

.testimonial-cta-arrow {
  color: var(--amber-dark, #b66f2a);
  font-weight: 800;
  transition: transform 200ms ease;
}

.testimonial-cta-button:hover .testimonial-cta-arrow {
  transform: translateX(3px);
}

@media (max-width: 560px) {
  .testimonial-cta-button {
    padding: 0.8rem 1.1rem;
    font-size: 0.86rem;
    width: 100%;
    max-width: 360px;
    justify-content: center;
  }
}

/* ============================================================
   8. Team, blog & FAQ
   ============================================================ */
.team-grid,
.blog-grid,
.page-card-grid {
  display: grid;
  gap: 1rem;
}

.team-card,
.blog-card,
.info-card,
.office-card {
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  background: #fffaf2;
  overflow: hidden;
}

.team-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.6rem;
  display: grid;
  gap: 0.85rem;
}

.team-head .eyebrow { justify-self: center; }
.team-head .section-copy { margin: 0 auto; }

.team-portrait {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: linear-gradient(135deg, #f2eadb 0%, #fffaf2 100%);
}

.team-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  display: block;
}

.team-portrait .team-skeleton {
  position: absolute;
  inset: 0;
  z-index: 1;
  min-height: 0;
}

.team-skeleton,
.blog-portrait {
  display: grid;
  min-height: 310px;
  place-items: center;
}

.team-skeleton {
  align-content: center;
  gap: 0.9rem;
  background: linear-gradient(135deg, #f2eadb 0%, #fffaf2 100%);
}

.team-skeleton__avatar,
.team-skeleton__line {
  display: block;
  background: linear-gradient(90deg, #e0d2bc 0%, #f6eddd 50%, #e0d2bc 100%);
  background-size: 220% 100%;
  animation: skeleton-pulse 2.4s ease-in-out infinite;
}

.team-skeleton__avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
}

.team-skeleton__line {
  width: 42%;
  height: 12px;
  max-width: 150px;
  border-radius: 999px;
}

.team-skeleton__line--wide {
  width: 58%;
  max-width: 190px;
}

@keyframes skeleton-pulse {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.blog-portrait {
  background:
    linear-gradient(180deg, rgba(26, 39, 68, 0.08), rgba(28, 28, 26, 0.5)),
    url("../images/hero.png") center / cover;
}

.blog-portrait-mark {
  display: grid;
  width: 116px;
  height: 116px;
  place-items: center;
  border: 1px solid rgba(247, 243, 236, 0.38);
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 26, 0.55);
  color: var(--text-light);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.6rem;
}

.team-body,
.blog-body,
.info-card { padding: 1.4rem; }

.team-body h3,
.blog-body h3,
.info-card h3 { font-size: 1.65rem; }

.team-role,
.blog-meta {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.team-specialty {
  margin-top: 0.3rem;
  color: var(--amber-dark);
  font-weight: 800;
}

.team-body h3 {
  margin-top: 0.15rem;
  font-size: 1.6rem;
  line-height: 1.15;
}

.team-body .team-role {
  color: var(--amber-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.team-bio {
  margin-top: 0.7rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.team-grid--duo {
  max-width: 880px;
  margin-inline: auto;
  gap: 1.4rem;
}

.faq-container {
  max-width: 760px;
  margin-inline: auto;
}

.faq-head {
  display: grid;
  gap: 0.9rem;
  text-align: center;
  margin-bottom: 1rem;
}

.faq-container .accordion { margin-top: 0; }

.faq-head .eyebrow { justify-self: center; }

.faq-head .section-copy {
  margin: 0 auto;
  max-width: 560px;
}

.accordion {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.7rem;
}

.accordion-item {
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  background: #fffaf2;
  overflow: hidden;
}

.accordion-button {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  padding: 1rem 1.1rem;
  text-align: left;
  font-weight: 800;
}

.accordion-icon {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(193, 127, 59, 0.14);
  color: var(--amber-dark);
  transition: transform 180ms ease;
}

.accordion-item.is-open .accordion-icon { transform: rotate(180deg); }

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms ease;
}

.accordion-item.is-open .accordion-body { max-height: 420px; }

.accordion-body p {
  border-top: 1px solid var(--cream-deep);
  padding: 1rem 1.1rem 1.2rem;
  color: var(--text-muted);
}

/* ============================================================
   9. Contact & footer
   ============================================================ */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(26, 39, 68, 0.96), rgba(28, 28, 26, 0.9)),
    url("../images/hero.png") center / cover;
}

.contact-section > .container {
  position: relative;
  z-index: 1;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 0.85rem;
}

.contact-item strong { display: block; }

.contact-item span,
.contact-item a { color: var(--text-subtle); }

.contact-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(193, 127, 59, 0.18);
  color: var(--gold);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke-width: 1.9;
}

.contact-form {
  display: grid;
  gap: 0.9rem;
  border: 1px solid rgba(247, 243, 236, 0.12);
  border-radius: var(--radius-lg);
  background: rgba(28, 28, 26, 0.34);
  padding: 1.4rem;
  backdrop-filter: blur(12px);
}

.field {
  display: grid;
  gap: 0.35rem;
}

.field label {
  color: rgba(247, 243, 236, 0.78);
  font-size: 0.88rem;
  font-weight: 700;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  border: 1px solid rgba(247, 243, 236, 0.16);
  border-radius: var(--radius);
  background: rgba(247, 243, 236, 0.08);
  color: var(--text-light);
  padding: 0.8rem 0.9rem;
}

.field select option { color: var(--text-dark); }

.field textarea {
  min-height: 124px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder { color: rgba(247, 243, 236, 0.42); }

/* hCaptcha widget — sits between the message field and the submit button.
   Gets a touch of breathing room and clears its own width so the iframe
   inside the .h-captcha wrapper isn't clipped on small viewports. */
.contact-form .h-captcha {
  margin-top: 0.4rem;
  min-height: 78px;
}

.contact-form .h-captcha iframe {
  max-width: 100%;
}

.form-status {
  min-height: 24px;
  margin-top: 0.4rem;
  color: var(--cream);
  font-size: 0.92rem;
  line-height: 1.45;
  transition: color 200ms ease, background 200ms ease;
}

.form-status[data-state] {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}

.form-status[data-state="loading"] {
  color: var(--cream);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.form-status[data-state="success"] {
  color: #b9efc6;
  background: rgba(46, 160, 89, 0.16);
  border-color: rgba(46, 160, 89, 0.45);
}

.form-status[data-state="error"] {
  color: #ffc6c6;
  background: rgba(214, 73, 73, 0.18);
  border-color: rgba(214, 73, 73, 0.5);
}

.form-status[data-state="warn"] {
  color: #f6e0a8;
  background: rgba(201, 168, 76, 0.16);
  border-color: rgba(201, 168, 76, 0.45);
}

.contact-form button[type="submit"][disabled] {
  opacity: 0.7;
  cursor: progress;
  pointer-events: none;
}

.map-frame {
  position: relative;
  z-index: 1;
  margin-top: 2rem;
  overflow: hidden;
  border: 1px solid rgba(247, 243, 236, 0.12);
  border-radius: var(--radius-lg);
  background: var(--dark-warm);
}

.map-frame iframe,
.map-frame img {
  width: 100%;
  height: 320px;
  border: 0;
  object-fit: cover;
}

.site-footer {
  background: var(--charcoal);
  color: var(--text-light);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  gap: 2rem;
}

.footer-brand img {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.footer-brand h2 {
  margin-top: 1rem;
  font-size: 2rem;
}

.footer-brand p,
.footer-links a,
.footer-contact li,
.footer-bottom { color: var(--text-subtle); }

.footer-title {
  margin-bottom: 1rem;
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links a:hover,
.footer-contact a:hover { color: var(--amber); }

.footer-bottom {
  display: grid;
  gap: 0.8rem;
  border-top: 1px solid rgba(201, 168, 76, 0.24);
  margin-top: 2.2rem;
  padding: 1.2rem 0;
  font-size: 0.86rem;
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* ============================================================
   10. Inner-page hero & utility layouts
   ============================================================ */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--text-light);
  padding: 150px 0 82px;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(28, 28, 26, 0.96), rgba(28, 28, 26, 0.78)),
    url("../images/hero.png") center / cover;
}

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

.page-hero h1 {
  max-width: 820px;
  margin-top: 1rem;
  font-size: 3rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  color: var(--text-subtle);
  font-size: 0.9rem;
}

.breadcrumb a { color: var(--cream); }

.content-layout {
  display: grid;
  gap: 2rem;
}

.article-content {
  display: grid;
  gap: 1.3rem;
}

.article-content h2,
.article-content h3 { margin-top: 0.8rem; }

.article-content h2 { font-size: 2.2rem; }
.article-content h3 { font-size: 1.7rem; }

.article-content p,
.article-content li { color: var(--text-muted); }

.article-content ul,
.article-content ol {
  margin: 0;
  padding-left: 1.2rem;
}

.sidebar-panel {
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-lg);
  background: #fffaf2;
  padding: 1.3rem;
}

.sidebar-panel h2,
.sidebar-panel h3 { font-size: 1.6rem; }

.sidebar-panel .footer-contact li,
.sidebar-panel .footer-contact a,
.sidebar-panel .footer-links a { color: var(--text-muted); }

.sidebar-panel + .sidebar-panel { margin-top: 1rem; }

.legal-note {
  border-left: 4px solid var(--amber);
  background: var(--cream);
  padding: 1rem;
  color: var(--text-muted);
  border-radius: 0 var(--radius) var(--radius) 0;
}

/* ============================================================
   11. Floating CTA group — black phone pill + green WhatsApp icon
   ============================================================ */
.inline-buttons {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  align-items: center;
  z-index: 9999;
}

.floating-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 50px;
  background: #111;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, opacity 0.3s ease, box-shadow 0.3s ease;
}

.floating-button:hover {
  transform: translateY(-2px);
  opacity: 0.92;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.28);
}

.floating-button:focus-visible {
  outline: 3px solid rgba(193, 127, 59, 0.55);
  outline-offset: 3px;
}

.whatsapp-button {
  background: #25D366;
  padding: 12px;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.36);
}

.whatsapp-button:hover {
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.42);
}

.animated-icon {
  width: 22px;
  height: 22px;
  display: block;
  flex: 0 0 auto;
}

@media (max-width: 768px) {
  .inline-buttons {
    bottom: 15px;
    right: 15px;
    gap: 10px;
  }

  .floating-button {
    padding: 10px 14px;
    font-size: 0.82rem;
  }

  .whatsapp-button {
    padding: 10px;
  }

  .animated-icon {
    width: 20px;
    height: 20px;
  }
}

/* ============================================================
   12. Responsive — tablet & desktop progressive enhancements
   ============================================================ */
@media (min-width: 640px) {
  .team-grid,
  .blog-grid,
  .page-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-title { font-size: 3.2rem; }

  .practice-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 900px) {
  .desktop-nav { display: inline-flex; }
  .mobile-menu-button { display: none; }

  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 1.32rem; }
  .brand-tagline { font-size: 0.64rem; }

  .hero h1 { font-size: 3.5rem; }

  .hero-content {
    /* Desktop: text left (column 1), portrait right (column 2),
       both vertically centered. */
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    padding: 130px 0 110px;
    align-items: center;
  }

  .hero-portrait {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    max-width: 360px;
  }

  .hero-text {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
    max-width: 620px;
  }

  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

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

  /* Asymmetric 2-col: narrower heading on left, longer prose on right.
     Heading sticks to the top of its column so it reads as a section label. */
  .about-profile {
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(2.5rem, 5vw, 4.5rem);
    align-items: start;
  }

  .about-profile__head {
    position: sticky;
    top: 110px;
  }

  .section-head {
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.6fr);
    align-items: end;
  }

  .practice-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .team-grid,
  .blog-grid,
  .page-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .team-grid--duo {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.3fr 1fr 0.8fr 1.1fr;
  }

  .footer-bottom {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .content-layout {
    grid-template-columns: minmax(0, 1fr) 330px;
    align-items: start;
  }
}

@media (min-width: 1200px) {
  .section { padding: 124px 0; }
  .hero h1 { font-size: 3.5rem; }
}

/* ============================================================
   13. Responsive — tablet & mobile overrides
   ============================================================ */
@media (max-width: 899px) {
  .site-header,
  .site-header.is-scrolled,
  .site-header.is-open {
    padding: 0;
  }

  .site-header.is-open {
    min-height: 100dvh;
    isolation: isolate;
    background: rgba(18, 18, 16, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-header.is-open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(18, 18, 16, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 78.08px;
    gap: 0.75rem;
    padding-inline: 0;
  }

  .container { width: min(100% - 40px, var(--container)); }

  .site-footer { padding-bottom: var(--fab-clearance); }

  .site-header.is-open .nav-shell {
    background: rgba(18, 18, 16, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .mobile-drawer.is-open {
    max-height: calc(100dvh - 78.08px);
    overflow-y: auto;
  }

  .brand { gap: 0.72rem; }

  .brand img {
    width: 58px;
    height: 44px;
  }

  .brand-name { font-size: 1.38rem; }
  .brand-tagline {
    font-size: 0.67rem;
    letter-spacing: 0.14em;
  }

  .mobile-menu-button {
    width: 52px;
    height: 52px;
  }

  .hamburger-lines {
    width: 34px;
    height: 24px;
  }

  .hamburger-lines span { height: 3px; }
  .hamburger-lines span:nth-child(2) { top: 10.5px; }
  .hamburger-lines span:nth-child(3) { top: 21px; }

  .site-header.is-open .hamburger-lines span:nth-child(1),
  .site-header.is-open .hamburger-lines span:nth-child(3) {
    top: 10.5px;
  }

  /* --- Hero (mobile) ---------------------------------------------------
     Local tokens kept on the .hero scope so the values stay self-documenting
     and the desktop layout above is untouched.
  ----------------------------------------------------------------------- */
  .hero {
    /* sticky header height (matches .nav-shell { min-height } below) */
    --header-h: 78px;
    /* breathing room between header bottom and first hero element */
    --hero-top-gap: 40px;
    /* inset for hero text so it never hugs the viewport edge */
    --hero-inline-inset: 4px;
    min-height: 100svh;
    min-height: 100dvh;
  }

  .hero-content {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    gap: 1.6rem;
    /* top: clear the sticky header + breathing room (118px total)
       bottom: leave room for the floating call/WhatsApp bar */
    padding: calc(var(--header-h) + var(--hero-top-gap)) 0 var(--fab-clearance);
    min-height: 100svh;
    min-height: 100dvh;
    align-items: stretch;
    align-content: stretch;
    justify-items: stretch;
  }

  .hero-portrait {
    display: flex;
    order: 1;
    grid-row: 1;
    align-self: start;
    justify-self: center;
    max-width: 200px;
    margin: 0;
  }

  .hero-text {
    max-width: none;
    order: 2;
    grid-row: 2;
    align-self: end;
    text-align: left;
    width: 100%;
    /* sits inside .container which already adds 12–16px; add 8px more so the
       copy has a comfortable 20–24px gutter from the viewport edge,
       matching letter-style legal-firm hero typography */
    padding-inline: var(--hero-inline-inset);
  }

  .hero p {
    margin-top: 0.7rem;
    font-size: 0.94rem;
    line-height: 1.6;
    /* Left-aligned on mobile — justified text creates wide word-spacing gaps
       at narrow widths. Desktop keeps `justify` from the base rule. */
    text-align: left;
    text-align-last: auto;
    hyphens: manual;
  }

  /* The eyebrow's trailing dash wraps to its own line on narrow widths;
     drop it on mobile so the strap-line reads as a tidy single block. */
  .hero-text .eyebrow::after { display: none; }

  .hero-actions {
    gap: 0.55rem 1rem;
    margin-top: 1.2rem;
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button--primary {
    width: 100%;
    justify-content: center;
    padding: 0.85rem 1.4rem;
    font-size: 0.92rem;
  }

  .hero-call {
    text-align: center;
    font-size: 0.85rem;
    border-bottom: 0;
    padding-bottom: 0;
  }

  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .section { padding: 48px 0; }
  .section-head { margin-bottom: 1.75rem; }
  .contact-grid { gap: 1.5rem; }
  .about-profile { gap: 1.6rem; }
  .about-profile__intro { gap: 0.85rem; }
  .contact-list { margin-top: 1.25rem; }
  .contact-form { padding: 1.1rem; }

  .hero h1,
  .page-hero h1 { font-size: clamp(2rem, 8vw, 2.5rem); line-height: 1.1; }

  .hero-text .eyebrow { font-size: 0.72rem; }

  .section-title { font-size: 2.2rem; }

  .testimonial-card { width: 280px; }

  .fab-whatsapp {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 380px) {
  .brand img {
    width: 54px;
    height: 42px;
  }

  .brand-name { font-size: 1.28rem; }
  .brand-tagline { font-size: 0.6rem; }

  .mobile-menu-button {
    width: 48px;
    height: 48px;
  }

  .hamburger-lines {
    width: 31px;
    height: 22px;
  }

  .hamburger-lines span:nth-child(2) { top: 9.5px; }
  .hamburger-lines span:nth-child(3) { top: 19px; }

  .site-header.is-open .hamburger-lines span:nth-child(1),
  .site-header.is-open .hamburger-lines span:nth-child(3) {
    top: 9.5px;
  }
}

/* ============================================================
   14. Disclaimer modal (BCI compliance gate)
   ============================================================ */
.disclaimer-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  overflow-y: auto;
  opacity: 1;
  transition: opacity 320ms ease;
}

.disclaimer-modal[hidden] { display: none; }

.disclaimer-modal.is-closing {
  opacity: 0;
  pointer-events: none;
}

.disclaimer-card {
  width: min(720px, 100%);
  background: #ffffff;
  border: 1px solid var(--cream-deep, #e8e1d2);
  border-radius: var(--radius-lg, 14px);
  padding: 44px 44px 36px;
  box-shadow: 0 30px 80px rgba(20, 30, 60, 0.14);
  color: #142244;
  text-align: left;
}

.disclaimer-logo {
  display: flex;
  justify-content: center;
  margin: 0 auto 22px;
  width: 132px;
  height: 132px;
  border-radius: var(--radius-lg, 14px);
  background: var(--charcoal, #1c1c1a);
  align-items: center;
  border: 1px solid rgba(193, 127, 59, 0.25);
}

.disclaimer-logo img {
  width: 92px;
  height: auto;
  display: block;
}

@media (max-width: 560px) {
  .disclaimer-logo {
    width: 104px;
    height: 104px;
  }
  .disclaimer-logo img { width: 72px; }
}

.disclaimer-card h2 {
  font-family: "Inter", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
  color: #142244;
  margin: 0 0 1.05rem;
}

.disclaimer-card p {
  font-size: 0.96rem;
  line-height: 1.65;
  color: #1d2640;
  margin: 0 0 1rem;
}

.disclaimer-card ul {
  margin: 0 0 1.2rem 1.4rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  list-style: disc;
}

.disclaimer-card li {
  font-size: 0.94rem;
  line-height: 1.6;
  color: #1d2640;
}

.disclaimer-agree {
  display: block;
  margin: 1.4rem auto 0;
  padding: 0.85rem 2.4rem;
  background: #142244;
  color: #ffffff;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  border: 0;
  border-radius: var(--radius-sm, 6px);
  cursor: pointer;
  transition: background 200ms ease, transform 200ms ease, box-shadow 200ms ease;
  box-shadow: 0 6px 18px rgba(20, 34, 68, 0.2);
}

.disclaimer-agree:hover {
  background: #1d3168;
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(20, 34, 68, 0.28);
}

.disclaimer-agree:focus-visible {
  outline: 2px solid var(--amber, #c17f3b);
  outline-offset: 3px;
}

body.disclaimer-open { overflow: hidden; }

@media (max-width: 560px) {
  .disclaimer-modal { padding: 16px; }
  .disclaimer-card { padding: 28px 22px 26px; }
  .disclaimer-logo img { width: 92px; }
  .disclaimer-card h2 { font-size: 1.3rem; }
  .disclaimer-card p,
  .disclaimer-card li { font-size: 0.9rem; }
  .disclaimer-agree {
    width: 100%;
    padding: 0.85rem 1rem;
  }
}
