/* ==========================================================
Nav Jyoti Nasha Mukti Kendra — THEME v1.0™
base.css — Color theme updated for empathy, trust & clarity
Purpose: Color palette tuned for visitors seeking addiction
recovery help (family-first, calm, trustworthy).
Version: 1.0.0
Date: 2026-01-04
Author / Developer: Mayank Chawdhari (BOSS294)
Notes:
- White page background retained (per design brief).
- Only color variables updated; the rest of the stylesheet
remains unchanged to preserve layout, motion, and behavior.
- Palette rationale: deep-blue primary (trust), teal/green
secondary (healing & hope), warm saffron-gold accent
(human, culturally resonant warmth).
© Nav Jyoti Nasha Mukti Kendra — All Rights Reserved.
========================================================== */

/* ==========================================================
base.css — OPTIMIZED & ENHANCED
Font: Exo (primary)
Background: #FFF
Buttons: High-Contrast Orange for CTA (Call to Action)
Features: Fluid Typography, Glassmorphism touches, 3D Hovers
========================================================== */

/* ---------------- Google Font ---------------- */
@import url('https://fonts.googleapis.com/css2?family=Exo:wght@300;400;500;600;700;800&display=swap');

/* ---------------- Reset ---------------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none !important;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px; /* base */
}

/* Custom Text Selection Color */
::selection {
  background-color: var(--color-accent);
  color: #ffffff;
}

body {
  font-family: 'Exo', system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main, #0f172a);
  background-color: var(--bg-main, #ffffff);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ---------------- Root Variables ---------------- */
:root {
  /* --- Core Palette --- */
  --color-white: #ffffff;
  --color-light-gray: #f8fafc;   /* Cleaner, cooler white/gray */
  --color-gray: #e2e8f0;         /* Border gray */
  --color-dark-gray: #0f172a;    /* Deep slate text */

  /* --- Brand Colors --- */
  /* Primary: Deep Ocean Blue (Retained for Trust/Medical Authority) */
  --color-primary: #165a7a;
  
  /* Secondary: Teal (Retained for Healing/Nature) */
  --color-secondary: #2a9d8f;

  /* Accent: HIGH VISIBILITY ORANGE (Updated for Action/Warmth) */
  /* Using a vibrant burnt orange/saffron for maximum pop against white */
  --color-accent: #f97316;       
  --color-accent-hover: #ea580c; /* Darker orange for hover states */

  /* --- Mapping --- */
  --bg-main: var(--color-white);
  --bg-soft: var(--color-light-gray);
  --border-light: var(--color-gray);
  --text-main: var(--color-dark-gray);
  --primary: var(--color-primary);
  --secondary: var(--color-secondary);
  --accent: var(--color-accent);

  /* --- Shadows & Depth --- */
  --shadow-1: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-orange: 0 10px 15px -3px rgba(249, 115, 22, 0.4); /* Glow for buttons */
  --shadow-pressed: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* --- Radii --- */
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px; /* More modern, rounder cards */

  /* --- Spacing --- */
  --gutter: 1.5rem;

  /* --- Motion --- */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --fast: 150ms;
  --med: 300ms;
}

/* ---------------- Typography ---------------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.75em;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* FLUID TYPOGRAPHY: Scales automatically from mobile to desktop */
h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p {
  color: #334155; /* Slightly softer than pure black for reading */
  margin-bottom: 1.5rem;
  max-width: 70ch; /* Optimal reading length */
}

/* Highlight Text Utility */
.text-highlight {
  color: var(--accent);
  font-weight: 700;
}

/* ---------------- Links ---------------- */
a {
  color: var(--secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color var(--fast) var(--ease);
}
a:hover,
a:focus {
  color: var(--accent);
  text-decoration: underline;
  outline: none;
}

/* ---------------- Images ---------------- */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-md);
}

/* ---------------- Sections ---------------- */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0; /* Fluid padding */
}

/* ---------------- Card ---------------- */
.card {
  background: var(--bg-soft);
  border: 1px solid var(--color-white);
  border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-1);
  transition: transform var(--med) var(--ease), box-shadow var(--med) var(--ease);
}
.card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-2);
  border-color: rgba(249, 115, 22, 0.2); /* Slight orange tint on border on hover */
}

/* ---------------- Utilities ---------------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 2rem; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------------- Accessibility Focus ---------------- */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ---------------- Button Base ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 50px; /* Pill shape for modern feel */
  font-family: inherit;
  font-size: 1.125rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  letter-spacing: 0.5px;
  transition: all var(--fast) var(--ease);
  will-change: transform, box-shadow;
  -webkit-tap-highlight-color: transparent;
  text-decoration: none !important;
}

/* -------- Solid (Accent Orange - Primary Call to Action) -------- */
.btn-solid {
  background: linear-gradient(145deg, var(--accent), var(--color-accent-hover));
  color: var(--color-white);
  border: none;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.3);
}
.btn-solid:hover {
  background: linear-gradient(145deg, var(--color-accent-hover), var(--accent));
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(249, 115, 22, 0.5);
  color: white;
  text-decoration: none;
}
.btn-solid:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-pressed);
}

/* -------- Bordered (Blue - Secondary Action) -------- */
.btn-bordered {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}
.btn-bordered:hover {
  background: var(--primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-1);
  text-decoration: none;
}
.btn-bordered:active {
  transform: translateY(1px);
}

/* -------- Dotted (Minimal) -------- */
.btn-dotted {
  background: transparent;
  color: var(--text-main);
  border: 2px dotted var(--secondary);
}
.btn-dotted:hover {
  background: rgba(42, 157, 143, 0.1);
  color: var(--secondary);
  transform: translateY(-2px);
}

/* -------- Button Sizes -------- */
.btn-sm { 
  padding: 0.5rem 1rem; 
  font-size: 0.9rem; 
}
.btn-block { 
  width: 100%; 
  display: flex; 
}

/* ---------------- Form Elements (Enhanced) ---------------- */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
  width: 100%;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  background: #fdfdfd;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all var(--fast) var(--ease);
}

/* Orange Focus Ring for High Visibility */
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15); /* Orange glow */
}

/* ---------------- Small Helpers ---------------- */
.kicker {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent); /* Orange kicker for eye-catching labels */
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.5rem;
}

/* ---------------- Print & Motion ---------------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  .btn, .no-print { display: none !important; }
}