/* ==========================================================================
   ROOTS2RISE INDIA — SINGLE SITE STYLESHEET
   All custom CSS for the public website lives here. Blades carry no inline
   <style> or style="" — layout/spacing come from Tailwind utility classes,
   brand look-and-feel from the classes defined below.

   Palette: evergreen (roots) + terracotta (action) + warm sand (paper).
   ========================================================================== */

:root {
    --r2r-forest-900: #0a1f44;
    --r2r-forest-800: #0a1f44;
    --r2r-forest-700: #124434;
    --r2r-forest-600: #1A5943;

    --r2r-accent: #6B3218;
    --r2r-accent-strong: #6B3218;
    --r2r-accent-tint: #FFF1E7;

    --r2r-sand: #FAF7F2;
    --r2r-sand-deep: #F1EBE1;
    --r2r-line: #E7E1D6;
    --r2r-ink: #14201B;
    --r2r-body: #55635C;

    --r2r-shadow-card: 0 1px 2px rgba(20, 32, 27, .04), 0 12px 32px -12px rgba(20, 32, 27, .12);
    --r2r-shadow-lift: 0 2px 4px rgba(20, 32, 27, .05), 0 28px 56px -20px rgba(20, 32, 27, .22);
}

/* ---------- Typography (one font system for the whole site) --------------- */

body {
    font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--r2r-ink);
}

/* Warm editorial serif for headlines. */
.r2r-display {
    font-family: 'DM Serif Display', 'Caprasimo', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.08;
}

.r2r-eyebrow {
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.r2r-balance { text-wrap: balance; }
.r2r-pretty { text-wrap: pretty; }

/* ---------- Surfaces ------------------------------------------------------ */

.r2r-card {
    background: #fff;
    border: 1px solid var(--r2r-line);
    box-shadow: var(--r2r-shadow-card);
    transition: box-shadow .35s cubic-bezier(.22, 1, .36, 1),
                transform .35s cubic-bezier(.22, 1, .36, 1),
                border-color .35s ease;
}

.r2r-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: var(--r2r-shadow-lift);
    border-color: #D8D0C2;
}

.r2r-texture {
    background-image: radial-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 22px 22px;
}

/* ---------- Decorative dot fields (replaces inline radial-gradient styles) - */

.r2r-dots {
    background-image: radial-gradient(circle, rgba(249, 115, 22, .33) 1.6px, transparent 2px);
    background-size: 10px 10px;
}
.r2r-dots--teal {
    background-image: radial-gradient(circle, rgba(23, 165, 138, .33) 1.6px, transparent 2px);
    background-size: 10px 10px;
}
.r2r-dots--amber {
    background-image: radial-gradient(circle, rgba(234, 179, 8, .4) 1.6px, transparent 2px);
    background-size: 10px 10px;
}

/* ---------- Header -------------------------------------------------------- */

.r2r-nav {
    transition: background-color .4s ease, box-shadow .4s ease,
                border-color .4s ease;
    border-bottom: 1px solid transparent;
}

.r2r-nav.is-stuck {
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom-color: var(--r2r-line);
    box-shadow: 0 8px 30px -18px rgba(20, 32, 27, .45);
}

.r2r-nav.is-stuck .r2r-nav-link { color: var(--r2r-ink); }
.r2r-nav.is-stuck .r2r-nav-link:hover { color: var(--r2r-accent-strong); }
.r2r-nav.is-stuck .r2r-nav-link[aria-current="page"] { color: var(--r2r-accent-strong); }
.r2r-nav.is-stuck .r2r-wordmark { color: var(--r2r-ink); }
.r2r-nav.is-stuck .r2r-wordmark-sub { color: var(--r2r-body); }
.r2r-nav.is-stuck .r2r-nav-icon { color: var(--r2r-ink); }
.r2r-nav.is-stuck .r2r-mark { border-color: var(--r2r-line); }

.r2r-nav-link { position: relative; }

.r2r-nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: -7px;
    height: 2px;
    background: var(--r2r-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s cubic-bezier(.22, 1, .36, 1);
}

.r2r-nav-link:hover::after,
.r2r-nav-link[aria-current="page"]::after { transform: scaleX(1); }

/* ---------- Mobile drawer ------------------------------------------------- */

.r2r-drawer {
    opacity: 0;
    visibility: hidden;
    transition: opacity .35s ease, visibility .35s ease;
}

.r2r-drawer.is-open { opacity: 1; visibility: visible; }

.r2r-drawer-panel {
    transform: translateY(-14px);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22, 1, .36, 1), opacity .35s ease;
}

.r2r-drawer.is-open .r2r-drawer-panel { transform: none; opacity: 1; }

/* ---------- Horizontal rails (mobile card scrollers) ---------------------- */

.r2r-rail {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
}

.r2r-rail::-webkit-scrollbar { display: none; }

.r2r-rail > * {
    scroll-snap-align: start;
    flex: 0 0 84%;
}

@media (min-width: 640px) {
    .r2r-rail > * { flex-basis: 48%; }
}

@media (min-width: 1024px) {
    .r2r-unrail-lg {
        display: grid;
        overflow: visible;
        gap: 1.5rem;
    }

    .r2r-unrail-lg > * { flex-basis: auto; }
    .r2r-unrail-lg-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .r2r-unrail-lg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Approach stepper --------------------------------------------- */

.r2r-step { position: relative; }

.r2r-step::before {
    content: '';
    position: absolute;
    left: 1.375rem;
    top: 3.25rem;
    bottom: -1.5rem;
    width: 1px;
    background: linear-gradient(to bottom, var(--r2r-line), rgba(231, 225, 214, 0));
}

.r2r-step:last-child::before { display: none; }

@media (min-width: 1024px) {
    .r2r-step::before {
        left: 3.75rem;
        right: -1.5rem;
        top: 1.375rem;
        bottom: auto;
        width: auto;
        height: 1px;
        background: var(--r2r-line);
    }
}

/* ---------- Media placeholders ------------------------------------------- */

.r2r-placeholder {
    background-color: var(--r2r-sand-deep);
    background-image: repeating-linear-gradient(135deg,
            rgba(20, 32, 27, .04) 0 1px,
            transparent 1px 11px);
}

.r2r-placeholder-dark {
    background-color: rgba(255, 255, 255, .04);
    background-image: repeating-linear-gradient(135deg,
            rgba(255, 255, 255, .07) 0 1px,
            transparent 1px 11px);
}

/* ---------- Focus & motion ------------------------------------------------ */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--r2r-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.r2r-fade-up {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .85s cubic-bezier(.22, 1, .36, 1),
                transform .85s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}

.r2r-fade-up.in {
    opacity: 1;
    transform: none;
}

html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 6.5rem; }

/* Alpine.js: keep x-show elements hidden until Alpine initialises (replaces
   inline style="display:none" on modals and dropdowns). */
[x-cloak] { display: none !important; }

/* ==========================================================================
   Legacy theme layer (banner, scroll-reveal, gallery masonry, decorations)
   ========================================================================== */

.hero-clip {
    clip-path: path('M 0 0 L 1050 0 C 1000 120, 1020 260, 1080 320 C 1140 380, 1140 460, 1060 520 C 980 580, 980 660, 1060 720 L 1050 800 L 0 800 Z');
}

.diag-bg {
    background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0px, rgba(255, 255, 255, 0.03) 1px, transparent 1px, transparent 12px);
}

/* ===== Scroll reveal animations ===== */
.reveal {
    opacity: 0;
    transform: translateY(45px);
    transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
        transform .8s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.reveal-left { transform: translateX(-45px); }
.reveal-right { transform: translateX(45px); }
.reveal-zoom { transform: scale(.92); }

.reveal.in {
    opacity: 1;
    transform: none;
}

/* ===== Map floating / bounce ===== */
@keyframes floatY {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-16px); }
    100% { transform: translateY(0); }
}
.map-float { animation: floatY 4s ease-in-out infinite; }

@keyframes floatSoft {
    0%   { transform: translateY(0); }
    50%  { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
.shape-float { animation: floatSoft 5s ease-in-out infinite; }
.shape-float-slow { animation: floatSoft 7s ease-in-out infinite; }

/* ===== Banner entrance ===== */
.banner-anim {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity .9s cubic-bezier(.22, 1, .36, 1),
        transform .9s cubic-bezier(.22, 1, .36, 1);
}
.banner-anim.in {
    opacity: 1;
    transform: none;
}

/* masonry-ish columns */
.gallery-masonry { column-gap: 1.5rem; }
.gallery-masonry > * { break-inside: avoid; margin-bottom: 1.5rem; }
@media (min-width:640px) { .gallery-masonry { column-count: 2; } }
@media (min-width:1024px) { .gallery-masonry { column-count: 3; } }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .map-float, .shape-float, .shape-float-slow { animation: none !important; }
    .reveal, .banner-anim, .r2r-fade-up, .r2r-drawer-panel {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}


/* ==========================================================================
   LIGHT PAGE BANNERS — light-green banner + light header on every page
   ========================================================================== */

/* The header's wrapper <section> sits behind every page's banner. */
body > section.relative.overflow-hidden:first-of-type {
    background: linear-gradient(180deg, #EAF3DE 0%, #F4F8EC 100%) !important;
}
body > section.relative.overflow-hidden:first-of-type > .bg-gradient-to-b { display: none; }

/* Header: cream bar with dark links (matches the home page). */
.r2r-nav {
    background: rgba(251, 247, 236, .96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 24px -18px rgba(20, 32, 27, .45);
}
.r2r-nav .r2r-nav-link,
.r2r-nav .r2r-nav-icon { color: #14201B; }
.r2r-nav .r2r-nav-link:hover { color: #F26B1D; }

/* Banner content: no stripes or floating decorations, dark-green text. */
.pg-banner.diag-bg { background-image: none; }
.pg-banner > span { display: none; }
.pg-banner .r2r-eyebrow { color: #C2410C !important; }
.pg-banner h1 {
    color: #14532D !important;
    font-family: 'DM Serif Display', 'Caprasimo', Georgia, serif;
    font-weight: 400;
}
.pg-banner a { color: #4B5A52 !important; }
.pg-banner a:hover { color: #F26B1D !important; }
.pg-banner [class*="rounded-full"][class*="border"] {
    background: rgba(255, 255, 255, .7) !important;
    border-color: rgba(22, 101, 52, .15) !important;
}
.pg-banner [class*="rounded-full"][class*="border"] span { color: #F26B1D !important; }
