/* Jawalkars Law - landing page */

:root {
  --navy: #0E1A2B;
  --navy-2: #13233A;
  --ink: #142235;
  --text: #3B4352;
  --muted: #6B7280;
  --gold: #B88A52;
  --gold-hover: #A57A45;
  --gold-text: #A9763C;
  --gold-bright: #E2A65C;
  --red: #C0442F;
  --bg: #FAF9F7;
  --card: #FFFFFF;
  --line: #ECE8E1;
  --tint: #FBF3E8;

  --serif: 'DM Serif Display', Georgia, serif;
  --display: Cinzel, 'Times New Roman', serif;
  --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1200px;
  --pad: clamp(16px, 4vw, 40px);
  --radius: 10px;
  --shadow: 0 6px 24px rgba(14, 26, 43, 0.06);
  --ease: 180ms ease;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
body.no-scroll { overflow: hidden; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
main:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; } }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 14px; border-radius: 6px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 10px; }

.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 20px; height: 20px; }
.ic--xl { width: 30px; height: 30px; stroke-width: 1.5; }
.ic--2xl { width: 44px; height: 44px; stroke-width: 1.4; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px;
  font: 500 14px/1.2 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 15px; }
.btn--xl { min-height: 60px; padding: 0 38px; font-size: 16px; }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-hover); color: #fff; }
.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, 0.55); }
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.06); }
.btn--outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.7); }
.btn--outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: #fff; }
.btn--play { padding-left: 8px; }
.play { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.6); display: grid; place-items: center; }
.play .ic { width: 18px; height: 18px; margin-left: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: none; }
.text-link:hover { color: var(--gold-text); }

/* ---------- Type ---------- */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 13px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold-text); }
.eyebrow::before { content: ""; width: 36px; height: 2px; background: var(--gold); }
.eyebrow--red { color: var(--red); letter-spacing: 0.14em; font-size: 12px; }
.eyebrow--red::before { background: var(--red); width: 32px; height: 1.5px; }
.eyebrow--plain::before { display: none; }
.h2 { margin-top: 8px; font: 400 clamp(32px, 3.6vw, 46px)/1.1 var(--serif); color: var(--ink); letter-spacing: -0.01em; }
.h2--md { font-size: clamp(30px, 3vw, 40px); line-height: 1.12; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy); color: #E7E9EE; font-size: 13px; }
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding-top: 6px; padding-bottom: 6px; }
.topbar__tag { display: flex; align-items: center; gap: 12px; }
.topbar__tag .ic, .topbar .ic { color: var(--gold-bright); width: 18px; height: 18px; }
.topbar__contact { display: flex; align-items: center; gap: 36px; }
.topbar__contact a, .topbar__contact p { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.topbar__contact p { font-size: 12px; line-height: 1.35; }
.topbar__contact a:hover { color: #fff; }
@media (max-width: 860px) { .topbar__tag { display: none; } .topbar__inner { justify-content: center; } }
@media (max-width: 560px) { .topbar__contact p { display: none; } }

.header { position: sticky; top: 0; z-index: 60; background: #fff; box-shadow: 0 1px 0 var(--line); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 88px; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo__mark { width: 52px; height: 52px; color: var(--gold); }
.logo__text { display: flex; flex-direction: column; align-items: center; }
.logo__name { font: 600 27px/1 var(--display); letter-spacing: 0.02em; text-transform: uppercase; color: var(--ink); }
.logo__sub { white-space: nowrap; display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink); }
.logo__sub::before, .logo__sub::after { content: ""; width: 14px; height: 1.5px; background: var(--gold); }
.logo--sm .logo__mark { width: 42px; height: 42px; }
.logo--sm .logo__name { font-size: 21px; }
.logo--sm .logo__sub { font-size: 8px; }

.nav { display: flex; align-items: center; gap: 30px; }
.nav a:not(.btn) { position: relative; padding: 8px 0; font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; transition: color var(--ease); }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: var(--gold-text); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--gold); }
.nav__cta { display: none; }
.header__actions { display: flex; align-items: center; gap: 18px; }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; }
.icon-btn:hover { background: var(--bg); }
.header__cta { min-height: 46px; padding: 0 24px; }
.menu-btn { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; align-items: center; gap: 5px; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; }
.menu-btn span { width: 20px; height: 2px; background: var(--ink); transition: transform 200ms, opacity 200ms; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.search { border-top: 1px solid var(--line); background: #fff; }
.search__inner { display: flex; gap: 10px; padding-top: 14px; padding-bottom: 14px; }
.search input { flex: 1; min-width: 0; height: 46px; padding: 0 18px; border: 1px solid #D6D0C5; border-radius: 999px; font: 15px var(--sans); color: var(--ink); }

@media (max-width: 1140px) {
  .header__inner { min-height: 76px; }
  .header__cta { display: none; }
  .menu-btn { display: flex; }
  .header__actions { gap: 8px; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 8px var(--pad) 24px; box-shadow: 0 16px 30px rgba(14, 26, 43, 0.08);
    max-height: calc(100vh - 76px); overflow-y: auto; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a:not(.btn) { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
  .nav a[aria-current="page"]::after { display: none; }
  .nav__cta { display: inline-flex; margin-top: 20px; min-height: 52px; }
}
@media (max-width: 420px) {
  .header__inner { gap: 10px; min-height: 68px; }
  .logo { gap: 8px; min-width: 0; }
  .logo__mark { width: 36px; height: 36px; }
  .logo__name { font-size: 18px; }
  .logo__sub { font-size: 7px; letter-spacing: 0.1em; gap: 5px; }
  .logo__sub::before, .logo__sub::after { width: 8px; }
  .header__actions { gap: 4px; }
  .icon-btn, .menu-btn { width: 40px; height: 40px; }
  .nav { max-height: calc(100vh - 68px); }
}
@media (max-width: 350px) {
  .hero__eyebrow { font-size: 10px; letter-spacing: 0.12em; }
  .hero__eyebrow span { margin: 0 4px; }
  .logo__mark { width: 30px; height: 30px; }
  .logo__name { font-size: 16px; }
  .logo__sub { font-size: 6px; }
  .logo__sub::before, .logo__sub::after { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero__media { position: absolute; inset: 0 0 0 auto; width: 62%; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--navy) 0%, rgba(14, 26, 43, 0.75) 22%, rgba(14, 26, 43, 0.1) 55%, rgba(14, 26, 43, 0) 100%); }
.hero__inner { position: relative; padding-top: clamp(48px, 6vw, 72px); padding-bottom: clamp(36px, 4vw, 48px); }
.hero__eyebrow { font-size: 14px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-bright); }
.hero__eyebrow span { margin: 0 10px; }
.hero__title { margin-top: 20px; font: 400 clamp(38px, 5vw, 68px)/1.08 var(--serif); letter-spacing: -0.01em; }
.hero__title em { font-style: normal; color: var(--gold-bright); }
.hero__rule { display: block; width: 80px; height: 2px; margin-top: 30px; background: var(--gold); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.hero__features { display: flex; flex-wrap: wrap; margin-top: clamp(40px, 5vw, 64px); max-width: 680px; }
.hero__features li {
  flex: 1 1 140px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 4px 18px;
  font-size: 15px; line-height: 1.35; text-align: center; color: #EEF0F4;
}
.hero__features li + li { border-left: 1px solid rgba(255, 255, 255, 0.22); }
.hero__features .ic { color: #fff; }
@media (max-width: 900px) {
  .hero__media { width: 100%; opacity: 0.45; }
  .hero__media::after { background: linear-gradient(90deg, var(--navy) 10%, rgba(14, 26, 43, 0.6) 100%); }
}
@media (max-width: 600px) {
  .hero__eyebrow { font-size: 11px; letter-spacing: 0.2em; white-space: nowrap; }
  .hero__eyebrow span { margin: 0 6px; }
  .hero__features li { flex-basis: 50%; padding: 14px 10px; font-size: 14px; }
  .hero__features li + li { border-left: 0; }
  .hero__features li:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.22); }
  .hero__actions .btn { width: 100%; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(44px, 5.5vw, 72px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head .h2 { margin-top: 12px; }

/* Practice cards */
.cards { display: grid; gap: 20px; }
.cards + .cards { margin-top: 20px; }
.cards--5 { grid-template-columns: repeat(5, 1fr); }
.cards--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .cards--5 { grid-template-columns: repeat(3, 1fr); } .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .cards--5, .cards--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .cards--5, .cards--4 { grid-template-columns: 1fr; } }
/* Five cards: fill the last row instead of leaving an empty slot */
@media (min-width: 701px) and (max-width: 1100px) {
  .cards--5 { grid-template-columns: repeat(6, 1fr); }
  .cards--5 .card { grid-column: span 2; }
  .cards--5 .card:nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 481px) and (max-width: 700px) { .cards--5 .card:last-child { grid-column: 1 / -1; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px 20px 52px;
  background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 26, 43, 0.1); }
.card__icon { width: 40px; height: 40px; margin-bottom: 6px; fill: none; stroke: var(--gold); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font: 400 19px/1.2 var(--serif); color: var(--ink); }
.cards--4 .card h3 { font-size: 19px; }
.card p { font-size: 14px; line-height: 1.55; color: var(--muted); }
.card__go {
  position: absolute; right: 18px; bottom: 16px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; background: #fff; box-shadow: 0 2px 8px rgba(14, 26, 43, 0.12); color: var(--ink);
  transition: background var(--ease), color var(--ease);
}
.card__go .ic { width: 14px; height: 14px; stroke-width: 2.2; }
.card:hover .card__go, .post:hover .card__go { background: var(--gold); color: #fff; }
.card[hidden] { display: none; }
.card.is-match { box-shadow: 0 0 0 2px var(--gold), var(--shadow); }
.search-empty { margin-top: 24px; padding: 18px 22px; border: 1px dashed #D6D0C5; border-radius: var(--radius); color: var(--text); }

/* About */
.about { padding: clamp(40px, 5vw, 56px) 0; background: linear-gradient(180deg, #F6F4F0 0%, var(--bg) 100%); }
.about__inner { display: grid; grid-template-columns: 1.3fr 1fr 0.95fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.about__text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.about__body { font-size: 16.5px; line-height: 1.6; color: var(--text); }
.about__media { align-self: stretch; min-height: 320px; position: relative; }
.about__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 12%, #000 88%, transparent 100%); }
.about__points { display: flex; flex-direction: column; gap: 26px; }
.about__points li { display: flex; align-items: center; gap: 22px; font-size: 16px; line-height: 1.4; color: var(--text); }
.about__points .ic { color: var(--gold); }
@media (max-width: 1000px) {
  .about__inner { grid-template-columns: 1fr 1fr; }
  .about__points { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 680px) {
  .about__inner { grid-template-columns: 1fr; }
  .about__media { min-height: 260px; }
  .about__points { grid-template-columns: 1fr; }
}

/* Why */
.why { padding-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.why__inner { display: grid; grid-template-columns: 1.15fr 2.6fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.why .h2, .insights .h2 { font-size: clamp(30px, 2.8vw, 38px); }
.why .h2 { margin-top: 18px; }
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px 20px 26px; display: flex; flex-direction: column; gap: 8px; }
.why__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--tint); color: var(--gold); display: grid; place-items: center; margin-bottom: 10px; }
.why__card h3 { font: 400 17px/1.25 var(--serif); color: var(--ink); }
.why__card p { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
@media (max-width: 1000px) { .why__inner { grid-template-columns: 1fr; } .why__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .why__grid { grid-template-columns: 1fr; } }

/* Insights */
.insights { padding-top: 24px; border-top: 1px solid var(--line); }
.insights__inner { display: grid; grid-template-columns: 1.15fr 2.6fr; gap: clamp(24px, 3vw, 40px); align-items: center; }
.insights .h2 { margin-top: 16px; }
.insights__list { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 36px; }
.insights__all { position: absolute; top: 0; right: 0; }
.post { position: relative; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; }
.post img { width: 100%; aspect-ratio: 3 / 1.1; object-fit: cover; }
.post__body { padding: 16px 56px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.post time { font-size: 12.5px; color: var(--muted); }
.post h3 { font: 400 17px/1.3 var(--serif); color: var(--ink); }
.post h3 a { text-decoration: none; }
.post h3 a::after { content: ""; position: absolute; inset: 0; }
.post:hover h3 { color: var(--gold-text); }
.post .card__go { bottom: 18px; }
@media (max-width: 1000px) { .insights__inner { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .insights__list { grid-template-columns: 1fr; } .insights__all { position: static; justify-self: start; } .insights__list { padding-top: 0; } }

/* CTA */
.cta { background: var(--navy); color: #fff; }
.cta__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding-top: 36px; padding-bottom: 36px; }
.cta .eyebrow { color: var(--gold-bright); font-size: 12px; letter-spacing: 0.24em; }
.cta__title { margin-top: 8px; font: 400 clamp(30px, 3.2vw, 42px)/1.1 var(--serif); }
.cta__sub { margin-top: 10px; font-size: 16px; color: #DCE0E7; }
.cta__actions { display: flex; flex-wrap: wrap; gap: 16px; }
@media (max-width: 600px) { .cta__actions, .cta__actions .btn { width: 100%; } }

/* Footer */
.footer { background: #fff; color: var(--text); }
.footer__inner { display: grid; grid-template-columns: 1.5fr 0.8fr 1fr 1.5fr 1.4fr; gap: 28px; padding-top: 36px; padding-bottom: 32px; }
.footer__brand p { margin-top: 16px; font-size: 13.5px; color: var(--text); }
.social { display: flex; gap: 22px; margin-top: 28px; }
.social a { color: var(--ink); }
.social a:hover { color: var(--gold-text); }
.footer__col { display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; }
.footer__col--tight { gap: 0; line-height: 1.3; }
.footer__col h2 { margin-bottom: 6px; font: 600 14px var(--sans); color: var(--ink); }
.footer__col a { color: var(--muted); text-decoration: none; }
.footer__col a:hover { color: var(--gold-text); }
.footer__contact { gap: 12px; }
.footer__contact p { display: flex; gap: 14px; align-items: flex-start; font-size: 14px; color: var(--text); }
.footer__contact .ic { color: var(--ink); margin-top: 1px; }
.footer__contact a { color: var(--text); }
.footer__map { border-radius: 8px; overflow: hidden; min-height: 180px; background: #EEF0F2; }
.footer__map iframe { width: 100%; height: 100%; min-height: 180px; border: 0; display: block; }
.footer__base { border-top: 1px solid var(--line); background: var(--bg); }
.footer__base-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 13.5px; color: var(--muted); }
.footer__base nav { display: flex; }
.footer__base nav a { color: var(--muted); text-decoration: none; padding: 0 12px; }
.footer__base nav a + a { border-left: 1px solid var(--line); }
.footer__base nav a:last-child { padding-right: 0; }
.footer__base nav a:hover { color: var(--gold-text); }
@media (max-width: 1100px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } .footer__contact { grid-column: span 1; } .footer__map { grid-column: span 2; } }
@media (max-width: 700px) { .footer__inner { grid-template-columns: 1fr 1fr; } .footer__brand, .footer__contact, .footer__map { grid-column: 1 / -1; } }
