/* ============================================================
   Advocate Akash Kumar — design tokens
   Palette:   paper #F2F0E4 · ink #16273F · oxblood #6E2A2A
              brass #A9812E · slate #4B5A66
   Type:      display = Cormorant Garamond, body/UI = Manrope
   Signature: circular seal mark + "§" docket numbering on
              services, echoing statute-section references
              already used in Indian legal practice.
   ============================================================ */

:root {
  --paper: #F2F0E4;
  --paper-raised: #FBF9F1;
  --ink: #16273F;
  --ink-soft: #253A57;
  --oxblood: #6E2A2A;
  --oxblood-dark: #571F1F;
  --brass: #A9812E;
  --brass-light: #C9A756;
  --slate: #4B5A66;
  --line: rgba(22, 39, 63, 0.14);

  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;

  --radius: 6px;
  --shadow-file: 0 18px 40px -18px rgba(22, 39, 63, 0.35);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.65;
}

h1, h2, h3, .brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.2px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  z-index: 2000;
}
.skip-link:focus { left: 10px; top: 10px; }

a { text-decoration: none; }

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

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oxblood);
  margin-bottom: 0.6rem;
}

.section { padding: 5.5rem 0; }
.section-head { max-width: 640px; margin-bottom: 2.75rem; }
.section-title { font-size: clamp(1.7rem, 2.6vw, 2.4rem); margin-bottom: 1rem; }
.section-text { color: var(--slate); font-size: 1.03rem; }

/* -------------------- Focus visibility -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible,
textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--brass);
  outline-offset: 2px;
}

/* -------------------- Buttons -------------------- */
.btn-consult {
  background: var(--oxblood);
  border: 1px solid var(--oxblood);
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn-consult:hover { background: var(--oxblood-dark); color: #fff; transform: translateY(-1px); }

.btn-outline-file {
  background: transparent;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 700;
  padding: 0.72rem 1.6rem;
  border-radius: var(--radius);
  transition: all 0.2s ease;
}
.btn-outline-file:hover { background: var(--ink); color: var(--paper); }

/* -------------------- Topbar -------------------- */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  font-size: 0.83rem;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.topbar-contact { display: flex; gap: 1.4rem; }
.topbar a { color: rgba(255,255,255,0.85); }
.topbar a:hover { color: var(--brass-light); }
.topbar i { margin-right: 0.35rem; }

/* -------------------- Header / Nav -------------------- */
.site-header {
  background: var(--paper-raised);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.navbar { padding: 0.9rem 0; }

.brand-mark { display: flex; align-items: center; gap: 0.7rem; }
.brand-seal { width: 42px; height: 42px; color: var(--oxblood); flex-shrink: 0; }
.brand-seal svg { width: 100%; height: 100%; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.35rem; font-weight: 700; color: var(--ink); }
.brand-role {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
}

.nav-link {
  font-weight: 600;
  color: var(--ink);
  padding: 0.5rem 0.9rem !important;
  position: relative;
}
.nav-link.active, .nav-link:hover { color: var(--oxblood); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0.9rem; right: 0.9rem; bottom: 0.2rem;
  height: 2px;
  background: var(--oxblood);
}

/* -------------------- Hero -------------------- */
.hero { padding: 3.5rem 0 4.5rem; }

.hero-file {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow-file);
  padding: clamp(2rem, 4vw, 4rem);
  position: relative;
  overflow: hidden;
}

.hero-tag {
  position: absolute;
  top: -10px; right: 46px;
  width: 34px; height: 70px;
  background: var(--oxblood);
  border-radius: 0 0 6px 6px;
}
.hero-tag::after {
  content: "";
  position: absolute;
  left: 50%; top: 14px;
  width: 10px; height: 10px;
  transform: translateX(-50%);
  background: var(--paper-raised);
  border-radius: 50%;
}

.eyebrow { display: inline-block; }
.hero-title {
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 1.3rem;
}
.hero-lede { font-size: 1.1rem; color: var(--slate); max-width: 46ch; margin-bottom: 2rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.docket-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 8px;
  padding: 2rem;
  position: relative;
}
.docket-seal { width: 84px; margin: 0 auto 1.4rem; color: var(--brass-light); }
.seal-text { font-family: var(--font-display); font-size: 22px; fill: currentColor; }
.seal-subtext { font-family: var(--font-body); font-size: 7px; letter-spacing: 2px; fill: currentColor; }

.docket-meta { margin: 0; }
.docket-meta > div {
  display: flex;
  justify-content: space-between;
  /* gap: 1rem; */
  padding: 0.65rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-size: 0.9rem;
}
.docket-meta > div:last-child { border-bottom: none; }
.docket-meta dt { color: rgba(242,240,228,0.6); font-weight: 500; }
.docket-meta dd { margin: 0; font-weight: 700; text-align: right; }

/* -------------------- Rounded "file" images -------------------- */
.rounded-file { border-radius: 8px; box-shadow: var(--shadow-file); }

/* -------------------- Link with arrow -------------------- */
.link-arrow {
  font-weight: 700;
  color: var(--oxblood);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: gap 0.2s ease;
}
.link-arrow:hover { gap: 0.8rem; color: var(--oxblood-dark); }

/* -------------------- Service cards (preview grid) -------------------- */
.service-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  height: 100%;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  color: var(--ink);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-file);
  color: var(--ink);
}
.service-card-image { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.service-card-image img { width: 100%; height: 100%; object-fit: cover; }
.service-docket {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--ink);
  color: var(--brass-light);
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}
.service-card-body { padding: 1.4rem 1.3rem; }
.service-card-body h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
.service-card-body p { color: var(--slate); font-size: 0.94rem; margin: 0; }

/* -------------------- Why cards -------------------- */
.why-card {
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2rem;
  height: 100%;
  position: relative;
}
.why-card i { font-size: 1.6rem; color: var(--oxblood); margin-bottom: 1rem; display: block; }
.why-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.why-card p { color: var(--slate); margin: 0; font-size: 0.95rem; }
.why-docket {
  display: inline-block;
  font-weight: 800;
  color: var(--brass);
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}

/* -------------------- Credentials row (about) -------------------- */
.credential-row { display: flex; gap: 2.5rem; margin-top: 1.5rem; flex-wrap: wrap; }
.credential { display: flex; flex-direction: column; }
.credential-num { font-family: var(--font-display); font-size: 2.1rem; font-weight: 700; color: var(--oxblood); line-height: 1; }
.credential-label { font-size: 0.82rem; color: var(--slate); margin-top: 0.3rem; }

/* -------------------- Gallery -------------------- */
.gallery-img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }

/* -------------------- Enquiry form -------------------- */
.enquiry-section { background: var(--ink); }
.enquiry-card {
  background: var(--paper-raised);
  border-radius: 10px;
  padding: clamp(1.75rem, 4vw, 3rem);
  box-shadow: var(--shadow-file);
}
.enquiry-section .eyebrow { color: var(--brass); }
.enquiry-contact-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.enquiry-contact-list li { margin-bottom: 0.8rem; font-weight: 600; }
.enquiry-contact-list i { width: 22px; color: var(--oxblood); }
.enquiry-contact-list a { color: var(--ink); }

.enquiry-form .form-label { font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; }
.enquiry-form .form-control, .enquiry-form .form-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.65rem 0.9rem;
  background: #fff;
}
.enquiry-form .form-control:focus, .enquiry-form .form-select:focus {
  border-color: var(--brass);
  box-shadow: 0 0 0 3px rgba(169,129,46,0.18);
}
.form-note { font-size: 0.8rem; color: var(--slate); margin: 0.7rem 0 0; }

/* -------------------- Page header (interior pages) -------------------- */
.page-header {
  background: var(--ink);
  color: var(--paper);
  padding: 4rem 0 3rem;
}
.page-header .eyebrow { color: var(--brass-light); }
.page-title { font-size: clamp(2rem, 4vw, 2.9rem); color: #fff; margin-bottom: 0.8rem; }
.page-lede { color: rgba(242,240,228,0.75); max-width: 60ch; font-size: 1.05rem; margin: 0; }

/* -------------------- Services full listing -------------------- */
.services-index {
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 3.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.services-index a {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--slate);
  padding: 0.3rem 0.5rem;
}
.services-index a:hover { color: var(--oxblood); }

.service-detail {
  padding: 3rem 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: 100px;
}
.service-detail:last-child { border-bottom: none; }
.service-detail-image { border-radius: 8px; overflow: hidden; box-shadow: var(--shadow-file); aspect-ratio: 4/3; }
.service-detail-image img { width: 100%; height: 100%; object-fit: cover; }
.service-detail h2 { font-size: 1.8rem; margin: 0.4rem 0 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.service-detail h2 i { color: var(--oxblood); font-size: 1.3rem; }
.service-detail p { color: var(--slate); margin-bottom: 1.1rem; }
.service-docket-label { font-weight: 800; letter-spacing: 0.06em; color: var(--brass); font-size: 0.85rem; }
.service-detail--reverse .row { flex-direction: row-reverse; }

/* -------------------- CTA band -------------------- */
.cta-band { background: var(--paper-raised); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cta-band .btn-consult { margin-top: 1rem; }

/* -------------------- Contact cards -------------------- */
.contact-card {
  display: block;
  background: var(--paper-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.8rem 1.2rem;
  text-align: center;
  height: 100%;
  color: var(--ink);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-file); color: var(--ink); }
.contact-card i { font-size: 1.6rem; color: var(--oxblood); margin-bottom: 0.7rem; display: block; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.contact-card p { color: var(--slate); font-size: 0.88rem; margin: 0; word-break: break-word; }
.contact-card--static:hover { transform: none; box-shadow: none; }

.map-embed { border-radius: 8px; overflow: hidden; margin-top: 1.5rem; border: 1px solid var(--line); }

/* -------------------- Footer -------------------- */
.site-footer { background: var(--ink); color: rgba(242,240,228,0.82); padding: 4.5rem 0 0; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-role { color: rgba(242,240,228,0.55); }
.site-footer .brand-seal { color: var(--brass-light); }
.footer-about { margin-top: 1.2rem; font-size: 0.92rem; color: rgba(242,240,228,0.65); max-width: 34ch; }
.footer-heading {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--brass-light);
  margin-bottom: 1.1rem;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 0.65rem; font-size: 0.92rem; }
.footer-links a { color: rgba(242,240,228,0.82); }
.footer-links a:hover { color: var(--brass-light); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: flex-start; }
.footer-contact i { margin-top: 0.25rem; color: var(--brass-light); width: 16px; flex-shrink: 0; }

.footer-bottom {
  border-top: 1px solid rgba(242,240,228,0.14);
  margin-top: 3rem;
  padding: 1.5rem 0 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: rgba(242,240,228,0.55);
}
.footer-disclaimer { max-width: 60ch; margin: 0; }

/* -------------------- Floating buttons -------------------- */
.back-to-top {
  position: fixed;
  right: 1.4rem;
  bottom: 5.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  border: none;
  display: none;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-file);
  z-index: 900;
  cursor: pointer;
}
.back-to-top.show { display: flex; }

.whatsapp-fab {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: var(--shadow-file);
  z-index: 900;
}
.whatsapp-fab:hover { color: #fff; transform: scale(1.05); }

/* -------------------- Reveal-on-scroll -------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* -------------------- Disclaimer popup -------------------- */
body.disclaimer-lock { overflow: hidden; }

.disclaimer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(22, 39, 63, 0.82);
  z-index: 3000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.disclaimer-box {
  background: var(--paper-raised);
  border-radius: 10px;
  max-width: 560px;
  width: 100%;
  padding: clamp(1.75rem, 4vw, 2.75rem);
  text-align: center;
  box-shadow: var(--shadow-file);
  max-height: 90vh;
  overflow-y: auto;
}
.disclaimer-seal { width: 56px; margin: 0 auto 1rem; color: var(--oxblood); }
.disclaimer-seal svg { width: 100%; height: 100%; }
.disclaimer-box .eyebrow { justify-content: center; }
.disclaimer-box h2 { font-size: 1.6rem; margin-bottom: 1.1rem; }
.disclaimer-text { text-align: left; color: var(--slate); font-size: 0.92rem; margin-bottom: 1.5rem; }
.disclaimer-text p { margin-bottom: 0.8rem; }
.disclaimer-text ul { padding-left: 1.2rem; margin: 0; }
.disclaimer-text li { margin-bottom: 0.6rem; }

/* -------------------- Gallery -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.gallery-item {
  position: relative;
  border: none;
  padding: 0;
  background: none;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  background: linear-gradient(to top, rgba(22,39,63,0.85), transparent);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 1.6rem 0.7rem 0.6rem;
  text-align: left;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-caption, .gallery-item:focus-visible .gallery-caption { opacity: 1; }

@media (max-width: 991px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; } }

/* -------------------- Lightbox -------------------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(22, 39, 63, 0.95);
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}
.lightbox.is-open { display: flex; }
.lightbox-figure { max-width: 90vw; max-height: 85vh; margin: 0; text-align: center; }
.lightbox-figure img { max-width: 90vw; max-height: 75vh; object-fit: contain; border-radius: 6px; margin: 0 auto; }
.lightbox-figure figcaption { color: var(--paper); margin-top: 1rem; font-size: 0.95rem; }

.lightbox-close, .lightbox-nav {
  position: absolute;
  background: rgba(242,240,228,0.1);
  border: 1px solid rgba(242,240,228,0.3);
  color: var(--paper);
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(242,240,228,0.22); }
.lightbox-close { top: 1.5rem; right: 1.5rem; }
.lightbox-prev { left: 1.5rem; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 1.5rem; top: 50%; transform: translateY(-50%); }

@media (max-width: 575px) {
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-close { top: 0.75rem; right: 0.75rem; }
}

/* -------------------- Responsive -------------------- */
@media (max-width: 991px) {
  .topbar-inner { justify-content: center; text-align: center; }
  .service-detail--reverse .row { flex-direction: row; }
  .credential-row { gap: 1.8rem; }
}
@media (max-width: 767px) {
  .section { padding: 3.5rem 0; }
  .hero-file { padding: 1.6rem; }
  .footer-bottom { flex-direction: column; }
}
