/* Samridhy – custom styles layered on Tailwind (CDN). */
:root { --emerald: #0F3D2E; --ink: #0A261D; --terracotta: #C86D51; --amber: #D97706; --alabaster: #FAF9F6; }

html { scroll-padding-top: 90px; }
body { text-rendering: optimizeLegibility; }
::selection { background: #C86D51; color: #fff; }
:focus-visible { outline: 2px solid var(--terracotta); outline-offset: 3px; }

/* ---------- Glass navbar ---------- */
.glass { background: rgba(250, 249, 246, .78); -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px); transition: box-shadow .3s; }
.glass.is-scrolled { box-shadow: 0 8px 30px -12px rgba(10, 38, 29, .25); }
.nav-link { display: inline-flex; align-items: center; gap: .35rem; padding: .6rem .85rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 600; font-size: .92rem; color: #0F3D2E; transition: background .2s, color .2s; }
.nav-link:hover, .group:hover > .nav-link { background: #E7F0EB; }
.nav-link.is-active { color: var(--terracotta); }
.dropdown { position: absolute; left: 0; top: 100%; padding-top: .6rem; opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; z-index: 60; }
.dropdown-wide { left: auto; right: -120px; }
.group:hover > .dropdown, .group:focus-within > .dropdown { opacity: 1; visibility: visible; transform: none; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-accent, .btn-ghost { display: inline-flex; align-items: center; gap: .55rem; padding: .85rem 1.6rem; border-radius: 999px; font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; font-size: .95rem; transition: transform .2s, box-shadow .2s, background .2s; cursor: pointer; border: 0; }
.btn-primary { background: var(--emerald); color: #fff; }
.btn-primary:hover { background: #145040; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(15, 61, 46, .6); }
.btn-accent { background: var(--terracotta); color: #fff; }
.btn-accent:hover { background: #b45d43; transform: translateY(-2px); box-shadow: 0 14px 30px -12px rgba(200, 109, 81, .7); }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .22); }

/* ---------- Typography helpers ---------- */
.eyebrow { font-family: 'Plus Jakarta Sans', sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); margin-bottom: 1rem; }
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 800; letter-spacing: -.02em; color: var(--emerald); line-height: 1.08; font-size: clamp(2rem, 4vw, 3.25rem); }
.prose-p { margin: 1rem 0; line-height: 1.8; font-size: 1.05rem; color: rgba(10, 38, 29, .82); }
.prose-p a { color: var(--terracotta); text-decoration: underline; text-underline-offset: 3px; }
.dropcap > .prose-p:first-of-type::first-letter { font-family: 'Playfair Display', serif; font-style: italic; float: left; font-size: 4.2rem; line-height: .85; padding: .35rem .6rem 0 0; color: var(--terracotta); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 820px); background: var(--ink); color: #fff; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 8s ease-out; }
.hero-slide.is-active img { transform: scale(1); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(10, 38, 29, .92) 0%, rgba(10, 38, 29, .65) 45%, rgba(10, 38, 29, .15) 100%), linear-gradient(0deg, rgba(10, 38, 29, .75), transparent 45%); }
.hero-dot { width: 28px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35); transition: background .3s, width .3s; border: 0; cursor: pointer; }
.hero-dot.is-active { background: var(--terracotta); width: 44px; }
.hero-pattern { background: radial-gradient(1200px 400px at 85% -10%, rgba(217, 119, 6, .22), transparent 60%), radial-gradient(800px 500px at 0% 110%, rgba(200, 109, 81, .18), transparent 60%); }

/* ---------- Cards ---------- */
.card-lift { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.card-lift:hover { transform: translateY(-6px); box-shadow: 0 28px 60px -24px rgba(10, 38, 29, .4); }
.img-zoom { overflow: hidden; }
.img-zoom img { transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.img-zoom:hover img, .group:hover .img-zoom img { transform: scale(1.07); }
.shadow-soft { box-shadow: 0 10px 40px -12px rgba(10, 38, 29, .25); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s ease, transform .9s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-slide, .hero-slide img { transition: none; }
}

/* ---------- Masonry ---------- */
.masonry { columns: 2; column-gap: 1rem; }
@media (min-width: 768px) { .masonry { columns: 3; } }
@media (min-width: 1100px) { .masonry { columns: 4; } }
.masonry > a, .masonry > button { display: block; position: relative; width: 100%; margin-bottom: 1rem; break-inside: avoid; border-radius: 1rem; overflow: hidden; background: #e7ece9; padding: 0; border: 0; cursor: zoom-in; }
.masonry img { width: 100%; height: auto; display: block; transition: transform .8s cubic-bezier(.2, .7, .2, 1); }
.masonry > *:hover img { transform: scale(1.06); }
.masonry > *::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 38, 29, .45), transparent 50%); opacity: 0; transition: opacity .3s; }
.masonry > *:hover::after { opacity: 1; }

/* ---------- Lightbox ---------- */
.lightbox[hidden], .modal[hidden], .toast[hidden], .announce[hidden] { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(5, 20, 15, .94); display: flex; align-items: center; justify-content: center; animation: fade .25s; }
.lb-stage { max-width: 92vw; max-height: 88vh; margin: 0; text-align: center; }
.lb-stage img { max-width: 92vw; max-height: 80vh; border-radius: .75rem; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lb-stage figcaption { color: #cfe3d9; font-size: .9rem; margin-top: .9rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; border: 0; cursor: pointer; transition: background .2s; }
.lb-btn:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 1.25rem; right: 1.25rem; }
.lb-prev { left: 1.25rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1.25rem; top: 50%; transform: translateY(-50%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Drawer ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(10, 38, 29, .55); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer-backdrop { opacity: 1; }
.drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px); background: #fff; transform: translateX(100%); transition: transform .35s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; }
.drawer.is-open .drawer-panel { transform: none; }
details > summary::-webkit-details-marker { display: none; }

/* ---------- Announcement ---------- */
.announce { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80; width: min(340px, calc(100vw - 2.5rem)); background: #fff; border-radius: 1.25rem; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(10, 38, 29, .5); border: 1px solid rgba(15, 61, 46, .08); animation: slideUp .6s cubic-bezier(.2, .7, .2, 1); }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
.announce-close { position: absolute; top: .6rem; right: .6rem; z-index: 2; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--emerald); border: 0; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.modal { position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center; padding: 1.25rem; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(10, 38, 29, .7); }
.modal-box { position: relative; width: min(620px, 100%); background: #fff; border-radius: 1.5rem; overflow: hidden; animation: fade .25s; }

/* ---------- Forms ---------- */
.field { width: 100%; border-radius: .85rem; border: 1.5px solid rgba(15, 61, 46, .15); background: #fff; padding: .8rem 1rem; font-size: .95rem; color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.field:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 4px rgba(15, 61, 46, .1); }
.field-dark { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .18); color: #fff; }
.field-dark::placeholder { color: rgba(255, 255, 255, .4); }
.field-dark:focus { border-color: var(--amber); box-shadow: 0 0 0 4px rgba(217, 119, 6, .2); }
.field.is-invalid { border-color: #dc2626; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 250; background: var(--ink); color: #fff; padding: .9rem 1.4rem; border-radius: 999px; font-weight: 500; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .5); animation: slideUp .4s; max-width: calc(100vw - 2rem); }
.toast.is-error { background: #991b1b; }

/* ---------- Footer ---------- */
.footer-h { font-family: 'Plus Jakarta Sans', sans-serif; font-weight: 700; color: #fff; font-size: 1rem; margin-bottom: 1.25rem; }
.footer-a { transition: color .2s, padding .2s; }
.footer-a:hover { color: #fff; padding-left: .25rem; }

/* ---------- Quote banner ---------- */
.quote-mark { font-family: 'Playfair Display', serif; font-size: 9rem; line-height: .6; color: rgba(200, 109, 81, .35); }

/* ---------- Member cards ---------- */
.member-photo { aspect-ratio: 4 / 5; overflow: hidden; background: #e7ece9; }
.member-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
