/* ==========================================================================
   Gupta Associates & Law Firm — Stylesheet
   Elegant / Luxury / Timeless / Editorial / Corporate / Modern Minimal
   ========================================================================== */

:root{
  --primary:#1B1B1F;
  --secondary:#FAF7F2;
  --accent:#C8A45D;
  --accent-hover:#A88745;
  --text:#222222;
  --text-light:#6B7280;
  --white:#FFFFFF;
  --border:#E7E5E4;

  --font-head: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --nav-height: 96px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-body);
  color: var(--text);
  background: var(--secondary);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6{
  font-family: var(--font-head);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.01em;
  margin: 0;
}

a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display: block; }
ul{ margin: 0; padding: 0; }

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

:focus-visible{
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.container{ max-width: 1240px; }

/* ---- Eyebrow / section heading system ---- */
.eyebrow{
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-hover);
  font-weight: 600;
  margin-bottom: 14px;
}
.eyebrow--light{ color: var(--accent); }

.section-head{
  font-size: clamp(2rem, 3.2vw, 3rem);
  margin-bottom: 18px;
}
.section-head--light{ color: var(--secondary); }
.section-sub{
  color: var(--text-light);
  font-size: 1.05rem;
  max-width: 620px;
  margin: 0 auto;
}
.section-heading{ margin-bottom: 56px; }
.section-heading.text-center .section-sub{ margin-left: auto; margin-right: auto; }

.lead-text{
  font-size: 1.2rem;
  color: var(--primary);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 20px;
}
.body-text{ color: var(--text-light); font-size: 1rem; }

section{ padding: 110px 0; }
@media (max-width: 767px){ section{ padding: 72px 0; } }

/* ---- Buttons ---- */
.btn-gold{
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--primary);
  font-family: var(--font-body);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 16px 38px;
  border-radius: 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), transform 0.35s var(--ease);
}
.btn-gold:hover{
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-outline-light{
  background: transparent;
  border: 1px solid rgba(255,255,255,0.55);
  color: var(--white);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 16px 38px;
  border-radius: 0;
  transition: all 0.35s var(--ease);
}
.btn-outline-light:hover{
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}
.btn-outline-gold{
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--primary);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
  padding: 16px 38px;
  border-radius: 0;
  transition: all 0.35s var(--ease);
}
.btn-outline-gold:hover{
  background: var(--accent);
  color: var(--primary);
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.site-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.site-nav.is-scrolled{
  background: rgba(27,27,31,0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  padding: 12px 0;
}
.nav-inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-side{ display: flex; align-items: center; gap: 34px; flex: 1; }
.nav-side--left{ justify-content: flex-start; }
.nav-side--right{ justify-content: flex-end; }

.nav-link{
  position: relative;
  color: var(--white);
  font-size: 0.86rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
  padding-bottom: 4px;
}
.nav-link::after{
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.35s var(--ease);
}
.nav-link:hover::after{ width: 100%; }
.nav-link--cta{
  border: 1px solid var(--accent);
  padding: 10px 22px;
  color: var(--accent);
}
.nav-link--cta::after{ display: none; }
.nav-link--cta:hover{ background: var(--accent); color: var(--primary); }

.nav-logo{
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.nav-logo-img{ height: 92px; width: auto; }
.nav-logo-text{
  font-family: var(--font-head);
  font-size: 1.28rem;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-logo-sub{ color: var(--accent); font-style: italic; font-size: 0.95rem; }

.nav-toggle{
  background: none; border: none;
  width: 32px; height: 24px;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 0; cursor: pointer;
}
.nav-toggle span{
  display: block; height: 2px; width: 100%;
  background: var(--white);
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle.is-open span:nth-child(1){ transform: translateY(11px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2){ opacity: 0; }
.nav-toggle.is-open span:nth-child(3){ transform: translateY(-11px) rotate(-45deg); }

.nav-mobile{
  max-height: 0;
  overflow: hidden;
  background: var(--primary);
  transition: max-height 0.4s var(--ease);
}
.nav-mobile.is-open{ max-height: 480px; }
.nav-mobile-link{
  display: block;
  padding: 16px 24px;
  color: var(--white);
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.95rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.nav-mobile-link.is-active{ color: var(--accent); }
.nav-mobile-link--cta{ color: var(--accent); font-weight: 600; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero{
  position: relative;
  height: 100vh;
  min-height: 620px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg{
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  will-change: transform;
}
.hero-overlay{
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,31,0.55) 0%, rgba(27,27,31,0.72) 55%, rgba(27,27,31,0.92) 100%);
}
.hero-content{
  position: relative;
  z-index: 2;
  color: var(--white);
  max-width: 780px;
}
.hero-headline{
  font-size: clamp(2.6rem, 6vw, 4.6rem);
  color: var(--white);
  line-height: 1.08;
  margin-bottom: 26px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease) 0.15s forwards;
}
.hero-headline em{ color: var(--accent); font-style: italic; }
.hero-sub{
  font-size: 1.18rem;
  color: rgba(255,255,255,0.85);
  max-width: 560px;
  margin-bottom: 38px;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease) 0.4s forwards;
}
.hero-actions{
  display: flex; gap: 18px; flex-wrap: wrap;
  opacity: 0;
  transform: translateY(24px);
  animation: heroFadeUp 1s var(--ease) 0.65s forwards;
}
@keyframes heroFadeUp{
  to{ opacity: 1; transform: translateY(0); }
}

.scroll-indicator{
  position: absolute;
  bottom: 40px; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75);
}
.scroll-indicator span{
  width: 1px; height: 42px;
  background: rgba(255,255,255,0.4);
  position: relative;
  overflow: hidden;
}
.scroll-indicator span::after{
  content: '';
  position: absolute;
  top: -100%; left: 0; right: 0; height: 100%;
  background: var(--accent);
  animation: scrollLine 2.2s ease-in-out infinite;
}
@keyframes scrollLine{
  0%{ top: -100%; } 60%{ top: 100%; } 100%{ top: 100%; }
}
.scroll-indicator small{
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
}

/* ---- Page hero (services.php) ---- */
.page-hero{
  position: relative;
  height: 58vh;
  min-height: 420px;
  display: flex;
  align-items: center;
  overflow: hidden;
  margin-top: 0;
}
.page-hero-content{ position: relative; z-index: 2; color: var(--white); max-width: 720px; }
.page-hero-headline{
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  color: var(--white);
  margin-bottom: 18px;
}
.page-hero-sub{ color: rgba(255,255,255,0.85); font-size: 1.08rem; }

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
[data-reveal]{
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
[data-reveal].is-visible{ opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"]{ transition-delay: 0.1s; }
[data-reveal-delay="2"]{ transition-delay: 0.2s; }
[data-reveal-delay="3"]{ transition-delay: 0.3s; }

/* ==========================================================================
   ABOUT
   ========================================================================== */
.about-section{ background: var(--white); }
.about-image{ position: relative; }
.about-image img{
  width: 100%; height: 460px; object-fit: cover;
  position: relative; z-index: 1;
}
.about-image-frame{
  position: absolute;
  top: 20px; left: -20px;
  width: 100%; height: 460px;
  border: 1px solid var(--accent);
  z-index: 0;
}
.value-title{
  font-family: var(--font-head);
  font-size: 1.2rem;
  margin-bottom: 12px;
  position: relative;
  padding-bottom: 14px;
}
.value-title::after{
  content: '';
  position: absolute; left: 0; bottom: 0;
  width: 40px; height: 2px;
  background: var(--accent);
}
.about-stats{ display: flex; gap: 48px; margin-top: 36px; }
.about-stat{ display: flex; flex-direction: column; }
.about-stat-num{
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--accent-hover);
  line-height: 1;
}
.about-stat-label{
  font-size: 0.8rem;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ==========================================================================
   PRACTICE AREA CARDS
   ========================================================================== */
.practice-preview{ background: var(--secondary); }
.practice-full{ background: var(--white); }

.practice-card{
  display: block;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 0 0 28px;
  height: 100%;
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.practice-card:hover{
  border-color: var(--accent);
  box-shadow: 0 22px 40px rgba(27,27,31,0.1);
  transform: translateY(-6px);
}
.practice-card-img{
  height: 190px;
  overflow: hidden;
  margin-bottom: 24px;
}
.practice-card-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.practice-card:hover .practice-card-img img{ transform: scale(1.07); }
.practice-card-title{
  font-size: 1.12rem;
  padding: 0 24px;
  margin-bottom: 12px;
}
.practice-card-desc{
  padding: 0 24px;
  color: var(--text-light);
  font-size: 0.92rem;
  margin: 0;
}

/* ==========================================================================
   PRACTICE COURTS
   ========================================================================== */
.courts-section{ background: var(--secondary); }
.courts-row{
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 991px){ .courts-row{ grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px){ .courts-row{ grid-template-columns: 1fr; } }

.court-card{
  position: relative;
  height: 220px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.court-card-img{ position: absolute; inset: 0; }
.court-card-img img{
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.court-card::after{
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(27,27,31,0.05) 0%, rgba(27,27,31,0.82) 100%);
  transition: background 0.4s var(--ease);
}
.court-card:hover .court-card-img img{ transform: scale(1.08); }
.court-card:hover::after{ background: linear-gradient(180deg, rgba(200,164,93,0.15) 0%, rgba(27,27,31,0.88) 100%); }
.court-card-title{
  position: absolute;
  bottom: 20px; left: 20px; right: 20px;
  z-index: 2;
  color: var(--white);
  font-size: 1.05rem;
  margin: 0;
}

/* ==========================================================================
   QUALIFICATIONS TIMELINE
   ========================================================================== */
.qualifications-section{ background: var(--primary); }
.qual-timeline{
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  padding-left: 40px;
}
.qual-timeline::before{
  content: '';
  position: absolute;
  left: 5px; top: 6px; bottom: 6px;
  width: 1px;
  background: rgba(200,164,93,0.35);
}
.qual-item{ position: relative; padding-bottom: 48px; }
.qual-item:last-child{ padding-bottom: 0; }
.qual-marker{
  position: absolute;
  left: -40px; top: 4px;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(200,164,93,0.18);
}
.qual-degree{ color: var(--secondary); font-size: 1.5rem; margin-bottom: 8px; }
.qual-detail{ color: rgba(250,247,242,0.65); margin: 0; }

/* ==========================================================================
   WHY CHOOSE US
   ========================================================================== */
.why-us{ background: var(--white); }
.why-card{
  border: 1px solid var(--border);
  padding: 40px 32px;
  height: 100%;
  transition: border-color 0.4s var(--ease), transform 0.4s var(--ease);
}
.why-card:hover{ border-color: var(--accent); transform: translateY(-4px); }
.why-card-num{
  font-family: var(--font-head);
  font-style: italic;
  color: var(--accent);
  font-size: 1.3rem;
  margin-bottom: 18px;
}
.why-card-title{ font-size: 1.1rem; margin-bottom: 12px; }
.why-card-desc{ color: var(--text-light); font-size: 0.94rem; margin: 0; }

/* ==========================================================================
   CONSULTATION BANNER
   ========================================================================== */
.consult-banner{
  background: var(--primary);
  padding: 100px 0;
  text-align: center;
}
.consult-banner-head{
  color: var(--white);
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
}

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials{ background: var(--secondary); }
.testimonial-slider{ max-width: 780px; margin: 0 auto; overflow: hidden; }
.testimonial-track{
  display: flex;
  transition: transform 0.6s var(--ease);
}
.testimonial-card{
  min-width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 56px 48px;
  text-align: center;
}
.testimonial-quote-mark{
  font-family: var(--font-head);
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 8px;
}
.testimonial-text{
  font-size: 1.15rem;
  color: var(--primary);
  font-style: italic;
  max-width: 560px;
  margin: 0 auto 24px;
}
.testimonial-stars{ color: var(--accent); letter-spacing: 4px; margin-bottom: 18px; }
.testimonial-name{ font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 2px; }
.testimonial-role{ color: var(--text-light); font-size: 0.86rem; margin: 0; }

.testimonial-controls{
  display: flex; align-items: center; justify-content: center;
  gap: 24px; margin-top: 32px;
}
.testimonial-btn{
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.testimonial-btn:hover{ border-color: var(--accent); background: var(--accent); }
.testimonial-dots{ display: flex; gap: 10px; }
.testimonial-dot{
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); cursor: pointer;
  transition: background 0.3s var(--ease);
}
.testimonial-dot.is-active{ background: var(--accent); }

/* ==========================================================================
   FAQ ACCORDION
   ========================================================================== */
.faq-section{ background: var(--white); }
.faq-item{ border-bottom: 1px solid var(--border); }
.faq-question{
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  background: none; border: none;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.08rem;
  color: var(--primary);
  cursor: pointer;
  transition: color 0.3s var(--ease);
}
.faq-question:hover{ color: var(--accent-hover); }
.faq-icon{
  font-family: var(--font-body);
  font-size: 1.3rem;
  color: var(--accent);
  transition: transform 0.35s var(--ease);
  flex-shrink: 0;
  margin-left: 20px;
}
.faq-question[aria-expanded="true"] .faq-icon{ transform: rotate(45deg); }
.faq-answer{
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease);
}
.faq-answer p{ padding: 0 4px 26px; color: var(--text-light); margin: 0; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-section{ background: var(--secondary); }
.contact-grid{ background: var(--white); border: 1px solid var(--border); }
.contact-map{ width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(20%); }
.contact-form-wrap{ padding: 56px; }
.contact-form{ display: flex; flex-direction: column; gap: 18px; margin-bottom: 40px; }
.form-row{ display: flex; gap: 18px; }
.form-row input{ flex: 1; min-width: 0; }
.contact-form input,
.contact-form select,
.contact-form textarea{
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--border);
  background: transparent;
  padding: 12px 2px;
  font-family: var(--font-body);
  font-size: 0.96rem;
  color: var(--text);
  transition: border-color 0.3s var(--ease);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus{
  outline: none;
  border-color: var(--accent);
}
.contact-form textarea{ resize: vertical; }

.contact-details{ display: grid; grid-template-columns: 1fr 1fr; gap: 28px; border-top: 1px solid var(--border); padding-top: 32px; }
.contact-detail h6{
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  color: var(--accent-hover);
  margin-bottom: 8px;
}
.contact-detail p{ color: var(--text-light); font-size: 0.92rem; margin: 0 0 2px; }

@media (max-width: 767px){
  .contact-form-wrap{ padding: 36px 24px; }
  .form-row{ flex-direction: column; }
  .contact-details{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer{ background: var(--primary); padding: 90px 0 0; }
.footer-grid{
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 56px;
}
@media (max-width: 991px){ .footer-grid{ grid-template-columns: 1fr 1fr; } }
@media (max-width: 575px){ .footer-grid{ grid-template-columns: 1fr; } }

.footer-logo{ display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer-logo img{ height: 40px; }
.footer-logo span{ font-family: var(--font-head); color: var(--white); font-size: 1.15rem; }
.footer-logo em{ color: var(--accent); font-style: italic; }
.footer-tagline{ color: var(--accent); font-family: var(--font-head); font-style: italic; margin-bottom: 22px; }
.footer-social{ display: flex; gap: 12px; }
.footer-social a{
  width: 36px; height: 36px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  font-size: 0.7rem;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.footer-social a:hover{ border-color: var(--accent); color: var(--accent); }

.footer-col h5{
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 20px;
}
.footer-col a{
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.9rem;
  margin-bottom: 12px;
  transition: color 0.3s var(--ease);
}
.footer-col a:hover{ color: var(--accent); }
.footer-col--contact p{ color: rgba(255,255,255,0.6); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col--contact a{ display: inline; margin: 0; }
.footer-hours{ font-size: 0.84rem !important; }

.footer-divider{ height: 1px; background: linear-gradient(90deg, transparent, var(--accent), transparent); opacity: 0.5; }

.footer-bottom{
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 28px 0;
  color: rgba(255,255,255,0.45);
  font-size: 0.82rem;
}

/* Mobile call FAB */
.mobile-call-fab{
  position: fixed;
  right: 20px; bottom: 20px;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--primary);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,0.3);
  z-index: 900;
}
