/* 
 * Aulakh Law Firm - Premium Design System
 */

:root {
  /* Sophisticated Color Palette */
  --primary-navy: #050b14;
  --accent-gold: #c5a059;
  --accent-gold-light: #d9be8b;
  --accent-bronze: #8b7244;
  --charcoal: #1a202c;
  --warm-white: #fdfdfc;
  --off-white: #f8f9fa;
  --text-primary: #1a202c;
  --text-secondary: #4a5568;
  --border-subtle: rgba(0, 0, 0, 0.06);

  /* Spacing System - Generous */
  --spacing-xs: 1rem;
  --spacing-sm: 2.5rem;
  --spacing-md: 5rem;
  --spacing-lg: 7.5rem;
  --spacing-xl: 10rem;

  /* Fixed navbar clearance (used by .page-section; avoids margin + py-huge stacking) */
  --page-nav-offset: 5rem;

  /* Typography Scale */
  --font-serif: "Playfair Display", Georgia, serif;
  --font-sans:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui,
    sans-serif;

  /* Effects */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 15px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.1);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Typography - Premium */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-size: 1.0625rem;
  line-height: 1.7;
  background-color: var(--warm-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Elegant Heading System */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-serif);
  color: var(--primary-navy);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: 2.5rem;
  font-weight: 600;
}

h3 {
  font-size: 1.875rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: 1.5rem;
  color: var(--text-secondary);
}

.lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 400;
}

/* Utilities */
.ls-1 {
  letter-spacing: 0.05em;
}

.ls-2 {
  letter-spacing: 0.1em;
}

.text-accent {
  color: var(--accent-gold) !important;
}

.bg-secondary-subtle {
  background-color: var(--off-white) !important;
}

/* Dark Section Utilities */
.text-light-heading {
  color: #ffffff !important;
}

.text-white-muted {
  color: rgba(255, 255, 255, 0.7) !important;
}

.py-huge {
  padding-top: var(--spacing-xl);
  padding-bottom: var(--spacing-xl);
}

/* First section below fixed navbar on interior pages — single source for nav clearance + padding */
.page-section {
  padding-top: calc(var(--page-nav-offset) + 1.5rem);
  padding-bottom: var(--spacing-lg);
}

/* Stacked content bands (e.g. credentials) — generous but not 10rem top+bottom */
.section-block {
  padding-top: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
}

.hover-lift {
  transition: var(--transition-smooth);
}

.hover-lift:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-lg) !important;
}

.hover-scale {
  transition: var(--transition-smooth);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.object-fit-cover {
  object-fit: cover;
}

/* Premium Buttons */
.btn {
  padding: 1rem 2.5rem;
  border-radius: 0;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.875rem;
  transition: var(--transition-smooth);
  border: 2px solid transparent;
  font-family: var(--font-sans);
}

.btn-dark {
  background: var(--primary-navy);
  color: white;
  border-color: var(--primary-navy);
}

.btn-dark:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary-navy);
  border-color: var(--primary-navy);
}

.btn-outline-dark:hover {
  background: var(--primary-navy);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Premium Navbar with Glassmorphism */
.navbar {
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Mobile / tablet: extra right inset so the menu control isn’t flush to the edge */
@media (max-width: 991.98px) {
  .navbar > .container {
    padding-right: max(1.5rem, calc(env(safe-area-inset-right, 0px) + 0.75rem));
  }
}

.navbar.scrolled {
  padding: 0.75rem 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--primary-navy) !important;
  padding: 0;
  /* Let logo-premium handle spacing */
  margin: 0;
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.nav-link {
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text-primary) !important;
  position: relative;
  transition: var(--transition-smooth);
  letter-spacing: 0.01em;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--accent-gold);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-navy) !important;
}

/* Elegant Hero Section */
#hero {
  min-height: min(82vh, 720px);
  background:
    linear-gradient(135deg,
      rgba(5, 11, 20, 0.95) 0%,
      rgba(5, 11, 20, 0.8) 50%,
      rgba(5, 11, 20, 0.4) 100%),
    url("https://images.unsplash.com/photo-1497366216548-37526070297c?q=80&w=2000&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  padding-top: 140px;
  padding-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

#hero::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle,
      rgba(212, 175, 55, 0.18) 0%,
      transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

#hero h1 {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: white;
  text-shadow: 0 3px 15px rgba(0, 0, 0, 0.5);
}

#hero .lead {
  font-size: 1.25rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.98);
  max-width: 600px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#hero .text-accent {
  color: var(--accent-gold) !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

#hero .text-muted {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* Hero Buttons - High Visibility */
#hero .btn-dark {
  background: white;
  color: var(--primary-navy);
  border-color: white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#hero .btn-dark:hover {
  background: var(--accent-gold);
  color: white;
  border-color: var(--accent-gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(212, 175, 55, 0.5);
}

#hero .btn-outline-dark {
  background: transparent;
  color: white;
  border: 2px solid white;
  font-weight: 700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#hero .btn-outline-dark:hover {
  background: white;
  color: var(--primary-navy);
  border-color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
}

/* Premium Cards */
.card {
  border: 1px solid var(--border-subtle);
  border-radius: 0;
  background: white;
  margin-bottom: 2rem;
  transition: var(--transition-smooth);
  overflow: hidden;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent-gold);
}

.card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: var(--primary-navy);
}

.card-body {
  padding: 2rem;
}

/* Homepage Practice Areas List */
.home-practice-list {
  margin: 0;
  padding-left: 1.25rem;
  column-count: 2;
  column-gap: 2.5rem;
}

.home-practice-list li {
  break-inside: avoid;
  margin-bottom: 0.9rem;
  color: var(--primary-navy);
}

.home-practice-list li::marker {
  color: var(--accent-gold);
}

.home-practice-list a {
  color: var(--primary-navy);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}

.home-practice-list a:hover {
  color: var(--accent-gold);
  text-decoration: underline;
  text-underline-offset: 0.2rem;
}

.home-practice-list a:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (max-width: 991.98px) {
  .home-practice-list {
    column-count: 1;
    column-gap: 0;
  }
}

/* Section Styling */
section {
  padding: var(--spacing-lg) 0;
}

section:nth-child(even) {
  background: white;
}

section:nth-child(odd) {
  background: var(--warm-white);
}

/* Testimonials */
.testimonial-card {
  padding: 3.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  height: 100%;
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: var(--accent-gold);
}

.testimonial-card .quote-text {
  color: #ffffff !important;
  font-style: italic;
  font-family: var(--font-serif);
  font-weight: 400;
}

.testimonial-card .designation {
  color: rgba(255, 255, 255, 0.7) !important;
  letter-spacing: 0.05em;
}

/* Star Rating */
.star-rating {
  color: #ffc107;
  /* Standard Google Star Yellow */
  font-size: 0.875rem;
  display: flex;
  gap: 2px;
}

.google-icon-inline {
  width: 16px;
  height: 16px;
  vertical-align: middle;
  margin-right: 6px;
}

.google-verified-tag {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Trust Badge */
.google-trust-badge {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.25rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.google-trust-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-gold);
}

.badge-stars {
  color: #ffc107;
  margin-bottom: 2px;
}

.badge-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
}

.badge-text span {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
}

/* Team Card */
.team-card {
  transition: var(--transition-smooth);
}

.team-card .ratio {
  border-radius: 4px;
}

.team-card:hover h4 {
  color: var(--accent-gold);
}

/* Credentials Refinement */
.credential-number {
  color: var(--accent-gold) !important;
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
}

.credential-label {
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

/* Footer Refinement */
.footer-heading {
  font-family: var(--font-serif);
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -0.5rem;
  width: 2rem;
  height: 2px;
  background: var(--accent-gold);
}

.footer-link {
  color: rgba(255, 255, 255, 0.6) !important;
  text-decoration: none;
  transition: var(--transition-smooth);
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-link:hover {
  color: var(--accent-gold) !important;
  transform: translateX(5px);
}

.footer-brand-title {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
  color: #ffffff;
}

/* Phone / email / hours under footer logo — balances column heights */
.footer-brand-contact {
  max-width: 22rem;
}

.footer-brand-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.footer-brand-contact-item {
  margin: 0;
}

.footer-brand-contact-full {
  grid-column: 1 / -1;
}

@media (min-width: 992px) {
  .footer-brand-contact-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    column-gap: 2rem;
    row-gap: 1.25rem;
  }
}

/* Desktop Enhancements */
@media (min-width: 992px) {
  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3.5rem;
  }

  h3 {
    font-size: 2.25rem;
  }

  .btn {
    width: auto;
    display: inline-block;
    margin-bottom: 0;
    padding: 1.125rem 3rem;
  }

  #hero {
    padding-top: 160px;
    min-height: min(78vh, 680px);
  }

  #hero h1 {
    font-size: 6rem;
    line-height: 1.05;
  }

  #hero .lead {
    font-size: 1.375rem;
  }

  section {
    padding: var(--spacing-xl) 0;
  }
}

/* Mobile Full Screen Menu Overlay */
#mobile-menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background-color: var(--primary-navy);
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-20px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

#mobile-menu-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.mobile-nav-link {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: color 0.3s ease;
  display: block;
}

.mobile-nav-link:hover {
  color: var(--accent-gold);
}

.mobile-btn-highlight {
  color: var(--accent-gold);
}

/* Custom Toggler Style */
.navbar-toggler {
  border: none;
  padding: 0.5rem;
  outline: none;
  box-shadow: none !important;
}

.navbar-toggler-icon {
  width: 1.5em;
  height: 1.5em;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(10, 22, 40, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Logo Styling */
/* Premium Logo System - Heritage Architectural */
.logo-premium {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-decoration: none !important;
  transition: var(--transition-smooth);
  gap: 15px;
}

.logo-img {
  height: 55px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition-smooth);
}

.logo-premium:hover {
  transform: translateY(-0.5px);
  filter: brightness(1.05);
}

.logo-mark-svg {
  display: none;
  /* Heritage approach: Wordmark is the mark */
}

.logo-text-wrapper {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-bottom: 5px;
}

.logo-name {
  font-family: var(--font-serif);
  font-size: 1.85rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: inherit;
  line-height: 1.1;
  border-bottom: 1px solid currentColor;
  /* Heritage Divider */
  padding-bottom: 6px;
  margin-bottom: 6px;
}

.logo-subtext {
  font-family: var(--font-sans);
  font-size: 0.52rem;
  text-transform: uppercase;
  letter-spacing: 0.52em;
  /* Expertly tracked to match AULAKH LAW width exactly */
  font-weight: 700;
  white-space: nowrap;
  color: inherit;
  opacity: 0.85;
}

/* Footer Specific: Left-Aligned Heritage */
footer .logo-premium {
  align-items: flex-start;
  text-align: left;
  margin: 0;
}

.navbar:not(.navbar-scrolled):not(.navbar-dark) .logo-premium {
  color: var(--accent-bronze);
}

.navbar-scrolled .logo-premium,
.bg-dark .logo-premium,
footer .logo-premium {
  color: var(--accent-gold);
}

.navbar-brand {
  padding: 0;
}

.logo-navbar {
  /* Legacy image support if needed, but we are moving to premium system */
  max-height: 40px;
  max-width: 220px;
  /* Kept from original */
  width: auto;
  height: auto;
  display: block;
}

.logo-footer {
  max-width: 220px;
  max-height: 65px;
  width: auto;
  height: auto;
  display: block;
}

footer .logo-img {
  height: 55px;
  filter: brightness(0) invert(1);
  /* Converts monochromatic brand navy to white */
}

/* Privacy Policy Page Styling */
.privacy-content h2 {
  font-size: 2rem;
  font-weight: 600;
  color: var(--primary-navy);
  margin-top: 3rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-gold);
}

.privacy-content h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.privacy-content p {
  margin-bottom: 1.25rem;
  line-height: 1.8;
  color: var(--charcoal);
}

.privacy-content ul {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

.privacy-content ul li {
  margin-bottom: 0.75rem;
  line-height: 1.7;
}

.privacy-content a {
  color: var(--accent-gold);
  text-decoration: none;
  font-weight: 500;
}

.privacy-content a:hover {
  text-decoration: underline;
}

/* Entrance Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

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

.reveal {
  animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.reveal-delay-1 {
  animation-delay: 0.2s;
}

.reveal-delay-2 {
  animation-delay: 0.4s;
}

/* Contact Form Refinements */
.form-control {
  border-radius: 0;
  padding: 0.875rem 1.25rem;
  border: 1px solid var(--border-subtle);
  background: var(--off-white);
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  transition: var(--transition-smooth);
}

.form-control:focus {
  border-color: var(--accent-gold);
  box-shadow: none;
  background: white;
}

.form-label {
  margin-bottom: 0.75rem;
  color: var(--primary-navy);
}

.icon-box {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
  color: var(--accent-gold);
  font-size: 1.25rem;
  transition: var(--transition-smooth);
}

.contact-info-list .d-flex:hover .icon-box {
  background: var(--accent-gold);
  color: white;
}

.captcha-img-wrapper {
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.alert {
  border-radius: 0;
  padding: 1rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
}

.refresh-icon {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

#refreshCaptcha:active .refresh-icon {
  transform: rotate(360deg);
}

.reveal-delay-1 {
  animation-delay: 0.2s;
}

.reveal-delay-2 {
  animation-delay: 0.4s;
}

.reveal-delay-3 {
  animation-delay: 0.6s;
}

/* Scroll to Top Button */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background-color: var(--primary-navy);
  color: var(--accent-gold);
  border: 1px solid var(--accent-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-md);
  padding: 0;
}

.scroll-to-top.show {
  opacity: 0.7;
  visibility: visible;
}

.scroll-to-top:hover {
  background-color: var(--accent-gold);
  color: white;
  opacity: 1;
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top svg {
  width: 20px;
  height: 20px;
}

@media (max-width: 768px) {
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }
}