@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Manrope:wght@500;600;700;800&family=Noto+Sans+Malayalam:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

/* ==========================================================================
   DESIGN TOKENS & FLUID SCALING
   ========================================================================== */
:root {
  /* Brand Palette */
  --ink: #063830;
  --ink-rgb: 6, 56, 48;
  --deep: #03241f;
  --green: #157a56;
  --green-rgb: 21, 122, 86;
  --green-hover: #0d5f42;
  --emerald: #10b981;
  --sage: #b8ded0;
  --sage-light: #dcf0e7;
  --mint: #ebf6f1;
  --mint-light: #f5faf8;
  --paper: #fcfdfb;
  --card: #ffffff;
  --line: #dae8e1;
  --line-subtle: #e9f2ee;
  --muted: #5e736c;
  --text-secondary: #475a53;
  --gold: #d4a347;
  --white: #ffffff;

  /* Typography */
  --serif: 'Playfair Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --display: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --ml: 'Noto Sans Malayalam', var(--sans);

  /* Fluid Font Sizes (clamp) */
  --text-hero: clamp(2.35rem, 5.2vw + 0.5rem, 4.75rem);
  --text-h2: clamp(1.85rem, 3.6vw + 0.4rem, 3.25rem);
  --text-h3: clamp(1.2rem, 1.8vw + 0.3rem, 1.65rem);
  --text-lead: clamp(1rem, 1.1vw + 0.4rem, 1.25rem);

  /* Elevation Shadows */
  --shadow-xs: 0 1px 3px rgba(6, 56, 48, 0.05);
  --shadow-sm: 0 4px 14px rgba(6, 56, 48, 0.06);
  --shadow-md: 0 10px 30px rgba(6, 56, 48, 0.08);
  --shadow-lg: 0 22px 50px -6px rgba(6, 56, 48, 0.12);
  --shadow-glow: 0 0 35px rgba(21, 122, 86, 0.2);
  --shadow: var(--shadow-lg);

  /* Border Radii */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  /* Fluid Spacing */
  --section-pad: clamp(4rem, 7vw + 1rem, 6.5rem);
  --container-max: 1180px;

  /* Animation Easing */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Base Resets & Layout */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

button {
  cursor: pointer;
}

/* Typography Enhancements (text-wrap balance & pretty) */
h1, h2, h3, h4, .pull-quote, .hero-chip strong {
  text-wrap: balance;
}

p, .lead, .intro, .timeline-item p, .triptych p, .resource .body p {
  text-wrap: pretty;
}

.shell {
  width: min(var(--container-max), calc(100% - 44px));
  margin: auto;
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(252, 253, 251, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(218, 232, 225, 0.75);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.site-header.is-scrolled {
  background: rgba(252, 253, 251, 0.98);
  box-shadow: 0 8px 24px rgba(6, 56, 48, 0.06);
  border-bottom-color: rgba(218, 232, 225, 0.95);
}

.site-header.is-scrolled .nav {
  min-height: 72px;
}

.topline {
  height: 32px;
  border-bottom: 1px solid var(--line-subtle);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  background: rgba(245, 250, 248, 0.6);
}

.topline .shell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.topline span {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Live Pulse Indicator */
.pulse-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ink);
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.nav {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 24px;
  transition: min-height 0.3s ease;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 205px;
  flex: none;
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.3s var(--ease-bounce);
}

.brand:hover img {
  transform: scale(1.06);
}

.brand b {
  font: 800 21px/1 var(--display);
  letter-spacing: -0.04em;
  display: block;
  white-space: nowrap;
}

.brand b span {
  color: var(--green);
}

.brand small {
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 7px;
  margin-top: 3px;
  color: #5d6f68;
  white-space: nowrap;
  font-weight: 700;
}

/* Desktop Nav */
.desktop-nav {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.desktop-nav a {
  font-size: 13px;
  font-weight: 700;
  color: #3b524a;
  white-space: nowrap;
  position: relative;
  padding: 6px 4px;
  transition: color 0.2s ease;
}

.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--green);
  border-radius: 2px;
  transition: width 0.25s var(--ease-out), left 0.25s var(--ease-out);
}

.desktop-nav a:hover,
.desktop-nav a.active {
  color: var(--green);
}

.desktop-nav a:hover::after,
.desktop-nav a.active::after {
  width: 100%;
  left: 0;
}

/* Actions & Buttons */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.lang-toggle {
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  background: #fff;
  min-width: 94px;
  height: 38px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease;
}

.lang-toggle:hover {
  border-color: var(--sage);
}

.lang-toggle button {
  appearance: none;
  border: 0;
  background: transparent;
  border-radius: 999px;
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
  min-width: 44px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-toggle button.active {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 2px 8px rgba(6, 56, 48, 0.2);
}

.header-book, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #09473d 0%, #063830 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.12);
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(6, 56, 48, 0.18);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), background 0.2s ease;
  cursor: pointer;
}

.header-book:hover, .btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 56, 48, 0.26);
  background: linear-gradient(180deg, #0d5448 0%, #08433a 100%);
  color: #fff;
}

.header-book:active, .btn:active {
  transform: translateY(0) scale(0.98);
}

.btn.secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-xs);
}

.btn.secondary:hover {
  background: var(--mint-light);
  border-color: var(--sage);
  color: var(--green);
  box-shadow: var(--shadow-sm);
}

.menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: 20px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.menu:hover {
  background: var(--mint-light);
  border-color: var(--sage);
}

.menu:active {
  transform: scale(0.95);
}

/* Mobile Drawer */
.mobile-drawer {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: clamp(40px, 6vw, 70px) 0 clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  right: -120px;
  top: 40px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(184, 222, 208, 0.45) 0%, rgba(184, 222, 208, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  left: -150px;
  bottom: -50px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(235, 246, 241, 0.7) 0%, rgba(235, 246, 241, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 52px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.eyebrow, .section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.24em;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
}

.eyebrow::before, .section-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

.hero h1, .page-title {
  font: 800 var(--text-hero)/1 var(--display);
  letter-spacing: -0.055em;
  margin: 16px 0 20px;
  max-width: 740px;
}

.hero h1 em, .page-title em {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--green);
}

.lead {
  font-size: var(--text-lead);
  max-width: 630px;
  color: var(--text-secondary);
  margin: 0 0 26px;
  line-height: 1.62;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.micro {
  margin-top: 20px;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.02em;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}

.micro span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.micro span::before {
  content: '✓';
  color: var(--green);
  font-weight: 800;
}

/* Hero Stage & Visuals */
.hero-stage {
  position: relative;
}

.hero-stage > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(218, 232, 225, 0.6);
  transition: transform 0.5s var(--ease-out);
}

.hero-stage:hover > img {
  transform: scale(1.015);
}

.hero-chip {
  position: absolute;
  left: -20px;
  bottom: 24px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(218, 232, 225, 0.9);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: 0 16px 36px rgba(6, 56, 48, 0.14);
  max-width: 250px;
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.hero-chip:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 42px rgba(6, 56, 48, 0.18);
}

.hero-chip strong {
  font: 800 15px/1.3 var(--display);
  display: block;
  color: var(--ink);
}

.hero-chip span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 4px;
  line-height: 1.45;
}

/* ==========================================================================
   SECTIONS & EDITORIAL LAYOUTS
   ========================================================================== */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section.soft {
  background: linear-gradient(180deg, var(--mint) 0%, rgba(235, 246, 241, 0.5) 100%);
}

.section.ink {
  background: var(--ink);
  color: #fff;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 25px;
  margin-bottom: 34px;
}

.section h2 {
  font: 800 var(--text-h2)/1.06 var(--display);
  letter-spacing: -0.05em;
  margin: 10px 0 0;
  max-width: 780px;
}

.section h2 em {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  font-style: italic;
  color: var(--green);
}

.intro {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 660px;
  line-height: 1.65;
  margin-top: 10px;
}

.section.ink .intro {
  color: #c4ded4;
}

.text-link {
  font-size: 13px;
  font-weight: 800;
  color: var(--green);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s var(--ease-out), color 0.2s ease;
}

.text-link:hover {
  transform: translateX(4px);
  color: var(--green-hover);
}

.text-link.light {
  color: #fff;
}

.text-link.light:hover {
  color: var(--sage);
}

/* Service Grid & Cards */
.service-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.service-tile {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 420px;
  background: #dfeee8;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(218, 232, 225, 0.7);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out);
}

.service-tile.large {
  min-height: 520px;
}

.service-tile:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.service-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out);
}

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

.service-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 36, 31, 0.65) 30%, rgba(3, 36, 31, 0.94) 100%);
  color: #fff;
  transition: background 0.3s ease;
}

.service-overlay .num {
  font: 800 12px var(--display);
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(8px);
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

.service-overlay h3 {
  font: 800 25px/1.2 var(--display);
  letter-spacing: -0.04em;
  margin: 6px 0 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.service-overlay h3::after {
  content: '→';
  font-size: 20px;
  opacity: 0.6;
  transition: transform 0.25s var(--ease-out), opacity 0.25s ease;
}

.service-tile:hover .service-overlay h3::after {
  transform: translateX(4px);
  opacity: 1;
}

.service-overlay p {
  margin: 0;
  max-width: 360px;
  font-size: 13.5px;
  color: #edf7f2;
  line-height: 1.5;
}

.service-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.mini-photo {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  min-height: 240px;
  box-shadow: var(--shadow-sm);
}

.mini-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.mini-photo:hover img {
  transform: scale(1.04);
}

.mini-photo span {
  position: absolute;
  left: 14px;
  top: 14px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
}

/* Editorial Content Layouts */
.editorial {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 60px;
  align-items: center;
}

.editorial.reverse {
  grid-template-columns: 1.05fr 1fr;
}

.editorial.reverse > .copy {
  order: 2;
}

.editorial.reverse > .visual {
  order: 1;
}

.visual-stack {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
  align-items: end;
}

.visual-stack img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.visual-stack .tall {
  aspect-ratio: 3 / 4;
}

.visual-stack .wide {
  aspect-ratio: 5 / 4;
}

.ambient-frame {
  overflow: hidden;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(218, 232, 225, 0.8);
}

.ambient-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}

.ambient-frame:hover img {
  transform: scale(1.03);
}

.pull-quote {
  font: 500 clamp(24px, 2.6vw, 34px)/1.28 var(--serif);
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 620px;
  margin: 24px 0;
  position: relative;
  padding-left: 20px;
  border-left: 3px solid var(--green);
}

.section.ink .pull-quote {
  color: #fff;
  border-left-color: var(--sage);
}

.tiny {
  font-size: 11px;
  color: var(--muted);
}

/* Triptych */
.triptych {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.triptych .item {
  padding: 24px 0;
  border-top: 1px solid var(--line);
  transition: transform 0.25s var(--ease-out);
}

.triptych .item:hover {
  transform: translateY(-2px);
}

.triptych .n {
  font: 800 12px var(--display);
  color: var(--green);
  letter-spacing: 0.12em;
}

.triptych h3 {
  font: 800 22px var(--display);
  margin: 10px 0 6px;
  letter-spacing: -0.03em;
}

.triptych p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.section.ink .triptych .item {
  border-color: rgba(255, 255, 255, 0.18);
}

.section.ink .triptych p {
  color: #c0d4cb;
}

/* Pills */
.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.pill {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.pill:hover {
  border-color: var(--sage);
  transform: translateY(-1px);
}

.section.ink .pill {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* Page Hero (Subpages) */
.page-hero {
  padding: clamp(38px, 5vw, 56px) 0 clamp(28px, 4vw, 42px);
  position: relative;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 52px;
  align-items: center;
}

.page-hero .hero-image {
  position: relative;
}

.page-hero .hero-image img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(218, 232, 225, 0.7);
}

.page-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.page-meta span {
  font-size: 11.5px;
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  box-shadow: var(--shadow-xs);
}

.service-hero-mark {
  font: 500 34px var(--serif);
  color: var(--green);
  margin-top: 10px;
}

/* Pathway & Timeline */
.pathway {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: center;
}

.path-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
}

.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 6px;
  top: 12px;
  bottom: 12px;
  width: 2px;
  background: var(--line);
}

.timeline-item {
  position: relative;
  padding: 0 0 32px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 5px var(--mint);
  border: 2px solid #fff;
}

.timeline-item b {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--green);
  text-transform: uppercase;
}

.timeline-item h3 {
  font: 800 20px var(--display);
  margin: 6px 0 4px;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  max-width: 490px;
  line-height: 1.55;
}

/* Mosaic & Number Rail */
.mosaic {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: 260px 260px;
  gap: 16px;
}

.mosaic img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.5s var(--ease-out);
}

.mosaic img:hover {
  transform: scale(1.02);
}

.mosaic .big {
  grid-row: span 2;
}

.number-rail {
  display: flex;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}

.number-rail > div {
  flex: 1;
  padding: 20px 20px;
  border-right: 1px solid var(--line);
}

.number-rail > div:last-child {
  border-right: 0;
}

.number-rail b {
  display: block;
  font: 800 11px var(--display);
  color: var(--green);
  letter-spacing: 0.15em;
}

.number-rail strong {
  display: block;
  font: 800 18px var(--display);
  margin-top: 6px;
  letter-spacing: -0.02em;
}

.number-rail span {
  display: block;
  color: var(--muted);
  font-size: 11.5px;
  margin-top: 4px;
}

/* ==========================================================================
   EQUIPMENT CATALOGUE & VIEWER
   ========================================================================== */
.equipment-zone {
  position: relative;
}

.equipment-panel {
  background: #f5faf7;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.equipment-panel img {
  width: 100%;
  height: auto !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  display: block;
  background: #f5faf7;
  transition: opacity 0.26s var(--ease-out), transform 0.26s var(--ease-out);
}

.equipment-panel img.eq-changing {
  opacity: 0.2;
  transform: scale(0.99);
}

.equipment-info {
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--line);
}

.equipment-info strong {
  font: 800 21px var(--display);
  letter-spacing: -0.02em;
  display: block;
}

.equipment-info span {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  display: block;
}

.equipment-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.eq-enquire-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--green);
  border: 1px solid var(--sage);
  font-size: 12px;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease;
}

.eq-enquire-btn:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

.equipment-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.eq-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-xs);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.eq-btn:hover {
  background: var(--mint);
  border-color: var(--green);
  color: var(--green);
}

.eq-btn:active {
  transform: scale(0.92);
}

.eq-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.eq-dots button {
  appearance: none;
  border: 0;
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #c8d8d2;
  cursor: pointer;
  transition: width 0.25s var(--ease-out), background 0.25s ease;
}

.eq-dots button.active {
  width: 24px;
  background: var(--green);
}

.eq-note {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 12px;
  text-align: center;
}

.catalogue-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 22px;
}

.catalogue-links button {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 18px;
  padding: 14px 10px;
  font-size: 12.5px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.22s var(--ease-out);
}

.catalogue-links button:hover {
  border-color: var(--sage);
  background: var(--mint-light);
  transform: translateY(-2px);
}

.catalogue-links button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  box-shadow: 0 4px 14px rgba(6, 56, 48, 0.2);
}

/* ==========================================================================
   DARK BAND (NRI & FAMILIES ABROAD)
   ========================================================================== */
.dark-band {
  padding: clamp(60px, 8vw, 84px) 0;
  background: radial-gradient(circle at top right, #07473d 0%, var(--deep) 70%);
  color: #fff;
  overflow: hidden;
  position: relative;
}

.dark-band::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.dark-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}

.dark-grid .ambient-frame {
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.dark-grid h2 {
  font: 800 var(--text-h2)/1 var(--display);
  letter-spacing: -0.05em;
  margin: 10px 0 16px;
}

.dark-grid p {
  color: #c5ded5;
  max-width: 610px;
  font-size: 16px;
  line-height: 1.65;
}

.dark-grid .btn {
  background: #fff;
  color: var(--ink);
  border-color: #fff;
  margin-top: 10px;
}

.dark-grid .btn:hover {
  background: var(--mint);
  color: var(--green);
}

/* ==========================================================================
   BOOKING PANEL & FORMS
   ========================================================================== */
.contact-panel {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 25px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.contact-copy {
  padding: 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-photo {
  min-height: 100%;
  position: relative;
}

.contact-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 380px;
}

.booking-form {
  padding: 34px;
  background: linear-gradient(180deg, #f9fcfb 0%, #f3f8f6 100%);
  border-left: 1px solid var(--line);
}

.booking-form label {
  display: block;
  margin-bottom: 16px;
}

.booking-form label span {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #4a6860;
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}

.booking-form input,
.booking-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 13px 15px;
  outline: 0;
  color: var(--ink);
  font-size: 14px;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.booking-form input:focus,
.booking-form select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(21, 122, 86, 0.12);
}

/* Time Slot Chips */
.slot-group {
  margin-bottom: 18px;
}

.slot-label {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: #4a6860;
  margin-bottom: 8px;
}

.slot-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.slot-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 9px 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
  user-select: none;
}

.slot-chip:hover {
  border-color: var(--sage);
  background: var(--mint-light);
}

.slot-chip.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  box-shadow: 0 2px 8px rgba(21, 122, 86, 0.25);
}

.full {
  width: 100%;
  border: 0;
  background: linear-gradient(180deg, #09473d 0%, #063830 100%);
  color: #fff;
  border-radius: 14px;
  padding: 15px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(6, 56, 48, 0.2);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 56, 48, 0.28);
  background: linear-gradient(180deg, #0d5448 0%, #08433a 100%);
}

.full:active {
  transform: translateY(0) scale(0.98);
}

.full.is-submitting {
  opacity: 0.85;
  pointer-events: none;
}

.form-note {
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  margin-top: 11px;
}

/* ==========================================================================
   FAQS ACCORDION
   ========================================================================== */
.faq-list {
  border-top: 1px solid var(--line);
}

.faq {
  border-bottom: 1px solid var(--line);
  transition: background 0.2s ease;
}

.faq button {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  cursor: pointer;
  text-align: left;
  font: 800 18px var(--display);
  color: var(--ink);
  transition: color 0.2s ease;
}

.faq button:hover {
  color: var(--green);
}

.faq button span:last-child {
  font-size: 22px;
  font-weight: 400;
  color: var(--green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--mint);
  transition: transform 0.3s var(--ease-out), background 0.2s ease, color 0.2s ease;
  flex: none;
}

.faq.open button span:last-child {
  transform: rotate(45deg);
  background: var(--green);
  color: #fff;
}

/* Strictly hide closed FAQ answers */
.faq p {
  max-width: 820px;
  color: var(--text-secondary);
  font-size: 14.5px;
  line-height: 1.65;
  margin: 0;
  display: none;
}

/* Reveal smoothly when open */
.faq.open p {
  display: block;
  margin: -4px 0 22px;
  animation: faq-reveal 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes faq-reveal {
  0% {
    opacity: 0;
    transform: translateY(-8px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   FOOTER & SEO GRIDS
   ========================================================================== */
.footer {
  padding: 56px 0 38px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  border-top: 1px solid var(--line);
}

.footer p {
  font-size: 13px;
  color: var(--muted);
  max-width: 420px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 14px;
  font-size: 12.5px;
  color: #4f635c;
}

.footer-links a:hover {
  color: var(--green);
  transform: translateX(2px);
}

.footer-meta {
  text-align: right;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-meta strong {
  display: block;
  color: var(--ink);
  font: 800 14px var(--display);
  margin-bottom: 6px;
}

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

.seo-link {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  transition: transform 0.2s ease;
}

.seo-link:hover {
  transform: translateY(-2px);
}

.seo-link b {
  font: 800 18px var(--display);
  color: var(--ink);
  display: block;
}

.seo-link:hover b {
  color: var(--green);
}

.seo-link p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.mini-hero {
  padding: 40px 0 28px;
}

.resource-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.resource {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease;
}

.resource:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.resource img {
  width: 100%;
  aspect-ratio: 1.4 / 1;
  object-fit: cover;
}

.resource .body {
  padding: 22px;
}

.resource .body h3 {
  font: 800 21px var(--display);
  margin: 0 0 6px;
}

.resource .body p {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0;
  line-height: 1.55;
}

/* ==========================================================================
   FLOATING ACTION BUTTON & MOBILE QUICK BAR
   ========================================================================== */
/* Desktop Floating WhatsApp Pill */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 75;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.4);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid #fff;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
  text-decoration: none;
}

.floating-whatsapp:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
  color: #fff;
}

.floating-whatsapp:active {
  transform: translateY(0) scale(0.97);
}

.floating-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex: none;
}

/* Mobile Bottom Quick Action Bar */
.mobile-quick-bar {
  display: none;
}

/* ==========================================================================
   DYNAMIC SCROLL REVEALS & ANIMATIONS
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  will-change: opacity, transform;
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.12s;
}

.reveal-delay-2 {
  transition-delay: 0.24s;
}

.reveal-delay-3 {
  transition-delay: 0.36s;
}

/* Progressive Scroll-driven animations (Chromium/Safari 26) */
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal-scroll {
      animation: auto-reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 10% entry 35%;
    }

    @keyframes auto-reveal-up {
      from {
        opacity: 0;
        transform: translateY(30px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }
  }
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none;
  }
  .menu {
    display: inline-flex;
  }
  .header-book {
    display: none;
  }
  .hero-grid, .page-hero-grid {
    grid-template-columns: 1fr 0.9fr;
    gap: 36px;
  }
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-tile.large {
    grid-column: span 2;
  }
  .service-strip {
    grid-template-columns: 1fr 1fr;
  }
  .catalogue-links {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Mobile Drawer v10.6 fix */
  .mobile-drawer {
    box-sizing: border-box;
    position: absolute !important;
    top: 100% !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    height: calc(100vh - 72px) !important;
    max-height: calc(100vh - 72px) !important;
    overflow: hidden !important;
    background: rgba(6, 56, 48, 0.25);
    backdrop-filter: blur(8px);
    z-index: 90;
  }

  .mobile-drawer.open {
    display: block;
  }

  .mobile-drawer .drawer-inner {
    width: min(100%, 420px);
    margin-left: auto;
    height: 100% !important;
    max-height: 100% !important;
    background: #fff;
    padding: 22px 18px 36px;
    box-shadow: -15px 0 40px rgba(4, 56, 45, 0.16);
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
  }

  .mobile-drawer nav a,
  .mobile-drawer .drawer-title,
  .mobile-drawer .drawer-book {
    display: block;
  }

  .mobile-drawer nav a {
    padding: 14px 12px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 15px;
    transition: background 0.2s ease, color 0.2s ease;
  }

  .mobile-drawer nav a:hover {
    background: var(--mint);
    color: var(--green);
  }

  .drawer-section {
    padding-top: 14px;
    margin-top: 14px;
    border-top: 1px solid var(--line);
  }

  .drawer-title {
    font-size: 10.5px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--green);
    font-weight: 800;
    margin: 0 12px 8px;
  }

  .drawer-book {
    margin: 18px 0 0;
    background: linear-gradient(180deg, #09473d 0%, #063830 100%);
    color: #fff;
    text-align: center;
    padding: 15px;
    border-radius: 14px;
    font-weight: 800;
    box-shadow: 0 4px 14px rgba(6, 56, 48, 0.2);
  }
}

@media (max-width: 820px) {
  .shell {
    width: min(100% - 32px, 690px);
  }
  .topline {
    display: none;
  }
  .nav {
    min-height: 70px;
    gap: 10px;
  }
  .brand {
    min-width: 0;
    flex: 1;
    overflow: hidden;
  }
  .brand img {
    width: 42px;
    height: 42px;
  }
  .brand b {
    font-size: 20px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .brand small {
    font-size: 6.5px;
    letter-spacing: 0.22em;
  }

  .hero {
    padding: 36px 0 24px;
  }
  .hero-grid, .page-hero-grid, .editorial, .editorial.reverse, .pathway, .dark-grid, .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .hero-stage > img {
    aspect-ratio: 1.15 / 1;
    border-radius: 26px;
  }
  .hero-chip {
    left: 12px;
    bottom: 12px;
    padding: 14px 16px;
  }

  .section {
    padding: clamp(48px, 9vw, 68px) 0;
  }
  .section-head {
    display: block;
    margin-bottom: 24px;
  }
  .text-link {
    display: inline-block;
    margin-top: 14px;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }
  .service-tile.large {
    grid-column: auto;
    min-height: 430px;
  }
  .service-strip, .triptych, .seo-grid {
    grid-template-columns: 1fr;
  }
  .service-strip .mini-photo {
    min-height: 220px;
  }

  .editorial.reverse > .copy, .editorial.reverse > .visual {
    order: initial;
  }
  .visual-stack {
    grid-template-columns: 1fr 1fr;
  }
  .mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 320px 220px 220px;
  }
  .mosaic .big {
    grid-row: auto;
  }

  .number-rail {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .number-rail > div:nth-child(2) {
    border-right: 0;
  }
  .number-rail > div {
    border-bottom: 1px solid var(--line);
  }

  .equipment-panel img {
    max-height: none;
    object-fit: contain !important;
  }
  .equipment-info {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
  }
  .catalogue-links {
    grid-template-columns: 1fr 1fr;
  }
  .catalogue-links button {
    min-height: 48px;
  }

  .footer {
    grid-template-columns: 1fr;
  }
  .footer-meta {
    text-align: left;
  }
  .contact-photo img {
    min-height: 280px;
  }
  .booking-form {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .resource-grid {
    grid-template-columns: 1fr;
  }

  /* Hide floating desktop WhatsApp in favor of mobile quick bar */
  .floating-whatsapp {
    display: none;
  }

  /* Mobile Quick Action Bar */
  .mobile-quick-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 79;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
    padding: 10px 16px max(10px, env(safe-area-inset-bottom));
    gap: 10px;
    box-shadow: 0 -4px 20px rgba(6, 56, 48, 0.08);
    transform: translateY(100%);
    transition: transform 0.3s var(--ease-out);
  }

  .mobile-quick-bar.is-visible {
    transform: translateY(0);
  }

  .mobile-quick-bar a {
    flex: 1;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
  }

  .mobile-quick-call {
    background: #fff;
    color: var(--ink);
    border: 1px solid var(--line);
  }

  .mobile-quick-wa {
    background: #25d366;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.15);
  }
}

@media (max-width: 420px) {
  .shell {
    width: calc(100% - 22px);
  }
  .nav {
    min-height: 64px;
  }
  .mobile-drawer {
    height: calc(100vh - 64px) !important;
    max-height: calc(100vh - 64px) !important;
  }
  .brand {
    max-width: calc(100% - 118px);
  }
  .brand img {
    width: 38px;
    height: 38px;
  }
  .brand b {
    font-size: 17px;
  }
  .brand small {
    display: none;
  }
  .lang-toggle {
    width: 76px;
    min-width: 76px;
    height: 34px;
  }
  .lang-toggle button {
    font-size: 10px;
    min-width: 35px;
    padding: 0 4px;
  }
  .menu {
    width: 40px;
    height: 40px;
  }
  .contact-copy, .booking-form {
    padding: 24px 18px;
  }
  .slot-chips {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 340px) {
  .brand {
    max-width: calc(100% - 110px);
  }
  .brand b {
    font-size: 16px;
  }
  .lang-toggle {
    width: 70px;
    min-width: 70px;
  }
  .lang-toggle button {
    font-size: 9px;
  }
  .menu {
    width: 38px;
    height: 38px;
  }
}

/* ==========================================================================
   MALAYALAM LANGUAGE HARDENING (html[lang='ml'])
   ========================================================================== */
html[lang='ml'] body {
  font-family: var(--ml);
}

html[lang='ml'] h1,
html[lang='ml'] h2,
html[lang='ml'] h3,
html[lang='ml'] .brand b,
html[lang='ml'] .btn,
html[lang='ml'] .header-book,
html[lang='ml'] .desktop-nav,
html[lang='ml'] .mobile-drawer,
html[lang='ml'] .mobile-quick-bar {
  font-family: var(--ml);
}

html[lang='ml'] .lang-toggle button[data-lang='ml'] {
  font-family: var(--ml);
  font-size: 10px;
}

html[lang='ml'] .desktop-nav {
  gap: 12px;
}

html[lang='ml'] .desktop-nav a {
  font-size: 12px;
  letter-spacing: -0.02em;
}

html[lang='ml'] .section-label,
html[lang='ml'] .eyebrow {
  letter-spacing: 0.1em;
  font-size: 10.5px;
}

html[lang='ml'] .hero h1,
html[lang='ml'] .page-title {
  font-size: clamp(34px, 4.8vw, 60px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

html[lang='ml'] .section h2 {
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.04em;
}

html[lang='ml'] .lead {
  font-size: 15.5px;
  line-height: 1.75;
}

html[lang='ml'] .intro {
  font-size: 14.5px;
  line-height: 1.75;
}

html[lang='ml'] .triptych h3,
html[lang='ml'] .number-rail strong {
  line-height: 1.35;
}

html[lang='ml'] .btn,
html[lang='ml'] .header-book,
html[lang='ml'] .drawer-book {
  font-size: 12px;
}

html[lang='ml'] .header-book {
  padding: 0 14px;
}

html[lang='ml'] .drawer-title {
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  html[lang='ml'] .nav {
    gap: 6px;
  }
  html[lang='ml'] .brand {
    max-width: calc(100% - 116px);
  }
  html[lang='ml'] .brand b {
    font-size: 18px;
  }
  html[lang='ml'] .lang-toggle {
    width: 78px;
    min-width: 78px;
  }
  html[lang='ml'] .lang-toggle button[data-lang='ml'] {
    font-size: 8px;
    line-height: 1;
  }
  html[lang='ml'] .lang-toggle button[data-lang='en'] {
    font-size: 9px;
  }
}

@media (max-width: 420px) {
  html[lang='ml'] .brand {
    max-width: calc(100% - 110px);
  }
  html[lang='ml'] .brand img {
    width: 38px;
    height: 38px;
  }
  html[lang='ml'] .brand b {
    font-size: 17px;
  }
  html[lang='ml'] .lang-toggle {
    width: 72px;
    min-width: 72px;
    height: 34px;
  }
  html[lang='ml'] .lang-toggle button[data-lang='ml'] {
    font-size: 7.2px;
  }
  html[lang='ml'] .lang-toggle button[data-lang='en'] {
    font-size: 8.5px;
  }
  html[lang='ml'] .hero h1,
  html[lang='ml'] .page-title {
    font-size: clamp(32px, 8.5vw, 42px);
  }
  html[lang='ml'] .section h2 {
    font-size: clamp(26px, 7vw, 35px);
  }
}

/* Artwork sheets contain typography and catalog layouts: never crop them. */
img[src$='equipment-mobility.png'],
img[src$='equipment-beds.png'],
img[src$='equipment-respiratory.png'],
img[src$='equipment-monitoring.png'],
img[src$='equipment-other.png'],
img[src$='products-collage.png'],
img[src$='discharge.png'],
img[src$='investigation1.png'],
img[src$='investigation2.png'],
img[src$='investigation3.png'],
img[src$='letterhead.png'],
img[src$='ambient-quote.png'] {
  object-fit: contain !important;
  height: auto !important;
  aspect-ratio: auto !important;
  background: #f5faf7;
}

.page-hero .hero-image:has(img[src$='products-collage.png']) {
  background: #f5faf7;
  border-radius: 30px;
  overflow: hidden;
}

.ambient-frame:has(img[src$='ambient-quote.png']) {
  background: #f5faf7;
}

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ==========================================================================
   NAVIGATION HARDENING & LEAKAGE PREVENTION
   ========================================================================== */
.site-header {
  overflow: visible;
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px, 1.8vw, 24px);
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.desktop-nav {
  display: flex;
  gap: clamp(10px, 1.4vw, 20px);
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow: hidden; /* Strict: Never bleed or leak into adjacent elements */
}

.desktop-nav a {
  font-size: clamp(12px, 0.92vw, 13.5px);
  font-weight: 700;
  color: #3b524a;
  white-space: nowrap;
  position: relative;
  padding: 6px 4px;
  transition: color 0.2s ease;
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

/* Malayalam Header Specifics */
html[lang='ml'] .nav {
  gap: clamp(8px, 1.4vw, 18px);
}

html[lang='ml'] .desktop-nav {
  gap: clamp(6px, 1vw, 13px);
}

html[lang='ml'] .desktop-nav a {
  font-size: clamp(11px, 0.85vw, 12.5px);
  letter-spacing: -0.015em;
  padding: 5px 2px;
}

html[lang='ml'] .header-book {
  font-size: 11.5px;
  padding: 0 14px;
}

@media (max-width: 1240px) {
  html[lang='ml'] .desktop-nav {
    display: none;
  }
  html[lang='ml'] .menu {
    display: inline-flex;
  }
  html[lang='ml'] .header-book {
    display: none;
  }
}

/* ==========================================================================
   AESTHETIC IMAGE INSERTS (BEYOND RIGID CARDS)
   ========================================================================== */

/* 1. Hero Organic Visual Insert */
.hero-stage-creative {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-backdrop-glow {
  position: absolute;
  inset: -20px -20px 0 -20px;
  background: radial-gradient(circle at 60% 40%, rgba(184, 222, 208, 0.6) 0%, rgba(235, 246, 241, 0.2) 65%, transparent 80%);
  border-radius: 50px;
  filter: blur(24px);
  z-index: 0;
  pointer-events: none;
}

.hero-main-cutout {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 44px 16px 44px 16px;
  box-shadow: 0 24px 50px -10px rgba(6, 56, 48, 0.16);
  border: 1px solid rgba(218, 232, 225, 0.8);
  transition: transform 0.5s var(--ease-out);
}

.hero-main-cutout:hover {
  transform: scale(1.015);
}

/* Floating Clinician Badge Insert */
.hero-floating-clinician {
  position: absolute;
  top: -16px;
  right: -16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(218, 232, 225, 0.9);
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(6, 56, 48, 0.12);
  animation: float-gentle 4s ease-in-out infinite;
}

.hero-floating-clinician img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--emerald);
}

.hero-floating-clinician div b {
  display: block;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}

.hero-floating-clinician div small {
  display: block;
  font-size: 9.5px;
  color: var(--green);
  font-weight: 700;
}

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

/* 2. Clinician Team Face-Pile Trust Strip */
.clinician-strip {
  padding: 18px 0 24px;
  position: relative;
  z-index: 2;
}

.clinician-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: linear-gradient(90deg, rgba(235, 246, 241, 0.8) 0%, rgba(255, 255, 255, 0.9) 50%, rgba(235, 246, 241, 0.8) 100%);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px 24px;
  box-shadow: var(--shadow-xs);
}

.clinician-avatars {
  display: flex;
  align-items: center;
}

.clinician-avatars img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(6, 56, 48, 0.15);
  margin-left: -12px;
  transition: transform 0.25s ease, z-index 0.25s ease;
}

.clinician-avatars img:first-child {
  margin-left: 0;
}

.clinician-avatars img:hover {
  transform: translateY(-4px) scale(1.1);
  z-index: 4;
}

.clinician-strip-text {
  flex: 1;
}

.clinician-strip-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
}

.clinician-strip-text span {
  display: block;
  font-size: 11.5px;
  color: var(--muted);
}

.clinician-strip-cta {
  flex-shrink: 0;
}

.clinician-strip-cta .btn {
  min-height: 38px;
  font-size: 12px;
  padding: 0 16px;
}

/* 3. Layered Editorial Collage (Why Home Care) */
.layered-editorial-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.layered-primary-img {
  width: 90%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 36px 12px 36px 12px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(218, 232, 225, 0.8);
}

.layered-accent-insert {
  position: absolute;
  bottom: -22px;
  right: -10px;
  width: 42%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 16px 36px rgba(6, 56, 48, 0.18);
  border: 4px solid #fff;
  transition: transform 0.4s var(--ease-out);
}

.layered-accent-insert:hover {
  transform: scale(1.05) rotate(1deg);
}

.layered-tag {
  position: absolute;
  top: 18px;
  left: -12px;
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 18px rgba(6, 56, 48, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* 4. Filmstrip Story Flow (Care, Not Complexity) */
.filmstrip-flow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.filmstrip-item {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--line);
  aspect-ratio: 3 / 4;
}

.filmstrip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.filmstrip-item:hover img {
  transform: scale(1.06);
}

.filmstrip-caption {
  position: absolute;
  inset: auto 0 0;
  padding: 16px;
  background: linear-gradient(180deg, transparent 0%, rgba(3, 36, 31, 0.9) 100%);
  color: #fff;
}

.filmstrip-caption b {
  display: block;
  font-size: 11px;
  color: var(--sage);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.filmstrip-caption span {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-top: 3px;
  line-height: 1.3;
}

/* 5. Live WhatsApp Status Overlay on NRI Section */
.nri-visual-frame {
  position: relative;
}

.nri-status-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 14px 18px;
  color: var(--ink);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  gap: 12px;
}

.nri-status-card .wa-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}

.nri-status-card div strong {
  display: block;
  font-size: 12px;
  font-weight: 800;
}

.nri-status-card div span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}

/* 6. Fast C2A Fast-Booking Container with Human Photo Insert */
.booking-split-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.booking-visual-side {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  background: linear-gradient(180deg, #09473d 0%, #063830 100%);
  color: #fff;
}

.booking-visual-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/ambient-compassion.png') center/cover no-repeat;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
}

.booking-visual-side .copy {
  position: relative;
  z-index: 1;
}

.booking-visual-side h2 {
  font: 800 clamp(28px, 3.4vw, 42px)/1.08 var(--display);
  letter-spacing: -0.04em;
  margin: 10px 0 14px;
}

.booking-visual-side h2 em {
  color: var(--sage);
}

.booking-visual-side .lead-fast {
  font-size: 15px;
  color: #cde4db;
  line-height: 1.55;
  margin-bottom: 24px;
}

.fast-trust-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.fast-trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #e5f4ee;
}

.fast-trust-item span:first-child {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sage);
  font-size: 11px;
}

.booking-form-side {
  padding: 38px;
  background: #fafdfc;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Faster CTA Button */
.btn-instant {
  background: linear-gradient(180deg, #188d64 0%, #116f4d 100%);
  box-shadow: 0 6px 20px rgba(17, 111, 77, 0.32);
}

.btn-instant:hover {
  background: linear-gradient(180deg, #1ba474 0%, #157e58 100%);
  box-shadow: 0 10px 28px rgba(17, 111, 77, 0.42);
}

@media (max-width: 900px) {
  .clinician-strip-inner {
    flex-direction: column;
    text-align: center;
    gap: 14px;
  }
  .clinician-avatars {
    justify-content: center;
  }
  .booking-split-container {
    grid-template-columns: 1fr;
  }
  .booking-visual-side, .booking-form-side {
    padding: 28px 20px;
  }
  .filmstrip-flow {
    grid-template-columns: 1fr;
  }
  .filmstrip-item {
    aspect-ratio: 16 / 9;
  }
  .layered-accent-insert {
    width: 36%;
    bottom: -14px;
    right: 0;
  }
}


/* ==========================================================================
   MOBILE HEADER + EQUIPMENT CTA HARDENING v11.1
   ========================================================================== */

/* Keep the logo as a real flex item at every breakpoint. */
.brand img {
  flex: 0 0 auto;
  min-width: 38px;
  min-height: 38px;
  visibility: visible !important;
  opacity: 1 !important;
}

/* At mobile widths the desktop navigation and header booking CTA are fully removed
   so the brand, language switcher and hamburger have deterministic space. */
@media (max-width: 1100px) {
  .desktop-nav {
    display: none !important;
    visibility: hidden !important;
  }
  .header-book {
    display: none !important;
    visibility: hidden !important;
  }
  .header-actions {
    flex: 0 0 auto;
    min-width: 0;
  }
}

@media (max-width: 820px) {
  .nav {
    width: 100%;
    min-width: 0;
  }
  .brand {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
  }
  .brand > span {
    min-width: 0;
    overflow: hidden;
  }
  .brand b {
    overflow: hidden;
    text-overflow: ellipsis;
  }
}

/* The home-page equipment enquiry CTA should never collapse into a circular
   button or squeeze the next/previous controls off-screen. */
.equipment-actions {
  min-width: 0;
}

.eq-enquire-btn {
  flex: 0 1 auto;
  width: auto !important;
  min-width: max-content;
  min-height: 38px;
  height: auto !important;
  border-radius: 999px !important;
  white-space: nowrap;
  line-height: 1.2;
}

.equipment-controls {
  flex: 0 0 auto;
  min-width: max-content;
}

@media (max-width: 820px) {
  .equipment-actions {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
  }

  .eq-enquire-btn {
    justify-self: start;
    max-width: 100%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .equipment-controls {
    justify-self: end;
  }
}

@media (max-width: 420px) {
  .equipment-actions {
    grid-template-columns: 1fr;
    justify-items: stretch;
  }

  .eq-enquire-btn {
    justify-self: stretch;
    width: 100% !important;
    text-align: center;
  }

  .equipment-controls {
    justify-self: center;
  }
}

@media (max-width: 340px) {
  .eq-enquire-btn {
    font-size: 11px;
    padding-inline: 12px;
  }
}
