/* ==============================================
   Leland River House - 2026
   Custom Stylesheet
   ============================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #2C3E50;
    --color-secondary: #8DAA9D;
    --color-accent: #C9A96E;
    --color-bg: #FAFAF7;
    --color-bg-alt: #F5F0EB;
    --color-text: #333333;
    --color-text-light: #6C757D;
    --color-white: #FFFFFF;
    --color-calendar-booked: #BEDAE3;
    --color-calendar-header: #D4956A;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --section-padding: 5rem;
    --nav-height: 80px;
    --transition: 0.3s ease;
}

/* --- Base / Typography --- */
html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--nav-height);
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-bg);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.3;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.75rem); }

a {
    color: var(--color-accent);
    transition: color var(--transition);
}

a:hover {
    color: var(--color-secondary);
}

/* --- Navigation --- */
#mainNav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    padding: 0.75rem 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
    transition: background var(--transition), padding var(--transition);
}

#mainNav.scrolled {
    background: var(--color-primary);
    padding: 0.5rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo img {
    height: 50px;
    transition: height var(--transition);
}

#mainNav.scrolled .nav-logo img {
    height: 40px;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 0.25rem;
}

.nav-links li {
    display: inline-block;
}

.nav-links .nav-link {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    white-space: nowrap;
    transition: color var(--transition);
}

.nav-links .nav-link:hover,
.nav-links .nav-link.active {
    color: var(--color-accent);
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
}

.hero-section .carousel,
.hero-section .carousel-inner,
.hero-section .carousel-item {
    height: 100vh;
}

.hero-section .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-section .carousel-control-prev,
.hero-section .carousel-control-next {
    z-index: 3;
    width: 5%;
}

.hero-section .carousel-indicators {
    z-index: 3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(44, 62, 80, 0.3) 0%,
        rgba(44, 62, 80, 0.5) 100%
    );
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    pointer-events: none;
}

.hero-content {
    pointer-events: auto;
}

.hero-content h1 {
    color: var(--color-white);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 1rem;
}

.hero-content p {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 2vw, 1.35rem);
    font-weight: 300;
    margin-bottom: 2rem;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    animation: bounce 2s infinite;
}

.scroll-indicator a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 2rem;
    text-decoration: none;
}

.scroll-indicator a:hover {
    color: var(--color-white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* --- Section Common --- */
.page-section {
    padding: var(--section-padding) 0;
}

.page-section-alt {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
}

.section-heading {
    text-align: center;
    margin-bottom: 3rem;
}

.section-heading h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1rem;
}

.section-heading h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background-color: var(--color-accent);
    margin: 0.75rem auto 0;
}

.section-heading p {
    color: var(--color-text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --- Layout Helpers (replaces Bootstrap grid) --- */
.centered-narrow {
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.centered-small {
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.side-by-side {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 1.5rem;
}

.side-by-side-item {
    flex: 1 1 0;
    max-width: 420px;
}

.text-center {
    text-align: center;
}

/* --- About Section --- */
.about-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.about-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: var(--color-white);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.feature-card .feature-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.feature-card h4 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--color-text-light);
    margin-bottom: 0;
}

/* --- Amenities List --- */
.amenities-list {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    columns: 2;
    column-gap: 2rem;
}

.amenities-list li {
    padding: 0.4rem 0;
    padding-left: 1.75rem;
    position: relative;
    break-inside: avoid;
}

.amenities-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 0.85rem;
}

/* --- Gallery Section --- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-item {
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.gallery-item.gallery-featured {
    grid-column: span 2;
    grid-row: span 2;
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.gallery-item.gallery-featured img {
    height: 100%;
    min-height: 516px;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0);
    transition: background 0.4s ease;
    pointer-events: none;
    border-radius: 8px;
}

.gallery-item:hover::after {
    background: rgba(44, 62, 80, 0.2);
}

/* --- Pricing Cards --- */
.pricing-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.pricing-badge {
    position: absolute;
    top: 1.1rem;
    right: -2.25rem;
    background: var(--color-accent);
    color: var(--color-white);
    padding: 0.25rem 2.75rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transform: rotate(45deg);
}

.pricing-card .price {
    font-family: var(--font-heading);
    font-size: 2.75rem;
    color: var(--color-accent);
    font-weight: 700;
    margin: 0.5rem 0;
}

.pricing-card .period {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
    text-align: left;
}

.pricing-features li {
    padding: 0.35rem 0;
    color: var(--color-text);
    font-size: 0.9rem;
}

.pricing-features li i {
    color: var(--color-secondary);
    margin-right: 0.5rem;
}

/* --- Contact Card --- */
.contact-card {
    background: var(--color-white);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.contact-card-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
}

.contact-card h3 {
    margin-bottom: 1.5rem;
}

.contact-detail {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.contact-detail i {
    color: var(--color-accent);
    margin-right: 0.5rem;
    width: 1.5rem;
    display: inline-block;
    text-align: center;
}

.contact-detail a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 500;
}

.contact-detail a:hover {
    color: var(--color-accent);
}

/* --- Buttons --- */
.btn-accent {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.btn-accent:hover {
    background-color: #b8953d;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(201, 169, 110, 0.4);
}

.btn-outline-accent {
    background: transparent;
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    padding: 0.75rem 2rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition);
}

.btn-outline-accent:hover {
    background-color: var(--color-accent);
    color: var(--color-white);
}

.btn-hero {
    background-color: var(--color-accent);
    color: var(--color-white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: all var(--transition);
}

.btn-hero:hover {
    background-color: #b8953d;
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(201, 169, 110, 0.5);
}

/* --- Page Banner (for inner pages) --- */
.page-banner {
    position: relative;
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.page-banner img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.page-banner::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 80, 0.5);
    z-index: 1;
}

.page-banner .banner-content {
    position: relative;
    z-index: 2;
}

.page-banner h1 {
    color: var(--color-white);
    margin-bottom: 0.5rem;
}

.page-banner p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 1.15rem;
}

/* --- Booking Form --- */
.booking-form .form-label {
    font-weight: 500;
    color: var(--color-primary);
}

.booking-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.booking-form .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(201, 169, 110, 0.25);
}

/* --- Calendar Container --- */
.calendar-container {
    background: var(--color-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    clear: both;
}

.calendar-container .fc {
    overflow: visible;
}

.calendar-container .fc-scroller {
    overflow: visible !important;
}

/* --- Footer --- */
.site-footer {
    background-color: var(--color-primary);
    color: rgba(255, 255, 255, 0.75);
    padding: 4rem 0 1.5rem;
}

.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-columns {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.footer-col {
    flex: 1 1 0;
    min-width: 0;
}

.site-footer h5 {
    color: var(--color-white);
    font-family: var(--font-heading);
    margin-bottom: 1.25rem;
    position: relative;
    padding-bottom: 0.75rem;
}

.site-footer h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--color-accent);
}

.site-footer a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color var(--transition);
}

.site-footer a:hover {
    color: var(--color-accent);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}

.footer-links li {
    padding: 0.35rem 0;
    break-inside: avoid;
}

.footer-links li a {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.footer-links li i {
    font-size: 0.7rem;
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
    columns: 2;
    column-gap: 1.5rem;
}

.footer-contact li {
    padding: 0.35rem 0;
    break-inside: avoid;
    white-space: nowrap;
}

.footer-contact li i {
    width: 1.25rem;
    display: inline-block;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    text-align: center;
    font-size: 0.875rem;
}

/* --- Back to Top --- */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 45px;
    height: 45px;
    background: var(--color-accent);
    color: var(--color-white);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition);
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: #b8953d;
    transform: translateY(-3px);
}

/* --- Scroll Animations --- */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Calendar Styles (FullCalendar overrides) --- */
.fc .fc-toolbar-title {
    font-family: var(--font-heading);
    color: var(--color-primary);
}

.fc .fc-button-primary {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
}

.fc .fc-button-primary:hover,
.fc .fc-button-primary:not(:disabled).fc-button-active {
    background-color: #b8953d;
    border-color: #b8953d;
}

.fc .fc-daygrid-event {
    background-color: var(--color-calendar-booked);
    border-color: var(--color-calendar-booked);
    color: var(--color-primary);
    font-size: 0.8rem;
}

.fc .fc-col-header-cell-cushion {
    display: inline-block;
    padding: 2px 4px;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .gallery-item.gallery-featured {
        grid-column: span 1;
        grid-row: span 1;
    }

    .gallery-item.gallery-featured img {
        height: 250px;
        min-height: auto;
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 3.5rem;
        --nav-height: 70px;
    }

    .nav-links .nav-link {
        font-size: 0.7rem;
        padding: 0.4rem 0.4rem;
        letter-spacing: 0;
    }

    .nav-logo img {
        height: 35px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 200px;
    }

    .about-card {
        padding: 1.5rem;
    }

    .amenities-list {
        columns: 1;
    }

    .footer-columns {
        flex-direction: column;
    }

    .footer-links,
    .footer-contact {
        columns: 1;
    }

    .side-by-side {
        flex-direction: column;
        align-items: center;
    }

    .side-by-side-item {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    :root {
        --section-padding: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.25rem;
    }

    .gallery-item img {
        height: 150px;
    }

    .pricing-card .price {
        font-size: 2rem;
    }

    .page-banner {
        height: 30vh;
        min-height: 220px;
    }

    .contact-card {
        padding: 2rem 1.5rem;
    }
}
