/* ==========================================================================
   Baskaran and Hareendra Associates - Modern Design System
   Chartered Accountants | Madurai, India
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & CSS Custom Properties
   -------------------------------------------------------------------------- */
:root {
  /* Brand Corporate Colors */
  --navy-950: #061120;
  --navy-900: #0a1b33;
  --navy-850: #0e2444;
  --navy-800: #14325a;
  --navy-700: #1d4479;
  
  --blue-600: #1a56db;
  --blue-500: #2563eb;
  --blue-400: #3b82f6;
  --blue-100: #dbeafe;
  --blue-50: #eff6ff;

  --teal-600: #0d9488;
  --teal-500: #14b8a6;
  --teal-100: #ccfbf1;
  --teal-50: #f0fdfa;

  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;
  --gold-50: #fffbeb;

  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-100: #d1fae5;

  /* Neutral Slate Palette */
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;
  --white: #ffffff;

  /* Semantic Variables */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-card: #ffffff;
  --bg-dark: var(--navy-950);
  --text-primary: var(--slate-900);
  --text-secondary: var(--slate-600);
  --text-muted: var(--slate-500);
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Spacing */
  --container-max: 1240px;
  --section-padding: clamp(3.5rem, 6vw, 6rem) 1.5rem;

  /* Border Radii */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 2px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 4px 14px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 12px 28px -4px rgba(15, 23, 42, 0.1), 0 4px 10px -3px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 35px -5px rgba(15, 23, 42, 0.12), 0 8px 16px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 25px rgba(37, 99, 235, 0.18);

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-sans);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

.desktop-break {
  display: inline;
}

img, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   3. Layout & Containers
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.section {
  padding: var(--section-padding);
  position: relative;
}

.section-alt {
  background-color: var(--bg-secondary);
}

.section-dark {
  background-color: var(--navy-950);
  color: var(--white);
}

/* Section Header Styles */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  background: var(--blue-50);
  color: var(--blue-600);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.section-tag.gold {
  background: var(--gold-50);
  color: var(--gold-600);
  border-color: rgba(217, 119, 6, 0.2);
}

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-dark .section-title {
  color: var(--white);
}

.section-subtitle {
  font-size: clamp(1rem, 1.2vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-dark .section-subtitle {
  color: var(--slate-300);
}

/* --------------------------------------------------------------------------
   4. Buttons & Interactive Controls
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  line-height: 1;
  transition: all var(--transition-base);
  text-align: center;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--navy-900), var(--blue-600));
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.28);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--navy-800), var(--blue-500));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.38);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy-900);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-600));
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.3);
}

.btn-accent:hover {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4);
}

.btn-outline-white {
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
}

/* --------------------------------------------------------------------------
   5. Top Utility Announcement Bar
   -------------------------------------------------------------------------- */
.utility-bar {
  background-color: var(--navy-950);
  color: var(--slate-300);
  font-size: 0.8125rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.utility-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.utility-left, .utility-right {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.utility-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.utility-item svg {
  width: 14px;
  height: 14px;
  color: var(--gold-400);
  flex-shrink: 0;
}

.utility-item a:hover {
  color: var(--white);
}

/* --------------------------------------------------------------------------
   6. Sticky Glassmorphic Header & Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
  border-bottom-color: var(--border-light);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.ca-logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

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

.firm-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--navy-950);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.firm-subtitle {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: 0.04em;
  margin-top: 1px;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  padding: 0.5rem 0.9rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate-700);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  position: relative;
}

.nav-link:hover {
  color: var(--blue-600);
  background-color: var(--blue-50);
}

.nav-link.active {
  color: var(--blue-600);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0.85rem;
  right: 0.85rem;
  height: 2px;
  background-color: var(--blue-600);
  border-radius: 2px;
}

.nav-cta-btn {
  margin-left: 0.75rem;
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  padding: 0.5rem;
  color: var(--slate-800);
  border-radius: var(--radius-sm);
}

.mobile-toggle:hover {
  background-color: var(--slate-100);
}

.mobile-toggle svg {
  width: 26px;
  height: 26px;
}

/* Mobile Drawer Overlay */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(85vw, 360px);
  height: 100vh;
  height: 100dvh;
  background-color: var(--white);
  box-shadow: -4px 0 25px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  padding: 1.5rem 1.25rem calc(1.5rem + env(safe-area-inset-bottom)) 1.25rem;
  display: flex;
  flex-direction: column;
  transition: right var(--transition-base);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 1.5rem;
}

.drawer-close {
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  color: var(--slate-600);
}

.drawer-close:hover {
  background-color: var(--slate-100);
  color: var(--slate-900);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.drawer-nav-link {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--slate-800);
}

.drawer-nav-link:hover, .drawer-nav-link.active {
  background-color: var(--blue-50);
  color: var(--blue-600);
}

/* --------------------------------------------------------------------------
   7. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 85% 15%, rgba(37, 99, 235, 0.07) 0%, transparent 60%),
              radial-gradient(circle at 10% 80%, rgba(245, 158, 11, 0.05) 0%, transparent 50%),
              #ffffff;
  padding: clamp(3rem, 5vw, 5.5rem) 0 clamp(4rem, 6vw, 6.5rem) 0;
  border-bottom: 1px solid var(--border-light);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: var(--blue-50);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--blue-600);
  margin-bottom: 1.25rem;
}

.hero-pill-badge {
  background: var(--blue-600);
  color: var(--white);
  font-size: 0.725rem;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-title {
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy-950);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
}

.hero-title-highlight {
  background: linear-gradient(135deg, var(--navy-900) 20%, var(--blue-600) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.4vw, 1.22rem);
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.75rem;
  max-width: 620px;
}

/* Dynamic Rotating Value Banner */
.hero-type-bar {
  background: var(--slate-50);
  border-left: 4px solid var(--blue-600);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 0.85rem 1.25rem;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 620px;
  box-shadow: var(--shadow-xs);
  min-height: 5.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}

.hero-type-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-600);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.hero-type-text {
  font-size: 0.975rem;
  font-weight: 600;
  color: var(--navy-900);
  line-height: 1.45;
  min-height: 2.9rem;
  display: flex;
  align-items: center;
  word-break: normal;
}

.type-cursor {
  display: inline-block;
  color: var(--blue-600);
  font-weight: 300;
  margin-left: 2px;
  animation: blinkCursor 0.8s infinite;
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

/* Hero Trust Stats Grid */
.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  width: 100%;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-light);
}

.hero-stat-item {
  display: flex;
  flex-direction: column;
}

.hero-stat-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--navy-950);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin-top: 0.25rem;
  font-weight: 500;
}

/* Hero Visual Card Showcase */
.hero-visual {
  position: relative;
}

.hero-visual-frame {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff, #e8f0fe);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid rgba(37, 99, 235, 0.15);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.hero-visual-frame::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-illustration-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 320px;
}

.hero-illustration-wrapper img {
  max-height: 280px;
  width: auto;
  filter: drop-shadow(0 15px 25px rgba(15, 23, 42, 0.12));
  animation: subtleFloat 4s ease-in-out infinite alternate;
}

@keyframes subtleFloat {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-10px); }
}

/* Floating Glass Cards */
.hero-floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: var(--radius-lg);
  padding: 0.85rem 1.15rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  z-index: 2;
  animation: cardFloat 6s ease-in-out infinite alternate;
}

.card-top-left {
  top: 15px;
  left: -20px;
}

.card-bottom-right {
  bottom: 20px;
  right: -20px;
  animation-delay: -3s;
}

@keyframes cardFloat {
  0% { transform: translateY(0px) scale(1); }
  100% { transform: translateY(-8px) scale(1.01); }
}

.floating-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.floating-icon-box.blue {
  background: var(--blue-100);
  color: var(--blue-600);
}

.floating-icon-box.gold {
  background: var(--gold-100);
  color: var(--gold-600);
}

.floating-icon-box svg {
  width: 20px;
  height: 20px;
}

.floating-card-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-950);
}

.floating-card-subtitle {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   8. About Section & Partner Leadership Showcase
   -------------------------------------------------------------------------- */
.about-intro-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  margin-bottom: 3.5rem;
}

.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-narrative h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 1rem;
  line-height: 1.3;
}

.about-narrative p {
  color: var(--slate-600);
  margin-bottom: 1.25rem;
  font-size: 1rem;
}

.pillar-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.pillar-item {
  background: var(--slate-50);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.pillar-item:hover {
  background: var(--white);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--blue-100);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.pillar-icon svg {
  width: 18px;
  height: 18px;
}

.pillar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-900);
  margin-bottom: 0.25rem;
}

.pillar-desc {
  font-size: 0.8125rem;
  color: var(--slate-500);
  line-height: 1.45;
}

/* Leadership Partner Profiles */
.partners-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}

.partners-section-title h3 {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--navy-950);
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.partner-card.in-memoriam::before {
  background: linear-gradient(90deg, #475569, #94a3b8);
}

.partner-badge.memoriam {
  background: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.partner-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
  position: relative;
  transition: all var(--transition-base);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(90deg, var(--navy-900), var(--blue-600));
}

.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
  border-color: var(--blue-400);
}

.partner-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.partner-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-800), var(--blue-600));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(10, 27, 51, 0.2);
}

.partner-info h4 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 0.2rem;
}

.partner-role {
  font-size: 0.875rem;
  color: var(--blue-600);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.partner-badge {
  background: var(--gold-50);
  color: var(--gold-600);
  border: 1px solid rgba(217, 119, 6, 0.25);
  font-size: 0.725rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
}

.partner-bio {
  font-size: 0.9375rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.partner-expertise-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.5rem;
}

.partner-tag {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.8125rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

.partner-footer {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.partner-email {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--blue-600);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  word-break: break-all;
}

.partner-email svg {
  width: 16px;
  height: 16px;
}

.partner-email:hover {
  color: var(--navy-900);
  text-decoration: underline;
}

/* --------------------------------------------------------------------------
   9. Services Section & Interactive Categories ("What We Do")
   -------------------------------------------------------------------------- */
.services-filter-nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 3rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-600);
  background: var(--white);
  border: 1px solid var(--border-medium);
  transition: all var(--transition-fast);
}

.filter-btn:hover {
  color: var(--blue-600);
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.filter-btn.active {
  background: var(--navy-900);
  color: var(--white);
  border-color: var(--navy-900);
  box-shadow: 0 4px 12px rgba(10, 27, 51, 0.2);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: all var(--transition-base);
  position: relative;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(37, 99, 235, 0.3);
}

.service-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--transition-base);
}

.service-card:hover .service-icon {
  transform: scale(1.08);
}

.service-icon.blue {
  background: var(--blue-50);
  color: var(--blue-600);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.service-icon.teal {
  background: var(--teal-50);
  color: var(--teal-600);
  border: 1px solid rgba(13, 148, 136, 0.15);
}

.service-icon.gold {
  background: var(--gold-50);
  color: var(--gold-600);
  border: 1px solid rgba(217, 119, 6, 0.15);
}

.service-icon.emerald {
  background: var(--emerald-100);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.15);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-category-pill {
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--slate-100);
  color: var(--slate-600);
}

.service-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.35;
  margin-bottom: 0.75rem;
}

.service-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.service-points {
  margin-bottom: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.service-point {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--slate-700);
}

.service-point svg {
  width: 14px;
  height: 14px;
  color: var(--emerald-600);
  flex-shrink: 0;
}

.service-action-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--blue-600);
  transition: gap var(--transition-fast);
}

.service-action-link:hover {
  gap: 0.65rem;
  color: var(--navy-900);
}

/* --------------------------------------------------------------------------
   10. Interactive Indian Tax & Compliance Due Dates Calendar
   -------------------------------------------------------------------------- */
.calendar-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.calendar-topbar {
  background: var(--navy-950);
  color: var(--white);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.calendar-title-group h3 {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}

.calendar-title-group p {
  font-size: 0.85rem;
  color: var(--slate-400);
}

.calendar-filter-tabs {
  display: flex;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.35rem;
  border-radius: var(--radius-full);
}

.cal-tab {
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--slate-300);
  transition: all var(--transition-fast);
}

.cal-tab:hover {
  color: var(--white);
}

.cal-tab.active {
  background: var(--blue-600);
  color: var(--white);
}

.calendar-table-wrapper {
  overflow-x: auto;
}

.compliance-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9375rem;
}

.compliance-table th {
  background: var(--slate-50);
  color: var(--slate-700);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
}

.compliance-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--slate-700);
  vertical-align: middle;
}

.compliance-table tbody tr:hover {
  background-color: var(--blue-50);
}

.due-date-cell {
  font-weight: 800;
  color: var(--navy-950);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
}

.badge-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.badge-tag.gst {
  background: var(--blue-100);
  color: var(--blue-600);
}

.badge-tag.income-tax {
  background: var(--emerald-100);
  color: var(--emerald-600);
}

.badge-tag.roc {
  background: var(--gold-100);
  color: var(--gold-600);
}

.badge-tag.tds {
  background: #f3e8ff;
  color: #7e22ce;
}

/* --------------------------------------------------------------------------
   11. Industries We Serve ("Who We Serve") Grid
   -------------------------------------------------------------------------- */
.industries-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.industry-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-xs);
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all var(--transition-base);
}

.industry-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.industry-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--slate-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-base);
}

.industry-card:hover .industry-icon-box {
  background: var(--blue-600);
  color: var(--white);
}

.industry-icon-box svg {
  width: 22px;
  height: 22px;
}

.industry-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.3;
}


/* --------------------------------------------------------------------------
   12. Regulatory & Government Filing Portals Grid
   -------------------------------------------------------------------------- */
.portals-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.portal-card {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xs);
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--blue-400);
  box-shadow: var(--shadow-md);
  background: var(--blue-50);
}

.portal-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.portal-card:hover .portal-icon {
  background: var(--blue-600);
  color: var(--white);
}

.portal-title {
  font-size: 0.925rem;
  font-weight: 700;
  color: var(--navy-950);
  line-height: 1.3;
}

.portal-desc {
  font-size: 0.75rem;
  color: var(--slate-500);
}

/* --------------------------------------------------------------------------
   13. Contact & Direct Consultation Booking Section
   -------------------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3rem;
  align-items: stretch;
}

.contact-info-card {
  background: var(--navy-950);
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3vw, 3rem);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.contact-info-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.contact-info-header h3 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
  line-height: 1.25;
}

.contact-info-header p {
  color: var(--slate-300);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  line-height: 1.6;
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact-icon-bubble {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-400);
  flex-shrink: 0;
}

.contact-icon-bubble svg {
  width: 20px;
  height: 20px;
}

.contact-detail-text h5 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-400);
  margin-bottom: 0.2rem;
}

.contact-detail-text p, .contact-detail-text a {
  font-size: 1rem;
  color: var(--white);
  font-weight: 500;
  line-height: 1.5;
}

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

.contact-actions-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Consultation Form Card */
.consultation-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: clamp(2rem, 3.5vw, 3rem);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-light);
}

.consultation-form-card h3 {
  font-size: 1.65rem;
  font-weight: 800;
  color: var(--navy-950);
  margin-bottom: 0.5rem;
}

.consultation-form-card p {
  color: var(--slate-600);
  font-size: 0.9375rem;
  margin-bottom: 1.75rem;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-field {
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-medium);
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--white);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

textarea.form-control {
  resize: vertical;
  min-height: 95px;
}

.form-feedback {
  display: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
}

.form-feedback.success {
  display: block;
  background: var(--emerald-100);
  color: var(--emerald-600);
  border: 1px solid rgba(5, 150, 105, 0.3);
}


/* --------------------------------------------------------------------------
   15. Site Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 4.5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.9fr 1.2fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}

.footer-brand img {
  height: 50px;
  width: auto;
  margin-bottom: 1.25rem;
  filter: brightness(0) invert(1);
}

.footer-desc {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--slate-400);
  margin-bottom: 1.5rem;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
  position: relative;
  display: inline-block;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 24px;
  height: 2px;
  background: var(--gold-400);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.875rem;
  color: var(--slate-400);
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 4px;
}

.footer-contact-info p {
  font-size: 0.875rem;
  color: var(--slate-400);
  line-height: 1.6;
  margin-bottom: 0.75rem;
}

.footer-contact-info a {
  color: var(--white);
  font-weight: 600;
}

.footer-contact-info a:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.footer-disclaimer {
  max-width: 700px;
  font-size: 0.75rem;
  color: var(--slate-500);
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   16. Scroll Reveal Animations (AOS replacement)
   -------------------------------------------------------------------------- */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --------------------------------------------------------------------------
   17. Responsive Media Queries
   -------------------------------------------------------------------------- */

/* Tablet & Smaller Laptops (<= 1024px) */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 540px;
    margin: 0 auto;
    width: 100%;
  }

  .about-intro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

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

  .industries-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .portals-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2.5rem;
  }
}

/* Tablet & Mobile Landscape (<= 768px) */
@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }

  .desktop-nav, .nav-cta-btn {
    display: none;
  }

  /* Header & Navigation */
  .site-header {
    padding-top: env(safe-area-inset-top, 0);
  }

  .nav-wrapper {
    height: 68px;
  }

  .brand-link {
    gap: 0.75rem;
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 54px);
  }

  .ca-logo {
    height: 42px;
    flex-shrink: 0;
  }

  .firm-title {
    font-size: 0.96rem;
    line-height: 1.22;
  }

  .firm-subtitle {
    font-size: 0.7rem;
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 0.5rem;
    flex-shrink: 0;
    margin-left: 0.5rem;
    border-radius: var(--radius-sm);
  }

  /* Hero Section */
  .hero-section {
    padding: 2.5rem 0 3.5rem 0;
  }

  .hero-title {
    font-size: clamp(1.85rem, 5.5vw, 2.35rem);
    line-height: 1.2;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .hero-subtitle {
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    text-align: center;
    padding-top: 1.25rem;
  }

  .hero-stat-number {
    font-size: 1.35rem;
  }

  .hero-stat-label {
    font-size: 0.72rem;
    line-height: 1.3;
  }

  .hero-visual-frame {
    padding: 1.5rem 1rem;
    border-radius: var(--radius-lg);
  }

  .hero-illustration-wrapper {
    min-height: 200px;
  }

  .hero-illustration-wrapper img {
    max-height: 190px;
  }

  .card-top-left, .card-bottom-right {
    position: static;
    margin-bottom: 0.75rem;
    animation: none;
    width: 100%;
    box-shadow: var(--shadow-xs);
  }

  .card-bottom-right {
    margin-top: 0.75rem;
    margin-bottom: 0;
  }

  /* About & Partners */
  .about-intro-box {
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  .pillar-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }

  .pillar-item {
    padding: 1rem;
  }

  .partners-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .partner-card {
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  /* Services Horizontal Filter Scroll */
  .services-filter-nav {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.75rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 0.5rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }

  .services-filter-nav::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  .industries-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Compliance Calendar */
  .calendar-topbar {
    padding: 1.25rem 1.15rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .calendar-title-group h3 {
    font-size: 1.15rem;
  }

  .calendar-filter-tabs {
    width: 100%;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.25rem;
    gap: 0.3rem;
  }

  .calendar-filter-tabs::-webkit-scrollbar {
    display: none;
  }

  .cal-tab {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }

  .compliance-table th,
  .compliance-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
    white-space: nowrap;
  }

  .compliance-table td:first-child {
    white-space: normal;
    min-width: 170px;
  }

  /* Contact & Form */
  .contact-info-card {
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  .consultation-form-card {
    padding: 1.75rem 1.35rem;
    border-radius: var(--radius-lg);
  }

  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .site-footer {
    padding: 3.5rem 0 1.5rem 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}

/* Intermediate Small Screens (<= 640px) */
@media (max-width: 640px) {
  .hero-type-bar {
    min-height: 4.8rem;
    padding: 0.75rem 1rem;
  }

  .hero-type-text {
    min-height: 2.75rem;
    font-size: 0.9rem;
    line-height: 1.4;
  }
}

/* Mobile Phones including iPhone 13 (<= 480px, viewport width 390px) */
@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1rem;
  }

  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .section {
    padding-left: 0;
    padding-right: 0;
  }

  /* Header Branding */
  .ca-logo {
    height: 38px;
  }

  .brand-link {
    gap: 0.6rem;
    max-width: calc(100% - 50px);
  }

  .firm-title {
    font-size: 0.88rem;
    letter-spacing: -0.01em;
    line-height: 1.2;
  }

  .firm-subtitle {
    font-size: 0.68rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 2rem 0 2.75rem 0;
  }

  .hero-pill {
    flex-wrap: wrap;
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    max-width: 100%;
    border-radius: var(--radius-md);
  }

  .hero-pill-badge {
    font-size: 0.68rem;
    padding: 0.12rem 0.45rem;
  }

  .hero-title {
    font-size: clamp(1.5rem, 6.8vw, 1.82rem);
    line-height: 1.22;
    letter-spacing: -0.025em;
    margin-bottom: 1rem;
  }

  .desktop-break {
    display: none;
  }

  .hero-subtitle {
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 1.25rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-cta-group .btn {
    width: 100%;
    padding: 0.85rem 1.5rem;
    font-size: 0.95rem;
  }

  .hero-stats-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
    padding-top: 1rem;
  }

  .hero-stat-number {
    font-size: 1.25rem;
  }

  .hero-stat-label {
    font-size: 0.68rem;
    line-height: 1.25;
  }

  /* About & Pillars */
  .about-intro-box {
    padding: 1.35rem 1rem;
  }

  .about-narrative h3 {
    font-size: 1.35rem;
  }

  .about-narrative p {
    font-size: 0.92rem;
  }

  .pillar-item {
    padding: 0.9rem;
  }

  .pillar-title {
    font-size: 0.9rem;
  }

  .pillar-desc {
    font-size: 0.78rem;
  }

  /* Partners */
  .partner-card {
    padding: 1.35rem 1rem;
  }

  .partner-header {
    gap: 0.85rem;
  }

  .partner-avatar {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .partner-info h4 {
    font-size: 1.15rem;
  }

  .partner-role {
    font-size: 0.8rem;
  }

  .partner-bio {
    font-size: 0.88rem;
    line-height: 1.55;
  }

  .partner-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
  }

  .partner-email {
    font-size: 0.775rem;
  }

  /* Services */
  .service-card {
    padding: 1.35rem 1rem;
  }

  .service-title {
    font-size: 1.1rem;
  }

  .service-desc {
    font-size: 0.85rem;
  }

  .industries-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .industry-card {
    padding: 1rem 0.85rem;
  }

  .portals-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .portal-card {
    padding: 0.85rem 0.65rem;
  }

  .portal-icon {
    width: 36px;
    height: 36px;
  }

  .portal-title {
    font-size: 0.78rem;
  }

  .portal-desc {
    font-size: 0.68rem;
  }

  /* Contact & Form */
  .contact-info-card {
    padding: 1.35rem 1rem;
  }

  .contact-info-header h3 {
    font-size: 1.4rem;
  }

  .contact-info-header p {
    font-size: 0.88rem;
  }

  .contact-actions-row {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .contact-actions-row .btn {
    width: 100%;
  }

  .consultation-form-card {
    padding: 1.35rem 1rem;
  }

  .consultation-form-card h3 {
    font-size: 1.35rem;
  }

  .consultation-form-card p {
    font-size: 0.88rem;
  }

  /* Section Title Spacing */
  .section-header {
    margin-bottom: 2.25rem;
  }

  .section-title {
    font-size: clamp(1.5rem, 6vw, 1.85rem);
  }

  .section-subtitle {
    font-size: 0.92rem;
  }
}

/* Extra Small Phones (<= 360px) */
@media (max-width: 360px) {
  .hero-stats-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .portals-grid {
    grid-template-columns: 1fr;
  }
}

