/* ==========================================================================
   AARAMBH — BRAND DESIGN SYSTEM
   Typography: Cormorant Garamond (Display) + Montserrat (Functional)
   Color Palette:
   - Main background : #FFFFFF
   - Alternate section background : #F5F5F5
   - Card background : #FFFFFF
   - Primary text : #1A1A1A
   - Secondary text : #555555
   - Muted text : #737373
   - Primary red : #D62828
   - Darker red for text and hover : #B91F24
   - Burnt-orange accent : #E86F30
   - Borders and dividers : #E5E5E5
   - Subtle red highlight background : #FDECEC
   - Footer background : #1A1A1A
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300..700;1,300..700&family=Montserrat:ital,wght@0,300..800;1,300..800&display=swap');
@import url('header.css');
@import url('footer.css');

:root {
  /* Core Palette Tokens */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F5F5F5;
  --bg-card: #FFFFFF;
  --bg-surface: #FFFFFF;
  --bg-subtle-red: #FDECEC;
  --bg-footer: #1A1A1A;

  /* Typography Palette */
  --text-primary: #1A1A1A;
  --text-heading: #1A1A1A;
  --text-white: #1A1A1A;          /* Alias to maintain compatibility */
  --text-secondary: #555555;
  --text-light: #555555;          /* Alias to maintain compatibility */
  --text-muted: #737373;
  --text-muted-light: #737373;    /* Alias to maintain compatibility */
  --text-dark-gray: #555555;
  --text-muted-gray: #737373;

  /* Accent & Highlight Colors */
  --primary-red: #D62828;
  --brand-red: #D62828;
  --red-hover: #B91F24;
  --red-dark: #B91F24;
  --accent-orange: #E86F30;
  --brand-orange: #E86F30;
  --brand-orange-light: #E86F30;

  /* Borders & Dividers */
  --border-color: #E5E5E5;
  --border-glass: #E5E5E5;
  --border-liquid: #E5E5E5;
  --border-subtle: #E5E5E5;
  --border-focus: rgba(214, 40, 40, 0.45);

  /* Brand Colors (Solid, No Gradients) */
  --gradient-brand: #D62828;
  --gradient-brand-hover: #B91F24;
  --gradient-orange: #D62828;
  --gradient-subtle: #FDECEC;

  /* Typography Tokens */
  --font-display: 'Cormorant Garamond', Garamond, 'Times New Roman', serif;
  --font-functional: 'Montserrat', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(26, 26, 26, 0.04), 0 1px 3px rgba(26, 26, 26, 0.02);
  --shadow-md: 0 10px 24px -4px rgba(26, 26, 26, 0.06), 0 4px 10px -2px rgba(26, 26, 26, 0.03);
  --shadow-lg: 0 20px 42px -8px rgba(26, 26, 26, 0.08), 0 8px 16px -4px rgba(26, 26, 26, 0.04);
  --shadow-red: 0 8px 24px -4px rgba(214, 40, 40, 0.35);
  --shadow-glow: 0 8px 24px rgba(232, 111, 48, 0.16);
  --shadow-glow-red: 0 8px 24px rgba(214, 40, 40, 0.18);

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

  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  color-scheme: light;
  overflow-x: hidden;
}

body {
  font-family: var(--font-functional);
  background-color: var(--bg-primary);
  color: var(--text-secondary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  font-weight: 400;
  width: 100%;
}

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

/* Ambient Atmosphere (Gradients Removed) */
body::before, body::after {
  display: none !important;
}

/* Typography Hierarchy (Fluid Clamps) */
h1, h2, h3, .display-title, .quote-text {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
}

h4, h5, h6 {
  font-family: var(--font-functional);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 4.5rem); }
h2 { font-size: clamp(1.6rem, 3vw + 1rem, 3rem); }
h3 { font-size: clamp(1.15rem, 1.5vw + 0.8rem, 1.6rem); }
h4 { font-size: clamp(1.05rem, 1.2vw, 1.3rem); }

body, p {
  font-size: clamp(1rem, 0.4vw + 0.9rem, 1.15rem);
  line-height: 1.6;
}

p {
  color: var(--text-secondary);
}

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

ul {
  list-style: none;
}

/* Layout Utilities — Centered Container with Fluid Sizing */
.container {
  width: min(100% - 2rem, 1200px);
  margin-inline: auto;
  box-sizing: border-box;
}

@media (min-width: 1440px) {
  .container {
    width: min(100% - 3rem, 1400px);
  }
}

.section {
  padding: clamp(3rem, 8vw, 7rem) 0;
  position: relative;
}

.section-sm {
  padding: clamp(2rem, 5vw, 4rem) 0;
}

.text-center { text-align: center; }

/* Brand Text Highlights (Solid Colors, No Gradients) */
.text-gradient,
.text-orange-grad {
  color: var(--primary-red, #D62828);
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: initial !important;
  display: inline-block;
}

/* Pill Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-full);
  font-family: var(--font-functional);
  font-size: clamp(0.72rem, 1.5vw, 0.8rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--bg-subtle-red);
  border: 1px solid rgba(214, 40, 40, 0.2);
  color: var(--red-dark);
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(214, 40, 40, 0.05);
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-red);
  box-shadow: 0 0 10px var(--primary-red);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Buttons — Fluid with Min 48px Height */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  min-height: 48px;
  box-sizing: border-box;
  border-radius: var(--radius-full);
  font-family: var(--font-functional);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  letter-spacing: 0.01em;
}

@media (max-width: 639px) {
  .btn {
    width: 100%;
  }
}

@media (min-width: 640px) {
  .btn {
    width: auto;
  }
}

.btn:active {
  transform: scale(0.96);
  transition: transform 0.1s ease;
}

.btn svg {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary {
  background: var(--primary-red);
  color: #FFFFFF;
  border: 1px solid rgba(214, 40, 40, 0.3);
  box-shadow: var(--shadow-red);
}

.btn-secondary {
  background: #FFFFFF;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover svg {
    transform: translateX(3px);
  }

  .btn-primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 26px -2px rgba(185, 31, 36, 0.45);
  }

  .btn-secondary:hover {
    background: var(--bg-subtle-red);
    border-color: var(--primary-red);
    color: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(214, 40, 40, 0.12);
  }
}

/* Frameless Clean Card */
.glass-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  transition: all var(--transition-smooth);
  position: relative;
}

.glass-card::before {
  display: none;
}

.glass-card:hover {
  border-color: transparent;
  transform: none;
  box-shadow: none;
}

/* Page Hero */
.page-hero {
  padding: 150px 0 68px;
  text-align: center;
  position: relative;
}

.page-hero-sub {
  max-width: 680px;
  margin: 18px auto 0;
  font-size: 1.15rem;
  color: var(--text-secondary);
  font-family: var(--font-functional);
  font-weight: 400;
}

/* Frameless CTA Section */
.cta-banner {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 56px 20px 20px;
  text-align: center;
  position: relative;
  box-shadow: none;
}

.cta-banner::before {
  display: none;
}

.cta-banner h2 {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 16px;
  color: var(--text-primary);
  position: relative;
  z-index: 1;
}

.cta-banner p {
  max-width: 620px;
  margin: 0 auto 34px;
  font-size: 1.12rem;
  color: var(--text-secondary);
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}

/* Site Footer styles are modularized in footer.css */


/* Toast Message */
.toast-msg {
  position: fixed;
  bottom: 32px;
  right: 32px;
  background: var(--primary-red);
  color: #FFFFFF;
  padding: 15px 26px;
  border-radius: var(--radius-md);
  font-family: var(--font-functional);
  font-weight: 600;
  box-shadow: var(--shadow-red);
  display: none;
  align-items: center;
  gap: 12px;
  z-index: 9999;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUp {
  from { transform: translateY(40px) scale(0.95); opacity: 0; }
  to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Universal Form Controls Foundation */
input, select, textarea, button {
  font-family: inherit;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
input[type="search"],
select,
textarea {
  font-size: 16px !important; /* Prevents iOS auto-zoom on input focus */
  min-height: 48px;
  box-sizing: border-box;
}

/* Footer responsive and hover rules are modularized in footer.css */

/* ==========================================================================
   QUICK CENTER FADE & REVEAL PAGE TRANSITIONS
   Page and its content reveals from center with fade in a short, crisp duration.
   Header remains stable and pinned while page content smoothly reveals from center.
   ========================================================================== */

main, .site-footer {
  transform-origin: center 25vh;
  will-change: opacity, transform;
}

/* Exit: Outgoing page quickly fades into center */
body.page-exit-center main,
body.page-exit-center .site-footer {
  opacity: 0 !important;
  transform: scale(0.98) !important;
  transition: opacity 0.18s cubic-bezier(0.4, 0, 0.2, 1), transform 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  pointer-events: none;
}

/* Entrance: Incoming page reveals from center with quick fade */
body.page-enter-center main,
body.page-enter-center .site-footer {
  animation: pageQuickCenterFade 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes pageQuickCenterFade {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

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

  body.page-exit-center main,
  body.page-exit-center .site-footer {
    transform: none !important;
    opacity: 0 !important;
    transition: opacity 0.1s ease !important;
  }

  body.page-enter-center main,
  body.page-enter-center .site-footer {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}


