/* ==============================================
   Summerville Retreat - 2026
   Custom Stylesheet
   ============================================== */

/* --- CSS Custom Properties --- */
:root {
    --color-primary: #2C3E30;
    --color-secondary: #8DAA9D;
    --color-accent: #C0704A;
    --color-accent-hover: #A85E3B;
    --color-bg: #FAFAF7;
    --color-bg-alt: #F3F0EB;
    --color-text: #333333;
    --color-text-light: #6C757D;
    --color-white: #FFFFFF;
    --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-brand {
    color: var(--color-white);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity var(--transition);
}

.nav-brand:hover {
    color: var(--color-white);
    opacity: 0.9;
}

.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);
}

.nav-cta {
    background-color: var(--color-accent);
    color: var(--color-white) !important;
    border-radius: 4px;
    padding: 0.5rem 1rem !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.05em;
    margin-left: 0.25rem;
    transition: background-color var(--transition), transform var(--transition) !important;
}

.nav-cta:hover {
    background-color: var(--color-accent-hover) !important;
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--color-white);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
}

/* --- Hero Section --- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-section .hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(44, 62, 48, 0.3) 0%,
        rgba(44, 62, 48, 0.55) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem;
}

.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); }
}

/* --- Hero Booking Links --- */
.booking-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 0.5rem;
}

.booking-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: var(--color-white);
    max-width: 320px;
    transition: transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.booking-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    color: var(--color-white);
}

.booking-card strong {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
}

.booking-card span {
    font-size: 0.85rem;
    font-weight: 400;
    text-align: center;
    line-height: 1.4;
    opacity: 0.9;
}

/* --- Section Common --- */
.page-section {
    padding: var(--section-padding) 0;
}

.page-section-alt {
    padding: var(--section-padding) 0;
    background-color: var(--color-bg-alt);
}

.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.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 (custom flexbox, not Bootstrap grid) --- */
.centered-narrow {
    max-width: 720px;
    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;
}

.three-col {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.three-col-item {
    flex: 1 1 0;
    min-width: 0;
}

.four-col {
    display: flex;
    flex-direction: row;
    gap: 2rem;
}

.four-col-item {
    flex: 1 1 0;
    min-width: 0;
}

.text-center {
    text-align: center;
}

/* --- About Cards --- */
.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);
    transition: transform var(--transition), box-shadow var(--transition);
}

.about-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.about-card-icon {
    font-size: 2.5rem;
    color: var(--color-accent);
    margin-bottom: 1rem;
    text-align: center;
}

.about-card h3 {
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.about-card p {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* --- 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, 48, 0);
    transition: background 0.4s ease;
    pointer-events: none;
    border-radius: 8px;
}

.gallery-item:hover::after {
    background: rgba(44, 62, 48, 0.2);
}

/* --- Features Section --- */
.feature-category h4 {
    color: var(--color-accent);
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    font-family: var(--font-heading);
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.feature-list li {
    padding: 0.35rem 0;
    padding-left: 1.75rem;
    position: relative;
    font-size: 0.95rem;
}

.feature-list li::before {
    content: '\F26A';
    font-family: 'bootstrap-icons';
    position: absolute;
    left: 0;
    color: var(--color-secondary);
    font-size: 0.85rem;
}

/* --- Virtual Tour Section --- */
.tour-section {
    text-align: center;
}

.tour-video-wrapper {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.tour-video-wrapper video {
    width: 100%;
    display: block;
}

/* --- Parallax / Banner Sections --- */
.parallax-section {
    position: relative;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.parallax-section .parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.parallax-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(44, 62, 48, 0.55);
    z-index: 1;
}

.parallax-content {
    position: relative;
    z-index: 2;
    padding: 3rem 1.5rem;
}

.parallax-content h2 {
    color: var(--color-white);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* --- Contact Form --- */
.contact-form-wrapper {
    max-width: 700px;
    margin: 0 auto;
    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);
}

.contact-form .form-label {
    font-weight: 500;
    color: var(--color-primary);
    font-size: 0.9rem;
}

.contact-form .form-control {
    border: 1px solid #dee2e6;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form .form-control:focus {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 0.2rem rgba(192, 112, 74, 0.25);
}

.contact-form textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.form-check-inline-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 0.5rem;
}

.form-check-inline-group .form-check {
    margin: 0;
}

/* --- 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);
    text-decoration: none;
    display: inline-block;
}

.btn-accent:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(192, 112, 74, 0.4);
}

.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);
    text-decoration: none;
    display: inline-block;
}

.btn-hero:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-white);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 112, 74, 0.5);
}

/* --- 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-contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact-list li {
    padding: 0.35rem 0;
}

.footer-contact-list li i {
    width: 1.25rem;
    display: inline-block;
    text-align: center;
    margin-right: 0.5rem;
    color: var(--color-accent);
}

.footer-map iframe {
    width: 100%;
    height: 250px;
    border: 0;
    border-radius: 8px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.5rem;
    margin-top: 2.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: var(--color-accent);
}

/* --- Page Banner (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, 48, 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;
}

/* --- 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: var(--color-accent-hover);
    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);
}

/* --- 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;
    }

    .four-col {
        flex-wrap: wrap;
    }

    .four-col-item {
        flex: 1 1 calc(50% - 1rem);
    }
}

@media (max-width: 767.98px) {
    :root {
        --section-padding: 3.5rem;
        --nav-height: 70px;
    }

    /* Mobile navigation */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-primary);
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links li {
        display: block;
        text-align: center;
    }

    .nav-links .nav-link {
        padding: 0.75rem 1.5rem;
        display: block;
    }

    .nav-cta {
        margin: 0.5rem 1.5rem;
        text-align: center;
        display: block !important;
    }

    .three-col {
        flex-direction: column;
    }

    .four-col {
        flex-direction: column;
    }

    .four-col-item {
        flex: 1 1 100%;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item img {
        height: 200px;
    }

    .about-card {
        padding: 1.5rem;
    }

    .booking-links {
        flex-direction: column;
        align-items: center;
    }

    .booking-card {
        max-width: 280px;
        padding: 1.25rem 1.5rem;
    }

    .footer-columns {
        flex-direction: column;
    }

    .side-by-side {
        flex-direction: column;
        align-items: center;
    }

    .side-by-side-item {
        max-width: 100%;
        width: 100%;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .parallax-section {
        min-height: 300px;
    }

    .contact-form-wrapper {
        padding: 1.5rem;
    }
}

@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;
    }

    .page-banner {
        height: 30vh;
        min-height: 220px;
    }

    .hero-content h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .form-check-inline-group {
        flex-direction: column;
        gap: 0.5rem;
    }
}
