/* =========================================================
   Shri Gajaanan Maharaj Sansthan - Devotional Theme CSS
   Palette derived from the official Shri Gajaanan Maharaj Logo
   ========================================================= */

:root {
    --maroon: #7A1111;
    --maroon-dark: #580A0A;
    --saffron: #E67E17;
    --saffron-light: #F7A73B;
    --gold: #D49B27;
    --ivory: #FFFDF8;
    --cream: #FAF3E6;
    --ink: #2B1D19;
    --muted: #6E5B53;
    --border: #E8D9C5;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 14px rgba(88, 10, 10, 0.06);
    --shadow-md: 0 12px 30px rgba(88, 10, 10, 0.10);
    --shadow-lg: 0 20px 48px rgba(88, 10, 10, 0.16);
    --radius: 14px;
    --radius-sm: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: var(--ivory);
    color: var(--ink);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-title {
    font-family: 'Cinzel', Georgia, serif;
    color: var(--maroon-dark);
    line-height: 1.25;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.container {
    width: 100%;
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Top Sacred Bar */
.top-bar {
    background: var(--maroon-dark);
    color: #FCECD2;
    font-size: 0.84rem;
    padding: 8px 0;
    border-bottom: 2px solid var(--saffron);
}

.top-bar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.mantra-badge {
    font-family: 'Cinzel', serif;
    font-weight: 700;
    color: var(--saffron-light);
    letter-spacing: 0.06em;
}

.top-bar-meta {
    display: flex;
    align-items: center;
    gap: 12px;
}

.top-bar-meta .sep {
    opacity: 0.4;
}

/* Header & Navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 253, 248, 0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.site-header.scrolled {
    background: rgba(255, 253, 248, 0.99);
    box-shadow: 0 8px 26px rgba(88, 10, 10, 0.12);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
    gap: 20px;
    transition: padding 0.3s ease;
}

.site-header.scrolled .nav-inner {
    padding-top: 5px;
    padding-bottom: 5px;
}

.brand-link {
    display: flex;
    align-items: center;
    transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.brand-link:hover {
    transform: scale(1.04);
}

.brand-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
    mix-blend-mode: multiply;
    background: transparent;
    border: none;
    padding: 0;
    filter: drop-shadow(0 2px 6px rgba(122, 17, 17, 0.12));
    transition: height 0.3s ease, filter 0.3s ease;
}

.site-header.scrolled .brand-logo {
    height: 54px;
}

.brand-link:hover .brand-logo {
    filter: drop-shadow(0 4px 12px rgba(230, 126, 23, 0.35));
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--ink);
    padding: 6px 2px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.active {
    color: var(--maroon);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav-toggle span {
    width: 26px;
    height: 3px;
    background: var(--maroon);
    border-radius: 2px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.94rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.25s ease;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.86rem;
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--maroon), #991B1B);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(122, 17, 17, 0.22);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    transform: translateY(-2px);
}

.btn-gold {
    background: linear-gradient(135deg, var(--saffron), var(--gold));
    color: var(--white);
}

.btn-gold:hover {
    filter: brightness(1.06);
    transform: translateY(-2px);
}

.btn-outline {
    border-color: var(--maroon);
    color: var(--maroon);
    background: transparent;
}

.btn-outline:hover {
    background: var(--maroon);
    color: var(--white);
}

.btn-outline-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.btn-outline-light:hover {
    background: var(--white);
    color: var(--maroon-dark);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 90px 0 40px;
    min-height: 580px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(48, 6, 6, 0.88) 0%, rgba(122, 17, 17, 0.68) 55%, rgba(30, 10, 5, 0.55) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 740px;
    color: var(--white);
    margin-bottom: 44px;
}

.hero-badge {
    display: inline-block;
    background: rgba(247, 167, 59, 0.2);
    border: 1px solid var(--saffron-light);
    color: var(--saffron-light);
    padding: 6px 16px;
    border-radius: 999px;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 18px;
}

.hero-content h1 {
    color: var(--white);
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    margin-bottom: 16px;
}

.hero-lead {
    font-size: 1.08rem;
    color: #F8EAE0;
    margin-bottom: 28px;
    max-width: 640px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Quick Stay Search Bar */
.quick-search-card {
    position: relative;
    z-index: 3;
    background: var(--white);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    display: grid;
    grid-template-columns: repeat(4, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.qs-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 6px;
}

.qs-field select,
.qs-field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.93rem;
    color: var(--ink);
    background: var(--ivory);
}

/* Seva Strip */
.seva-strip {
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    padding: 26px 0;
}

.seva-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    text-align: center;
}

.seva-num {
    display: block;
    font-family: 'Cinzel', serif;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--maroon);
}

.seva-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
}

/* Sections */
.section {
    padding: 72px 0;
}

.section-tinted {
    background: var(--cream);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.section-maroon {
    background: linear-gradient(135deg, var(--maroon-dark), var(--maroon));
    color: var(--white);
}

.section-maroon h2 {
    color: var(--white);
}

.section-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 46px;
}

.section-header h2 {
    font-size: clamp(1.65rem, 3vw, 2.3rem);
    margin-bottom: 12px;
}

.section-header p {
    color: var(--muted);
}

.section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--saffron);
    margin-bottom: 8px;
}

.kicker-gold {
    color: var(--saffron-light);
}

/* Grids & Cards */
.cards-grid {
    display: grid;
    gap: 24px;
}

.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.card-media {
    position: relative;
    height: 195px;
    overflow: hidden;
}

.card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.card:hover .card-media img {
    transform: scale(1.06);
}

.card-badge,
.price-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(88, 10, 10, 0.9);
    color: var(--saffron-light);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
}

.price-pill {
    background: var(--saffron);
    color: var(--white);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.card-meta {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--saffron);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}

.card-body h3 {
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.card-body p {
    font-size: 0.92rem;
    color: var(--muted);
    margin-bottom: 14px;
}

.card-footer {
    margin-top: auto;
    padding-top: 10px;
}

.text-link {
    font-weight: 700;
    color: var(--maroon);
    font-size: 0.9rem;
}

.text-link:hover {
    color: var(--saffron);
}

.mini-features {
    list-style: none;
    font-size: 0.86rem;
    color: var(--ink);
    margin-bottom: 16px;
}

.mini-features li {
    margin-bottom: 5px;
}

/* Split Layout */
.split-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

.split-media {
    position: relative;
}

.rounded-shadow {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    width: 100%;
    object-fit: cover;
}

.floating-emblem {
    position: absolute;
    bottom: -20px;
    right: -14px;
    background: var(--white);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    border: 2px solid var(--saffron);
    width: 140px;
}

.split-content h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 16px;
}

.split-content p {
    margin-bottom: 18px;
}

.check-list {
    list-style: none;
    margin-bottom: 24px;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
}

.check-list li::before {
    content: '❖';
    position: absolute;
    left: 0;
    color: var(--saffron);
    font-size: 0.9rem;
}

.check-list.compact li {
    margin-bottom: 6px;
    font-size: 0.92rem;
}

.split-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* Schedule Preview */
.schedule-preview {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-sm);
    padding: 16px 20px;
    margin-bottom: 24px;
}

.schedule-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.2);
    font-size: 0.94rem;
}

.schedule-row:last-child {
    border-bottom: none;
}

.sch-time {
    color: var(--saffron-light);
    font-weight: 700;
}

/* Guide Cards */
.guide-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.guide-num {
    display: inline-block;
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--saffron);
    margin-bottom: 10px;
}

.guide-card h3 {
    font-size: 1.08rem;
    margin-bottom: 8px;
}

.guide-card p {
    font-size: 0.91rem;
    color: var(--muted);
}

/* Inner Page Banners */
.page-banner {
    position: relative;
    padding: 74px 0;
    background-size: cover;
    background-position: center;
    color: var(--white);
    text-align: center;
}

.page-banner-overlay {
    position: absolute;
    inset: 0;
    background: rgba(58, 7, 7, 0.78);
}

.page-banner-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
}

.page-banner h1 {
    color: var(--white);
    font-size: clamp(1.9rem, 3.6vw, 2.7rem);
    margin-bottom: 10px;
}

/* Filter Tabs & Accommodations */
.filter-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
}

.filter-tab {
    padding: 9px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--white);
    font-weight: 600;
    cursor: pointer;
    color: var(--ink);
    transition: all 0.2s ease;
}

.filter-tab.active,
.filter-tab:hover {
    background: var(--maroon);
    color: var(--white);
    border-color: var(--maroon);
}

.locations-stack {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.location-detail-card {
    display: grid;
    grid-template-columns: 380px 1fr;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.loc-detail-media {
    position: relative;
    min-height: 260px;
}

.loc-detail-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.loc-detail-body {
    padding: 28px;
}

.loc-detail-body h2 {
    margin-bottom: 10px;
}

.loc-subgrid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 18px 0;
}

.loc-subgrid h4 {
    font-size: 0.95rem;
    margin-bottom: 8px;
}

/* Timetable */
.timetable-wrap {
    overflow-x: auto;
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.timetable {
    width: 100%;
    border-collapse: collapse;
}

.timetable th {
    background: var(--maroon);
    color: var(--white);
    text-align: left;
    padding: 15px 20px;
    font-family: 'Cinzel', serif;
}

.timetable td {
    padding: 15px 20px;
    border-bottom: 1px solid var(--border);
}

.timetable tr:last-child td {
    border-bottom: none;
}

.tt-time {
    font-weight: 700;
    color: var(--maroon);
    white-space: nowrap;
}

.tt-ritual {
    font-weight: 700;
}

/* Forms & Booking */
.booking-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

.form-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.form-card h3 {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--ink);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 11px 13px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.95rem;
    background: var(--ivory);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: 2px solid var(--saffron);
    border-color: transparent;
}

.sidebar-card {
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    margin-bottom: 20px;
}

.sidebar-card.highlight {
    background: var(--maroon);
    color: var(--white);
}

.sidebar-card.highlight h3 {
    color: var(--saffron-light);
}

.help-phone {
    font-size: 1.2rem;
    font-weight: 800;
    margin-top: 10px;
}

/* Alerts & Confirmation */
.alert {
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.alert-error {
    background: #FEE2E2;
    border: 1px solid #EF4444;
    color: #991B1B;
}

.alert-success {
    background: #DCFCE7;
    border: 1px solid #22C55E;
    color: #166534;
}

.confirmation-card {
    background: var(--white);
    border: 2px solid var(--saffron);
    border-radius: var(--radius);
    padding: 30px;
    box-shadow: var(--shadow-md);
}

.conf-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 18px;
}

.conf-logo {
    height: 60px;
    border-radius: 8px;
}

.conf-badge {
    display: inline-block;
    background: #DCFCE7;
    color: #166534;
    font-weight: 700;
    font-size: 0.78rem;
    padding: 3px 10px;
    border-radius: 999px;
    margin-bottom: 4px;
}

.conf-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background: var(--ivory);
    padding: 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    margin: 18px 0 24px;
}

.conf-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.quote-box {
    background: var(--cream);
    border-left: 4px solid var(--saffron);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-style: italic;
    color: var(--maroon-dark);
}

.travel-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Footer */
.site-footer {
    background: #230909;
    color: #EAD8CE;
    padding-top: 56px;
}

.footer-ornament {
    height: 4px;
    background: linear-gradient(90deg, var(--maroon), var(--saffron), var(--gold), var(--maroon));
    margin-top: -56px;
    margin-bottom: 52px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 32px;
    padding-bottom: 44px;
}

.footer-logo-wrap {
    background: var(--white);
    display: inline-block;
    padding: 6px 12px;
    border-radius: 8px;
    margin-bottom: 12px;
}

.footer-logo {
    height: 52px;
    width: auto;
}

.footer-mantra {
    font-family: 'Cinzel', serif;
    color: var(--saffron-light);
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-desc {
    font-size: 0.88rem;
    opacity: 0.88;
}

.footer-col h4 {
    color: var(--saffron-light);
    margin-bottom: 14px;
    font-size: 1rem;
}

.footer-col ul {
    list-style: none;
    font-size: 0.9rem;
}

.footer-col li {
    margin-bottom: 8px;
}

.footer-col a:hover {
    color: var(--saffron-light);
}

.footer-bottom {
    background: #170505;
    padding: 16px 0;
    font-size: 0.84rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-bottom-inner {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* Scroll Reveal & Motion Effects */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@keyframes heroFadeUp {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content > * {
    animation: heroFadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.hero-content > *:nth-child(2) { animation-delay: 0.1s; }
.hero-content > *:nth-child(3) { animation-delay: 0.2s; }
.hero-content > *:nth-child(4) { animation-delay: 0.3s; }

/* Responsive */
@media (max-width: 1024px) {
    .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .quick-search-card { grid-template-columns: 1fr 1fr; }
    .qs-submit { grid-column: span 2; }
    .location-detail-card { grid-template-columns: 1fr; }
    .booking-layout { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--ivory);
        flex-direction: column;
        padding: 20px;
        border-bottom: 2px solid var(--saffron);
        box-shadow: var(--shadow-md);
        display: none;
    }
    .main-nav.open { display: flex; }
    .nav-list { flex-direction: column; align-items: center; gap: 14px; }
    .split-grid, .cols-3, .cols-4, .seva-grid, .form-grid, .conf-grid, .loc-subgrid, .footer-grid {
        grid-template-columns: 1fr;
    }
    .quick-search-card { grid-template-columns: 1fr; }
    .qs-submit { grid-column: span 1; }
    .floating-emblem { display: none; }
}
