/* ============================================================
   Vruksha Law Chambers - static site
   Design tokens, base, components, sections.
   Mobile-first; expands at 768px and 1024px.
   ============================================================ */

:root {
  /* palette: neutral tokens shared by both colour options */
  --ink:      #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted:    #6e6e6e;
  --paper:    #ffffff;

  /* palette: emerald green + light brown */
  --forest:   #0b6e4f;   /* primary green: buttons, links */
  --forest-2: #08573f;   /* primary hover */
  --ivory:    #ecdcc2;   /* light brown section background */
  --hero-end: #f5ecdd;
  --tint:     #dff0e8;   /* icon chips */
  --line:     #dfcfb4;
  --eyebrow:  var(--forest);
  --gold:     #74502f;   /* brown, text-safe */
  --gold-soft:#b08656;   /* brown, borders and accents */
  --gold-on-dark: #dcc29a; /* brown on the dark green sections */
  --dark:     #0a5a41;   /* contact section */
  --footer:   #06392a;
  --on-dark:  #f5f1e8;

  /* type: client asked for Tahoma throughout; Verdana is the closest
     fallback on phones, which don't ship Tahoma */
  --serif: Tahoma, Verdana, 'Segoe UI', sans-serif;
  --sans:  Tahoma, Verdana, 'Segoe UI', sans-serif;

  /* spacing */
  --container: 1180px;
  --container-narrow: 780px;
  --radius: 10px;
  --radius-lg: 16px;

  /* misc */
  --shadow-sm: 0 1px 2px rgba(26,26,26,0.06), 0 1px 3px rgba(26,26,26,0.04);
  --shadow-md: 0 4px 16px rgba(26,26,26,0.06), 0 1px 4px rgba(26,26,26,0.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a { color: var(--forest); text-underline-offset: 3px; }
a:hover { color: var(--forest-2); }

/* ---------- layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--alt { background: var(--ivory); }
.section--dark {
  background: var(--dark);
  color: var(--ivory);
}
.section--dark a { color: var(--gold-on-dark); }
.section--dark a:hover { color: var(--ivory); }

.section__head {
  max-width: 720px;
  margin: 0 auto clamp(32px, 5vw, 56px);
  text-align: center;
}
.section__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 4.5vw, 44px);
  line-height: 1.15;
  letter-spacing: 0;
  margin: 6px 0 12px;
}
.section__lede {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 0;
}
.section--dark .section__lede { color: rgba(245,241,232,0.8); }

.eyebrow {
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 12px;
  font-weight: 600;
  color: var(--eyebrow);
  margin: 0;
}
.eyebrow--light { color: var(--gold-on-dark); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font: 500 14px/1 var(--sans);
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--forest);
  color: var(--ivory);
  border-color: var(--forest);
}
.btn--primary:hover { background: var(--forest-2); color: var(--ivory); }
.btn--ghost {
  background: transparent;
  color: var(--forest);
  border-color: var(--forest);
}
.btn--ghost:hover { background: var(--forest); color: var(--ivory); }
.section--dark .btn--ghost { color: var(--ivory); border-color: var(--ivory); }
.section--dark .btn--ghost:hover { background: var(--ivory); color: var(--forest); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--forest);
  font-family: var(--serif);
  margin-right: auto;
}
.logo__mark { width: 44px; height: 44px; flex: 0 0 44px; color: var(--forest); object-fit: contain; }
.logo__mark--invert { filter: invert(1) brightness(1.6); }
.logo__name {
  font-size: clamp(14px, 3.6vw, 18px);
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  line-height: 1.2;
  color: var(--ink);
}

.primary-nav ul {
  display: none;
  list-style: none;
  gap: 28px;
  margin: 0;
  padding: 0;
}
.primary-nav a {
  font: 500 14px/1 var(--sans);
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  position: relative;
}
.primary-nav a:hover { color: var(--forest); }
.primary-nav a[aria-current="page"] { color: var(--forest); font-weight: 700; }

/* contact reveal button: styled to match the dark contact section's links */
.reveal-btn {
  background: transparent;
  border: none;
  padding: 0;
  margin: 0;
  font: 500 15px/1.4 var(--sans);
  color: var(--ivory);
  cursor: pointer;
  border-bottom: 1px dashed rgba(245,241,232,0.5);
  text-align: left;
  transition: color 0.15s, border-bottom-color 0.15s;
}
.reveal-btn:hover { border-bottom-color: var(--ivory); color: var(--gold-on-dark); }
.reveal-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobile dropdown */
.primary-nav {
  position: absolute;
  top: 72px;
  left: 0; right: 0;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.primary-nav.is-open { max-height: 400px; }
.primary-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px 20px 20px;
}
.primary-nav ul li { border-bottom: 1px solid var(--line); }
.primary-nav ul li:last-child { border-bottom: none; }
.primary-nav ul a { padding: 14px 0; display: block; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .primary-nav {
    position: static;
    background: transparent;
    border: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
  }
  .primary-nav ul {
    display: flex;
    flex-direction: row;
    padding: 0;
    gap: 28px;
  }
  .primary-nav ul li { border: none; }
  .primary-nav ul a { padding: 6px 0; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--hero-end) 100%);
  padding: clamp(56px, 9vw, 120px) 0 clamp(56px, 8vw, 96px);
  overflow: hidden;
}
.hero__inner {
  display: grid;
  gap: 40px;
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 6.5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.3px;
  margin: 14px 0 20px;
  color: var(--ink);
}
.hero__sub {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 32px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero__visual {
  display: none;
  justify-self: center;
  max-width: 420px;
  width: 100%;
}
.hero__tree { width: 100%; height: auto; opacity: 0.95; }

@media (min-width: 900px) {
  .hero__inner { grid-template-columns: 1.2fr 1fr; gap: 56px; }
  .hero__visual { display: block; }
}

/* ============================================================
   INNER PAGE HEADER + HOME BLOCKS
   ============================================================ */
.page-head {
  background: linear-gradient(180deg, var(--ivory) 0%, var(--hero-end) 100%);
  padding: clamp(48px, 7vw, 88px) 0 clamp(8px, 2vw, 16px);
}
.page-head .section__head { margin-bottom: clamp(24px, 4vw, 40px); }
.page-head__title { font-size: clamp(32px, 5.5vw, 52px); }
.page-head .section__lede a { color: var(--forest); }
.section--tight { padding-top: clamp(32px, 5vw, 56px); }
/* contact page: just the small "Contact" label, no big title */
.page-head--compact { padding: 28px 0 4px; }
.page-head--compact .section__head { margin-bottom: 20px; }

.section__more { text-align: center; margin: 32px 0 0; }

.practice-list {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 900px;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .practice-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .practice-list { grid-template-columns: repeat(3, 1fr); } }
.practice-list a {
  display: block;
  height: 100%;
  padding: 16px 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  transition: border-color 0.15s, color 0.15s;
}
.practice-list a::after { content: " →"; color: var(--gold); }
.practice-list a:hover { border-color: var(--gold-soft); color: var(--forest); }

.teaser {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 18px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  color: var(--ink);
  text-decoration: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.teaser:hover { border-color: var(--gold-soft); box-shadow: var(--shadow-md); color: var(--ink); }
.teaser img { width: 112px; height: 140px; object-fit: cover; border-radius: var(--radius); }
.teaser__body { display: grid; gap: 6px; }
.teaser__name { font-size: 20px; font-weight: 700; }
.teaser .team-card__role { margin: 0; }
.teaser__more { font-size: 14px; color: var(--forest); font-weight: 700; }

.cta-band { padding: clamp(40px, 6vw, 64px) 0; }
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.cta-band .section__title { margin: 0 0 8px; }
.cta-band p { margin: 0; color: rgba(245,241,232,0.85); }

/* ============================================================
   PRACTICE AREAS
   ============================================================ */
.card-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.practice-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 26px;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.practice-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--gold-soft);
}
.practice-card__icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--tint);
  color: var(--forest);
  border-radius: 10px;
  margin-bottom: 18px;
}
.practice-card__icon svg { width: 24px; height: 24px; }
.practice-card h2,
.practice-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  color: var(--ink);
}
.practice-card p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 700px) { .team-grid { grid-template-columns: repeat(2, 1fr); } }

.team-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.team-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  background: #e8e2d4;
  margin-bottom: 16px;
}
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.team-card h2,
.team-card h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 4px;
}
.team-card__role {
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.team-card__meta { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.team-card__bio p { font-size: 14px; color: var(--ink-soft); margin: 0 0 10px; }
.team-card__bio p:last-child { margin-bottom: 0; }

.colleagues {
  max-width: 880px;
  margin: 40px auto 0;
  text-align: center;
}
.colleagues__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 6px;
}
.colleagues__lede { color: var(--ink-soft); margin: 0 0 18px; }
.colleagues__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.colleagues__list li {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 15px;
}

/* ============================================================
   KNOWLEDGE CORNER
   ============================================================ */
.entry-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.entry {
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold-soft);
  border-radius: var(--radius);
  padding: 24px;
}
.entry__date {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 6px;
}
.entry__title {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 20px;
  margin: 0 0 8px;
}
.entry p { color: var(--ink-soft); margin: 0 0 12px; }
.entry__link { font-size: 14px; font-weight: 700; }

/* ============================================================
   OPPORTUNITIES
   ============================================================ */
.opp-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}
@media (min-width: 800px) { .opp-grid { grid-template-columns: repeat(2, 1fr); } }
.opp-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.opp-card h2,
.opp-card h3 {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 10px;
}
.opp-card p { color: var(--ink-soft); margin: 0 0 12px; }
.opp-card__apply { overflow-wrap: anywhere; }
.opp-card__apply:last-child { margin-bottom: 0; }
/* reveal buttons on light backgrounds */
.opp-card .reveal-btn {
  color: var(--forest);
  font-size: inherit;
  border-bottom-color: var(--forest);
}
.opp-card .reveal-btn:hover { color: var(--forest-2); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact__inner {
  display: grid;
  gap: 48px;
}
@media (min-width: 900px) {
  .contact__inner { grid-template-columns: 1fr 1.1fr; gap: 64px; }
  .contact__inner--single { grid-template-columns: 1fr; }
}
.contact__info .section__title { margin-top: 6px; }
.contact__lede {
  color: rgba(245,241,232,0.85);
  font-size: 17px;
  max-width: 48ch;
  margin: 0 0 32px;
}
.contact__details {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 20px;
}
.contact__details li { display: grid; gap: 4px; }
.contact__details strong {
  font: 600 11px/1 var(--sans);
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-on-dark);
}
.contact__details a {
  color: var(--ivory);
  text-decoration: none;
  border-bottom: 1px solid rgba(245,241,232,0.4);
}
.contact__details a:hover { border-bottom-color: var(--ivory); }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background: rgba(245,241,232,0.06);
  padding: 28px;
  border: 1px solid rgba(245,241,232,0.15);
  border-radius: var(--radius-lg);
}
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font: 500 13px/1 var(--sans);
  color: var(--gold-on-dark);
  letter-spacing: 0.3px;
}
.field input,
.field select,
.field textarea {
  font: 400 15px/1.4 var(--sans);
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(245,241,232,0.25);
  background: rgba(0,0,0,0.18);
  color: var(--ivory);
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 2px solid var(--gold-on-dark);
  outline-offset: 1px;
  background: rgba(0,0,0,0.28);
}
.field textarea { resize: vertical; min-height: 110px; }
.form-note {
  grid-column: 1 / -1;
  font-size: 12px;
  color: rgba(245,241,232,0.6);
  margin: 4px 0 0;
  line-height: 1.5;
}
.form-status {
  grid-column: 1 / -1;
  margin: 0;
  font-size: 14px;
  color: var(--gold-on-dark);
  min-height: 1.4em;
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--footer);
  color: rgba(245,241,232,0.7);
  padding: 40px 0 28px;
}
.site-footer__inner {
  display: grid;
  gap: 24px;
}
.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ivory);
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: 1px;
}
.site-footer__brand .logo__mark { color: var(--ivory); }
.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.site-footer__nav a {
  color: rgba(245,241,232,0.7);
  text-decoration: none;
  font-size: 14px;
}
.site-footer__nav a:hover { color: var(--ivory); }
.site-footer__legal {
  font-size: 12px;
  line-height: 1.6;
  color: rgba(245,241,232,0.5);
  margin: 12px 0 0;
  max-width: 80ch;
}
@media (min-width: 900px) {
  .site-footer__inner {
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 32px;
  }
  .site-footer__legal { grid-column: 1 / -1; margin-top: 8px; }
}

/* ============================================================
   DISCLAIMER MODAL
   ============================================================ */
.modal[hidden] { display: none !important; }
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: fade 0.2s ease;
}
.modal__backdrop {
  position: absolute; inset: 0;
  background: rgba(26,26,26,0.6);
}
.modal__panel {
  position: relative;
  background: var(--paper);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  animation: pop 0.25s ease;
}
.modal__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 28px;
  margin: 0 0 16px;
}
.modal__body p {
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 12px;
}
.modal__actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 20px;
  flex-wrap: wrap;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop  { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   MOTION / A11Y
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}
