/* ============================================================
   Advocate Ajay Kathuria — style.css
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --primary:       #2F2F2F;
  --primary-dark:  #1F1F1F;
  --secondary:     #F5F5F5;
  --white:         #FFFFFF;
  --accent:        #3858E9;
  /* --accent:        #00afc1; */
  --accent-hover:  #2145E6;
  --accent-strong: #183AD6;
  --silver:        #C0C0C0;
  --text-dark:     #1A1A1A;
  --border:        #E5E5E5;
  --navy:          #0D1B3E;
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'DM Sans', sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--navy); }
a { text-decoration: none; transition: all .3s; }
p  { line-height: 1.75; color: #444; font-size: .95rem; }
img { max-width: 100%; height: auto; }

/* ---------- Topbar ---------- */
.topbar {
  background: #0a1530;
  padding: 7px 0;
  font-size: .8rem;
  color: rgba(255,255,255,.65);
}
.topbar a { color: rgba(255,255,255,.65); }
.topbar a:hover { color: var(--accent); }
.topbar .sep { margin: 0 10px; opacity: .3; }

/* ---------- Navbar ---------- */
.site-navbar {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.brand-logo { height: 52px; width: auto; object-fit: contain; }
.brand-name-top { color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; line-height: 1; }
.brand-name-bot { color: rgba(255,255,255,.8); font-family: var(--font-display); font-size: .95rem; letter-spacing: .06em; font-weight: 600; }

.navbar-nav .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .07em;
  text-transform: uppercase;
  padding: 28px 14px !important;
  position: relative;
}
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .3s;
}
.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active { color: #fff !important; }
.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after { width: 70%; }

.btn-consult {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: 4px;
  padding: 10px 22px !important;
  font-weight: 600;
  border: 2px solid var(--accent) !important;
}
.btn-consult::after { display: none !important; }
.btn-consult:hover { background: var(--accent-hover) !important; }

.navbar-phone {
  color: rgba(255,255,255,.9) !important;
  font-size: .85rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 4px;
  padding: 8px 14px !important;
}
.navbar-phone::after { display: none !important; }
.navbar-toggler { border: 1px solid rgba(255,255,255,.2); }
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,0.85)' stroke-linecap='round' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Page Banner / Breadcrumb ---------- */
.page-banner {
  background: var(--navy);
  padding: 70px 0 60px;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 70% 50%, rgba(56,88,233,.2), transparent 70%);
}
.page-banner .pb-label {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.page-banner h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); font-weight: 700; }
.breadcrumb { background: transparent; padding: 0; margin: 12px 0 0; }
.breadcrumb-item a { color: rgba(255,255,255,.55); font-size: .85rem; }
.breadcrumb-item.active { color: var(--accent); font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.3); }

/* ---------- Buttons ---------- */
.btn-p {
  background: var(--accent);
  color: #fff;
  border: 2px solid var(--accent);
  padding: 14px 32px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
}
.btn-p:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(56,88,233,.4);
}
.btn-o {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
  padding: 14px 32px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
}
.btn-o:hover { border-color: #fff; background: rgba(255,255,255,.08); color: #fff; }

/* ---------- Section Shared ---------- */
.section-label {
  color: var(--accent);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 10px;
}
.section-header { text-align: center; margin-bottom: 52px; }
.section-header h2 { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: 700; margin-bottom: 16px; }
.section-header p { max-width: 580px; margin: 0 auto; }
.divi { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 10px 0 16px; }
.divi::before, .divi::after {
  content: '';
  flex: 1;
  max-width: 80px;
  height: 1px;
  background: rgba(13,27,62,.2);
}

/* ============================================================
   INDEX.PHP — Hero
   ============================================================ */
.hero-section {
  background: var(--navy);
  padding: 90px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 80% at 75% 50%, rgba(56,88,233,.15), transparent 70%);
  z-index: 0;
}
.hero-tagline {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  margin-bottom: 18px;
  display: block;
}
.hero-section h1 { color: #fff; font-size: clamp(2.4rem, 4.5vw, 3.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 8px; }
.hero-section h1 span { color: var(--accent); }
.hero-divider { width: 60px; height: 4px; background: var(--accent); margin: 22px 0; border-radius: 2px; }
.hero-section p { color: rgba(255,255,255,.75); font-size: 1.05rem; max-width: 520px; margin-bottom: 36px; }

.hero-img-wrap {
  position: relative;
  border-radius: 20px 20px 20px 80px;
  overflow: hidden;
  border: 3px solid rgba(56,88,233,.35);
  box-shadow: 0 30px 80px rgba(0,0,0,.4);
}
.hero-img-wrap img { width: 100%; height: 420px; object-fit: cover; object-position: top center; display: block; }

/* Stats Bar */
.stats-bar {
  background: rgba(255,255,255,.05);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 28px 0;
  margin-top: 50px;
}
.stat-item { padding: 8px 24px; border-right: 1px solid rgba(255,255,255,.1); }
.stat-item:last-child { border-right: none; }
.stat-number { font-size: 2rem; font-weight: 700; color: var(--secondary); font-family: var(--font-display); line-height: 1; }
.stat-label { font-size: .75rem; color: rgba(255,255,255,.55); margin-top: 3px; text-transform: uppercase; letter-spacing: .08em; }

/* ============================================================
   Practice Areas
   ============================================================ */
.practice-section {
  background: var(--secondary);
  padding: 90px 0;
  position: relative;
}
.practice-section::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--navy));
}
.practice-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  height: 100%;
  transition: all .3s;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.practice-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 3px;
  background: var(--accent);
  transition: width .4s;
}
.practice-card:hover { transform: translateY(-6px); box-shadow: 0 18px 45px rgba(0,0,0,.12); border-color: transparent; }
.practice-card:hover::after { width: 100%; }
.pc-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  border-radius: 8px 8px 0 0;
}
.pc-body { padding: 22px 20px 20px; flex: 1; display: flex; flex-direction: column; }
.pi {
  width: 52px; height: 52px;
  background: var(--navy);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  color: #fff;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.practice-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; line-height: 1.35; }
.dl { width: 36px; height: 2px; background: var(--accent); margin: 0 0 12px; }
.practice-card p { font-size: .88rem; color: #666; line-height: 1.65; flex: 1; }
.al {
  color: var(--accent);
  font-size: .8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  transition: all .3s;
}
.practice-card:hover .al { gap: 10px; }

/* ============================================================
   About Section
   ============================================================ */
.about-section { padding: 90px 0; background: #fff; }
.abt-img-wrap {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.14);
}
.abt-img-wrap img { width: 100%; height: 440px; object-fit: cover; object-position: top center; display: block; }
.exp-badge {
  position: absolute;
  bottom: -20px; right: -20px;
  background: var(--accent);
  color: #fff;
  width: 110px; height: 110px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(56,88,233,.4);
  font-family: var(--font-display);
}
.exp-badge .num { font-size: 2.4rem; font-weight: 700; line-height: 1; }
.exp-badge .txt { font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; text-align: center; line-height: 1.3; margin-top: 2px; }

.about-list { list-style: none; padding: 0; margin: 20px 0; }
.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  color: #444;
}
.about-list li:last-child { border-bottom: none; }
.about-list li i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.stat-mini { background: var(--secondary); border-radius: 8px; padding: 16px 20px; border-left: 3px solid var(--accent); }
.stat-mini .n { font-size: 1.8rem; font-weight: 700; color: var(--accent); font-family: var(--font-display); line-height: 1; }
.stat-mini .l { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: #666; margin-top: 4px; }

/* ============================================================
   Why Choose Us
   ============================================================ */
.why-section { padding: 90px 0; background: var(--secondary); }
.why-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px 24px;
  height: 100%;
  transition: all .3s;
}
.why-card:hover { transform: translateY(-4px); box-shadow: 0 12px 35px rgba(0,0,0,.08); border-color: rgba(56,88,233,.2); }
.wi {
  width: 58px; height: 58px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 16px;
}
.why-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.why-card p { font-size: .88rem; color: #666; }

/* ============================================================
   CTA Banner
   ============================================================ */
.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, #1a2d6b 100%);
  padding: 40px 0;
}
.cta-banner h3 { color: #fff; font-size: 1.5rem; margin-bottom: 4px; }
.cta-banner p { color: rgba(255,255,255,.65); font-size: .9rem; margin: 0; }
.cta-banner .si { font-size: 3rem; color: rgba(255,255,255,.2); margin-right: 20px; }
.btn-cta {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 15px 36px;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  border-radius: 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .3s;
  cursor: pointer;
}
.btn-cta:hover { background: #fff; color: var(--accent); }

/* ============================================================
   Gallery Section
   ============================================================ */
.gallery-section { padding: 90px 0; background: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4/3;
  cursor: pointer;
  background: var(--navy);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s;
}
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .ov {
  position: absolute; inset: 0;
  background: rgba(56,88,233,.55);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  transition: all .35s;
}
.gallery-item:hover .ov { opacity: 1; }
.gallery-item .ov i { font-size: 2rem; color: #fff; }
.gallery-item .ov span { color: #fff; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }

/* ============================================================
   Contact Section
   ============================================================ */
.contact-section { padding: 90px 0; background: var(--secondary); }
.ci-card { background: var(--navy); border-radius: 12px; padding: 40px 32px; color: #fff; height: 100%; }
.ci-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: 8px; }
.ci-card .tag { color: rgba(255,255,255,.6); margin-bottom: 30px; font-size: .9rem; }
.ci-item { display: flex; gap: 16px; margin-bottom: 22px; align-items: flex-start; }
.ci-icon {
  width: 44px; height: 44px;
  background: rgba(56,88,233,.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: var(--accent);
  flex-shrink: 0;
}
.ci-text .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.45); margin-bottom: 3px; }
.ci-text a, .ci-text p { color: rgba(255,255,255,.85); font-size: .9rem; margin: 0; }
.ci-text a:hover { color: var(--accent); }

.cf-wrap { background: #fff; border-radius: 12px; padding: 40px 36px; }
.cf-wrap h3 { color: var(--navy); margin-bottom: 24px; }
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: 6px;
  padding: 12px 16px;
  font-size: .9rem;
  font-family: var(--font-body);
  transition: all .3s;
}
.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(56,88,233,.1);
  outline: none;
}
.form-label { font-size: .82rem; font-weight: 500; color: #555; margin-bottom: 6px; }
.btn-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: 14px 36px;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  border-radius: 6px;
  width: 100%;
  transition: all .3s;
  cursor: pointer;
}
.btn-submit:hover { background: var(--accent-hover); transform: translateY(-1px); }

/* Map embed */
.map-wrap { border-radius: 12px; overflow: hidden; box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.map-wrap iframe { display: block; }

/* ============================================================
   About Page — Timeline / Extra
   ============================================================ */
.about-page-img img { width: 100%; border-radius: 12px; object-fit: cover; box-shadow: 0 20px 60px rgba(0,0,0,.14); }
.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ''; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.tl-item { position: relative; margin-bottom: 28px; }
.tl-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 3px solid #fff;
  box-shadow: 0 0 0 2px var(--accent);
}
.tl-year { font-size: .72rem; font-weight: 600; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.tl-item h5 { font-size: .98rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.tl-item p  { font-size: .87rem; color: #666; line-height: 1.6; }

.credential-card {
  background: var(--secondary);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px 20px;
  height: 100%;
  transition: all .3s;
}
.credential-card:hover { box-shadow: 0 10px 30px rgba(0,0,0,.08); border-color: rgba(56,88,233,.2); }
.credential-card .ci { font-size: 2rem; margin-bottom: 10px; }
.credential-card h5 { font-size: 1rem; color: var(--navy); margin-bottom: 6px; }
.credential-card p  { font-size: .86rem; color: #666; margin: 0; }

/* ============================================================
   Service Page
   ============================================================ */
.service-hero-img {
  width: 100%;
  height: 340px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 16px 50px rgba(0,0,0,.15);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer { background: #0a1530; color: rgba(255,255,255,.65); padding-top: 70px; }
.footer-logo { height: 52px; width: auto; object-fit: contain; filter: brightness(1.1); }
.footer-tagline { font-size: .88rem; line-height: 1.7; margin-bottom: 20px; }
.fsoc a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.6);
  margin-right: 6px;
  transition: all .3s;
}
.fsoc a:hover { background: var(--accent); color: #fff; }
.fh { color: #fff; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 20px; padding-bottom: 10px; border-bottom: 2px solid rgba(255,255,255,.08); }
.fl { list-style: none; padding: 0; }
.fl li { margin-bottom: 9px; }
.fl a { color: rgba(255,255,255,.55); font-size: .87rem; display: flex; align-items: center; gap: 8px; transition: all .3s; }
.fl a i { font-size: .6rem; color: var(--accent); }
.fl a:hover { color: #fff; padding-left: 4px; }
.fcl { list-style: none; padding: 0; }
.fcl li { display: flex; gap: 12px; margin-bottom: 14px; font-size: .87rem; align-items: flex-start; }
.fcl li i { color: var(--accent); margin-top: 3px; flex-shrink: 0; }
.fcl li a, .fcl li span { color: rgba(255,255,255,.65); }
.fcl li a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 18px 0; margin-top: 50px; font-size: .8rem; color: rgba(255,255,255,.35); }

/* ---------- Scroll-to-top ---------- */
#scrollTop {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(56,88,233,.4);
  transition: all .3s;
}
#scrollTop.show { display: flex; }
#scrollTop:hover { background: var(--accent-hover); transform: translateY(-2px); }

/* ---------- Alert / Toast ---------- */
.form-alert {
  display: none;
  padding: 14px 18px;
  border-radius: 6px;
  font-size: .88rem;
  margin-top: 14px;
}
.form-alert.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; display: block; }
.form-alert.error   { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; display: block; }

/* ---------- Lightbox overlay ---------- */
#lightbox {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
#lightbox.open { display: flex; }
#lightbox img { max-width: 90vw; max-height: 90vh; border-radius: 4px; box-shadow: 0 20px 80px rgba(0,0,0,.8); }
#lb-close {
  position: absolute; top: 20px; right: 24px;
  font-size: 2rem; color: #fff; cursor: pointer;
  background: none; border: none;
  line-height: 1; transition: color .3s;
}
#lb-close:hover { color: var(--accent); }
#lb-prev, #lb-next {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  font-size: 2.5rem; color: #fff;
  background: rgba(255,255,255,.08);
  border: none; cursor: pointer;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
#lb-prev { left: 20px; }
#lb-next { right: 20px; }
#lb-prev:hover, #lb-next:hover { background: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .stat-item { border-right: none; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .exp-badge { width: 90px; height: 90px; bottom: -12px; right: -12px; }
  .exp-badge .num { font-size: 1.8rem; }
}
@media (max-width: 575px) {
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .cf-wrap { padding: 28px 20px; }
  .ci-card { padding: 28px 20px; }
}
