/* ==========================================================
   Chaitanya IRCA – torn-parchment theme (matches chaitanyairca.org)
   ========================================================== */
:root {
    --brown-900: #3d2410;
    --brown-800: #5a3517;
    --brown: #7c4921;
    --brown-500: #a86f35;
    --gold: #ffb700;
    --gold-soft: #f7dc8c;
    --cream: #fff4d6;
    --page-bg: #f6e3a9;
    --ink: #7c4921;
    --ink-dark: #5a3517;
    --card: rgba(255, 248, 225, .55);
    --card-border: rgba(124, 73, 33, .22);
    --radius: 12px;
    --shadow: 0 10px 26px rgba(61, 36, 16, .18);
    --font-body: "Open Sans", "Mukta", sans-serif;
    --font-script: "Courgette", "Tiro Devanagari Marathi", cursive;
    --font-head: "Courgette", "Tiro Devanagari Marathi", serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--ink);
    background: var(--page-bg);
    overflow-x: hidden;
}
.lang-mr { font-family: "Mukta", "Open Sans", sans-serif; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brown); }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--gold); color: #000; padding: 8px 14px; z-index: 3000; }
.skip-link:focus { left: 12px; }

/* ---------- Torn parchment page (built from 3 slices of the original artwork) ---------- */
.paper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    isolation: isolate;
}
.paper-bg { position: absolute; inset: 0; z-index: -1; container-type: inline-size; pointer-events: none; }
.paper-bg i { position: absolute; left: 0; right: 0; display: block; }
/* Top and bottom slices fade into the repeating middle strip so no seam shows */
.pb-top {
    top: 0; aspect-ratio: 1200 / 700; z-index: 1;
    background: url("../images/paper-top.webp") top center / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(#000 75%, transparent);
    mask-image: linear-gradient(#000 75%, transparent);
}
.pb-bottom {
    bottom: 0; aspect-ratio: 1200 / 300; z-index: 1;
    background: url("../images/paper-bottom.webp") bottom center / 100% auto no-repeat;
    -webkit-mask-image: linear-gradient(transparent, #000 35%);
    mask-image: linear-gradient(transparent, #000 35%);
}
.pb-mid {
    top: calc(100cqw * 700 / 1200 * .75);
    bottom: calc(100cqw * 300 / 1200 * .65);
    background: url("../images/paper-mid.webp") top center / 100% auto repeat-y;
}
main { padding: 0 clamp(20px, 6%, 70px); }

/* ---------- Header (sits on the dark top of the parchment) ---------- */
.site-header { padding: 10px clamp(20px, 6%, 70px) 0; }
.brand-row { display: flex; justify-content: center; }
.brand {
    display: block;
    background: #fff;
    padding: 6px 18px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
    transition: transform .25s ease;
}
.brand:hover { transform: translateY(-2px); }
.brand img { width: min(585px, 70vw); height: auto; }

.nav-row {
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, .28);
    border-bottom: 1px solid rgba(255, 255, 255, .28);
    display: flex;
    justify-content: center;
}
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; }
.main-nav a {
    display: flex; align-items: center; gap: 6px;
    height: 50px;
    padding: 0 20px;
    color: var(--cream);
    text-decoration: none;
    font-family: var(--font-script);
    font-size: 18px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
    position: relative;
    transition: color .2s ease;
}
.main-nav a::after {
    content: ""; position: absolute; left: 20px; right: 20px; bottom: 9px; height: 2px;
    background: var(--gold); transform: scaleX(0); transform-origin: center; transition: transform .25s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--gold); }
.main-nav a:hover::after, .main-nav a.active::after { transform: scaleX(1); }
.main-nav .fa { font-size: 15px; }
.flag { display: inline-block; width: 20px; height: 13px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.2); }
.flag-en { background: linear-gradient(180deg, #b22234 0 15%, #fff 15% 30%, #b22234 30% 45%, #fff 45% 60%, #b22234 60% 75%, #fff 75% 90%, #b22234 90%); position: relative; }
.flag-en::before { content: ""; position: absolute; left: 0; top: 0; width: 45%; height: 55%; background: #3c3b6e; }
.flag-in { background: linear-gradient(180deg, #ff9933 0 33.3%, #fff 33.3% 66.6%, #138808 66.6%); }
.nav-toggle {
    display: none; margin: 8px 0;
    background: rgba(0, 0, 0, .2); color: var(--gold);
    border: 1px solid rgba(255, 183, 0, .6); border-radius: 6px;
    padding: 6px 16px; font: 600 15px var(--font-body); cursor: pointer;
}

/* Compact bar that slides in after scrolling past the header */
.mini-bar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: linear-gradient(180deg, #6f431f 0%, #9a6a2b 50%, #6f431f 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, .3);
    transform: translateY(-110%);
    transition: transform .3s ease;
}
.mini-bar.is-visible { transform: none; }
.mini-bar-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 0 20px; }
.mini-bar .brand { padding: 3px 10px; box-shadow: none; }
.mini-bar .brand img { width: 190px; }
.mini-bar .main-nav a { height: 52px; font-size: 16px; padding: 0 12px; }
.mini-bar .main-nav a::after { left: 12px; right: 12px; }

/* ---------- Slider framed inside the scroll ---------- */
.scroll-slider { padding: 26px 0 6px; }
.scroll-frame {
    position: relative;
    aspect-ratio: 1131 / 453;
    background: url("../images/scroll-frame.webp") center / 100% 100% no-repeat;
    filter: drop-shadow(0 12px 18px rgba(61, 36, 16, .25));
}
.scroll-window {
    position: absolute;
    left: 8.4%; right: 15.6%; top: 20.5%; bottom: 17.5%;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(124, 73, 33, .25), 0 0 18px rgba(124, 73, 33, .25);
    background: #2a1a0c;
}
.slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity 1s ease; overflow: hidden; }
/* Whole photo on top of a blurred, zoomed copy of itself, so nothing gets cropped */
.slide-blur {
    position: absolute; inset: -30px;
    background: center / cover no-repeat;
    filter: blur(18px) brightness(.8) saturate(1.1);
}
.slide img { position: relative; width: 100%; height: 100%; object-fit: contain; transform: scale(1.04); transition: transform 7s ease-out; filter: drop-shadow(0 0 14px rgba(0, 0, 0, .45)); }
.slide.is-active { opacity: 1; }
.slide.is-active img { transform: scale(1); }
.slider-arrow {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 48px; height: 48px; border-radius: 50%; border: 0; cursor: pointer;
    background: rgba(255, 244, 214, .85); color: var(--brown); font-size: 18px;
    box-shadow: 0 3px 10px rgba(61, 36, 16, .3);
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.slider-arrow:hover { background: var(--brown); color: var(--gold); transform: translateY(-50%) scale(1.08); }
.slider-arrow.prev { left: 1%; }
.slider-arrow.next { right: 2%; }
.slider-dots { display: flex; justify-content: center; gap: 10px; margin-top: 4px; }
.slider-dots button {
    width: 11px; height: 11px; padding: 0; border-radius: 6px; cursor: pointer;
    border: 2px solid var(--brown); background: transparent; transition: width .25s ease, background .25s ease;
}
.slider-dots button.is-active { width: 30px; background: var(--brown); }

/* ---------- Common sections ---------- */
.section { padding: 44px 0; }
.emblem { padding: 20px 0 10px; }
.emblem img { width: min(1000px, 100%); margin: 0 auto; }
.eyebrow { font-family: var(--font-script); color: var(--brown-500); font-size: 19px; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-head h2, .about-copy h2, .prose h2, .cta h2, .soon h2 {
    font-family: var(--font-head); font-weight: 400; color: var(--ink-dark);
    font-size: clamp(26px, 3vw, 36px); line-height: 1.3; margin: 4px 0 12px;
}
.ornament { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--brown-500); }
.ornament span { width: 70px; height: 2px; background: linear-gradient(90deg, transparent, var(--brown-500)); }
.ornament span:last-child { transform: scaleX(-1); }

.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 11px 26px; border-radius: 4px;
    font: 700 15px var(--font-body); text-decoration: none; cursor: pointer;
    border: 2px solid transparent;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 16px rgba(61, 36, 16, .22); }
.btn-brown { background: var(--brown); color: #fff; }
.btn-brown:hover { background: var(--brown-800); }
.btn-gold { background: var(--gold); color: var(--brown-900); }
.btn-outline { border-color: var(--cream); color: var(--cream); }
.btn-outline:hover { background: var(--cream); color: var(--brown); }

/* Page title (inner pages) */
.page-title { text-align: center; padding: 40px 0 10px; }
.page-title h1 { font-family: var(--font-head); font-weight: 400; color: var(--ink-dark); font-size: clamp(32px, 4.4vw, 50px); line-height: 1.2; margin: 2px 0 12px; }

/* About (home) */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.about-media { position: relative; }
.about-media img { border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(-1.2deg); }
.about-badge {
    position: absolute; right: -10px; bottom: -18px;
    display: flex; align-items: center; gap: 12px;
    background: var(--brown); color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: var(--shadow);
    line-height: 1.3;
}
.about-badge i { font-size: 28px; color: var(--gold); }
.about-badge strong { display: block; color: var(--gold); font-size: 19px; }
.about-copy p { text-align: justify; margin: 0 0 14px; }
.about-copy .btn { margin-top: 8px; }

/* Cards (services / activities) */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 26px 24px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease, background .25s ease;
}
.card:hover { transform: translateY(-5px); background: rgba(255, 250, 235, .8); box-shadow: var(--shadow); }
.card-icon {
    width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brown); color: var(--gold); font-size: 26px;
    box-shadow: 0 0 0 5px rgba(124, 73, 33, .15);
}
.card h3 { font-family: var(--font-head); font-weight: 400; color: var(--ink-dark); font-size: 21px; margin: 0 0 6px; }
.card p { margin: 0; font-size: 15px; }

/* Call to action */
.cta {
    display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
    background: linear-gradient(120deg, var(--brown-800), var(--brown-500));
    color: var(--cream); border-radius: var(--radius); padding: 34px 40px; box-shadow: var(--shadow);
}
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* About page */
.prose-block { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
.prose-figure { margin: 8px 0 0; position: sticky; top: 80px; }
.prose-figure img { border: 8px solid #fff; box-shadow: var(--shadow); transform: rotate(-1.5deg); }
.prose p { text-align: justify; margin: 0 0 16px; }
.prose strong { color: var(--ink-dark); }
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-top: 10px; }
.highlight {
    text-align: center; padding: 24px 18px; border-radius: var(--radius);
    background: var(--card); border: 1px dashed rgba(124, 73, 33, .45);
    display: flex; flex-direction: column; gap: 4px; align-items: center;
}
.highlight i { font-size: 30px; color: var(--brown); }
.highlight strong { color: var(--ink-dark); font-size: 17px; }
.highlight span { font-size: 14px; }

/* Events */
.lead { text-align: center; max-width: 760px; margin: 0 auto 30px; font-size: 1.05em; }
.soon {
    display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
    border: 2px dashed rgba(124, 73, 33, .45); border-radius: var(--radius);
    padding: 26px 30px; background: var(--card);
}
.soon > i { font-size: 44px; color: var(--brown); }
.soon > div { flex: 1; min-width: 220px; }
.soon h2 { margin: 0; }
.soon p { margin: 0; }

/* Gallery */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.photo { margin: 0; background: #fff; padding: 10px 10px 4px; box-shadow: var(--shadow); transition: transform .25s ease; }
.photo:nth-child(odd) { transform: rotate(-1deg); }
.photo:nth-child(even) { transform: rotate(1deg); }
.photo:hover { transform: rotate(0) scale(1.02); }
.photo a { display: block; position: relative; overflow: hidden; }
.photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-zoom {
    position: absolute; inset: 0; display: grid; place-items: center;
    background: rgba(61, 36, 16, .45); color: #fff; font-size: 30px; opacity: 0; transition: opacity .25s ease;
}
.photo a:hover .photo-zoom, .photo a:focus .photo-zoom { opacity: 1; }
.photo figcaption { text-align: center; font-size: 14px; padding: 8px 4px; color: var(--ink-dark); }
.muted-note { text-align: center; margin-top: 30px; font-style: italic; }

.lightbox {
    position: fixed; inset: 0; z-index: 3000; background: rgba(20, 12, 5, .92);
    display: flex; align-items: center; justify-content: center; padding: 20px;
}
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1100px, 90vw); text-align: center; }
.lightbox img { max-height: 80vh; width: auto; margin: 0 auto; border: 6px solid #fff; }
.lightbox figcaption { color: var(--cream); margin-top: 10px; }
.lightbox button {
    position: absolute; background: rgba(255, 244, 214, .15); color: #fff; border: 0; cursor: pointer;
    width: 48px; height: 48px; border-radius: 50%; font-size: 20px;
}
.lightbox button:hover { background: var(--gold); color: var(--brown-900); }
.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 30px; align-items: stretch; }
.contact-cards { display: grid; gap: 14px; }
.info-card {
    display: flex; gap: 16px; align-items: flex-start;
    background: var(--card); border: 1px solid var(--card-border); border-radius: var(--radius); padding: 16px 20px;
}
.info-card > i { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brown); color: var(--gold); font-size: 20px; }
.info-card h3 { margin: 0; font-family: var(--font-head); font-weight: 400; color: var(--ink-dark); font-size: 19px; }
.info-card p { margin: 2px 0 0; }
.info-card .link { font-size: 14px; font-weight: 600; }
.map-frame { border: 8px solid #fff; box-shadow: var(--shadow); min-height: 380px; }
.map-frame iframe { width: 100%; height: 100%; min-height: 364px; border: 0; display: block; }

/* ---------- Footer (on the parchment, like the original) ---------- */
.site-footer { padding: 30px clamp(20px, 6%, 70px) 70px; }
.footer-grid {
    display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 36px;
    border-top: 1px solid rgba(124, 73, 33, .3); padding-top: 34px;
}
.site-footer h4 { font-family: var(--font-script); font-weight: 400; font-size: 24px; color: var(--brown); margin: 0 0 16px; }
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: 12px; margin-bottom: 14px; font-size: 14.5px; line-height: 1.55; }
.contact-list i { color: var(--brown); width: 18px; margin-top: 4px; text-align: center; }
.site-footer a { color: var(--brown); text-decoration: none; }
.site-footer a:hover { color: var(--brown-900); text-decoration: underline; }
.feedback-form { display: grid; gap: 10px; }
.feedback-form input, .feedback-form textarea {
    width: 100%; font: 14.5px var(--font-body); color: var(--brown);
    background: #fff; border: 1px solid transparent; border-radius: 3px; padding: 10px 12px;
}
.feedback-form input:focus, .feedback-form textarea:focus { outline: none; border-color: var(--brown); }
.feedback-form textarea { min-height: 96px; resize: vertical; }
.feedback-form .btn { justify-self: start; }
.form-note { margin: 0; font-size: 14px; min-height: 1em; }
.footer-brand { text-align: center; }
.footer-brand img { width: 100%; max-width: 320px; margin: 0 auto 10px; }
.footer-brand p { margin: 0 0 12px; font-size: 15px; }
.footer-brand strong { color: var(--ink-dark); }
.footer-social { display: flex; justify-content: center; gap: 10px; }
.footer-social a {
    width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
    background: var(--brown); color: var(--gold); transition: transform .2s ease;
}
.footer-social a:hover { transform: translateY(-3px); color: #fff; text-decoration: none; }
.footer-bottom { text-align: center; font-size: 13.5px; margin-top: 28px; color: var(--cream); text-shadow: 0 1px 2px rgba(0,0,0,.4); }

/* ---------- Floating social (left, like the original) + back to top ---------- */
.float-social { position: fixed; left: 0; top: 150px; z-index: 900; display: flex; flex-direction: column; }
.float-social a {
    width: 46px; height: 46px; display: grid; place-items: center;
    color: #fff; font-size: 22px; text-decoration: none;
    filter: grayscale(40%); transition: width .2s ease, filter .2s ease;
}
.float-social a:hover { width: 58px; filter: none; }
.float-social .fb { background: #3b5998; }
.float-social .tw { background: #1da1f2; }
.float-social .yt { background: #e62117; }
.float-social .wa { background: #25d366; }
.to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 900;
    width: 46px; height: 46px; border: 0; border-radius: 4px; cursor: pointer;
    background: rgba(90, 53, 23, .85); color: #fff; font-size: 22px;
    opacity: 0; visibility: hidden; transform: translateY(10px);
    transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }

/* Gentle fade-in on scroll (content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
    .card-grid, .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .prose-block { grid-template-columns: 280px 1fr; }
}
@media (max-width: 800px) {
    .nav-row { flex-direction: column; align-items: center; }
    .nav-toggle { display: block; }
    .site-header .main-nav { display: none; width: 100%; }
    .site-header .main-nav.is-open { display: block; }
    .site-header .main-nav ul { flex-direction: column; padding-bottom: 8px; }
    .site-header .main-nav a { height: 44px; justify-content: center; }
    .main-nav a::after { left: 40%; right: 40%; }
    .mini-bar { display: none; }
    .about-grid, .prose-block, .contact-grid, .footer-grid, .highlights { grid-template-columns: 1fr; }
    .prose-figure { position: static; max-width: 420px; margin: 0 auto; }
    .about-badge { right: 8px; }
    .slider-arrow { width: 34px; height: 34px; font-size: 13px; }
    .float-social { top: auto; bottom: 18px; left: 18px; }
    .float-social a:not(.wa) { display: none; }
    .float-social .wa, .float-social .wa:hover { width: 50px; height: 50px; border-radius: 50%; filter: none; box-shadow: var(--shadow); }
    .cta { padding: 28px 24px; }
}
@media (max-width: 560px) {
    .card-grid, .photo-grid { grid-template-columns: 1fr; }
    .section { padding: 32px 0; }
    .main-nav a { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
}
