/* ============================================================
   AGARWAL MAHESH & CO. — Main Stylesheet
   Design: Modern Fintech | Slate + Indigo + Cyan
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Inter:wght@300;400;500;600;700&family=Quintessential&display=swap');

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  /* Clean & Professional Palette */
  --primary:     #2563EB; /* Royal Blue */
  --primary-dark:#1D4ED8;
  --primary-light:#DBEAFE;
  
  --navy:        #0F172A; /* Used for headings */
  --navy-mid:    #1E293B; /* Secondary headings */
  --navy-light:  #334155; /* Muted text */
  
  /* Redefining primary & accent for a brighter look */
  --gold:        #2563EB; /* Repurposed to Royal Blue for consistency */
  --gold-light:  #3B82F6;
  --gold-pale:   #EFF6FF;
  
  --accent:      #10B981; /* Emerald Green for a fresh feel */
  --accent-light:#34D399;

  --white:       #FFFFFF;
  --off-white:   #F8FAFC;
  --gray-100:    #F1F5F9;
  --gray-200:    #E2E8F0;
  --gray-400:    #94A3B8;
  --gray-600:    #64748B;
  --gray-800:    #1E293B;
  
  --text-main:   #1E293B;
  --text-muted:  #475569;

  --font-serif:  'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans:   'Inter', system-ui, sans-serif;

  --radius-sm:   8px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-xl:   32px;

  --shadow-sm:   0 1px 3px rgba(15,23,42,0.08);
  --shadow-md:   0 10px 25px rgba(15,23,42,0.04);
  --shadow-lg:   0 20px 40px rgba(15,23,42,0.06);
  --shadow-gold: 0 8px 20px rgba(37,99,235,0.2);

  --transition:  all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --nav-height:  80px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

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

img { max-width: 100%; height: auto; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

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

/* ── Typography ─────────────────────────────────────────────── */
h1, h2, h3, h4, h5 { font-family: var(--font-serif); line-height: 1.25; }
h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 700; }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 600; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.6rem); font-weight: 600; }
h4 { font-size: 1.15rem; font-weight: 600; }
p  { font-size: 1rem; color: var(--text-muted); line-height: 1.8; }

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

.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-tag::before {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold);
  display: block;
}

.section-title { color: var(--navy); margin-bottom: 16px; }
.section-subtitle { font-size: 1.05rem; color: var(--text-muted); max-width: 580px; line-height: 1.8; }

.text-center { text-align: center; }
.text-center .section-subtitle { margin: 0 auto; }
.text-center .section-tag { justify-content: center; }
.text-center .section-tag::before { display: none; }
.text-center .section-tag::after {
  content: '';
  width: 28px; height: 2px;
  background: var(--gold);
  display: block;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #ffffff !important;
  box-shadow: var(--shadow-gold);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79,70,229,0.45);
}

.btn-outline {
  border: 2px solid var(--white);
  color: var(--white);
  background: transparent;
}
.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-outline-navy {
  border: 2px solid var(--navy);
  color: var(--navy);
  background: transparent;
}
.btn-outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}

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

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

.navbar.transparent { background: transparent; }
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow-md);
  border-bottom: 1px solid var(--gray-200);
}

.navbar.scrolled .nav-links a { color: var(--navy-mid); }
.navbar.scrolled .nav-links a:hover { color: var(--gold); }
.navbar.scrolled .firm-name { color: var(--navy); }
.navbar.scrolled .firm-tagline { color: var(--gold); }
.navbar.scrolled .hamburger span { background: var(--navy); }

.navbar.scrolled .nav-cta {
  background: var(--primary);
  color: #ffffff !important;
  padding: 10px 22px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
  display: inline-flex;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-cta {
  padding: 10px 22px !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  transition: all 0.3s ease !important;
}

.nav-cta:hover {
  transform: translateY(-2.5px);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.35);
  background: var(--primary-dark);
}

.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  line-height: 1;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.navbar-logo img {
  height: 52px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.navbar-logo .logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.navbar-logo .firm-name {
  font-family: "Monotype Corsiva", "Quintessential", cursive;
  font-size: 1.65rem;
  font-weight: 500;
  color: var(--navy);
  line-height: 1.1; /* Slightly relaxed for better vertical balance */
  letter-spacing: 0.01em;
}
.navbar-logo .firm-tagline {
  font-family: "Monotype Corsiva", "Quintessential", cursive;
  font-size: 1.15rem;
  color: var(--gold);
  letter-spacing: 0.01em;
  text-transform: none;
  font-weight: 500;
  line-height: 1;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--navy-mid);
  letter-spacing: 0.02em;
  transition: var(--transition);
  position: relative;
  padding: 8px 0;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--gold-light);
}
.nav-links a:hover::after, .nav-links a.active::after {
  width: 100%;
}

/* ── Dropdown Menu ─────────────────────────────────────────── */
.dropdown {
  position: relative;
  display: flex;
  align-items: center;
}

.dropdown-toggle {
  display: flex !important;
  align-items: center;
  gap: 4px;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  min-width: 220px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  padding: 12px 0;
  z-index: 1100;
  border: 1px solid var(--gray-200);
  transition: all 0.3s ease;
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li {
  width: 100%;
}

.dropdown-menu li a {
  padding: 10px 24px;
  display: block;
  font-size: 0.9rem;
  color: var(--text-main) !important;
  font-weight: 500;
  transition: var(--transition);
  position: relative;
}

.dropdown-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover {
  background: var(--gray-100);
  color: var(--gold) !important;
  padding-left: 28px;
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Hero Centered (Premium v2) ─────────────────────────────── */
.hero-centered {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-height) + 60px) 0 80px;
  background: var(--white);
  overflow: hidden;
}

.mesh-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 0%, rgba(16, 185, 129, 0.03) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(16, 185, 129, 0.03) 0px, transparent 50%);
  filter: blur(80px);
}

.hero-grid-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, var(--gray-100) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gray-100) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at center, black, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
  opacity: 0.4;
}

.hero-container-v2 {
  position: relative;
  z-index: 2;
  width: 100%;
}

.text-center-v2 {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  margin-bottom: 64px;
}

.hero-title-v2 {
  font-size: clamp(2.8rem, 6vw, 4.2rem);
  color: var(--navy);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title-v2 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle-v2 {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 40px;
}

.hero-actions-v2 {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 1rem;
}

/* Floating Cards */
.hero-floating-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.f-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.f-card:hover {
  transform: translateY(-5px);
  background: var(--white);
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.f-card .f-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  color: var(--gold);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}
.f-card h4 { font-size: 1.05rem; color: var(--navy); margin-bottom: 2px; }
.f-card p { font-size: 0.82rem; color: var(--text-muted); }

@media (max-width: 768px) {
  .hero-centered { padding-top: 120px; text-align: center; }
  .hero-floating-cards { grid-template-columns: 1fr; }
  .hero-title-v2 { font-size: 2.4rem; }
  .hero-actions-v2 .btn { width: 100%; }
}

/* ── Stats Bar ──────────────────────────────────────────────── */
.stats-bar {
  background: var(--gold);
  padding: 32px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 0;
  text-align: center;
}
.stats-grid .stat-item {
  padding: 16px 24px;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.stats-grid .stat-item:last-child { border-right: none; }
.stat-number {
  font-family: var(--font-serif);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Services Section ───────────────────────────────────────── */
.services-section { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--accent));
  transform: scaleX(0);
  transition: transform 0.35s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.service-card:hover::before { transform: scaleX(1); }

.service-card .service-icon {
  width: 64px; height: 64px;
  background: var(--gold-pale);
  border-radius: var(--radius-md);
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.08);
}
.service-card h3 {
  font-size: 1.15rem;
  color: var(--navy);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: 20px;
}
.service-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.service-link:hover { gap: 10px; }

/* ── Why Choose Us ──────────────────────────────────────────── */
.why-section {
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  margin-top: 0;
}
.why-image-block {
  position: relative;
}
.why-image-main {
  width: 100%;
  height: 460px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  box-shadow: var(--shadow-lg);
}
.why-badge-float {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.why-badge-float .big-num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.why-badge-float .small-text {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

.why-features { display: flex; flex-direction: column; gap: 28px; margin-top: 36px; }
.why-feature {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.why-feature .feat-icon {
  width: 48px; height: 48px;
  background: var(--gold-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.why-feature h4 { color: var(--navy); margin-bottom: 4px; }
.why-feature p { font-size: 0.9rem; }

/* ── Team Section ───────────────────────────────────────────── */
.team-section { background: var(--off-white); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 56px;
  justify-content: center; /* Centrally align the cards if the container is wide */
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-pale);
}
.team-photo {
  width: 100%;
  height: 380px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-light), var(--navy-mid));
  display: flex !important;
  align-items: center;
  justify-content: center;
}
.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 15%; /* Centrally align faces */
  transition: transform 0.5s ease;
}
.team-photo-abhay img {
  transform: scale(1.08); /* Adjusted scale to sync head size with older partners */
  transform-origin: center top;
}
.team-card:hover .team-photo img {
  transform: scale(1.05); /* Subtle hover effect for other partners */
}
.team-card:hover .team-photo-abhay img {
  transform: scale(1.15); /* Keep the hover effect proportional for Abhay */
}
.team-info {
  padding: 24px;
  text-align: center;
}
.team-info h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.team-role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-info p { font-size: 0.88rem; line-height: 1.55; }
.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}
.team-socials a {
  width: 42px; height: 42px; /* Increased size for better "button" feel */
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #0077B5; /* Classic LinkedIn Blue */
  transition: var(--transition);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}
.team-socials a:hover {
  background: #0077B5;
  color: var(--white);
  border-color: #0077B5;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(0,119,181,0.3);
}
.team-info h3 { font-size: 1.15rem; color: var(--navy); margin-bottom: 4px; }
.team-role {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.team-info p { font-size: 0.88rem; }
.team-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}
.team-socials a {
  width: 34px; height: 34px;
  border: 1px solid var(--gray-200);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem;
  color: var(--navy);
  transition: var(--transition);
}
.team-socials a:hover {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

/* ── Testimonials ───────────────────────────────────────────── */
.testimonials-section {
  background: var(--bg-soft);
  position: relative;
  overflow: hidden;
}
.testimonials-section::before {
  content: '"';
  position: absolute;
  top: -40px; right: 60px;
  font-size: 30rem;
  color: var(--gray-200);
  font-family: var(--font-serif);
  line-height: 1;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}
.testimonial-card:hover {
  border-color: var(--gold);
  box-shadow: var(--shadow-lg);
}
.testimonial-stars {
  color: var(--gold);
  font-size: 0.95rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}
.testimonial-card blockquote {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  font-style: italic;
  margin-bottom: 24px;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.author-avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gold-pale);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-serif);
  flex-shrink: 0;
}
.author-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  font-family: var(--font-serif);
}
.author-company { font-size: 0.78rem; color: var(--gray-400); }

/* ── Blog Section ───────────────────────────────────────────── */
.blog-section { background: var(--white); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.blog-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  background: var(--white);
}
.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}
.blog-thumb {
  height: 200px;
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-light));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  position: relative;
  overflow: hidden;
}
.blog-category {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--gold);
  color: var(--navy);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
}
.blog-body { padding: 24px; }
.blog-meta {
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.blog-card h3 { font-size: 1.05rem; color: var(--navy); line-height: 1.4; margin-bottom: 10px; }
.blog-card p { font-size: 0.875rem; line-height: 1.7; }
.blog-read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--gold);
  margin-top: 16px;
  transition: var(--transition);
}
.blog-read-more:hover { gap: 10px; }

/* ── Contact Section ────────────────────────────────────────── */
.contact-section { background: var(--off-white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 56px;
  margin-top: 56px;
  align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 0; }

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--gray-200);
}
.contact-item:last-child { border-bottom: none; }
.contact-icon {
  width: 46px; height: 46px;
  background: var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  color: var(--white);
}
.contact-item h4 { color: var(--navy); font-size: 0.9rem; margin-bottom: 4px; }
.contact-item p, .contact-item a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.contact-item a:hover { color: var(--gold); }

.social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}
.social-link {
  width: 42px; height: 42px;
  border: 2px solid var(--navy);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1rem;
  transition: var(--transition);
}
.social-link:hover {
  background: rgba(255,255,255,0.05);
  color: var(--white);
}

.footer-col .social-link, .footer-brand .social-link {
  border-color: rgba(255,255,255,0.15);
  color: #FFFFFF !important;
  width: 38px; height: 38px;
}

.footer-col .social-link:hover, .footer-brand .social-link:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: #FFFFFF !important;
  transform: translateY(-3px);
}
.footer-col .social-link i {
  display: block;
}

/* Contact Form */
.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.contact-form-wrap h3 {
  color: var(--navy);
  margin-bottom: 8px;
}
.contact-form-wrap > p { margin-bottom: 28px; }

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

.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}
.form-group input:not([type="checkbox"]),
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-family: var(--font-sans);
  color: var(--text-main);
  background: var(--off-white);
  transition: var(--transition);
  outline: none;
}
.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 textarea { resize: vertical; min-height: 120px; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
  color: var(--white);
}
.cta-section::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}
.cta-section h2 { color: #ffffff !important; margin-bottom: 20px; font-size: 2.5rem; font-weight: 800; }
.cta-section p { color: #ffffff !important; margin-bottom: 40px; font-size: 1.2rem; opacity: 0.95; }
.cta-actions { display: flex; justify-content: center; gap: 20px; flex-wrap: wrap; }

.cta-section .btn-primary {
  background: #ffffff !important;
  color: #1e40af !important; /* Darker Blue for high legibility */
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.cta-section .btn-primary:hover {
  background: #f8fafc !important;
  color: #1d4ed8 !important;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}
.cta-section .btn-outline {
  border: 2px solid rgba(255,255,255,0.4);
  color: var(--white);
}
.cta-section .btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--white);
}

/* ── Footer ─────────────────────────────────────────────────── */
footer {
  background: var(--navy);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .firm-name {
  font-family: "Monotype Corsiva", "Quintessential", cursive;
  font-size: 2rem;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 2px;
  line-height: 1;
}
.footer-brand .firm-sub {
  font-family: "Monotype Corsiva", "Quintessential", cursive;
  font-size: 1.4rem;
  color: #00A3E0; /* Matches the professional blue in the header */
  letter-spacing: 0.01em;
  text-transform: none;
  margin-bottom: 20px;
  font-weight: 400;
}
.footer-brand p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.8;
  margin-bottom: 24px;
}

.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-light);
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 10px;
}
.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}
.footer-col ul li a:hover { color: var(--white); padding-left: 4px; }

.footer-newsletter input {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.88rem;
  font-family: var(--font-sans);
  margin-bottom: 10px;
  outline: none;
  transition: var(--transition);
}
.footer-newsletter input:focus {
  border-color: var(--gold);
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }

.footer-areas-title {
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  width: 100%;
}
.footer-areas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 24px;
}
.footer-areas-grid a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}
.footer-areas-grid a:hover {
  color: var(--gold);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.35); }
.footer-bottom .footer-links { display: flex; gap: 20px; }
.footer-bottom .footer-links a {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
  transition: var(--transition);
}
.footer-bottom .footer-links a:hover { color: var(--gold); }

/* ── WhatsApp Button ────────────────────────────────────────── */
.whatsapp-btn {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  z-index: 999;
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}
.whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,0.6);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── Page Hero (inner pages) ────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  padding: 120px 0 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-200);
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232563eb' fill-opacity='0.02'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.page-hero h1 { color: var(--navy); position: relative; z-index: 2; }
.page-hero p { color: var(--text-muted); font-size: 1.1rem; margin: 12px auto 0; position: relative; z-index: 2; max-width: 800px; }
.page-hero .breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
}
.page-hero .breadcrumb a { color: var(--primary); font-weight: 500; transition: var(--transition); }
.page-hero .breadcrumb a:hover { color: var(--primary-dark); }
.page-hero .breadcrumb span { color: var(--gray-400); }

/* ── Accordion / FAQ ────────────────────────────────────────── */
.faq-section { background: var(--off-white); }
.faq-list { max-width: 800px; margin: 56px auto 0; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.faq-question:hover { color: var(--gold); }
.faq-icon { font-size: 1.2rem; transition: transform 0.3s ease; flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.3s ease;
  padding: 0 24px;
}
.faq-item.open .faq-answer { max-height: 200px; padding: 0 24px 20px; }
.faq-answer p { font-size: 0.9rem; line-height: 1.8; }

/* ── Tax Calculator ─────────────────────────────────────────── */
.calculator-section { background: var(--white); }
.calc-wrap {
  max-width: 680px;
  margin: 56px auto 0;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  padding: 44px;
  box-shadow: var(--shadow-md);
}
.calc-result {
  background: var(--navy);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-top: 28px;
  text-align: center;
  display: none;
}
.calc-result.shown { display: block; }
.calc-result .result-label { font-size: 0.85rem; color: rgba(255,255,255,0.6); margin-bottom: 8px; }
.calc-result .result-amount {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--gold);
  font-weight: 700;
}
.calc-result .result-note { font-size: 0.78rem; color: rgba(255,255,255,0.45); margin-top: 8px; }

/* ── Animate on Scroll ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-content       { grid-template-columns: 1fr; gap: 48px; }
  .hero-right         { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .service-card-hero  { max-width: 100%; }
  .services-grid      { grid-template-columns: repeat(2, 1fr); }
  .team-grid          { grid-template-columns: repeat(2, 1fr); }
  .testimonials-container { max-width: 600px; margin: 0 auto; overflow: hidden; position: relative; }
  .testimonials-grid  { display: flex; transition: transform 0.6s ease-in-out; }
  .testimonial-card   { min-width: 100%; flex-shrink: 0; margin-bottom: 0; }
  .blog-grid          { grid-template-columns: repeat(2, 1fr); }
  .why-grid           { gap: 48px; }
  .footer-grid        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-height: 68px; }
  .nav-links { 
    display: none; 
    position: fixed; 
    top: var(--nav-height); 
    left: 0; 
    right: 0;
    bottom: 0; /* Cover full height below navbar */
    background: var(--navy); 
    flex-direction: column; 
    padding: 32px 24px;
    gap: 8px; 
    box-shadow: var(--shadow-lg); 
    overflow-y: auto;
    z-index: 999;
  }
  .nav-links.open { display: flex; }

  .nav-links a {
    color: var(--white) !important;
    font-size: 1.1rem;
    padding: 14px 0;
    width: 100%;
    text-align: center; /* Center links for a premium look */
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: block;
  }
  
  .nav-links a:last-child { border-bottom: none; }
  
  .nav-links a::after { display: none; }

  .dropdown {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .dropdown-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center !important; /* Center the 'About' text */
    gap: 8px;
    width: 100%;
    position: relative;
  }
  
  /* Place chevron absolute on the right to keep text centered */
  .dropdown-toggle i {
    position: absolute;
    right: 20px;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    background: rgba(0, 0, 0, 0.15); /* Slightly darker for contrast */
    width: 100%;
    padding: 10px 0;
    margin-top: 0;
    display: none; 
    border-left: none; /* Removed indent border for centered layout */
  }

  .dropdown.active .dropdown-menu {
    display: block;
  }

  .dropdown-menu li a {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 1rem;
    padding: 12px 16px;
    border-bottom: none;
    background: transparent;
  }

  .dropdown-menu li a:hover {
    background: transparent;
    color: var(--gold) !important;
  }

  .nav-cta { 
    display: inline-flex !important; 
    margin-top: 24px; 
    width: 100%; 
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    border-bottom: none !important;
  }
  .hamburger          { display: flex; }
  .services-grid      { grid-template-columns: 1fr; }
  .team-grid          { grid-template-columns: 1fr; }
  .team-photo     { height: 350px; }
  .blog-grid          { grid-template-columns: 1fr; }
  .why-grid           { grid-template-columns: 1fr; }
  .why-image-block    { display: none; }
  .stats-grid         { grid-template-columns: repeat(2,1fr); }
  .contact-grid       { grid-template-columns: 1fr; }
  .form-row           { grid-template-columns: 1fr; }
  .footer-grid        { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom      { flex-direction: column; gap: 12px; text-align: center; }
  .navbar-logo .firm-name { font-size: 1.25rem; }
  .navbar-logo .firm-tagline { font-size: 0.85rem; }
  .navbar-logo img { height: 38px !important; }

  .hero-title-v2 { font-size: 2.2rem; }
  .hero-subtitle-v2 { font-size: 1rem; }
  .hero-actions-v2 { gap: 12px; }
  
  .page-hero { padding: 100px 0 40px; }
  .page-hero h1 { font-size: 1.8rem; }
  .page-hero .breadcrumb { margin-top: 10px; font-size: 0.75rem; }
  
  .section { padding: 60px 0; }
  .section-title { font-size: 1.75rem; }
  .section-subtitle { font-size: 0.95rem; margin-top: 12px; }
}
