/* ==========================================================================
   Adv. Pooja Waghela - Custom Stylesheet
   Theme: white paper, deep navy, muted brass and natural photography.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --ink: #0c0a09;
  --ink-800: #292524;
  --ink-700: #44403c;
  --ink-600: #57534e;
  --ink-500: #78716c;
  --ink-400: #a8a29e;
  --ink-300: #d6d3d1;
  --line: #e7e5e4;
  --line-soft: #f2f1f0;
  --mist: #fafaf9;
  --paper: #ffffff;
  --navy: #183747;
  --brass: #86652f;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- 2. Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; overflow-x: hidden; overflow-x: clip; }
body { overflow-x: hidden; overflow-x: clip; background: var(--paper); color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--mist); }
::-webkit-scrollbar-thumb { background: var(--ink-300); border-radius: 999px; border: 2px solid var(--mist); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-400); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: 6px;
}

/* horizontal carousel scrollbars stay out of the way */
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.no-scrollbar::-webkit-scrollbar { display: none; }

/* ---------- 3. Keyframes ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseSoft { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .7; transform: scale(1.07); } }
@keyframes sweep { from { transform: translateX(-120%); } to { transform: translateX(320%); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* ---------- 4. Typography ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .68rem; font-weight: 600; letter-spacing: .3em;
  text-transform: uppercase; color: var(--ink-500);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--brass); display: inline-block; }

.h-display {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 600; line-height: 1.12; letter-spacing: -0.015em; color: var(--ink);
}
.headline-xl { font-size: clamp(2.35rem, 7vw, 5.2rem); }
.headline-lg { font-size: clamp(1.7rem, 4vw, 2.6rem); }
.headline-md { font-size: clamp(1.15rem, 2.4vw, 1.5rem); }

/* Oversized 404 numerals on the error page */
.err-code { font-size: clamp(3.6rem, 13vw, 6.2rem); letter-spacing: -0.03em; }

.lead { color: var(--ink-600); line-height: 1.8; }

/* thin rule that "draws" itself in via AOS */
.rule { height: 1px; background: var(--line); }

/* soft underline accent used under key words */
.underline-ink {
  background-image: linear-gradient(to bottom, transparent 70%, rgba(177,145,85,.22) 70%);
  background-repeat: no-repeat; background-size: 100% 100%;
}

/* ---------- 5. Buttons ---------- */
.btn-dark, .btn-line {
  position: relative; display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 2px;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  cursor: pointer; overflow: hidden; border: 1px solid transparent;
  transition: transform .4s var(--ease), background .4s var(--ease), color .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -22px rgba(12,10,9,.7); }
.btn-dark::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: translateX(-120%); pointer-events: none;
}
.btn-dark:hover::after { animation: sweep .9s var(--ease); }

.btn-line { background: transparent; color: var(--ink); border-color: var(--ink-300); }
.btn-line:hover { transform: translateY(-3px); border-color: var(--ink); background: var(--mist); }

.btn-dark[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* arrow link */
.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); cursor: pointer; background: none; border: 0; padding: 0;
}
.link-arrow i { transition: transform .4s var(--ease); }
.link-arrow:hover i { transform: translateX(6px); }

/* ---------- 6. Navbar ---------- */
#navbar { transition: background .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
#navbar.scrolled {
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom-color: var(--line);
  box-shadow: 0 14px 40px -34px rgba(12,10,9,.55);
}
.nav-consultation { display: none; }
@media (min-width: 1024px) { .nav-consultation { display: inline-flex; } }

.nav-link { position: relative; font-size: .8rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-500); padding: .3rem 0; transition: color .35s var(--ease); }
.nav-link::after { content: ""; position: absolute; left: 0; bottom: -3px; height: 1px; width: 0; background: var(--ink); transition: width .4s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

.mobile-link {
  display: block; padding: .85rem .25rem;
  font-family: "Playfair Display", Georgia, serif; font-size: 1.45rem; color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: padding-left .35s var(--ease), color .35s var(--ease);
}
.mobile-link:hover { padding-left: 1rem; color: var(--ink-500); }

/* ---------- 7. Hero ---------- */
.hero-grid {
  background-image:
    linear-gradient(to right, rgba(12,10,9,.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(12,10,9,.045) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 78%);
}

.img-mono { filter: grayscale(100%) contrast(1.06) brightness(1.02); }

/* ---------- 8. Marquee strip ---------- */
.marquee-track { animation: marquee 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ---------- 9. Service carousel ---------- */
.svc-track {
  display: flex; gap: 1.5rem;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: .5rem .25rem 2rem;
  cursor: grab;
}
.svc-track.is-dragging { cursor: grabbing; scroll-behavior: auto; scroll-snap-type: none; }
.svc-track.is-dragging * { user-select: none; pointer-events: none; }

.svc-card {
  position: relative; flex: 0 0 auto;
  width: min(86vw, 22rem);
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: 10.5rem 1.75rem 1.75rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--svc-surface, var(--paper));
  border: 1px solid var(--line);
  border-radius: 3px;
  transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .5s var(--ease);
}
.svc-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  z-index: 0;
  height: 9.5rem;
  background-image: linear-gradient(to bottom, transparent 38%, var(--svc-surface, var(--paper)) 100%), var(--svc-photo);
  background-position: center, center 44%;
  background-size: cover;
  filter: saturate(.9);
  opacity: 1;
  transition: transform .7s var(--ease), opacity .5s var(--ease);
}
.svc-card > * { position: relative; z-index: 1; }
.svc-card:hover::before { transform: scale(1.04); }
.svc-card--property { --svc-photo: url("assets/img/property-real-estate.jpg"); }
.svc-card--documents { --svc-photo: url("assets/img/law-2.jpg"); }
.svc-card--business { --svc-photo: url("assets/img/law-3.jpg"); }
.svc-card--family { --svc-photo: url("assets/img/law-4.jpg"); }
.svc-card--advisory { --svc-photo: url("assets/img/law-5.jpg"); }
@media (min-width: 768px) { .svc-card { width: 21rem; } }
@media (min-width: 1280px) { .svc-card { width: 22.5rem; } }

.svc-card:hover { transform: translateY(-8px); border-color: var(--ink-300); box-shadow: 0 34px 70px -40px rgba(12,10,9,.5); }
.mission-note { border-left: 3px solid var(--brass); padding: 1.25rem 1.5rem; background: #f5f2eb; }
.detail-header { position: sticky; top: 0; z-index: 80; background: rgba(255,255,255,.97); border-bottom: 1px solid var(--line); }
.detail-nav { max-width: 1120px; margin: auto; padding: 1rem 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.detail-brand { font-family: "Playfair Display", Georgia, serif; font-weight: 600; color: var(--navy); }
.detail-links { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .82rem; color: var(--navy); }
.detail-links a:hover { text-decoration: underline; text-underline-offset: 4px; }
.detail-main { max-width: 920px; margin: auto; padding: 4rem 1.25rem; }
.detail-intro { max-width: 760px; margin-bottom: 3rem; }
.detail-section { padding: 2rem 0; border-top: 1px solid var(--line); scroll-margin-top: 110px; }
.detail-section p { margin-top: 1rem; color: var(--ink-600); line-height: 1.85; }
.detail-section ul { margin: 1rem 0; padding-left: 1.3rem; list-style: disc; color: var(--ink-600); line-height: 1.85; }
.detail-footer { padding: 2rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink-600); font-size: .8rem; text-align: center; }
.expertise-main { max-width: 1120px; }
.practice-pills a { padding: .6rem 1rem; border: 1px solid #d6e2e5; border-radius: 999px; background: #f1f6f7; }
.expertise-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 2.5rem; margin-top: 2rem; padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 12px 40px -30px rgba(24,55,71,.3); }
.expertise-photo { position: relative; min-height: 280px; margin: 0; background: #edf2f1; }
.expertise-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.expertise-photo::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(15,35,46,.85)); pointer-events: none; }
.expertise-photo figcaption { position: absolute; bottom: 1.5rem; left: 1.5rem; right: 1.5rem; z-index: 1; color: white; font-family: "Playfair Display", Georgia, serif; font-size: 1.5rem; line-height: 1.3; }
.expertise-copy { min-width: 0; padding: 2rem 2rem 2rem 0; }
.practice-kicker { display: flex; align-items: center; gap: .65rem; margin-bottom: 1.2rem; color: var(--brass); font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.practice-kicker > span { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: #f5f0e6; font-size: 1.5rem; }
.detail-section .preparation-note { padding: 1rem; border-left: 3px solid #7e9d9c; background: #f1f6f5; font-size: .85rem; }
.preparation-note strong { display: block; color: var(--navy); margin-bottom: .3rem; }
.about-mission { margin: 1rem 0 2rem; padding: 2rem; border: 1px solid #e5d9c0; border-radius: 12px; background: linear-gradient(120deg,#faf6ed,#f1f6f5); }
.mission-symbol { display: block; color: var(--brass); font-size: 2.5rem; margin-bottom: .75rem; line-height: 1; }
.legal-disclaimer { width: min(540px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: clamp(1.5rem, 5vw, 2.5rem); border: 1px solid #e5d9c0; border-radius: 12px; background: #fffdf9; color: var(--ink); overflow-y: auto; box-shadow: 0 24px 80px rgba(0,0,0,.25); }
.legal-disclaimer::backdrop { background: rgba(15,28,36,.78); }
.legal-disclaimer h2 { margin: .75rem 0 1.25rem; font-size: 2rem; color: var(--navy); }
.legal-disclaimer #disclaimer-description p { margin: 0 0 1rem; color: var(--ink-600); font-size: .92rem; line-height: 1.8; }
.legal-disclaimer .btn-dark { margin-top: .5rem; }
html:has(.legal-disclaimer[open]) { overflow: hidden; }
@media (max-width: 700px) {
  .expertise-panel { grid-template-columns: minmax(0,1fr); gap: 0; }
  .expertise-photo, .expertise-photo img { min-height: 0; height: 210px; }
  .expertise-copy { padding: 1.5rem; }
}
@media (max-width: 480px) { .detail-nav { align-items: flex-start; } .detail-brand { max-width: 140px; } .detail-links { gap: .6rem; } .detail-main { padding-top: 2.5rem; } }

/* the number doubles as a watermark */
.svc-num {
  position: absolute; top: 1.35rem; right: 1.5rem;
  font-family: "Playfair Display", Georgia, serif; font-size: 2.6rem; font-weight: 700;
  color: var(--ink); opacity: .07; line-height: 1; user-select: none;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.svc-card:hover .svc-num { opacity: .16; transform: translateY(-3px); }

.svc-icon {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid var(--ink-300); border-radius: 2px;
  font-size: 1.15rem; color: var(--ink);
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.svc-card:hover .svc-icon { background: var(--ink); color: #fff; border-color: var(--ink); }

.svc-item {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .5rem 0; font-size: .875rem; color: var(--ink-600); line-height: 1.55;
  border-bottom: 1px solid var(--line-soft);
  transition: color .3s var(--ease), padding-left .3s var(--ease);
}
.svc-item:last-child { border-bottom: 0; }
.svc-item i { font-size: .6rem; margin-top: .5rem; color: var(--ink-400); transition: color .3s var(--ease), transform .3s var(--ease); }
.svc-card:hover .svc-item { color: var(--ink-800); }
.svc-card:hover .svc-item i { color: var(--ink); }

.svc-arrow {
  display: grid; place-items: center; width: 3rem; height: 3rem;
  border: 1px solid var(--ink-300); border-radius: 999px; background: var(--paper);
  color: var(--ink); cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.svc-arrow:hover:not(:disabled) { background: var(--ink); color: #fff; border-color: var(--ink); transform: scale(1.06); }
.svc-arrow:disabled { opacity: .3; cursor: not-allowed; }

.svc-dot {
  display: grid; place-items: center;
  width: 26px; height: 26px; padding: 0;
  background: none; border: 0; border-radius: 999px; cursor: pointer;
}
/* The visible mark lives in ::before so the tappable button can be a
   comfortable 26x26 while the dot itself stays 7px. */
.svc-dot::before {
  content: ''; display: block; width: 7px; height: 7px;
  border-radius: 999px; background: var(--ink-300);
  transition: width .4s var(--ease), background .4s var(--ease);
}
.svc-dot:hover::before { background: var(--ink-500); }
.svc-dot:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.svc-dot.is-active::before { width: 26px; background: var(--ink); }

/* ---------- 10. Generic cards ---------- */
/* ---------- 11. Form ---------- */
.field-label { display: block; margin-bottom: .5rem; font-size: .68rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-600); }
.field-input {
  width: 100%; padding: .9rem 1rem;
  font-size: .95rem; color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 2px;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.field-input::placeholder { color: var(--ink-400); }
.field-input:hover { border-color: var(--ink-300); }
.field-input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(12,10,9,.07); }
.field-input.invalid { border-color: #b91c1c; box-shadow: 0 0 0 3px rgba(185,28,28,.1); }

.field-select {
  appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2.6rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%231c1917' stroke-width='2.4' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
}
.field-error { margin-top: .4rem; font-size: .76rem; color: #b91c1c; }

/* ---------- 12. Preloader ---------- */
.preloader-mark { animation: pulseSoft 1.9s ease-in-out infinite; }
#preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- 13. Footer ---------- */
.footer-heading { font-size: .68rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-400); }
.footer-link { display: inline-block; padding: .3rem 0; color: var(--ink-500); transition: color .3s var(--ease), padding-left .3s var(--ease); }
.footer-link:hover { color: #fff; padding-left: 4px; }

/* ---------- 14. Toast ---------- */
#toastContainer { pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: .8rem;
  min-width: 280px; max-width: 92vw; padding: .95rem 1.1rem;
  font-size: .88rem; color: #fff; background: var(--ink);
  border-radius: 3px; box-shadow: 0 26px 50px -26px rgba(0,0,0,.8);
  animation: fadeUp .4s var(--ease) both;
}
.toast .toast-icon { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 2px; flex-shrink: 0; background: rgba(255,255,255,.12); }
.toast.toast-success .toast-icon { color: #86efac; }
.toast.toast-error .toast-icon { color: #fca5a5; }
.toast.toast-info .toast-icon { color: #e5e5e5; }
.toast.is-leaving { animation: fadeUp .32s var(--ease) reverse both; }

/* ---------- 15. Back to top ---------- */
#backToTop { opacity: 0; transform: translateY(14px); transition: opacity .35s var(--ease), transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease); }
#backToTop.is-visible { opacity: 1; transform: translateY(0); }
#backToTop:hover { background: var(--ink); color: #fff; }

/* ---------- 16. Off-canvas mobile drawer ---------- */
/* While parked off screen the drawer must stay out of the tab order and the
   accessibility tree. `visibility` flips with a delay that matches the slide:
   instant on open, .5s on close so the slide out stays watchable. */
#mobileMenu { visibility: hidden; transition: transform .5s var(--ease), visibility 0s linear .5s; }
#mobileMenu:not(.translate-x-full) { visibility: visible; transition: transform .5s var(--ease), visibility 0s linear 0s; }

/* ---------- 17. AOS fallback ---------- */
.no-js [data-aos] { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
}