/* =====================================================================
   Nalam Old Age Home — Premium senior-friendly stylesheet
   Palette: cream / white / soft sage green / calm navy blue / warm gold
   ===================================================================== */
:root {
  --navy: #1B2A55;
  --navy-2: #26396E;
  --navy-deep: #131E3F;
  --gold: #D4A84B;
  --gold-2: #C2913A;
  --gold-soft: #F6EBD0;
  --cream: #FBF7F0;
  --cream-2: #F4ECDF;
  --sage: #5E8F72;
  --sage-2: #4B7A5E;
  --sage-soft: #E9F2EC;
  --sky-soft: #E8F1F8;
  --text: #27304A;
  --muted: #5A6377;
  --line: #E7DFD2;
  --white: #FFFFFF;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow-sm: 0 4px 14px rgba(27, 42, 85, .06);
  --shadow: 0 18px 45px -18px rgba(27, 42, 85, .22);
  --shadow-lg: 0 30px 70px -25px rgba(27, 42, 85, .35);
  --ff-head: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --ff-body: 'Nunito Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --ff-tamil: 'Noto Sans Tamil', 'Nunito Sans', sans-serif;
  --ease: cubic-bezier(.22, .68, .25, 1);
  --bs-primary: #1B2A55;
  --bs-primary-rgb: 27, 42, 85;
  --bs-link-color: #1B2A55;
  --bs-link-hover-color: #4B7A5E;
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body {
  font-family: var(--ff-body);
  font-size: 18px;
  line-height: 1.75;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, h5, .h1, .h2, .h3, .h4 { font-family: var(--ff-head); color: var(--navy); font-weight: 600; line-height: 1.22; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .25s var(--ease); }
a:hover { color: var(--sage-2); }
img { max-width: 100%; height: auto; }
::selection { background: var(--gold-soft); color: var(--navy); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; left: -999px; top: 10px; z-index: 2000; background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 8px; }
.skip-link:focus { left: 10px; color: #fff; }

/* ---------- Buttons ---------- */
.btn { font-weight: 700; letter-spacing: .01em; padding: .72rem 1.5rem; font-size: 1rem; transition: all .3s var(--ease); display: inline-flex; align-items: center; justify-content: center; gap: .5rem; }
.btn-lg { padding: .95rem 1.9rem; font-size: 1.06rem; }
.btn-pill { border-radius: 999px; }
.btn-primary { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(27, 42, 85, .6); }
.btn-primary:hover, .btn-primary:focus { background: var(--sage-2); border-color: var(--sage-2); color: #fff; transform: translateY(-2px); }
.btn-outline-primary { color: var(--navy); border: 2px solid var(--navy); background: transparent; }
.btn-outline-primary:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--navy); border: 0; }
.btn-light:hover { background: var(--gold-soft); color: var(--navy); transform: translateY(-2px); }
.btn-whatsapp { background: #25D366; color: #fff; border: 0; }
.btn-whatsapp:hover { background: #1DA851; color: #fff; transform: translateY(-2px); }
.link-arrow { color: var(--sage-2); text-decoration: none; font-weight: 700; padding-left: 0; }
.link-arrow:hover { color: var(--navy); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-deep); color: rgba(255,255,255,.85); font-size: .88rem; padding: .45rem 0; white-space: nowrap; }
.topbar a { color: rgba(255,255,255,.9); text-decoration: none; margin-left: 1.4rem; }
.topbar a:hover { color: var(--gold); }
.topbar i { color: var(--gold); margin-right: .3rem; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: all .3s var(--ease); }
.site-header.scrolled { box-shadow: 0 8px 30px -12px rgba(27,42,85,.18); border-bottom-color: var(--line); }
.navbar { padding: .8rem 0; transition: padding .3s var(--ease); }
.site-header.scrolled .navbar { padding: .45rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.navbar-brand img { width: 58px; height: 58px; transition: all .3s var(--ease); }
.site-header.scrolled .navbar-brand img { width: 48px; height: 48px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-family: var(--ff-head); font-weight: 700; color: var(--navy); font-size: 1.3rem; }
.brand-sub { font-family: var(--ff-tamil); font-size: .82rem; color: var(--sage-2); font-weight: 700; }
.navbar-nav .nav-link { font-weight: 700; color: var(--text); padding: .5rem .95rem !important; position: relative; font-size: 1.02rem; }
.navbar-nav .nav-link::after { content: ''; position: absolute; left: .95rem; right: .95rem; bottom: .25rem; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { color: var(--navy); }
.navbar-nav .nav-link:hover::after, .navbar-nav .nav-link.active::after { transform: scaleX(1); }
.navbar-toggler { border: 0; font-size: 2rem; color: var(--navy); padding: .2rem .4rem; }
.navbar-toggler:focus { box-shadow: none; }
.small-contact a { display: block; padding: .5rem 0; text-decoration: none; font-weight: 700; }
.small-contact i { color: var(--sage); margin-right: .5rem; }
@media (max-width: 991.98px) {
  .offcanvas { background: var(--cream); }
  .navbar-nav .nav-link { font-size: 1.2rem; padding: .8rem 0 !important; border-bottom: 1px solid var(--line); }
  .navbar-nav .nav-link::after { display: none; }
  .navbar-nav .nav-link.active { color: var(--sage-2); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-cream { background: var(--cream); }
.section-green-soft { background: linear-gradient(180deg, var(--sage-soft), #F5F9F6); }
.section-navy { background: radial-gradient(circle at 15% 20%, #2A3F7A 0, var(--navy) 45%, var(--navy-deep) 100%); color: rgba(255,255,255,.85); overflow: hidden; }
.section-navy::before { content: ''; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 60px solid rgba(212,168,75,.08); }
.section-head { max-width: 760px; margin: 0 auto 3.2rem; }
.section-head.d-md-flex { max-width: none; }
.section-eyebrow { display: inline-flex; align-items: center; gap: .5rem; text-transform: uppercase; letter-spacing: .14em; font-size: .82rem; font-weight: 800; color: var(--sage-2); margin-bottom: .9rem; }
.section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.text-center .section-eyebrow::after { content: ''; width: 28px; height: 2px; background: var(--gold); display: inline-block; }
.section-eyebrow.light { color: var(--gold); }
.section-title { font-size: clamp(2rem, 3.4vw, 2.85rem); margin-bottom: 1.1rem; }
.section-lead { font-size: 1.12rem; color: var(--muted); margin: 0 auto; }
.text-white-75 { color: rgba(255,255,255,.78); }
.prose p { margin-bottom: 1.05rem; color: var(--text); }
.prose p:last-child { margin-bottom: 0; }
.check-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.check-list li { position: relative; padding-left: 2.1rem; margin-bottom: .75rem; }
.check-list li::before { content: '\F26A'; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .05rem; color: var(--sage); font-size: 1.25rem; }
.small-note { font-size: .92rem; color: var(--muted); }
.rounded-img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; max-height: 380px; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  * { animation: none !important; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: linear-gradient(135deg, var(--cream) 0%, #FFFDF8 45%, var(--sage-soft) 100%); overflow: hidden; padding: 60px 0 120px; }
.hero-shape { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-shape-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(212,168,75,.20), transparent 70%); top: -160px; left: -160px; }
.hero-shape-2 { width: 640px; height: 640px; background: radial-gradient(circle, rgba(94,143,114,.18), transparent 70%); bottom: -260px; right: -200px; }
.hero-row { min-height: 600px; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); color: var(--sage-2); padding: .45rem 1.1rem; border-radius: 999px; font-weight: 800; font-size: .88rem; letter-spacing: .04em; box-shadow: var(--shadow-sm); }
.eyebrow i { color: #D9534F; }
.hero-title { font-size: clamp(2.5rem, 5vw, 4rem); line-height: 1.1; margin: 1.3rem 0 1.2rem; font-weight: 700; }
.hero-sub { font-size: 1.2rem; color: var(--muted); max-width: 540px; margin-bottom: 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.4rem; margin-top: 2.2rem; font-weight: 700; color: var(--navy); font-size: .98rem; }
.hero-trust i { color: var(--sage); margin-right: .35rem; }
.hero-visual { position: relative; max-width: 520px; margin: 0 auto; padding: 20px 30px; }
.hero-frame { border-radius: 260px 260px 32px 32px; overflow: hidden; box-shadow: var(--shadow-lg); border: 10px solid #fff; aspect-ratio: 4 / 5; background: var(--cream-2); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 7s linear; }
.carousel-item.active .hero-frame img { transform: scale(1.1); }
.hero-badge { position: absolute; background: #fff; border-radius: 18px; padding: .85rem 1.1rem; display: flex; align-items: center; gap: .8rem; box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.hero-badge strong { display: block; color: var(--navy); font-size: 1.05rem; line-height: 1.2; font-family: var(--ff-head); }
.hero-badge span { font-size: .82rem; color: var(--muted); font-weight: 700; }
.hero-badge > i { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); font-size: 1.4rem; }
.hero-badge-1 { left: -10px; top: 18%; }
.hero-badge-2 { right: -10px; bottom: 12%; max-width: 270px; animation-delay: -3s; }
.hero-badge-2 strong { font-size: .92rem; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hero-controls { position: relative; display: flex; align-items: center; gap: 1rem; z-index: 3; margin-top: 2.2rem; }
.hero-controls .carousel-indicators { position: static; margin: 0; }
.hero-controls .carousel-indicators [data-bs-target] { width: 12px; height: 12px; border-radius: 50%; background: var(--navy); opacity: .25; border: 0; margin: 0 5px; transition: all .3s; }
.hero-controls .carousel-indicators .active { opacity: 1; width: 34px; border-radius: 6px; background: var(--gold); }
.hero-ctrl { width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); font-size: 1.2rem; transition: all .3s; }
.hero-ctrl:hover { background: var(--navy); color: #fff; }
.carousel-fade .carousel-item { transition-duration: .9s; }

/* ---------- Stats ---------- */
.stats-strip { margin-top: -70px; position: relative; z-index: 4; }
.stats-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); display: grid; grid-template-columns: repeat(4, 1fr); padding: 2rem 1rem; border-bottom: 4px solid var(--gold); }
.stat { text-align: center; padding: .5rem 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--ff-head); font-size: 2.3rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-weight: 700; font-size: .95rem; }
@media (max-width: 767.98px) {
  .stats-card { grid-template-columns: repeat(2, 1fr); row-gap: 1.2rem; }
  .stat:nth-child(2) { border-right: 0; }
}

/* ---------- Image compositions ---------- */
.img-stack { position: relative; padding: 0 60px 60px 0; }
.img-stack.single { padding: 0; }
.img-stack .img-main { border-radius: var(--radius); box-shadow: var(--shadow-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.img-stack .img-accent { position: absolute; right: 0; bottom: 0; width: 55%; border-radius: var(--radius-sm); border: 8px solid #fff; box-shadow: var(--shadow); aspect-ratio: 4 / 3; object-fit: cover; }
.img-tag { position: absolute; left: -14px; top: 30px; background: var(--gold); color: var(--navy); font-weight: 800; padding: .6rem 1.2rem; border-radius: 999px; box-shadow: var(--shadow); }
.img-tag i { color: #B33A3A; }
.photo-duo { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; align-items: end; }
.photo-duo img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; object-fit: cover; aspect-ratio: 3 / 4; }
.photo-duo img:nth-child(2) { aspect-ratio: 3 / 4.2; transform: translateY(-40px); }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.5rem 0 0; }
.pill-list li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .45rem 1rem; font-weight: 700; font-size: .95rem; color: var(--navy); }
.pill-list i { color: var(--sage); }

/* ---------- Cards ---------- */
.service-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2.2rem 2rem; text-decoration: none; color: var(--text); transition: all .4s var(--ease); position: relative; overflow: hidden; }
.service-card::before { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: linear-gradient(90deg, var(--sage), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow); color: var(--text); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card h3 { font-size: 1.4rem; margin: 1.2rem 0 .6rem; }
.service-card p { color: var(--muted); margin-bottom: 1rem; }
.service-icon { width: 66px; height: 66px; border-radius: 20px; display: inline-grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); font-size: 1.9rem; transition: all .4s var(--ease); }
.service-icon.sm { width: 48px; height: 48px; border-radius: 14px; font-size: 1.35rem; vertical-align: middle; margin-right: .4rem; }
.service-card:hover .service-icon { background: var(--navy); color: var(--gold); transform: rotate(-6deg); }
.card-link { font-weight: 800; color: var(--sage-2); font-size: .98rem; }
.card-link i { transition: transform .3s; display: inline-block; }
.service-card:hover .card-link i, .info-card:hover .card-link i { transform: translateX(5px); }

.why-img { border-radius: var(--radius); margin-top: 1.5rem; width: 100%; max-height: 300px; object-fit: cover; border: 6px solid rgba(255,255,255,.08); }
.why-card { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 1.8rem; height: 100%; transition: all .35s var(--ease); }
.why-card:hover { background: rgba(255,255,255,.1); transform: translateY(-5px); }
.why-card h3 { color: #fff; font-size: 1.25rem; margin: 1rem 0 .5rem; }
.why-card p { color: rgba(255,255,255,.75); margin: 0; font-size: 1rem; }
.why-icon { width: 54px; height: 54px; border-radius: 16px; background: var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 1.5rem; }

.activity-card { background: #fff; border-radius: var(--radius); padding: 1.8rem; height: 100%; box-shadow: var(--shadow-sm); transition: all .35s var(--ease); border: 1px solid rgba(94,143,114,.12); }
.activity-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.activity-card > i { font-size: 2rem; color: var(--gold-2); display: inline-block; width: 64px; height: 64px; line-height: 64px; text-align: center; background: var(--gold-soft); border-radius: 50%; }
.activity-card h3 { font-size: 1.22rem; margin: 1rem 0 .45rem; }
.activity-card p { color: var(--muted); margin: 0; font-size: 1rem; }
.activity-img { width: 100%; height: 170px; object-fit: cover; border-radius: var(--radius-sm); }

.mini-schedule { background: var(--navy); color: #fff; border-radius: var(--radius); padding: 2.2rem; height: 100%; box-shadow: var(--shadow-lg); }
.mini-schedule h3 { color: #fff; font-size: 1.4rem; margin-bottom: 1.2rem; }
.mini-schedule h3 i { color: var(--gold); }
.mini-schedule ul { list-style: none; padding: 0; margin: 0 0 1.6rem; }
.mini-schedule li { display: flex; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed rgba(255,255,255,.18); }
.mini-schedule .time { color: var(--gold); font-weight: 800; min-width: 92px; }
.mini-schedule .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.mini-schedule .btn-primary:hover { background: #fff; border-color: #fff; color: var(--navy); }

/* ---------- Gallery preview ---------- */
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 1rem; }
.gp-item { position: relative; overflow: hidden; border-radius: var(--radius-sm); display: block; }
.gp-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gp-item:hover img { transform: scale(1.08); }
.gp-1 { grid-column: span 2; grid-row: span 2; }
.gp-4 { grid-row: span 2; }
.gp-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(27,42,85,.65)); display: flex; align-items: flex-end; justify-content: flex-end; padding: 1rem; color: #fff; opacity: 0; transition: opacity .4s; font-size: 1.3rem; }
.gp-item:hover .gp-overlay, .gp-item:focus .gp-overlay { opacity: 1; }
@media (max-width: 767.98px) {
  .gallery-preview { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gp-1 { grid-column: span 2; }
  .gp-4 { grid-row: span 1; }
}

/* ---------- Testimonials ---------- */
.testimonial-carousel { max-width: 860px; margin: 0 auto; }
.testimonial { background: #fff; border-radius: var(--radius); padding: 3rem 3.2rem 2.5rem; box-shadow: var(--shadow); text-align: center; margin: 0 .5rem; position: relative; }
.quote-mark { font-size: 4rem; color: var(--gold-soft); position: absolute; top: .4rem; left: 1.6rem; line-height: 1; }
.stars { color: var(--gold); margin-bottom: 1rem; font-size: 1.1rem; letter-spacing: .1em; }
.testimonial blockquote p { font-family: var(--ff-head); font-size: 1.35rem; font-style: italic; color: var(--navy); line-height: 1.6; }
.testimonial figcaption { display: inline-flex; align-items: center; gap: .9rem; text-align: left; margin-top: 1rem; }
.testimonial figcaption img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; }
.testimonial figcaption strong { display: block; color: var(--navy); }
.testimonial figcaption small { color: var(--muted); font-weight: 700; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--sage-soft); color: var(--sage-2); display: inline-grid; place-items: center; font-weight: 800; font-size: 1.15rem; }
.avatar-lg { width: 120px; height: 120px; font-size: 3rem; background: linear-gradient(135deg, var(--sage-soft), var(--gold-soft)); }
.testimonial-nav { display: flex; justify-content: center; gap: .8rem; margin-top: 1.8rem; }
.testimonial-nav button { width: 50px; height: 50px; border-radius: 50%; border: 2px solid var(--navy); background: transparent; color: var(--navy); transition: all .3s; }
.testimonial-nav button:hover { background: var(--navy); color: #fff; }

/* ---------- CTA ---------- */
.cta-band { padding: 0 0 20px; position: relative; z-index: 2; }
.cta-inner { background: linear-gradient(120deg, var(--sage-2), var(--sage) 50%, #79A88A); color: #fff; border-radius: 28px; padding: 3rem 3.5rem; display: flex; align-items: center; justify-content: space-between; gap: 2rem; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.cta-inner::after { content: ''; position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 50px solid rgba(255,255,255,.08); right: -90px; top: -120px; }
.cta-inner h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: .5rem; }
.cta-inner p { margin: 0; color: rgba(255,255,255,.92); max-width: 620px; }
.cta-actions { display: flex; gap: .8rem; flex-wrap: wrap; position: relative; z-index: 1; flex-shrink: 0; }
@media (max-width: 991.98px) { .cta-inner { flex-direction: column; text-align: center; padding: 2.5rem 1.6rem; } .cta-actions { justify-content: center; } }

/* ---------- Contact / forms ---------- */
.contact-tiles { display: grid; gap: 1rem; margin-top: 1.8rem; }
.contact-tile { display: flex; gap: 1rem; align-items: flex-start; background: var(--cream); border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; text-decoration: none; color: var(--navy); font-weight: 700; transition: all .3s var(--ease); border: 1px solid transparent; }
.contact-tile:hover { background: #fff; border-color: var(--line); box-shadow: var(--shadow-sm); transform: translateX(6px); color: var(--navy); }
.contact-tile i { width: 48px; height: 48px; flex-shrink: 0; border-radius: 14px; background: var(--navy); color: var(--gold); display: grid; place-items: center; font-size: 1.25rem; }
.contact-tile .bi-whatsapp { background: #25D366; color: #fff; }
.contact-tile small { display: block; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; }
.form-card { background: #fff; border-radius: var(--radius); padding: 2.6rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.form-card-title { font-size: 1.7rem; margin-bottom: 1.4rem; }
.form-label { font-weight: 800; color: var(--navy); font-size: .98rem; margin-bottom: .35rem; }
.form-control, .form-select { border-radius: 12px; border: 1.5px solid #DCD3C4; padding: .8rem 1rem; font-size: 1.05rem; background-color: #FFFDF9; transition: all .25s; }
.form-control:focus, .form-select:focus { border-color: var(--sage); box-shadow: 0 0 0 .25rem rgba(94,143,114,.18); background-color: #fff; }
.req { color: #C0392B; }
.opt { color: var(--muted); font-weight: 600; font-size: .85rem; }
.form-note { color: var(--muted); font-size: .92rem; }
.form-note i { color: var(--sage); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.was-validated .form-control:valid, .was-validated .form-select:valid { border-color: #DCD3C4; background-image: none; padding-right: 1rem; }
.invalid-feedback { font-weight: 700; font-size: .92rem; }
.form-alert .alert { border-radius: 12px; font-weight: 700; }

.info-card { display: block; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 2rem 1.7rem; text-decoration: none; color: var(--text); transition: all .35s var(--ease); }
a.info-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); color: var(--text); }
.info-card > i { font-size: 1.6rem; width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--sage-soft); color: var(--sage-2); margin-bottom: 1rem; }
.info-card-wa > i { background: #25D366; color: #fff; }
.info-card h2 { font-size: 1.3rem; margin-bottom: .5rem; }
.info-card p { margin-bottom: .6rem; color: var(--muted); }
.info-card p a { font-weight: 800; text-decoration: none; font-size: 1.1rem; }
.visit-card { background: var(--navy); color: rgba(255,255,255,.88); padding: 2.2rem; border-radius: var(--radius); box-shadow: var(--shadow); }
.visit-card h2 { color: #fff; }
.visit-card h2 i { color: var(--gold); }
.visit-card .check-list li::before { color: var(--gold); }
.visit-card .btn-primary { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.visit-card .btn-primary:hover { background: #fff; border-color: #fff; }
.map-card { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.map-card iframe { width: 100%; height: 320px; border: 0; display: block; }
.map-link { display: block; padding: 1rem 1.4rem; font-weight: 800; text-decoration: none; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: 110px 0 100px; color: #fff; overflow: hidden; background: var(--navy); }
.page-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center; transform: scale(1.06); animation: heroZoom 18s ease-out forwards; }
.page-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(19,30,63,.92) 0%, rgba(27,42,85,.78) 45%, rgba(75,122,94,.45) 100%); }
.page-hero .container { z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(2.3rem, 4.5vw, 3.5rem); margin-bottom: .8rem; }
.page-hero .lead { color: rgba(255,255,255,.88); max-width: 640px; font-size: 1.2rem; margin: 0; }
.page-hero .breadcrumb { margin-bottom: 1rem; font-weight: 700; }
.page-hero .breadcrumb a { color: var(--gold); text-decoration: none; }
.page-hero .breadcrumb-item.active, .page-hero .breadcrumb-item + .breadcrumb-item::before { color: rgba(255,255,255,.8); }
@keyframes heroZoom { to { transform: scale(1); } }

/* ---------- About ---------- */
.trust-card { display: flex; gap: 1rem; align-items: center; background: var(--cream); border-radius: var(--radius-sm); padding: 1rem 1.3rem; border-left: 4px solid var(--gold); }
.trust-card strong { display: block; color: var(--navy); font-family: var(--ff-head); font-size: 1.15rem; }
.trust-card span { color: var(--muted); font-weight: 700; font-size: .95rem; }
.vm-card { background: #fff; border-radius: var(--radius); padding: 2.6rem; height: 100%; box-shadow: var(--shadow-sm); border-top: 5px solid var(--navy); transition: all .35s var(--ease); }
.vm-card:hover { box-shadow: var(--shadow); transform: translateY(-5px); }
.vm-card-green { border-top-color: var(--sage); }
.vm-icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--gold-soft); color: var(--gold-2); font-size: 1.8rem; margin-bottom: 1.2rem; }
.vm-card h2 { font-size: 1.8rem; }
.vm-card .prose p { font-size: 1.1rem; }
.team-card { background: #fff; border-radius: var(--radius); padding: 2rem 1.5rem; text-align: center; height: 100%; box-shadow: var(--shadow-sm); transition: all .35s var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.team-photo { width: 130px; height: 130px; margin: 0 auto 1.2rem; border-radius: 50%; padding: 5px; background: linear-gradient(135deg, var(--gold), var(--sage)); }
.team-photo img, .team-photo .avatar { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 4px solid #fff; }
.team-photo .avatar { color: var(--sage-2); }
.team-card h3 { font-size: 1.25rem; margin-bottom: .2rem; }
.team-role { display: block; color: var(--sage-2); font-weight: 800; font-size: .92rem; margin-bottom: .8rem; }
.team-card p { color: var(--muted); font-size: .98rem; margin: 0; }
.promise-card { text-align: center; padding: 2rem 1.4rem; border-radius: var(--radius); background: var(--cream); height: 100%; }
.promise-card i { font-size: 2.2rem; color: var(--sage-2); }
.promise-card h3 { font-size: 1.2rem; margin: .8rem 0 .5rem; }
.promise-card p { color: var(--muted); font-size: 1rem; margin: 0; }

/* ---------- Facilities page ---------- */
.chip-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.chip-nav a { background: var(--cream); border: 1px solid var(--line); border-radius: 999px; padding: .5rem 1.1rem; font-weight: 700; text-decoration: none; font-size: .95rem; transition: all .3s; }
.chip-nav a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.chip-nav i { color: var(--sage); }
.chip-nav a:hover i { color: var(--gold); }
.facility-row { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; padding: 3rem 0; border-bottom: 1px solid var(--line); }
.facility-row:last-child { border-bottom: 0; }
.facility-row.reverse .facility-media { order: 2; }
.facility-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.facility-art { aspect-ratio: 4 / 3; border-radius: var(--radius); background: linear-gradient(135deg, var(--sage-soft), var(--cream) 55%, var(--gold-soft)); display: grid; place-items: center; position: relative; overflow: hidden; }
.facility-art::before, .facility-art::after { content: ''; position: absolute; border-radius: 50%; border: 2px dashed rgba(94,143,114,.25); }
.facility-art::before { width: 70%; aspect-ratio: 1; }
.facility-art::after { width: 45%; aspect-ratio: 1; border-color: rgba(212,168,75,.35); }
.facility-art i { font-size: 5.5rem; color: var(--navy); position: relative; z-index: 1; }
.facility-num { font-family: var(--ff-head); font-size: 3.6rem; color: var(--gold-soft); line-height: 1; display: block; font-weight: 700; }
.facility-body h2 { font-size: clamp(1.7rem, 2.6vw, 2.2rem); margin: .3rem 0 .8rem; }
.facility-lead { font-size: 1.15rem; color: var(--sage-2); font-weight: 700; }
@media (max-width: 991.98px) { .facility-row { grid-template-columns: 1fr; gap: 1.8rem; } .facility-row.reverse .facility-media { order: 0; } }

/* ---------- Daily life ---------- */
.intro-sticky { top: 120px; }
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--gold), var(--sage)); }
.timeline li { display: flex; gap: 1.4rem; margin-bottom: 1.2rem; position: relative; }
.tl-icon { width: 56px; height: 56px; border-radius: 50%; background: #fff; border: 2px solid var(--gold); color: var(--navy); display: grid; place-items: center; font-size: 1.35rem; flex-shrink: 0; z-index: 1; box-shadow: 0 0 0 6px #fff; }
.tl-card { background: var(--cream); border-radius: var(--radius-sm); padding: 1.1rem 1.5rem; flex: 1; transition: all .3s var(--ease); }
.timeline li:hover .tl-card { background: #fff; box-shadow: var(--shadow); }
.timeline li:hover .tl-icon { background: var(--navy); color: var(--gold); }
.tl-time { font-weight: 800; color: var(--sage-2); font-size: .95rem; }
.tl-card h3 { font-size: 1.2rem; margin: .15rem 0 .3rem; }
.tl-card p { margin: 0; color: var(--muted); font-size: 1rem; }
.activity-card.tall { text-align: center; }

/* ---------- Gallery page ---------- */
.gallery-tabs .nav-link { border-radius: 999px; font-weight: 800; color: var(--navy); padding: .7rem 1.6rem; margin: 0 .3rem; border: 2px solid var(--line); background: #fff; }
.gallery-tabs .nav-link.active { background: var(--navy); color: #fff; border-color: var(--navy); }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-bottom: 2rem; }
.filter-btn { border: 0; background: var(--cream); color: var(--navy); font-weight: 800; padding: .5rem 1.2rem; border-radius: 999px; transition: all .3s; }
.filter-btn:hover { background: var(--gold-soft); }
.filter-btn.active { background: var(--sage); color: #fff; }
.gallery-grid { columns: 3 280px; column-gap: 1rem; }
.gallery-item { display: block; break-inside: avoid; margin-bottom: 1rem; position: relative; border-radius: var(--radius-sm); overflow: hidden; transition: opacity .4s, transform .4s; }
.gallery-item img { width: 100%; display: block; transition: transform .7s var(--ease); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1rem .9rem; color: #fff; font-weight: 700; background: linear-gradient(transparent, rgba(19,30,63,.85)); transform: translateY(100%); transition: transform .4s var(--ease); font-size: .98rem; }
.gallery-item:hover .gallery-caption, .gallery-item:focus .gallery-caption { transform: none; }
.gallery-item.hide { display: none; }
.video-card h3 { font-size: 1.15rem; margin-top: .8rem; }
.video-thumb { position: relative; display: block; width: 100%; border: 0; padding: 0; border-radius: var(--radius-sm); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: all .4s; }
.video-thumb:hover img { opacity: 1; transform: scale(1.04); }
.video-thumb .play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(255,255,255,.95); color: var(--navy); display: grid; place-items: center; font-size: 2.2rem; box-shadow: 0 0 0 10px rgba(255,255,255,.25); }
.video-thumb iframe { width: 100%; height: 100%; border: 0; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state > i { font-size: 3rem; color: var(--sage); display: block; margin-bottom: 1rem; }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(13,20,42,.94); display: flex; align-items: center; justify-content: center; padding: 2rem; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lb-figure { margin: 0; max-width: 92vw; max-height: 86vh; text-align: center; }
.lb-figure img { max-width: 92vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: zoomIn .35s var(--ease); }
.lb-figure figcaption { color: #fff; margin-top: 1rem; font-weight: 700; font-size: 1.05rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 56px; height: 56px; border-radius: 50%; font-size: 1.5rem; transition: background .3s; }
.lightbox button:hover { background: var(--gold); color: var(--navy); }
.lb-close { top: 1.2rem; right: 1.2rem; }
.lb-prev { left: 1.2rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.2rem; top: 50%; transform: translateY(-50%); }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.92); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: rgba(255,255,255,.75); padding: 90px 0 0; margin-top: 80px; position: relative; font-size: 1rem; }
.footer-wave { position: absolute; top: -40px; left: 0; right: 0; height: 41px; background: var(--navy-deep); clip-path: ellipse(60% 100% at 50% 100%); }
.footer-brand { display: flex; align-items: center; gap: 1rem; }
.footer-title { color: #fff; font-size: 1.4rem; margin: 0; }
.footer-tamil { font-family: var(--ff-tamil); color: var(--gold); margin: 0; font-weight: 700; }
.footer-badge { color: var(--gold); font-weight: 700; font-size: .92rem; }
.footer-heading { color: #fff; font-size: 1.2rem; margin-bottom: 1.2rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: .55rem; }
.footer-links a, .footer-contact a { color: rgba(255,255,255,.78); text-decoration: none; }
.footer-links a:hover, .footer-contact a:hover { color: var(--gold); }
.footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-contact li { display: flex; gap: .9rem; margin-bottom: 1rem; }
.footer-contact i { color: var(--gold); margin-top: .2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1rem; }
.footer-social a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); color: #fff; text-decoration: none; transition: all .3s; }
.footer-social a:hover { background: var(--gold); color: var(--navy); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 3.5rem; padding: 1.4rem 0; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; font-size: .92rem; }
.footer-bottom p { margin: 0; }
.footer-bottom a { color: rgba(255,255,255,.75); }

/* ---------- Floating buttons ---------- */
.floating-actions { position: fixed; right: 18px; bottom: 18px; z-index: 1040; display: flex; flex-direction: column; gap: .7rem; }
.fab { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 1.55rem; text-decoration: none; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4); transition: transform .3s var(--ease); border: 0; }
.fab:hover { transform: scale(1.1); color: #fff; }
.fab-whatsapp { background: #25D366; animation: pulse 2.6s infinite; }
.fab-call { background: var(--navy); }
.fab-top { background: var(--gold); color: var(--navy); opacity: 0; pointer-events: none; transform: translateY(10px); }
.fab-top.show { opacity: 1; pointer-events: auto; transform: none; }
.fab-top:hover { color: var(--navy); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.55); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- 404 ---------- */
.nf-code { font-family: var(--ff-head); font-size: 8rem; font-weight: 700; line-height: 1; background: linear-gradient(135deg, var(--gold), var(--sage)); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .section { padding: 72px 0; }
  .hero { padding: 30px 0 110px; }
  .hero-row { min-height: 0; }
  .hero-copy { text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-trust { justify-content: center; }
  .hero-controls { justify-content: center; }
  .img-stack { padding: 0 40px 40px 0; }
  .photo-duo img:nth-child(2) { transform: none; }
  .form-card { padding: 1.8rem; }
}
@media (max-width: 575.98px) {
  body { font-size: 17px; }
  .brand-name { font-size: 1.08rem; }
  .navbar-brand img { width: 48px; height: 48px; }
  .hero-visual { padding: 10px; }
  .hero-badge { padding: .6rem .8rem; }
  .hero-badge-1 { left: -4px; }
  .hero-badge-2 { right: -4px; max-width: 220px; }
  .testimonial { padding: 2.4rem 1.4rem 2rem; }
  .testimonial blockquote p { font-size: 1.15rem; }
  .floating-actions { right: 12px; bottom: 12px; }
  .fab { width: 52px; height: 52px; font-size: 1.35rem; }
  .lightbox { padding: .5rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
}
