/* ============================================================
   L.B. SHARMA & ASSOCIATES — Premium Law Firm Stylesheet
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0a1628;
  --navy-mid:  #112040;
  --navy-lt:   #1a2f55;
  --gold:      #c9a84c;
  --gold-lt:   #e2c77a;
  --gold-dk:   #a8883a;
  --white:     #ffffff;
  --off-white: #f5f3ee;
  --gray:      #8a96a8;
  --gray-lt:   #e8e8e4;
  --text:      #1c1c1e;

  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --radius:    6px;
  --radius-lg: 14px;
  --shadow:    0 4px 30px rgba(0,0,0,0.08);
  --shadow-lg: 0 12px 50px rgba(0,0,0,0.14);

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --section-py: 100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--off-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ── FLATICON UICONS ── */
.fi {
  line-height: 1;
  vertical-align: middle;
}
/* Icons inside coloured wrappers inherit their parent's colour */
.logo-scale .fi,
.scales-icon .fi  { color: var(--gold); }
.practice-icon .fi { color: var(--gold); }
.contact-icon .fi  { color: var(--gold); }
.check .fi         { color: var(--navy); font-size: 0.72rem; }
.btn .fi           { font-size: 0.9em; }

/* ── UTILITIES ── */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: var(--section-py) 0; }

.bg-dark { background: var(--navy); }

.gold { color: var(--gold); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border-color: var(--gold);
}
.btn-gold:hover {
  background: var(--gold-lt);
  border-color: var(--gold-lt);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 168, 76, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-full { width: 100%; justify-content: center; }

.section-eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
  display: block;
}
.section-eyebrow.light { color: var(--gold); }

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 16px;
}
.section-title.light { color: var(--white); }

.section-desc {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 560px;
  margin-bottom: 56px;
}
.section-desc.light { color: rgba(255,255,255,0.65); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
}
.section-header .section-desc { margin: 0 auto 56px; }

.d-none-sm { display: inline; }

/* ── NAVBAR ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 20px 0;
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(10, 22, 40, 0.97);
  backdrop-filter: blur(12px);
  padding: 12px 0;
  box-shadow: 0 2px 30px rgba(0,0,0,0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo-scale {
  font-size: 1.7rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  filter: drop-shadow(0 0 8px rgba(201,168,76,0.6));
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
.logo-name em {
  color: var(--gold);
  font-style: normal;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  color: rgba(255,255,255,0.82);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: color var(--transition);
  position: relative;
}
.nav-links a:not(.btn)::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width var(--transition);
}
.nav-links a:not(.btn):hover { color: var(--white); }
.nav-links a:not(.btn):hover::after { width: 100%; }

.nav-links .btn { padding: 10px 22px; font-size: 0.84rem; }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    linear-gradient(135deg, rgba(10,22,40,0.88) 0%, rgba(17,32,64,0.78) 50%, rgba(10,22,40,0.85) 100%),
    url('assets/hero-img.jpg');
  background-size: cover;
  background-position: center;
  background-color: var(--navy);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(10,22,40,0.6) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 100px;
  padding-bottom: 60px;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.78rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 20px;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-scroll-hint {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.hero-scroll-hint span {
  display: block;
  width: 2px;
  height: 60px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  50%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  51%  { transform: scaleY(1); transform-origin: bottom; opacity: 1; }
  100% { transform: scaleY(0); transform-origin: bottom; opacity: 0; }
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--navy-mid);
  border-top: 1px solid rgba(201,168,76,0.2);
  border-bottom: 1px solid rgba(201,168,76,0.2);
  padding: 48px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.stat-item p {
  font-size: 0.8rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  font-weight: 500;
}

.stat-num {
  font-family: var(--font-serif);
  font-size: 3rem;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}

.stat-plus {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--gold);
  vertical-align: top;
  line-height: 1.2;
}

/* ── ABOUT ── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-image-wrap {
  position: relative;
}

.about-img-placeholder {
  position: relative;
  aspect-ratio: 4/5;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-lt) 100%);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,0.2);
}

.about-img-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: var(--radius-lg);
}

.about-img-deco {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(201,168,76,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(201,168,76,0.08) 0%, transparent 60%);
}

.scales-icon {
  font-size: 7rem;
  opacity: 0.28;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 30px rgba(201,168,76,0.3));
}

.about-image-wrap::before {
  content: '';
  position: absolute;
  bottom: -20px; right: -20px;
  width: 60%; height: 60%;
  background: var(--gold);
  opacity: 0.08;
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-image-wrap::after {
  content: '';
  position: absolute;
  top: -20px; left: -20px;
  width: 50%; height: 50%;
  border: 2px solid rgba(201,168,76,0.3);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about-text {
  color: #4a5568;
  margin-bottom: 18px;
  font-size: 1rem;
  line-height: 1.8;
}

.about-list {
  list-style: none;
  margin: 28px 0 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text);
}

.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px; height: 24px;
  background: var(--gold);
  color: var(--navy);
  border-radius: 50%;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── PRACTICE AREAS ── */
.practice-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.practice-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(201,168,76,0.15);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.practice-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(to right, var(--gold), var(--gold-lt));
  transform: scaleX(0);
  transition: transform var(--transition);
  transform-origin: left;
}

.practice-card:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,168,76,0.4);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.practice-card:hover::before { transform: scaleX(1); }

.practice-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: 12px;
  padding: 12px;
}

.practice-card h3 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
}

.practice-card p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

/* ── WHY US ── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.why-card {
  padding: 40px 36px;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--gold);
  transition: var(--transition);
}

.why-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.why-num {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--gray-lt);
  line-height: 1;
  margin-bottom: 16px;
}

.why-card h3 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
}

.why-card p {
  color: #5a6474;
  font-size: 0.95rem;
  line-height: 1.75;
}

/* ── CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: start;
}

.contact-desc {
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.75;
}

.contact-detail {
  display: flex;
  gap: 18px;
  margin-bottom: 28px;
}

.contact-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(201,168,76,0.12);
  border-radius: 10px;
  margin-top: 2px;
}

.contact-detail strong {
  display: block;
  color: var(--gold);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-detail a,
.contact-detail span {
  display: block;
  color: rgba(255,255,255,0.8);
  font-size: 0.95rem;
  line-height: 1.6;
  transition: color var(--transition);
}

.contact-detail a:hover { color: var(--gold); }

/* ── FORM ── */
.contact-form {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--navy);
  text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1.5px solid var(--gray-lt);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
  resize: vertical;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238a96a8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.12);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray);
}

.form-note {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray);
  margin-top: 14px;
  line-height: 1.6;
}

/* ── SUCCESS MODAL ── */
.success-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  align-items: center;
  justify-content: center;
}

.success-modal.open {
  display: flex;
  animation: modalFadeIn 0.3s ease;
}

.success-modal-box {
  background: #fff;
  border-radius: 16px;
  padding: 52px 44px 44px;
  max-width: 420px;
  width: 90%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  animation: modalSlideUp 0.35s ease;
}

.success-modal-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #f0faf5;
  border: 2px solid #68d391;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  font-size: 1.8rem;
  color: #276749;
}

.success-modal-box h3 {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.success-modal-box p {
  color: var(--gray);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 6px;
}

.success-modal-sub {
  font-size: 0.82rem !important;
  color: #aaa !important;
}

@keyframes modalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes modalSlideUp {
  from { transform: translateY(24px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── FOOTER ── */
.footer {
  background: var(--navy);
  border-top: 1px solid rgba(201,168,76,0.15);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.footer-brand .logo-scale { font-size: 1.6rem; }

.footer-name {
  display: block;
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.footer-sub {
  display: block;
  font-size: 0.65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-copy {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.45);
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  max-width: 480px;
  line-height: 1.6;
}

/* ── ANIMATIONS ── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s ease forwards;
}

.fade-up:nth-child(1) { animation-delay: 0.2s; }
.fade-up:nth-child(2) { animation-delay: 0.4s; }
.fade-up:nth-child(3) { animation-delay: 0.6s; }
.fade-up:nth-child(4) { animation-delay: 0.8s; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb { background: var(--gold-dk); border-radius: 3px; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  :root { --section-py: 80px; }

  .about-grid    { gap: 50px; }
  .contact-grid  { gap: 50px; }
  .practice-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .hero { background-position: 80% center; }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: min(320px, 85vw);
    height: 100dvh;
    background: rgba(10,22,40,0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 40px 40px;
    gap: 28px;
    transition: right var(--transition);
    border-left: 1px solid rgba(201,168,76,0.15);
    z-index: 999;
  }
  .nav-links.open { right: 0; }
  .nav-links a { font-size: 1.1rem; }
  .nav-links .btn { width: 100%; justify-content: center; }
  .hamburger { display: flex; z-index: 1001; }

  .about-grid   { grid-template-columns: 1fr; gap: 40px; }
  .about-image-wrap { display: none; }
  .why-grid     { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .stats-grid   { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .form-row     { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  :root { --section-py: 64px; }

  .hero-title { font-size: 2.4rem; }
  .hero-cta   { flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: center; }

  .practice-grid { grid-template-columns: 1fr; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }

  .contact-form { padding: 28px 22px; }

  .d-none-sm { display: none; }
  .logo-sub { display: none; }
}

@media (max-width: 400px) {
  .stats-grid  { grid-template-columns: 1fr 1fr; }
  .stat-num    { font-size: 2.4rem; }
}
