/* ============================================================
   ADVOCATE INDERPAL SINGH & CO — STYLESHEET
   ------------------------------------------------------------
   HOW TO CHANGE COLORS: edit the variables below, save, done.
   Everything on the site uses these variables.
   ============================================================ */
:root {
  --navy: #10203a;          /* primary dark blue */
  --navy-deep: #0b1729;     /* darker blue for footer/hero */
  --gold: #c9a227;          /* accent gold */
  --gold-light: #e3c766;
  --ink: #23293a;           /* body text */
  --muted: #5d6675;         /* secondary text */
  --paper: #ffffff;
  --cream: #f7f4ec;         /* soft section background */
  --line: #e5e1d6;

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16.5px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Typography ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  display: inline-block;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 500;
  color: var(--gold);
  margin-bottom: .9rem;
}
.section { padding: 5.5rem 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy-deep); }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: #c8cfdb; }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.lead { font-size: 1.12rem; color: var(--muted); margin-top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: .85rem 2.1rem;
  border: 1px solid var(--gold);
  color: var(--navy);
  background: var(--gold);
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-size: .82rem;
  transition: all .25s ease;
  cursor: pointer;
}
.btn:hover { background: var(--gold-light); border-color: var(--gold-light); }
.btn--ghost { background: transparent; color: var(--gold); }
.btn--ghost:hover { background: var(--gold); color: var(--navy); }
.btn--light-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--light-ghost:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* ---------- Header / Navigation ---------- */
.topbar {
  background: var(--navy-deep);
  color: #aeb8c8;
  font-size: .82rem;
  padding: .45rem 0;
}
.topbar .container { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.topbar a:hover { color: var(--gold-light); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(6px);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  gap: 1.5rem;
}
.brand { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name {
  font-family: var(--font-display);
  font-size: 1.32rem;
  white-space: nowrap;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: .02em;
}
.brand-sub {
  font-size: .68rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav { display: flex; align-items: center; gap: 1.15rem; flex-wrap: nowrap; }
.nav > li { position: relative; }
.nav a {
  font-size: .8rem;
  letter-spacing: .05em;
  white-space: nowrap;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink);
  padding: .4rem 0;
}
.nav a:hover, .nav a.active { color: var(--gold); }

/* Dropdown (Practice Areas) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -1rem;
  min-width: 230px;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid var(--gold);
  box-shadow: 0 18px 40px rgba(16,32,58,.12);
  padding: .6rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: all .22s ease;
}
.nav li:hover > .dropdown-menu,
.nav li:focus-within > .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-menu a {
  display: block;
  padding: .55rem 1.3rem;
  text-transform: none;
  letter-spacing: .02em;
  font-size: .95rem;
}
.dropdown-menu a:hover { background: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.7rem;
  color: var(--navy);
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse at 85% 20%, rgba(201,162,39,.16), transparent 55%),
    radial-gradient(ellipse at 15% 90%, rgba(201,162,39,.08), transparent 45%),
    linear-gradient(120deg, #0b1729 0%, #16294a 100%);
  background-color: var(--navy-deep);
  color: #fff;
  padding: 7.5rem 0 8rem;
  border-bottom: 3px solid var(--gold);
}
.hero h1 { color: #fff; max-width: 720px; }
.hero .lead { color: #cdd5e1; max-width: 620px; }
.hero-actions { margin-top: 2.4rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-rule {
  width: 72px; height: 3px; background: var(--gold); margin-bottom: 1.6rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: 4rem;
  align-items: center;
}
.hero-img { position: relative; justify-self: end; width: min(500px, 100%); }
.hero-img img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: 65% 22%;
  border: 1px solid rgba(255,255,255,.18);
}
.hero-img::after {
  content: "";
  position: absolute;
  inset: 1.1rem -1.1rem -1.1rem 1.1rem;
  border: 1px solid var(--gold);
  pointer-events: none;
}

/* ---------- Stats strip ---------- */
.stats { background: var(--gold); }
.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  text-align: center;
}
.stat { padding: 1.7rem 1rem; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 2.1rem;
  color: var(--navy-deep);
  line-height: 1.1;
}
.stat span { font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; color: #4b3f10; }

/* ---------- About split ---------- */
.split { display: grid; grid-template-columns: 5fr 6fr; gap: 4rem; align-items: center; }
.split-img { position: relative; }
.split-img img {
  width: 100%;
  height: 560px;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
}
.split-img::after {
  content: "";
  position: absolute;
  inset: 1.2rem -1.2rem -1.2rem 1.2rem;
  border: 1px solid var(--gold);
  z-index: -1;
}

/* ---------- About list ---------- */
.about-list { margin: .4rem 0 1.4rem; }
.about-list li {
  position: relative;
  padding-left: 1.6rem;
  margin-bottom: .7rem;
  color: var(--muted);
  font-size: 1.02rem;
}
.about-list li::before {
  content: "▸";
  position: absolute;
  left: .2rem;
  color: var(--gold);
}
.about-list li b { color: var(--navy); }

/* ---------- Practice area cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 1.4rem;
}
.p-card {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 3px solid transparent;
  padding: 2.2rem 1.9rem;
  transition: all .28s ease;
  display: block;
}
.p-card:hover {
  border-top-color: var(--gold);
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(16,32,58,.1);
}
.p-card .icon { font-size: 1.9rem; color: var(--gold); margin-bottom: 1rem; display: block; }
.p-card h3 { margin-bottom: .6rem; }
.p-card p { color: var(--muted); font-size: .97rem; }
.p-card .more { display: inline-block; margin-top: 1.1rem; color: var(--gold); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.2rem;
}
.gallery figure {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}
.gallery img { width: 100%; height: 320px; object-fit: cover; transition: transform .5s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption {
  padding: .8rem 1rem;
  font-size: .88rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.gallery--page img { cursor: zoom-in; }
.gallery img[data-lightbox] { cursor: zoom-in; }
.gallery--page { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: .9rem; }
.gallery--page img { height: 240px; }
.gallery--page figure { border: 1px solid var(--line); }

/* ---------- Lightbox ---------- */
.lb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 22, .94);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease;
}
.lb-overlay.open { opacity: 1; visibility: visible; }
.lb-stage {
  max-width: min(1100px, 92vw);
  max-height: 86vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lb-stage img {
  max-width: min(1100px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
}
.lb-caption {
  color: #cdd5e1;
  font-size: .92rem;
  margin-top: 1rem;
  text-align: center;
}
.lb-count {
  color: var(--gold-light);
  font-size: .78rem;
  letter-spacing: .18em;
  margin-top: .3rem;
}
.lb-btn {
  position: absolute;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s ease;
  user-select: none;
}
.lb-btn:hover { background: var(--gold); border-color: var(--gold); color: var(--navy-deep); }
.lb-close { top: 1.4rem; right: 1.4rem; }
.lb-prev { left: 1.4rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.4rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lb-btn { width: 42px; height: 42px; font-size: 1.1rem; }
  .lb-prev { left: .6rem; }
  .lb-next { right: .6rem; }
  .lb-close { top: .8rem; right: .8rem; }
}

/* ---------- Testimonials ---------- */
.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
}
.t-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2rem 1.9rem;
  position: relative;
}
.t-card::before {
  content: "\201C";
  font-family: var(--font-display);
  font-size: 3.6rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: .4rem;
}
.t-card p { color: var(--ink); font-size: .98rem; }
.t-card cite {
  display: block;
  margin-top: 1.2rem;
  font-style: normal;
  font-weight: 600;
  color: var(--navy);
  font-size: .92rem;
}
.t-card cite small { display: block; font-weight: 400; color: var(--muted); }

/* ---------- Case studies ---------- */
.cs-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.4rem 2.2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow .3s ease;
}
.cs-card:hover { box-shadow: 0 22px 44px rgba(16,32,58,.1); }
.cs-tag {
  align-self: flex-start;
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: .25rem .8rem;
}
.cs-card p { color: var(--muted); font-size: .97rem; }

/* Article page */
.article { max-width: 780px; margin: 0 auto; }
.article h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.article p { margin-bottom: 1.4rem; }
.article .meta { color: var(--muted); font-size: .9rem; margin-bottom: 2.2rem; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.4rem;
}
.team-card {
  background: #fff;
  border: 1px solid var(--line);
  padding: 2.1rem 1.9rem;
  border-left: 3px solid var(--gold);
}
.team-card h3 { margin-bottom: .2rem; }
.team-card .quals { color: var(--gold); font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .7rem; }
.team-card p { color: var(--muted); font-size: .95rem; }

/* ---------- Values / promise ---------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2.4rem;
}
.value h3 { color: #fff; margin-bottom: .6rem; }
.value h3::before {
  content: "";
  display: block;
  width: 34px; height: 2px;
  background: var(--gold);
  margin-bottom: 1rem;
}

/* ---------- Instagram ---------- */
.insta-wrap {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 3rem;
  align-items: center;
}
.insta-embed iframe, .insta-embed blockquote {
  width: 100% !important;
  min-height: 460px;
  border: 1px solid var(--line) !important;
  background: #fff;
}
.insta-fallback {
  border: 1px solid var(--line);
  background: #fff;
  padding: 3rem 2rem;
  text-align: center;
}

/* ---------- Videos ---------- */
.video-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--navy-deep);
  border: 1px solid var(--line);
  margin-bottom: 2.2rem;
}
.video-featured iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.4rem;
}
.video-card {
  background: #fff;
  border: 1px solid var(--line);
  display: block;
  transition: all .28s ease;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(16,32,58,.12); }
.video-card .thumb { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--navy-deep); }
.video-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.video-card .thumb::after {
  content: "▶";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  background: rgba(11,23,41,.25);
  transition: background .25s ease;
}
.video-card:hover .thumb::after { background: rgba(11,23,41,.5); }
.video-card .v-title {
  padding: 1rem 1.1rem 1.2rem;
  font-weight: 500;
  font-size: .95rem;
  color: var(--navy);
  line-height: 1.45;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; }
.c-item { display: flex; gap: 1rem; margin-bottom: 1.6rem; }
.c-item .icon { color: var(--gold); font-size: 1.3rem; margin-top: .2rem; }
.c-item b { display: block; color: var(--navy); }
.c-item span, .c-item a { color: var(--muted); }
.c-item a:hover { color: var(--gold); }

form .field { margin-bottom: 1.1rem; }
form label { display: block; font-size: .85rem; font-weight: 500; letter-spacing: .05em; margin-bottom: .35rem; color: var(--navy); }
form input, form textarea, form select {
  width: 100%;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  background: #fff;
  font-family: var(--font-body);
  font-size: .95rem;
  color: var(--ink);
}
form input:focus, form textarea:focus { outline: 2px solid var(--gold); border-color: var(--gold); }

.map-embed iframe { width: 100%; height: 340px; border: 1px solid var(--line); }

/* ---------- Page banner (inner pages) ---------- */
.page-banner {
  background: linear-gradient(rgba(11,23,41,.88), rgba(11,23,41,.88)),
              url('../images/event-public-meeting.jpg') center / cover no-repeat;
  color: #fff;
  padding: 5rem 0 5.5rem;
  text-align: center;
}
.page-banner h1 { color: #fff; }
.page-banner .crumbs { color: #9aa6b8; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-top: .8rem; }
.page-banner .crumbs a { color: var(--gold-light); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; text-align: center; padding: 4.5rem 0; }
.cta-band h2 { color: #fff; margin-bottom: .8rem; }
.cta-band p { color: #c8cfdb; max-width: 620px; margin: 0 auto 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: #a9b3c2; font-size: .93rem; }
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 3rem;
  padding: 4.5rem 0 3rem;
}
.site-footer h4 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 1.1rem;
}
.site-footer a:hover { color: var(--gold-light); }
.site-footer li { margin-bottom: .55rem; }
.footer-brand .brand-name { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.09);
  padding: 1.4rem 0;
  font-size: .8rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.disclaimer-note { font-size: .78rem; color: #7b8698; margin-top: 1.2rem; line-height: 1.6; }

/* ---------- Disclaimer modal (Bar Council of India) ---------- */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11,23,41,.8);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 1.5rem;
}
.modal {
  background: #fff;
  max-width: 640px;
  padding: 2.8rem 2.6rem;
  border-top: 4px solid var(--gold);
  max-height: 86vh;
  overflow-y: auto;
}
.modal h2 { margin-bottom: 1rem; font-size: 1.6rem; }
.modal p { color: var(--muted); font-size: .93rem; margin-bottom: 1rem; }
.modal .btn { margin-top: .8rem; }
.hidden { display: none !important; }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed;
  right: 1.4rem; bottom: 1.4rem;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 10px 26px rgba(0,0,0,.25);
  z-index: 120;
  transition: transform .25s ease;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .split, .insta-wrap, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
  .hero-img { justify-self: start; width: min(360px, 100%); margin-top: 1rem; }
  .hero-img img { height: 400px; }
  .split-img img { height: 420px; }
  .site-footer .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .nav {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: #fff;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    padding: .8rem 4%;
    display: none;
  }
  .nav.open { display: flex; }
  .nav > li { width: 100%; }
  .nav a { display: block; padding: .7rem 0; }
  .dropdown-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; border-left: 2px solid var(--gold);
    margin: .2rem 0 .4rem 1rem;
    padding: 0;
    display: none;
  }
  .nav li.open-sub > .dropdown-menu { display: block; }
  .hero { padding: 5rem 0 5.5rem; }
}
@media (max-width: 560px) {
  .site-footer .footer-main { grid-template-columns: 1fr; }
  .topbar .container { justify-content: center; }
}
