/* ==========================================================================
   Avinya Digitech Private Limited - Official Enterprise Design System
   Phases: [AVINYA-PHASE-0-CORE] & [AVINYA-PHASE-1-HOME]
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* --- CSS Variables & Design Tokens --- */
:root {
  /* Brand Palette */
  --color-primary-navy: #0A1930;
  --color-navy-dark: #060D1C;
  --color-navy-light: #15304F;
  --color-navy-surface: #0F2440;
  --color-accent-sky: #0E7AA4;
  --color-accent-sky-light: #DCF0F7;
  --color-accent-sky-dark: #0B5F80;
  /* Text/icon-color role split off --color-accent-sky-light (see below): used on
     sections that are already dark in BOTH themes (school-banner-tag, teaser-card-icon,
     summary-modules-title), so this stays constant - it never needs a dark-mode
     override the way the background role does. */
  --color-accent-sky-pale: #DCF0F7;
  --color-cta-amber: #C94E1A;
  --color-cta-amber-hover: #A83A10;
  --color-cta-amber-light: #FBEAE0;

  /* Neutral & Background Colors */
  --color-bg-main: #F8FAFC;
  --color-bg-card: #FFFFFF;
  --color-bg-muted: #F1F5F9;
  --color-bg-surface-alt: #EDF2F7;
  --color-text-primary: #0F172A;
  --color-text-secondary: #475569;
  --color-text-muted: #64748B;
  --color-text-inverse: #FFFFFF;
  --color-border: #E2E8F0;
  --color-border-hover: #CBD5E1;

  /* Status & Utility */
  --color-whatsapp: #25D366;
  --color-whatsapp-hover: #20BA5A;
  --color-whatsapp-icon: #075E54;
  --color-whatsapp-cta-bg: #075E54;
  --color-success: #10B981;
  --color-success-bg: #DCFCE7;
  --color-success-text: #15803D;
  --color-success-light: #86EFAC;
  --color-badge-warning-bg: #FEF3C7;
  --color-badge-warning-text: #B45309;

  /* Semantic split of the old dual-purpose --color-primary-navy (text vs. surfaces) */
  --color-heading: #0A1930;
  --color-surface-dark: #0A1930;
  --color-surface-accent: #0A1930;

  /* Text sitting on dark/colored fills (buttons, badges, dark sections) */
  --color-text-on-dark: #FFFFFF;
  --color-text-on-dark-muted: #94A3B8;

  /* Sticky header */
  --color-header-bg: rgba(255, 255, 255, 0.95);
  --color-header-bg-scrolled: rgba(255, 255, 255, 0.98);

  /* Dark-mode-only logo chip background - off-white, not pure white, so it
     doesn't read as a glare hotspot top-left of an otherwise dark page
     (verified: 7.84:1 against the wordmark's navy ink, 17.51:1 against its
     black ink - miles past the 4.5:1 floor either way). */
  --color-logo-chip-bg: #E8ECF2;

  /* RGB triplets for alpha-composited tints/overlays (base color stays tokenized, alpha stays inline) */
  --color-white-rgb: 255, 255, 255;
  --color-black-rgb: 0, 0, 0;
  --color-navy-rgb: 10, 25, 48;
  --color-accent-sky-rgb: 14, 122, 164;
  --color-cta-amber-rgb: 201, 78, 26;
  --color-success-rgb: 16, 185, 129;
  --color-border-rgb: 226, 232, 240;
  --color-whatsapp-rgb: 37, 211, 102;
  --color-navy-dark-rgb: 6, 13, 28;

  --shadow-compliance-banner: 0 10px 25px rgba(0, 0, 0, 0.2);
  --shadow-range-thumb: 0 2px 6px rgba(0, 0, 0, 0.2);
  --shadow-filter-btn-active: 0 4px 12px rgba(10, 25, 48, 0.2);
  --shadow-logo-drop: 0 4px 10px rgba(10, 25, 48, 0.2);
  --shadow-leadership-avatar: 0 10px 25px rgba(10, 25, 48, 0.25);

  /* Region boundary for large accent sections (hero headers, compliance banner,
     estimator panel, verification box, case-study-media, school-banner). Invisible
     in light mode (those sections have no border today); becomes a real 1px
     boundary in dark mode where fill-contrast alone can't carry the separation. */
  --color-region-border: transparent;

  /* Dark-mode-only foreground for the 8 small --color-surface-accent fills
     (step-num, modal-header, filter-btn.active, icon-hover circles, etc.) -
     unused in light mode, where --color-text-on-dark (white) already works. */
  --color-text-on-accent: #0A1930;

  color-scheme: light;

  /* Typography */
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-card-hover: 0 20px 30px -10px rgba(10, 25, 48, 0.12), 0 8px 10px -6px rgba(10, 25, 48, 0.04);
  --shadow-dropdown: 0 20px 30px -10px rgba(10, 25, 48, 0.15), 0 0 1px 1px rgba(10, 25, 48, 0.05);

  /* Transitions & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --radius-btn: 8px;
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-btn: 200ms ease;

  /* Layout Dimensions */
  --container-max-width: 1280px;
  --header-height: 80px;
  --header-height-scrolled: 70px;
}

/* ==========================================================================
   DARK THEME — overrides semantic tokens only, no component rules forked.
   Elevation is judged visually (adjacent-surface ratios ~1.05-1.19, by design -
   see CLAUDE.md), NOT held to a WCAG floor; --color-region-border is what
   makes large-section boundaries accessible (3:1 vs page/navy-dark/
   surface-dark/card), not the fill contrast between them.
   ========================================================================== */
:root[data-theme="dark"] {
  color-scheme: dark;

  /* Core surfaces (darkest to lightest: page < navy-dark < surface-dark < card) */
  --color-bg-main: #0B1220;
  --color-bg-card: #1A2334;
  --color-bg-muted: #141B29;
  --color-bg-surface-alt: #141B29;
  --color-navy-dark: #0A192F;
  --color-surface-dark: #0C1D37;
  --color-surface-accent: #38BDF8;
  --color-region-border: #596F8C;

  /* Text - three genuinely distinct tiers against --color-bg-card (#1A2334):
     primary 11.96:1, secondary 7.01:1, muted 4.67:1 */
  --color-heading: #DBE1E9;
  --color-text-primary: #DBE1E9;
  --color-text-secondary: #A3AEBE;
  --color-text-muted: #808DA0;
  --color-text-inverse: #0A1930;
  --color-text-on-dark-muted: #94A3B8;

  /* Borders (subtle card/component trim, not the region-separator above) */
  --color-border: #2A3A52;
  --color-border-hover: #3B4D6A;

  /* Accent - cerulean, unified for text/links and (with dark foreground) fills */
  --color-accent-sky: #38BDF8;
  --color-accent-sky-light: #16324A;
  --color-accent-sky-dark: #0EA5E9;

  /* Header */
  --color-header-bg: rgba(26, 35, 52, 0.95);
  --color-header-bg-scrolled: rgba(26, 35, 52, 0.98);

  /* Status (not exhaustively contrast-verified this pass - narrow usage,
     revisit if a success message or warning badge actually ships in dark mode) */
  --color-success-bg: #123321;
  --color-success-text: #6EE7A8;
  --color-badge-warning-bg: #3A2E12;
  --color-badge-warning-text: #FCD34D;

  /* Deeper shadows - black shadows read as invisible on a dark surface otherwise */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.45), 0 2px 4px -2px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.45), 0 4px 6px -4px rgba(0, 0, 0, 0.35);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.35);
}

/* Dark-mode-only foreground swap for text/icons sitting on --color-surface-accent -
   white (the light-mode --color-text-on-dark value baked into these rules) fails
   badly on the cerulean fill (2.14:1); the site's own navy works (8.21:1). */
[data-theme="dark"] .service-box:hover .service-box-icon,
[data-theme="dark"] .pillar-card:hover .pillar-icon-box,
[data-theme="dark"] .value-card:hover .value-icon,
[data-theme="dark"] .step-num,
[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-title,
[data-theme="dark"] .modal-close-btn,
[data-theme="dark"] .modal-close-btn:hover,
[data-theme="dark"] .leadership-avatar,
[data-theme="dark"] .filter-btn.active {
  color: var(--color-text-on-accent);
}

/* Region borders - invisible (transparent) in light mode via the token default,
   real in dark mode. Added to every large accent-fill section. */
.school-banner-section,
.compliance-banner,
.estimator-summary-panel,
.verification-box,
.case-study-media,
.school-hero-header,
.page-hero-header {
  border: 1px solid var(--color-region-border);
}

/* Footer's existing border-top is a faint 8%-white tint, tuned for a light page
   behind a dark footer. In dark mode that same tint barely lifts off a page
   that's already nearly the same navy - swap it for the real region border. */
[data-theme="dark"] .site-footer {
  border-top-color: var(--color-region-border);
}

/* Google Maps iframe on /contact - a bright white panel in dark mode otherwise */
[data-theme="dark"] .map-iframe {
  filter: invert(90%) hue-rotate(180deg) brightness(0.9) contrast(0.9);
}

/* --- Reset & Base Styles --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-main);
  color: var(--color-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: 1.25;
  font-weight: 700;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-fast);
}

ul, ol {
  list-style: none;
}

/* --- Accessibility: Skip to Content --- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  z-index: 10000;
  background-color: var(--color-surface-accent);
  color: var(--color-text-inverse);
  padding: 0.75rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9375rem;
  border-radius: 0 0 var(--radius-md) 0;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

img, svg {
  display: block;
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* Section Common Styles */
.section-padding {
  padding: 5.5rem 0;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-sky);
  background-color: var(--color-accent-sky-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.section-title span {
  color: var(--color-accent-sky);
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

/* ==========================================================================
   GLOBAL STICKY HEADER
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: height var(--transition-normal), background-color var(--transition-normal), box-shadow var(--transition-normal);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.site-header.scrolled {
  height: var(--header-height-scrolled);
  background-color: var(--color-header-bg-scrolled);
  box-shadow: var(--shadow-md);
  border-bottom-color: rgba(var(--color-border-rgb), 0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

/* --- Brand Logo --- */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}

.logo-symbol {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.logo-symbol img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(var(--shadow-logo-drop));
}

.brand-logo:hover .logo-symbol {
  transform: scale(1.05);
}

.header-logo-img {
  height: 44px;
  width: auto;
  display: block;
  border-radius: var(--radius-md);
  transition: transform var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.brand-logo:hover .header-logo-img {
  transform: scale(1.03);
}

/* The original logo artwork (navy "AVINYA" + solid black "DIGITECH", and the
   navy-disc icon mark) is unreadable directly on a dark header/footer - rather
   than altering the mark itself, both get a white chip behind them in dark
   mode so the brand identity stays completely unchanged in both themes. */
[data-theme="dark"] .header-logo-img {
  background-color: var(--color-logo-chip-bg);
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--color-region-border);
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .logo-symbol {
  background-color: var(--color-logo-chip-bg);
  padding: 5px;
  border: 1px solid var(--color-region-border);
  box-shadow: var(--shadow-md);
}

.brand-text-wrapper {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-heading);
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.brand-name span {
  color: var(--color-accent-sky);
}

.brand-tagline {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  line-height: 1;
  margin-top: 0.2rem;
}

/* --- Navigation Bar --- */
.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 0.5rem 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: var(--radius-sm);
}

.nav-link:hover,
.nav-link.active,
.nav-item:hover > .nav-link {
  color: var(--color-accent-sky);
}

.nav-chevron {
  width: 14px;
  height: 14px;
  transition: transform var(--transition-fast);
}

.nav-item:hover .nav-chevron {
  transform: rotate(180deg);
}

/* --- Solutions Mega-Menu --- */
.mega-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  width: 680px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--transition-normal), transform var(--transition-normal), visibility var(--transition-normal);
  z-index: 1010;
}

.mega-menu::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.nav-item:hover .mega-menu,
.nav-item:focus-within .mega-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(4px);
}

.mega-menu-header {
  padding-bottom: 0.875rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mega-menu-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.mega-menu-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky-dark);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.875rem;
}

.solution-card {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 0.875rem;
  border-radius: var(--radius-md);
  background-color: transparent;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
}

.solution-card:hover {
  background-color: var(--color-bg-muted);
  border-color: var(--color-border);
  transform: translateY(-2px);
}

.solution-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.solution-card:hover .solution-icon-box {
  background-color: var(--color-accent-sky);
  color: var(--color-text-on-dark);
}

.solution-info {
  display: flex;
  flex-direction: column;
}

.solution-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.2rem;
}

.solution-desc {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* --- Header Right CTAs --- */
.header-actions {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.btn-call {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-heading);
  padding: 0.55rem 0.9rem;
  border-radius: var(--radius-btn);
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-btn);
}

.btn-call:hover {
  background-color: var(--color-border);
  color: var(--color-accent-sky-dark);
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-call-icon {
  width: 16px;
  height: 16px;
  color: var(--color-accent-sky);
}

.btn-quote {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  background-color: var(--color-cta-amber);
  padding: 0.6rem 1.25rem;
  border-radius: var(--radius-btn);
  border: none;
  box-shadow: 0 4px 12px rgba(var(--color-cta-amber-rgb), 0.25);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-btn);
}

.btn-quote:hover {
  background-color: var(--color-cta-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(var(--color-cta-amber-rgb), 0.35);
}

.btn-whatsapp {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background-color: var(--color-whatsapp);
  color: var(--color-whatsapp-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(var(--color-whatsapp-rgb), 0.28);
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.btn-whatsapp:hover {
  background-color: var(--color-whatsapp-hover);
  transform: scale(1.08);
}

.btn-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  color: var(--color-heading);
  cursor: pointer;
  border-radius: var(--radius-sm);
}

.mobile-menu-toggle:hover {
  background-color: var(--color-bg-muted);
}

/* Theme toggle - desktop header (ghost icon button, no fill/border so it doesn't
   compete with the amber Get a Quote CTA). Hidden below 1024px, matching this
   site's own nav breakpoint (not a flat 768px) so it never doubles up with the
   mobile drawer's own Appearance row. */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  background: none;
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.theme-toggle:hover {
  background-color: var(--color-bg-muted);
  color: var(--color-heading);
}

.theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent-sky);
  outline-offset: 2px;
}

.theme-toggle-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.theme-toggle-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle-icon-sun {
  display: block;
}

/* Theme toggle - mobile drawer "Appearance" row */
.mobile-nav-appearance {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border);
}

.mobile-nav-appearance-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.mobile-theme-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 44px;
  min-height: 44px;
  padding: 0.5rem 1rem;
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: var(--color-heading);
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-theme-toggle:focus-visible {
  outline: 2px solid var(--color-accent-sky);
  outline-offset: 2px;
}

/* ==========================================================================
   1. HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  padding: 5rem 0 4.5rem 0;
  background: radial-gradient(circle at 10% 20%, rgba(var(--color-accent-sky-rgb), 0.045) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(var(--color-cta-amber-rgb), 0.035) 0%, transparent 40%),
              linear-gradient(180deg, var(--color-bg-card) 0%, var(--color-bg-main) 100%);
  border-bottom: 1px solid var(--color-border);
  overflow: hidden;
}

.hero-grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 32px 32px;
  background-image: 
    linear-gradient(to right, rgba(var(--color-navy-rgb), 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(var(--color-navy-rgb), 0.03) 1px, transparent 1px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-heading);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1.5rem;
}

.hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--color-success);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(var(--color-success-rgb), 0.2);
}

.hero-headline {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-heading);
  line-height: 1.15;
  margin-bottom: 1.5rem;
}

.hero-headline .highlight {
  background: linear-gradient(135deg, var(--color-surface-accent) 0%, var(--color-accent-sky) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  max-width: 760px;
  margin: 0 auto 2.5rem auto;
}

/* Dual CTAs */
.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-bottom: 3rem;
  flex-wrap: wrap;
}

.btn-cta-primary {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  background-color: var(--color-cta-amber);
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-btn);
  box-shadow: 0 6px 20px rgba(var(--color-cta-amber-rgb), 0.3);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-btn);
}

.btn-cta-primary:hover {
  background-color: var(--color-cta-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--color-cta-amber-rgb), 0.4);
}

.btn-cta-outline {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-accent-sky);
  background-color: var(--color-bg-card);
  border: 2px solid var(--color-accent-sky);
  padding: 0.8rem 1.85rem;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  transition: all var(--transition-btn);
}

.btn-cta-outline:hover {
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky-dark);
  border-color: var(--color-accent-sky-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Trust Badges in Hero */
.hero-trust-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--color-border);
  flex-wrap: wrap;
}

.trust-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
}

.trust-badge-icon {
  width: 20px;
  height: 20px;
  color: var(--color-accent-sky);
  flex-shrink: 0;
}

/* ==========================================================================
   2. IMPACT METRICS COUNTER BAR (4-Column Layout)
   ========================================================================== */
.impact-bar-section {
  background-color: var(--color-bg-card);
  border-bottom: 1px solid var(--color-border);
  padding: 2.75rem 0;
  box-shadow: var(--shadow-sm);
}

.impact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.impact-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.75rem 1rem;
  border-right: 1px solid var(--color-border);
}

.impact-card:last-child {
  border-right: none;
}

.impact-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--color-accent-sky-light) 0%, var(--color-bg-card) 100%);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.2);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.impact-info {
  display: flex;
  flex-direction: column;
}

.impact-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-heading);
  line-height: 1;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.impact-number span {
  color: var(--color-cta-amber);
}

.impact-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  line-height: 1.3;
}

/* ==========================================================================
   3. FLAGSHIP ECOSYSTEM BANNER (School Tech Teaser)
   ========================================================================== */
.school-banner-section {
  padding: 5.5rem 0;
  background: linear-gradient(135deg, var(--color-surface-dark) 0%, var(--color-navy-dark) 100%);
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.school-banner-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-sky-rgb), 0.2) 0%, transparent 70%);
  pointer-events: none;
}

.school-banner-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.school-banner-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: rgba(var(--color-accent-sky-rgb), 0.2);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.4);
  color: var(--color-accent-sky-pale);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.school-banner-heading {
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}

.school-banner-heading span {
  color: var(--color-accent-sky);
}

.school-banner-desc {
  font-size: 1.0625rem;
  color: var(--color-text-on-dark-muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.school-features-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.school-feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(var(--color-white-rgb), 0.06);
  border: 1px solid rgba(var(--color-white-rgb), 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-on-dark);
}

.school-feature-icon {
  width: 20px;
  height: 20px;
  color: var(--color-cta-amber);
  flex-shrink: 0;
}

.btn-school-cta {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  background-color: var(--color-cta-amber);
  padding: 0.9rem 2rem;
  border-radius: var(--radius-btn);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 6px 20px rgba(var(--color-cta-amber-rgb), 0.35);
  transition: all var(--transition-btn);
}

.btn-school-cta:hover {
  background-color: var(--color-cta-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(var(--color-cta-amber-rgb), 0.45);
}

/* Visual Teaser Cards on Right */
.school-visual-teaser {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.teaser-card {
  background: rgba(var(--color-white-rgb), 0.05);
  border: 1px solid rgba(var(--color-white-rgb), 0.12);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.teaser-card:hover {
  transform: translateY(-4px);
  background: rgba(var(--color-white-rgb), 0.08);
  border-color: var(--color-accent-sky);
}

.teaser-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background-color: rgba(var(--color-accent-sky-rgb), 0.25);
  color: var(--color-accent-sky-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.teaser-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 0.35rem;
}

.teaser-card-desc {
  font-size: 0.8125rem;
  color: var(--color-text-on-dark-muted);
  line-height: 1.45;
}

/* ==========================================================================
   4. CORE SERVICES GRID (Interactive Hover Cards)
   ========================================================================== */
.services-section {
  background-color: var(--color-bg-main);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.service-box {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.service-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-accent-sky) 0%, var(--color-cta-amber) 100%);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.service-box:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-border-hover);
}

.service-box:hover::after {
  opacity: 1;
}

.service-box-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  transition: all var(--transition-fast);
}

.service-box:hover .service-box-icon {
  background-color: var(--color-surface-accent);
  color: var(--color-text-on-dark);
  transform: scale(1.05);
}

.service-box-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.service-box-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.service-box-link {
  font-family: var(--font-heading);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-sky);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.service-box:hover .service-box-link {
  color: var(--color-cta-amber);
  transform: translateX(4px);
}

/* Featured service card: one subtle promotion per row instead of
   uniform boxes - background tint, accent border, and a label. */
.service-box.is-featured {
  background-color: rgba(var(--color-accent-sky-rgb), 0.05);
  border-color: var(--color-accent-sky);
  box-shadow: var(--shadow-md);
}

.service-box-featured-badge {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-on-dark);
  background-color: var(--color-accent-sky);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

/* ==========================================================================
   5. QUICK CONSULTATION FORM SECTION
   ========================================================================== */
.consultation-section {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  position: relative;
}

.consultation-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.consultation-content-left h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.consultation-content-left p {
  font-size: 1.0625rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: 2rem;
}

.consultation-benefits {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

.benefit-icon {
  width: 22px;
  height: 22px;
  color: var(--color-success);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

/* Contact Fast Details Box */
.direct-reach-box {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.direct-reach-title {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
}

.direct-reach-phone {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--color-heading);
}

/* Legal / Registered Entity Contact List (Cashfree KYC block) */
.legal-contact-list {
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.75rem 2.5rem;
}

.legal-contact-title {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.legal-contact-row dt {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 0.35rem;
}

.legal-contact-row dd {
  font-size: 1rem;
  color: var(--color-text-primary);
  margin: 0;
  line-height: 1.5;
}

.legal-contact-row dd a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 640px) {
  .legal-contact-list {
    grid-template-columns: 1fr;
  }
}

/* Form Container */
.consultation-form-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.form-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.35rem;
}

.form-subtitle {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 0.4rem;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-muted);
  color: var(--color-text-primary);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent-sky);
  background-color: var(--color-bg-card);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-sky-rgb), 0.15);
}

select.form-control {
  cursor: pointer;
}

textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.btn-form-submit {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  background-color: var(--color-cta-amber);
  padding: 0.875rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--color-cta-amber-rgb), 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-btn);
}

.btn-form-submit:hover {
  background-color: var(--color-cta-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--color-cta-amber-rgb), 0.4);
}

.form-status-message {
  display: none;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 600;
  text-align: center;
}

.form-status-message.success {
  display: block;
  background-color: var(--color-success-bg);
  color: var(--color-success-text);
  border: 1px solid var(--color-success-light);
}

/* ==========================================================================
   GLOBAL LEGAL & COMPLIANCE FOOTER
   ========================================================================== */
.site-footer {
  background-color: var(--color-navy-dark);
  color: var(--color-text-on-dark-muted);
  padding-top: 4.5rem;
  border-top: 1px solid rgba(var(--color-white-rgb), 0.08);
}

.compliance-banner {
  background-color: var(--color-surface-dark);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.25);
  border-radius: var(--radius-lg);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
  box-shadow: var(--shadow-compliance-banner);
}

.compliance-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.compliance-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.compliance-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(var(--color-accent-sky-rgb), 0.15);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.3);
}

.compliance-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-accent-sky);
  margin-bottom: 0.2rem;
}

.compliance-value {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  letter-spacing: 0.02em;
}

.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.footer-col-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.footer-col-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background-color: var(--color-accent-sky);
  border-radius: var(--radius-full);
}

.footer-company-desc {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--color-text-on-dark-muted);
  margin-top: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--color-text-on-dark-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.footer-link:hover {
  color: var(--color-text-on-dark);
  transform: translateX(4px);
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact-icon {
  width: 18px;
  height: 18px;
  color: var(--color-accent-sky);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.footer-contact-item a {
  color: var(--color-text-on-dark-muted);
}

.footer-contact-item a:hover {
  color: var(--color-cta-amber);
}

.footer-bottom {
  padding: 1.75rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.legal-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.legal-link {
  color: var(--color-text-muted);
}

.legal-link:hover {
  color: var(--color-text-on-dark-muted);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .main-nav,
  .btn-call,
  .btn-quote,
  .theme-toggle {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .impact-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-card:nth-child(2) {
    border-right: none;
  }

  .school-banner-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .consultation-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .footer-top {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .compliance-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (max-width: 640px) {
  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subtitle {
    font-size: 1.05rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-cta-primary,
  .btn-cta-outline {
    width: 100%;
    justify-content: center;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }

  .impact-card {
    border-right: none;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 1.25rem;
  }

  .impact-card:last-child {
    border-bottom: none;
  }

  .school-features-list,
  .school-visual-teaser {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .consultation-form-card {
    padding: 1.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .legal-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  display: none;
}

.mobile-nav-drawer.open {
  display: block;
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: calc(100vh - var(--header-height));
  background-color: var(--color-bg-card);
  z-index: 999;
  padding: 1.5rem;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  border-top: 1px solid var(--color-border);
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-item {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.75rem;
}

.mobile-nav-link {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mobile-submenu {
  display: none;
  margin-top: 0.75rem;
  padding-left: 0.75rem;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-submenu.open {
  display: flex;
}

.mobile-sub-link {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ==========================================================================
   PHASE 2: DEDICATED SCHOOL ECOSYSTEM STYLES
   ========================================================================== */

/* Breadcrumb Bar */
.breadcrumb-bar {
  background-color: var(--color-bg-muted);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-size: 0.8125rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
}

.breadcrumb-list a {
  color: var(--color-text-secondary);
  font-weight: 500;
}

.breadcrumb-list a:hover {
  color: var(--color-accent-sky);
}

.breadcrumb-separator {
  color: var(--color-border-hover);
}

/* School Page Hero Banner */
.school-hero-header {
  background: radial-gradient(circle at 80% 20%, rgba(var(--color-accent-sky-rgb), 0.15) 0%, transparent 50%),
              radial-gradient(circle at 10% 90%, rgba(var(--color-cta-amber-rgb), 0.12) 0%, transparent 40%),
              linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-surface-dark) 100%);
  color: var(--color-text-on-dark);
  padding: 5rem 0 4.5rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.school-hero-header .hero-content {
  max-width: 860px;
}

.school-hero-headline {
  font-size: 3.25rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text-on-dark);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.school-hero-headline span {
  color: var(--color-accent-sky);
}

.school-hero-subheadline {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-border);
  line-height: 1.5;
  margin-bottom: 2.25rem;
}

/* Interior Page Hero (About, Portfolio, Contact) - a de-templated
   variant of the school hero above: left-aligned instead of
   centered, no accent-color highlight word (that treatment is
   reserved for the homepage), and a lower-opacity corner glow. */
.page-hero-header {
  background: radial-gradient(circle at 85% 15%, rgba(var(--color-accent-sky-rgb), 0.08) 0%, transparent 50%),
              radial-gradient(circle at 5% 95%, rgba(var(--color-cta-amber-rgb), 0.06) 0%, transparent 40%),
              linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-surface-dark) 100%);
  color: var(--color-text-on-dark);
  padding: 4.5rem 0 4rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.1);
}

.page-hero-header .hero-content {
  max-width: 640px;
  text-align: left;
  margin: 0;
}

.school-hero-header .hero-eyebrow,
.page-hero-header .hero-eyebrow {
  background: rgba(var(--color-white-rgb), 0.12);
  color: var(--color-text-on-dark);
  border-color: rgba(var(--color-white-rgb), 0.25);
}

.page-hero-headline {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--color-text-on-dark);
  line-height: 1.18;
  margin-bottom: 1rem;
}

.page-hero-subheadline {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--color-border);
  line-height: 1.6;
}

.school-hero-badges {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.school-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(var(--color-white-rgb), 0.08);
  border: 1px solid rgba(var(--color-white-rgb), 0.18);
  padding: 0.5rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
  backdrop-filter: blur(8px);
}

.school-hero-badge svg {
  color: var(--color-cta-amber);
}

/* 7 Modular Pillars Grid */
.pillars-section {
  background-color: var(--color-bg-main);
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 2rem;
}

.pillar-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  position: relative;
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: rgba(var(--color-accent-sky-rgb), 0.35);
}

.pillar-card-header {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

.pillar-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-accent-sky-light) 0%, var(--color-bg-card) 100%);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.25);
  color: var(--color-accent-sky-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.pillar-card:hover .pillar-icon-box {
  background: var(--color-surface-accent);
  color: var(--color-text-on-dark);
}

.pillar-number {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent-sky);
  margin-bottom: 0.2rem;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  line-height: 1.25;
}

.pillar-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pillar-feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
}

.pillar-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-text-primary);
  line-height: 1.45;
}

.pillar-feature-item svg {
  width: 16px;
  height: 16px;
  color: var(--color-cta-amber);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.pillar-card.featured {
  border-color: var(--color-accent-sky);
  box-shadow: var(--shadow-card-hover);
}

.pillar-card-badge {
  position: absolute;
  top: -13px;
  right: 1.75rem;
  background-color: var(--color-accent-sky);
  color: var(--color-text-on-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 0.9rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.pillar-price-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  font-style: italic;
  margin-top: 0.75rem;
}

/* Interactive Proposal Estimator Section */
.estimator-section {
  background-color: var(--color-bg-card);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.estimator-container {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 3rem;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-lg);
}

.estimator-step {
  margin-bottom: 2.25rem;
}

.estimator-step-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.step-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--color-surface-accent);
  color: var(--color-text-on-dark);
  font-size: 0.875rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--color-heading);
}

/* Step 1: Radio Pill Options */
.strength-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.875rem;
}

.strength-option-label {
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1rem 0.75rem;
  text-align: center;
  cursor: pointer;
  background-color: var(--color-bg-muted);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--color-heading);
}

.strength-option-label:hover {
  border-color: var(--color-accent-sky);
  background-color: var(--color-accent-sky-light);
}

.strength-option-input {
  display: none;
}

.strength-option-input:checked + .strength-option-label {
  border-color: var(--color-accent-sky);
  background-color: var(--color-bg-card);
  box-shadow: 0 0 0 3px rgba(var(--color-accent-sky-rgb), 0.2);
  color: var(--color-accent-sky-dark);
}

/* Step 2: Slider & Counter */
.slider-control-wrapper {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.slider-value-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.classroom-badge {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-cta-amber);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.25rem 1rem;
  border-radius: var(--radius-md);
}

.range-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-full);
  background: var(--color-border-hover);
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-accent-sky);
  cursor: pointer;
  box-shadow: var(--shadow-range-thumb);
  border: 2px solid var(--color-bg-card);
  transition: transform var(--transition-fast);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
  background: var(--color-accent-sky-dark);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.5rem;
  font-weight: 600;
}

/* Step 3: Module Checkboxes */
.module-checkboxes-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.module-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  padding: 0.875rem 1rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--color-text-primary);
}

.module-checkbox-label:hover {
  background-color: var(--color-bg-card);
  border-color: var(--color-accent-sky);
}

.module-checkbox-input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-accent-sky);
  cursor: pointer;
}

/* Real-Time Proposal Breakdown Output Panel */
.estimator-summary-panel {
  background: linear-gradient(145deg, var(--color-navy-dark) 0%, var(--color-surface-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  color: var(--color-text-on-dark);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.3);
}

.summary-header {
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.12);
  margin-bottom: 1.5rem;
}

.summary-tag {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-cta-amber);
  margin-bottom: 0.35rem;
}

.summary-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.summary-spec-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.summary-spec-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed rgba(var(--color-white-rgb), 0.1);
}

.summary-spec-label {
  color: var(--color-text-on-dark-muted);
}

.summary-spec-val {
  font-weight: 700;
  color: var(--color-text-on-dark);
  text-align: right;
}

.summary-selected-modules-box {
  background: rgba(var(--color-white-rgb), 0.05);
  border: 1px solid rgba(var(--color-white-rgb), 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 1.75rem;
}

.summary-modules-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--color-accent-sky-pale);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.summary-active-modules-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.active-module-pill {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(var(--color-accent-sky-rgb), 0.25);
  color: var(--color-text-on-dark);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.4);
}

.btn-request-quote {
  width: 100%;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text-on-dark);
  background-color: var(--color-cta-amber);
  padding: 1rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(var(--color-cta-amber-rgb), 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all var(--transition-btn);
}

.btn-request-quote:hover {
  background-color: var(--color-cta-amber-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(var(--color-cta-amber-rgb), 0.5);
}

/* Formal Quotation Modal / Inquiry Popup */
.quote-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(var(--color-navy-dark-rgb), 0.75);
  backdrop-filter: blur(6px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.quote-modal-overlay.active {
  display: flex;
}

.quote-modal-card {
  background-color: var(--color-bg-card);
  width: 100%;
  max-width: 600px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  position: relative;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}

.modal-header {
  background-color: var(--color-surface-accent);
  color: var(--color-text-on-dark);
  padding: 1.5rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.modal-close-btn {
  background: none;
  border: none;
  color: var(--color-border-hover);
  cursor: pointer;
  padding: 0.25rem;
}

.modal-close-btn:hover {
  color: var(--color-text-on-dark);
}

.modal-body {
  padding: 2rem;
  overflow-y: auto;
}

.modal-prefill-summary {
  background-color: var(--color-accent-sky-light);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.25);
  border-radius: var(--radius-md);
  padding: 0.875rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.8125rem;
  color: var(--color-accent-sky-dark);
}

.modal-prefill-summary strong {
  color: var(--color-heading);
}

@media (max-width: 1024px) {
  .estimator-container {
    grid-template-columns: 1fr;
    padding: 2rem;
  }
}

/* Tablet tier: fills the 641px-1024px gap between the mobile and
   desktop breakpoints above, so components sized for those two
   extremes (e.g. the 3-column strength picker) get a bit more
   breathing room at in-between widths like 768px. */
@media (min-width: 641px) and (max-width: 1024px) {
  .estimator-container {
    padding: 1.5rem;
  }

  .strength-option-label {
    padding: 0.875rem 0.5rem;
  }
}

@media (max-width: 640px) {
  .school-hero-headline {
    font-size: 2.25rem;
  }

  .school-hero-subheadline {
    font-size: 1.1rem;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
  }

  .strength-options-grid {
    grid-template-columns: 1fr;
  }

  .modal-body {
    padding: 1.25rem;
  }
}

/* ==========================================================================
   PHASE 4: ABOUT, PORTFOLIO & CONTACT PAGE STYLES
   ========================================================================== */

/* --- About Us: Leadership Profile --- */
.leadership-section {
  background-color: var(--color-bg-card);
}

.leadership-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 3rem;
  align-items: center;
}

.leadership-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.leadership-avatar {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-surface-accent) 0%, var(--color-accent-sky) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-on-dark);
  font-size: 3.5rem;
  font-weight: 800;
  box-shadow: var(--shadow-leadership-avatar);
  border: 4px solid var(--color-bg-card);
  margin-bottom: 1.25rem;
}

.leadership-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.25rem;
}

.leadership-role {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-accent-sky);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.leadership-bio h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 1rem;
}

.leadership-bio p {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.leadership-highlights {
  display: flex;
  gap: 1.5rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.leadership-highlight-badge {
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-heading);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leadership-highlight-badge svg {
  color: var(--color-cta-amber);
}

/* --- Core Values Grid --- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent-sky);
}

.value-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--color-accent-sky-light);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-card:hover .value-icon {
  background: var(--color-surface-accent);
  color: var(--color-text-on-dark);
}

.value-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
}

.value-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- Corporate Verification Box --- */
.verification-box {
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-surface-dark) 100%);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-xl);
  padding: 3rem;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(var(--color-accent-sky-rgb), 0.3);
}

.verification-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(var(--color-white-rgb), 0.12);
  padding-bottom: 1.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.verification-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-on-dark);
}

.verification-badge {
  background-color: rgba(var(--color-success-rgb), 0.2);
  border: 1px solid rgba(var(--color-success-rgb), 0.4);
  color: var(--color-success-light);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
}

.verification-table {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.verification-cell {
  background: rgba(var(--color-white-rgb), 0.05);
  border: 1px solid rgba(var(--color-white-rgb), 0.1);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
}

.verification-key {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-accent-sky);
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.verification-val {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-on-dark);
  letter-spacing: 0.02em;
}

/* --- Portfolio Filter Bar & Cards --- */
.portfolio-filter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.filter-btn {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-text-secondary);
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: all var(--transition-btn);
}

.filter-btn:hover {
  border-color: var(--color-accent-sky);
  color: var(--color-accent-sky-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.filter-btn.active {
  background-color: var(--color-surface-accent);
  color: var(--color-text-on-dark);
  border-color: var(--color-surface-accent);
  box-shadow: var(--shadow-filter-btn-active);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 2rem;
}

.case-study-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  overflow: hidden;
}

/* Case study image slot. Real project photos go here (with
   descriptive alt text) once available; until then this renders a
   labeled placeholder diagram with a "Photo needed" flag so it's
   obvious which cards still need a real photo swapped in. */
.case-study-media {
  position: relative;
  height: 170px;
  margin: -2.25rem -2.25rem 1.5rem -2.25rem;
  background: linear-gradient(135deg, var(--color-navy-dark) 0%, var(--color-surface-dark) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
}

.case-study-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-study-media-icon {
  width: 38px;
  height: 38px;
  color: rgba(var(--color-white-rgb), 0.4);
}

.case-study-media-label {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(var(--color-white-rgb), 0.55);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.case-study-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-card-hover);
  border-color: var(--color-accent-sky);
}

/* Featured case study: same subtle promotion pattern as the
   service cards - background tint, accent border, and a label. */
.case-study-card.is-featured {
  background-color: rgba(var(--color-accent-sky-rgb), 0.05);
  border-color: var(--color-accent-sky);
  box-shadow: var(--shadow-md);
}

.case-study-featured-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-sky);
  color: var(--color-text-on-dark);
}

.case-study-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.case-study-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky-dark);
}

.case-study-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.case-study-desc {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.case-study-metrics-row {
  display: flex;
  gap: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border);
  margin-top: auto;
}

.metric-pill {
  display: flex;
  flex-direction: column;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-cta-amber);
}

.metric-label {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  font-weight: 600;
}

/* --- Contact Page Specifics --- */
.contact-hero-cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

.contact-info-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: all var(--transition-fast);
}

.contact-info-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-accent-sky);
  box-shadow: var(--shadow-md);
}

.contact-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.contact-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 0.4rem;
}

.contact-card-text {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.map-wrapper {
  width: 100%;
  height: 380px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  margin-top: 3.5rem;
}

.map-iframe {
  width: 100%;
  height: 100%;
  border: none;
}

@media (max-width: 1024px) {
  .leadership-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .leadership-highlights {
    justify-content: center;
  }

  .values-grid,
  .verification-table,
  .contact-hero-cards-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Legal Content Pages (Terms & Conditions, Cancellation & Refund Policy)
   ========================================================================== */
.legal-page-section {
  padding: 4.5rem 0 6rem 0;
  background: var(--color-bg-main);
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.legal-content .legal-updated {
  font-weight: 700;
  color: var(--color-text-primary);
  margin-bottom: 2rem;
}

.legal-content p {
  margin-bottom: 1.25rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-content ul li {
  margin-bottom: 1rem;
}

.legal-content strong {
  color: var(--color-text-primary);
}

/* ==========================================================================
   Digital Visiting Card (/pawan_bhopale) - standalone contact-card layout,
   deliberately NOT the site's header/footer chrome. Reuses existing tokens
   only, per the token-architecture invariant above.
   ========================================================================== */
.vcard-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  background:
    radial-gradient(circle at 15% 10%, rgba(var(--color-accent-sky-rgb), 0.05) 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(var(--color-cta-amber-rgb), 0.04) 0%, transparent 45%),
    var(--color-bg-main);
}

.vcard-topbar {
  width: 100%;
  max-width: 400px;
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.vcard-card {
  width: 100%;
  max-width: 400px;
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 2.5rem 2rem 2.25rem;
  text-align: center;
}

.vcard-avatar {
  width: 128px;
  height: 128px;
  border-radius: var(--radius-full);
  margin: 0 auto 1.25rem;
  overflow: hidden;
  border: 3px solid var(--color-bg-card);
  box-shadow: var(--shadow-leadership-avatar);
  background-color: var(--color-bg-muted);
}

.vcard-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vcard-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.vcard-role {
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--color-accent-sky);
  margin-bottom: 0.15rem;
}

.vcard-org {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
}

.vcard-bio {
  font-size: 0.9375rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.vcard-socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.vcard-social-btn {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.vcard-social-btn:hover {
  background-color: var(--color-accent-sky-light);
  color: var(--color-accent-sky-dark);
  border-color: var(--color-accent-sky);
  transform: translateY(-2px);
}

.vcard-social-btn svg {
  width: 20px;
  height: 20px;
}

/* .theme-toggle and .btn-quote are hidden below 1024px site-wide (that's the
   desktop-header breakpoint - mobile relies on the drawer's own Appearance
   row and CTAs instead). This standalone page has no drawer, so both must
   stay visible at every width; these unconditional rules win the cascade
   over that media query without needing !important (equal specificity,
   later in source / more specific ancestor selector). */
.vcard-topbar .theme-toggle {
  display: flex;
}

.vcard-save-btn {
  display: inline-flex;
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  padding: 0.9rem 1.5rem;
  margin-bottom: 1.5rem;
}

.vcard-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 0 0 1.5rem;
}

.vcard-contact-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.vcard-contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--color-heading);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-btn);
  background-color: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  transition: all var(--transition-fast);
}

.vcard-contact-link:hover {
  border-color: var(--color-border-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.vcard-contact-link svg {
  width: 18px;
  height: 18px;
  color: var(--color-accent-sky);
  flex-shrink: 0;
}

.vcard-back-link {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.vcard-back-link:hover {
  color: var(--color-accent-sky);
}

@media (max-width: 480px) {
  .vcard-card {
    padding: 2rem 1.5rem;
  }
}
