/* ========================================
   Guru Chhaya Cottages & Hotel — Custom Styles
   Built on Bootstrap 5
   ======================================== */

:root {
    --brand-primary: #A86138;
    --brand-primary-dark: #8a4d2b;
    --brand-secondary: #2C5F6E;
    --brand-gold: #D4A24A;
    --brand-light: #F7F3EF;
    --brand-peach: #F3E4DA;
    --dark-bg: #1A1A1A;
    --footer-bg: #232323;
    --text-muted: #6C757D;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    color: #333;
    line-height: 1.7;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    color: #222;
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--brand-primary-dark);
}

/* Buttons */
.btn-brand {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.6rem 1.4rem;
}

.btn-brand:hover,
.btn-brand:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
    color: #fff;
}

.btn-white {
    background-color: #fff;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 0.75rem 1.8rem;
}

.btn-white:hover {
    background-color: var(--brand-peach);
    color: var(--brand-primary-dark);
}

.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
}

.btn-whatsapp:hover {
    background-color: #1fae54;
    border-color: #1fae54;
    color: #fff;
}

/* Header / Navbar */
.site-header {
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.navbar-brand {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    color: #333;
    padding: 0.6rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--brand-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0.25rem;
    left: 1rem;
    right: 1rem;
    height: 2px;
    background-color: var(--brand-primary);
}

/* Hero Section */
.hero-section {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: #fff;
    padding: 6rem 0;
}

.hero-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.35) 100%);
}

.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-heading {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.92);
    max-width: 600px;
    margin-bottom: 2rem;
}

.hero-image {
    border-radius: 0.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

/* Sub-page Hero */
.sub-hero {
    position: relative;
    min-height: 45vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-align: center;
    color: #fff;
    padding: 6rem 0;
}

.sub-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.sub-hero .container {
    position: relative;
    z-index: 1;
}

.sub-hero-heading {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.75rem;
}

.sub-hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
}

/* Content Sections */
.content-section {
    padding: 4.5rem 0;
}

.section-heading {
    font-size: clamp(1.65rem, 3vw, 2.25rem);
    margin-bottom: 1rem;
    color: #222;
}

.section-intro {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
}

.bg-light-peach {
    background-color: var(--brand-peach);
}

.bg-light-brand {
    background-color: var(--brand-light);
}

.bg-brand-primary {
    background-color: var(--brand-primary) !important;
}

.text-brand {
    color: var(--brand-primary) !important;
}

.text-gold {
    color: var(--brand-gold) !important;
}

/* Feature Cards */
.feature-card {
    background: #fff;
    border-radius: 0.75rem;
    padding: 2rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    height: 100%;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    color: var(--text-muted);
    margin-bottom: 0;
}

/* Amenity List */
.amenity-list {
    list-style: none;
    padding-left: 0;
    margin-bottom: 0;
}

.amenity-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: #444;
}

.amenity-list li i {
    color: var(--brand-primary);
    font-size: 1.1rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
}

/* Forms */
.form-card {
    background-color: var(--brand-primary);
    border-radius: 0.75rem;
    padding: 2rem;
    color: #fff;
}

.form-card h2,
.form-card h3 {
    color: #fff;
}

.form-card .form-control,
.form-card .form-select {
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
}

.form-card .form-control::placeholder,
.form-card .form-select {
    color: rgba(255, 255, 255, 0.8);
}

.form-card .form-control:focus,
.form-card .form-select:focus {
    background-color: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    color: #fff;
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.15);
}

.form-card .form-select option {
    background-color: var(--brand-primary);
    color: #fff;
}

.form-card .btn-submit {
    background-color: #fff;
    color: var(--brand-primary);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 0.7rem;
}

.form-card .btn-submit:hover {
    background-color: var(--brand-peach);
    color: var(--brand-primary-dark);
}

.form-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.contact-form-card {
    background-color: #fff;
    border-radius: 0.75rem;
    padding: 2rem;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.06);
}

.contact-form-card .form-control,
.contact-form-card .form-select {
    background-color: #f8f9fa;
    border: 1px solid #e0e0e0;
}

.contact-form-card .form-control:focus,
.contact-form-card .form-select:focus {
    background-color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.25rem rgba(168, 97, 56, 0.15);
}

.contact-form-card .btn-submit {
    background-color: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    padding: 0.75rem;
}

.contact-form-card .btn-submit:hover {
    background-color: var(--brand-primary-dark);
}

/* Info Cards */
.info-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.info-card i {
    color: var(--brand-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.info-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.info-card p,
.info-card a {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.info-card a:hover {
    color: var(--brand-primary);
}

/* Gallery */
.gallery-item {
    position: relative;
    display: block;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

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

.gallery-item:hover img {
    transform: scale(1.08);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: #fff;
    font-size: 2rem;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.lightbox.open {
    display: flex;
}

.lightbox-img {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 0.25rem;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: background 0.2s ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.lightbox-close {
    top: 1.5rem;
    right: 1.5rem;
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.35rem 1rem;
    border-radius: 2rem;
}

/* Tariff Table */
.tariff-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.tariff-table th {
    background-color: var(--brand-primary);
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    padding: 1rem;
}

.tariff-table td {
    padding: 1rem;
    border-bottom: 1px solid #eee;
    color: #444;
}

.tariff-table tbody tr:last-child td {
    border-bottom: none;
}

.tariff-table tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}

.tariff-note {
    display: flex;
    gap: 0.75rem;
    padding: 0.35rem 0;
}

.tariff-note strong {
    color: var(--brand-primary);
    min-width: 3rem;
}

/* Footer */
.site-footer {
    background-color: var(--footer-bg);
    color: #aaa;
    padding-top: 4rem;
}

.footer-heading {
    color: #fff;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.15rem;
    margin-bottom: 1.25rem;
}

.footer-text {
    color: #bbb;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-text a {
    color: var(--brand-gold);
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #bbb;
    display: inline-block;
    transition: transform 0.2s ease, color 0.2s ease;
}

.footer-links a:hover {
    color: var(--brand-gold);
    transform: translateX(4px);
}

.footer-contact li {
    margin-bottom: 0.6rem;
}

.footer-contact i {
    color: var(--brand-gold);
    margin-right: 0.5rem;
}

.footer-contact a {
    color: #bbb;
}

.footer-contact a:hover {
    color: var(--brand-gold);
}

.copyright-bar {
    background-color: #1a1a1a;
    color: #888;
    font-size: 0.85rem;
    padding: 1.25rem 0;
    margin-top: 3rem;
}

.copyright-bar a {
    color: var(--brand-gold);
}

/* Floating WhatsApp */
.floating-whatsapp {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    background-color: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 1050;
    transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
    color: #fff;
    transform: scale(1.08);
}

/* Scroll to Top */
.scroll-top {
    position: fixed;
    bottom: 1.5rem;
    right: 5.5rem;
    width: 3rem;
    height: 3rem;
    background-color: var(--brand-primary);
    color: #fff;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.2s ease;
    z-index: 1050;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background-color: var(--brand-primary-dark);
    color: #fff;
    transform: translateY(-3px);
}

/* Fade-in animation */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 0;
        text-align: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .navbar-collapse {
        padding-top: 1rem;
    }

    .nav-link.active::after {
        left: 0;
        right: auto;
        width: 2rem;
        bottom: 0.15rem;
    }

    .scroll-top {
        right: 1.5rem;
        bottom: 5.5rem;
    }
}

@media (max-width: 767.98px) {
    .content-section {
        padding: 3rem 0;
    }

    .sub-hero {
        min-height: 35vh;
    }

    .tariff-table th,
    .tariff-table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}
