/* ============================================================
   [Center Name] — De-Addiction & Rehabilitation Centre
   Static site stylesheet
   Palette: Blue (trust) + Green (healing) — healthcare standard
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Blues (trust) */
  --blue-900: #0b3a5c;
  --blue-800: #0e4f7a;
  --blue-700: #12658c;   /* primary */
  --blue-600: #1a77a3;
  --blue-500: #2b8fbf;
  --blue-100: #e3f0f7;

  /* Greens (healing) */
  --green-700: #147a4e;
  --green-600: #1f9d63;  /* accent */
  --green-500: #27ae72;
  --green-100: #e4f6ec;

  /* Neutrals */
  --ink: #16232e;
  --body: #3c4a56;
  --muted: #6b7885;
  --line: #e4e9ee;
  --bg: #ffffff;
  --bg-alt: #f4f8fb;
  --warn: #c0392b;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 2px 10px rgba(16, 45, 70, .06);
  --shadow: 0 12px 34px rgba(16, 45, 70, .12);
  --gradient: linear-gradient(135deg, var(--blue-700) 0%, var(--green-600) 100%);
  --maxw: 1180px;
  --header-h: 74px;
}

/* ---------- Reset / base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 46px); }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue-700); text-decoration: none; transition: color .2s; }
a:hover { color: var(--green-600); }
h1, h2, h3, h4 { font-family: "Poppins", sans-serif; color: var(--ink); line-height: 1.2; }
ul { list-style: none; }
.container { width: min(var(--maxw), 92%); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 600; font-size: .95rem;
  padding: .8rem 1.5rem; border-radius: 50px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow); }
.btn-outline { border-color: var(--blue-700); color: var(--blue-700); background: transparent; }
.btn-outline:hover { background: var(--blue-700); color: #fff; }
.btn-call { background: var(--green-600); color: #fff; }
.btn-call:hover { background: var(--green-700); color: #fff; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.nav-inner { display: flex; align-items: center; gap: 1rem; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center; width: 42px; height: 42px; flex: 0 0 42px;
  background: var(--gradient); color: #fff; border-radius: 12px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: "Poppins", sans-serif; font-size: 1.05rem; color: var(--blue-800); }
.brand-text small { font-size: .72rem; color: var(--muted); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: .2rem; }
.nav-link {
  display: block; padding: .5rem .72rem; font-size: .9rem; font-weight: 500;
  color: var(--body); border-radius: 8px; position: relative;
}
.nav-link:hover { color: var(--blue-700); background: var(--blue-100); }
.nav-link.active { color: var(--blue-700); }
.nav-link.active::after {
  content: ""; position: absolute; left: .72rem; right: .72rem; bottom: 2px;
  height: 2px; background: var(--gradient); border-radius: 2px;
}
.header-call { padding: .55rem 1rem; font-size: .85rem; }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Ticker ---------- */
.ticker {
  position: sticky; top: var(--header-h); z-index: 55;
  display: flex; align-items: center; gap: 0; overflow: hidden;
  background: var(--blue-900); color: #eaf3f9; font-size: .86rem;
}
.ticker-label {
  flex: 0 0 auto; background: var(--green-600); color: #fff; font-weight: 700;
  font-family: "Poppins", sans-serif; padding: .5rem .9rem; letter-spacing: .04em; font-size: .78rem;
}
.ticker-track { overflow: hidden; white-space: nowrap; flex: 1; }
.ticker-track p { display: inline-block; padding-left: 100%; animation: ticker 32s linear infinite; }
.ticker:hover .ticker-track p { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 3rem; }
.eyebrow {
  display: inline-block; font-family: "Poppins", sans-serif; font-weight: 600;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-600); background: var(--green-100);
  padding: .35rem .85rem; border-radius: 50px; margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: .6rem; }
.section-head p { color: var(--muted); }
.eyebrow + h2 { margin-top: 0; }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 4.5rem 0 5rem;
  background:
    radial-gradient(1100px 500px at 90% -10%, rgba(31, 157, 99, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(18, 101, 140, .10), transparent 55%),
    var(--bg-alt);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; }
.pill {
  display: inline-block; background: #fff; color: var(--blue-700);
  border: 1px solid var(--blue-100); box-shadow: var(--shadow-sm);
  font-weight: 600; font-family: "Poppins", sans-serif; font-size: .82rem;
  padding: .45rem 1rem; border-radius: 50px; margin-bottom: 1.2rem;
}
.hero-copy h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; margin-bottom: 1rem; }
.hero-copy h1 .accent {
  background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: 1.08rem; color: var(--body); max-width: 560px; margin-bottom: 1.8rem; }
.stats { display: flex; gap: 2.2rem; margin-bottom: 2rem; flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; }
.stat-num { font-family: "Poppins", sans-serif; font-weight: 800; font-size: 1.9rem; color: var(--blue-700); }
.stat-lbl { font-size: .85rem; color: var(--muted); }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-side { position: relative; }
.hero-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.helpline-card {
  position: relative; margin-top: -3.5rem; margin-left: auto; width: 92%;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.4rem;
}
.helpline-card h3 { font-size: 1.1rem; margin-bottom: .4rem; }
.helpline-card p { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.helpline-card small { display: block; text-align: center; margin-top: .7rem; color: var(--muted); font-size: .78rem; }

/* ---------- Cards grids ---------- */
.cards { display: grid; gap: 1.5rem; }
.cards-2 { grid-template-columns: repeat(2, 1fr); }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.cards-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 3rem; align-items: center; }
.about-media { position: relative; }
.about-media img { border-radius: var(--radius); box-shadow: var(--shadow); }
.badge-float {
  position: absolute; bottom: 1rem; left: 1rem;
  background: var(--gradient); color: #fff; font-family: "Poppins", sans-serif;
  font-weight: 600; font-size: .8rem; padding: .5rem 1rem; border-radius: 50px;
  box-shadow: var(--shadow-sm);
}
.about-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); margin-bottom: 1rem; }
.about-copy h2 em { color: var(--green-600); font-style: italic; }
.about-copy p { margin-bottom: 1rem; }
.chip-list { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.3rem; }
.chip-list li {
  background: var(--blue-100); color: var(--blue-800); font-weight: 600; font-size: .82rem;
  padding: .45rem .9rem; border-radius: 50px;
}

/* ---------- Feature / person / mini cards ---------- */
.feature-card, .person-card, .mini-card, .service-card, .quote-card, .report-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.7rem; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .2s;
}
.feature-card:hover, .person-card:hover, .mini-card:hover, .service-card:hover, .report-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
}
.feature-icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 14px; margin-bottom: 1rem; color: #fff; }
.accent-blue .feature-icon { background: var(--blue-700); }
.accent-green .feature-icon { background: var(--green-600); }
.feature-card h3, .service-card h3 { font-size: 1.2rem; margin-bottom: .5rem; }

.person-card { text-align: center; }
.avatar {
  width: 74px; height: 74px; border-radius: 50%; margin: 0 auto 1rem; display: grid; place-items: center;
  font-size: 2rem; background: var(--blue-100); border: 3px solid #fff; box-shadow: var(--shadow-sm);
}
.person-card h3 { font-size: 1.15rem; }
.role { display: inline-block; color: var(--green-600); font-weight: 600; font-size: .85rem; margin-bottom: .6rem; }

.mini-card { text-align: center; }
.mini-icon { font-size: 2rem; margin-bottom: .7rem; }
.mini-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.mini-card p { font-size: .9rem; color: var(--muted); }

/* ---------- Addictions ---------- */
.addiction-grid { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; margin-bottom: 3rem; }
.addiction-tag {
  background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green-600);
  font-family: "Poppins", sans-serif; font-weight: 600; color: var(--ink);
  padding: .7rem 1.3rem; border-radius: 10px; box-shadow: var(--shadow-sm);
}
.awareness { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.awareness-col { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; }
.awareness-col h3 { color: var(--warn); margin-bottom: 1rem; }
.tick-list li { position: relative; padding-left: 1.7rem; margin-bottom: .6rem; font-size: .95rem; }
.tick-list li::before {
  content: "!"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  display: grid; place-items: center; border-radius: 50%; font-size: .75rem; font-weight: 700;
  background: #fdecea; color: var(--warn);
}

/* ---------- Diet table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid var(--line); }
.diet-table { width: 100%; border-collapse: collapse; min-width: 640px; background: #fff; }
.diet-table th {
  background: var(--gradient); color: #fff; font-family: "Poppins", sans-serif;
  text-align: left; padding: .95rem 1.1rem; font-size: .9rem;
}
.diet-table td { padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); font-size: .9rem; }
.diet-table tbody tr:nth-child(even) { background: var(--bg-alt); }
.diet-table td:first-child { font-weight: 600; color: var(--blue-800); }
.note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 1.2rem; }

/* ---------- Testimonials ---------- */
.quote-card { display: flex; flex-direction: column; }
.stars { color: #f5b301; letter-spacing: 2px; margin-bottom: .8rem; }
.quote-card p { font-style: italic; color: var(--body); margin-bottom: 1.1rem; }
.quote-card footer { margin-top: auto; }
.quote-card footer strong { display: block; color: var(--ink); font-family: "Poppins", sans-serif; }
.quote-card footer span { font-size: .82rem; color: var(--muted); }

/* ---------- Reports ---------- */
.report-card { display: flex; flex-direction: column; align-items: flex-start; }
.report-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 12px; background: var(--blue-100); color: var(--blue-700); margin-bottom: 1rem; }
.report-card h3 { font-size: 1.05rem; margin-bottom: .3rem; }
.report-meta { font-size: .8rem; color: var(--muted); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.gallery-item { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.gallery-item img { width: 100%; height: 250px; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: linear-gradient(transparent, rgba(11, 58, 92, .88));
  color: #fff; font-family: "Poppins", sans-serif; font-weight: 600; font-size: .92rem;
  padding: 1.6rem 1rem .9rem;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 2.5rem; }
.contact-info, .contact-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: var(--shadow-sm);
}
.contact-info h3, .contact-form-wrap h3 { margin-bottom: 1.3rem; font-size: 1.2rem; }
.info-list li { display: flex; gap: 1rem; margin-bottom: 1.2rem; }
.info-ico { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; background: var(--blue-100); border-radius: 10px; font-size: 1.1rem; }
.info-list strong { color: var(--ink); font-family: "Poppins", sans-serif; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink); margin-bottom: .4rem; }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font: inherit; color: var(--ink); background: var(--bg-alt); transition: border .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus {
  outline: none; border-color: var(--blue-500); background: #fff; box-shadow: 0 0 0 3px rgba(43, 143, 191, .15);
}
.form-note { text-align: center; font-size: .82rem; color: var(--muted); margin-top: .8rem; }

/* ---------- Map ---------- */
.map-wrap { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); border: 1px solid var(--line); line-height: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-900); color: #c8d8e4; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.2fr; gap: 2rem; padding: 3.5rem 0 2.5rem; }
.footer-brand h3 { color: #fff; margin-bottom: .8rem; }
.footer-brand p { font-size: .9rem; margin-bottom: .6rem; }
.footer-badges { color: var(--green-500); font-weight: 600; font-size: .82rem; }
.footer-col h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer-col ul li { margin-bottom: .55rem; }
.footer-col a { color: #c8d8e4; font-size: .9rem; }
.footer-col a:hover { color: var(--green-500); }
.footer-col p { font-size: .9rem; margin-bottom: .55rem; }
.footer-tags { display: flex; flex-wrap: wrap; gap: .45rem; }
.footer-tags span { background: rgba(255, 255, 255, .08); padding: .3rem .7rem; border-radius: 6px; font-size: .78rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 1.3rem 0; }
.footer-bottom p { font-size: .84rem; }
.footer-bottom .muted { color: #7f97a8; margin-top: .2rem; }

/* ---------- Floating action buttons ---------- */
.fab {
  position: fixed; right: 20px; z-index: 70; width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow);
  transition: transform .18s;
}
.fab:hover { transform: scale(1.08); color: #fff; }
.fab-whatsapp { bottom: 88px; background: #25d366; }
.fab-call { bottom: 22px; background: var(--blue-700); animation: pulse 2s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(18, 101, 140, .5); }
  70% { box-shadow: 0 0 0 14px rgba(18, 101, 140, 0); }
  100% { box-shadow: 0 0 0 0 rgba(18, 101, 140, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-media { max-width: 460px; margin-inline: auto; }
  .helpline-card { margin-top: 1.2rem; width: 100%; }
}
@media (max-width: 820px) {
  .header-call { display: none; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h)) 0 auto 0; margin: 0;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: 0; overflow: hidden; transition: max-height .3s ease;
  }
  .main-nav.open { max-height: 80vh; overflow-y: auto; }
  .main-nav ul { flex-direction: column; align-items: stretch; padding: .6rem; gap: .1rem; }
  .nav-link { padding: .85rem 1rem; }
  .nav-link.active::after { display: none; }
  .nav-link.active { background: var(--blue-100); }
}
@media (max-width: 620px) {
  .section { padding: 3.5rem 0; }
  .cards-2, .cards-3, .cards-4, .gallery-grid, .awareness { grid-template-columns: 1fr; }
  .gallery-item img { height: 220px; }
  .stats { gap: 1.4rem; }
}

/* ---------- Accessibility ---------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Logo, photos & Devanagari (added in update) ---------- */
.brand-mark { flex: 0 0 auto; width: auto; height: 48px; background: none; border-radius: 0; }
.brand-logo { height: 48px; width: auto; display: block; }
.brand-fallback { display: none; width: 44px; height: 44px; background: var(--gradient); color: #fff; border-radius: 12px; place-items: center; }
.brand-text small[lang="hi"] { font-family: "Noto Sans Devanagari", "Poppins", sans-serif; font-size: .74rem; }
.motto-hindi { font-family: "Noto Sans Devanagari", "Poppins", sans-serif; color: var(--green-500); font-weight: 600; margin-bottom: .5rem; }
.hero-img { height: 440px; object-fit: cover; }
.about-media img { height: 460px; width: 100%; object-fit: cover; }
.footer-logo { height: 68px; width: auto; background: #fff; padding: 7px 10px; border-radius: 10px; margin-bottom: 1rem; }
@media (max-width: 620px) {
  .hero-img { height: 290px; }
  .about-media img { height: 320px; }
}

/* ---------- Hero image "Say No to Drugs" overlay ---------- */
.hero-figure { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.hero-figure .hero-img { border-radius: 0; box-shadow: none; }
.hero-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 1.2rem; text-align: center;
  background: linear-gradient(180deg, rgba(11, 58, 92, .10) 0%, rgba(11, 58, 92, .28) 55%, rgba(11, 58, 92, .55) 100%);
}
.hero-overlay-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: "Poppins", sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .05em;
  font-size: clamp(1.25rem, 2.6vw, 2rem); line-height: 1.1; color: #fff;
  background: rgba(20, 122, 78, .92); border: 2px solid rgba(255, 255, 255, .75);
  padding: .6rem 1.25rem; border-radius: 14px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .30); text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.no-sign { font-size: 1.15em; }
@media (max-width: 620px) { .hero-overlay-badge { font-size: 1.15rem; padding: .5rem 1rem; } }
