/* ---[[ 1. THEME & FONT VARIABLES ]] --- */
:root {
    --primary: #4a7c44;
    --primary-hover: #2c4629;
    --primary-light: #6bb05f;

    --secondary: #C21010;
    --secondary-hover: #7a0000;
    --secondary-light: #e91f1f;

    --text-color: #1a1a1a;
    --text-secondary: #2c2c2c;
    --bg-surface: #f5f5f5;
    --bg-box: #ffffff;
    --bg-card: #fafafa;
    --border-color: #e0e0e0;
    --shadow-color: rgba(0, 0, 0, 0.1);

    font-size: 14px;
    --fontXS: clamp(0.75rem, 1vw + 0.5rem, 0.875rem);
    --fontS: clamp(0.875rem, 1.5vw + 0.5rem, 1rem);
    --fontM: clamp(1rem, 2vw + 0.5rem, 1.25rem);
    --fontL: clamp(1.25rem, 3vw + 0.5rem, 1.5rem);
    --fontXL: clamp(1.5rem, 5vw + 0.5rem, 1.75rem);
    --fontXXL: clamp(1.75rem, 5vw + 0.5rem, 3rem);
}

body.dark-mode {
    --primary: #44723e;
    --primary-hover: #375e32;
    --primary-light: #5a854a;

    --secondary: #ad1919;
    --secondary-hover: #8d0000;
    --secondary-light: #c92323;

    --text-color: #e8e8e8;
    --text-secondary: #b8b8b8;
    --bg-surface: #0f0f0f;
    --bg-box: #2f3436;
    --bg-card: #252525;
    --border-color: #2d2d2d;
    --shadow-color: rgba(0, 0, 0, 0.4);
}

/* ---[[ 2. BASE & RESET STYLES ]] --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
    scroll-padding-top: 1rem;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-box);
    color: var(--text-color);
    width: 100%;
}

.web-margin {
    margin: 0 2rem;
}

@media (max-width: 768px) {
    .web-margin {
        margin: 0 0.5rem;
    }
}

ul {
    list-style: none;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ---[[ 3. NAVBAR CORE STRUCTURE ]] --- */
.navbar {
    background: var(--primary);
    box-shadow: 0 2px 10px var(--shadow-color);
    position: sticky;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1rem;
    height: 70px;
}

.nav-logo-link {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    /* Prevents logo from shrinking */
    background-color: var(--primary);
    padding: .5rem;
    height: 100%;
}

.nav-logo-img {
    height: 30px;
    display: block;
    transition: transform 0.3s ease;
}

.nav-logo-img:hover {
    transform: scale(1.05);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ---[[ 4. NAVIGATION MENU (MOBILE-FIRST) ]] --- */
.nav-menu-wrapper {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background-color: var(--bg-box);
    border-top: 1px solid var(--border-color);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out, box-shadow 0.3s ease;
}

.nav-menu-wrapper.active {
    max-height: calc(100vh - 70px);
    overflow-y: auto;
    box-shadow: 0 8px 16px var(--shadow-color);
}

.nav-menu {
    padding: 0.5rem 0;
}

.nav-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    font-size: var(--font-s);
    font-weight: 500;
    transition: background-color 0.3s ease, color 0.3s ease;
    p{
        cursor: pointer;
    }
}

.nav-link:hover {
    background-color: var(--primary-hover);
    color: var(--bg-box);
}

.dropdown-arrow {
    font-size: 0.7em;
    margin-left: 0.5rem;
    transition: transform 0.3s ease;
}

.nav-item.dropdown-active>.nav-link .dropdown-arrow {
    transform: rotate(180deg);
}

/* ---[[ 5. DROPDOWN MENU (MOBILE-FIRST) ]] --- */
.dropdown-menu {
    background-color: var(--bg-card);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.dropdown-menu.active {
    max-height: 500px;
    /* Arbitrary large value */
}

.dropdown-link {
    display: block;
    padding: 0.75rem 2.5rem;
    /* Indented */
    font-size: var(--font-xs);
    color: var(--text-secondary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.dropdown-link:hover {
    background-color: var(--bg-surface);
    color: var(--primary-hover);
}

/* ---[[ 6. HAMBURGER & THEME TOGGLE BUTTONS ]] --- */
.hamburger,
.theme-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    background: transparent;
    border: none;
    height: 40px;
    width: 40px;
    border-radius: 8px;
    transition: background-color 0.3s, transform 0.2s ease;
}

.hamburger:active,
.theme-toggle:active {
    transform: scale(0.9);
}

/* Hamburger animation */
.hamburger-box {
    width: 28px;
    height: 24px;
    position: relative;
}

.hamburger-inner,
.hamburger-inner::before,
.hamburger-inner::after {
    content: '';
    position: absolute;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--text-color);
    border-radius: 4px;
    transition: transform 0.3s ease, top 0.3s ease, bottom 0.3s ease;
}

.hamburger-inner {
    top: 50%;
    transform: translateY(-50%);
}

.hamburger-inner::before {
    top: -9px;
}

.hamburger-inner::after {
    bottom: -9px;
}

.hamburger.active .hamburger-inner {
    transform: rotate(45deg);
}

.hamburger.active .hamburger-inner::before {
    top: 0;
    transform: rotate(90deg);
}

.hamburger.active .hamburger-inner::after {
    bottom: 0;
    transform: rotate(90deg);
}

/* Theme toggle animation */
.theme-toggle {
    overflow: hidden;
    position: relative;
}

.theme-icon {
    position: absolute;
    font-size: 1.2rem;
    transition: transform 0.4s ease, opacity 0.4s ease;
}

.sun-icon {
    transform: translateY(150%);
    opacity: 0;
    color: #fff;
}

.moon-icon {
    transform: translateY(0);
    opacity: 1;
}

body.dark-mode .theme-toggle {
    background-color: var(--primary);
}

body.dark-mode .sun-icon {
    transform: translateY(0);
    opacity: 1;
}

body.dark-mode .moon-icon {
    transform: translateY(-150%);
    opacity: 0;
}


/* ---[[ 7. DESKTOP LAYOUT & STYLES ]] --- */
@media (min-width: 992px) {
    .hamburger {
        display: none;
    }

    .nav-container {
        padding: 0 1.5rem;
    }

    .nav-menu-wrapper {
        position: static;
        width: 100%;
        max-height: none;
        overflow: visible;
        border: none;
        background-color: transparent;
        display: flex;
        justify-content: center;
    }

    .nav-menu {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0;
    }

    .nav-item {
        position: relative;
    }

    .nav-link {
        padding: 0.6rem 1rem;
        border-radius: 8px;
    }

    .dropdown-arrow {
        font-size: 0.6em;
    }

    .dropdown-menu {
        position: absolute;
        top: calc(100% + 5px);
        left: 50%;
        transform: translateX(-50%);
        width: 240px;
        background: var(--bg-box);
        border-radius: 8px;
        border: 1px solid var(--border-color);
        box-shadow: 0 8px 16px var(--shadow-color);
        padding: 0.5rem 0;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
        transform: translateX(-50%) translateY(10px);
    }

    .dropdown-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
        max-height: 500px;
        /* Redundant but safe */
    }

    .dropdown-link {
        padding: 0.7rem 1.2rem;
    }
}

/* Header */
.header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 3rem;
}

.header h2 {
    font-size: var(--fontXXL);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: clamp(1rem, 1.5vw, 1.25rem);
    position: relative;
}

.header h2::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 50%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

.header p {
    font-size: var(--fontS);
    line-height: 1.7;
    color: var(--text);
    margin-bottom: clamp(1.5rem, 2vw, 2rem);
}

.amenities-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 1.5rem;
    margin-top: 2.5rem;
    background: linear-gradient(180deg, rgba(74, 124, 68, 0.04), rgba(74, 124, 68, 0.02));
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.amenities-text {
    flex: 1 1 60%;
}

.amenities-text h3 {
    font-size: var(--fontL);
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.amenities-text p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.amenities-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: 10px;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.6px;
    box-shadow: 0 6px 18px rgba(74, 124, 68, 0.12);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.amenities-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(74, 124, 68, 0.16);
}

/* Responsive behavior */
@media (max-width: 768px) {
    .amenities-section {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem;
    }

    .amenities-text {
        order: 1;
        width: 100%;
    }

    .amenities-button {
        order: 2;
        width: 100%;
        justify-content: center;
        margin-top: 1rem;
        padding: 0.75rem 0;
    }
}


/* Footer */
/* Footer */
.footer {
    margin-top: auto;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    position: relative;
}

/* Main Footer Area */
.footer-main {
    background: var(--bg-card);
    padding: clamp(3rem, 4vw, 5rem) 0;
    position: relative;
    overflow: hidden;
}

.footer-main::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            var(--primary) 0%,
            transparent 50%,
            var(--secondary) 100%);
    opacity: 0.03;
    pointer-events: none;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    position: relative;
    z-index: 1;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: clamp(2rem, 4vw, 4rem);
    align-items: start;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-section-title {
    font-size: var(--fontL);
    font-weight: bold;
    color: var(--text-color);
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.footer-section-title::after {
    content: "";
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
}

/* Logo and Branding Section */
.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    background-color: var(--primary);
    border-radius: 50%;
    padding: 3px;
    width: 70px;
    height: 70px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.footer-logo-icon:hover {
    transform: scale(1.1) rotate(5deg);
}

.footer-logo-text h2 {
    font-size: var(--fontXL);
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 0.25rem;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.footer-logo-text p {
    font-size: var(--fontS);
    color: var(--text-secondary);
    font-weight: 500;
}

.footer-description {
    font-size: var(--fontS);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Media Section */
.footer-social-media {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: var(--bg-surface);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1.2rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.footer-social-icon::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.footer-social-icon:hover::before {
    opacity: 1;
}

.footer-social-icon:hover {
    color: white;
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 124, 68, 0.3);
}

.footer-social-icon i {
    position: relative;
    z-index: 2;
}

/* Contact Information */
.footer-contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: var(--fontS);
    color: var(--text-secondary);
    width: 100%;
}

.footer-contact-item i {
    width: 20px;
    color: var(--primary);
    font-size: 1rem;
    flex-shrink: 0;
}

.footer-contact-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-contact-item a:hover {
    color: var(--primary);
}

.footer-contact-item span,
.footer-contact-item a {
    flex: 1;
}

/* Navigation Links */
.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
}

.footer-nav-link {
    color: var(--text-secondary);
    font-size: var(--fontS);
    text-decoration: none;
    padding: 0.5rem 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

.footer-nav-link::before {
    content: "";
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.footer-nav-link:hover {
    color: var(--primary);
    transform: translateX(8px);
}

.footer-nav-link:hover::before {
    opacity: 1;
    transform: translateX(0);
}

.footer-nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Footer Bottom */
.footer-bottom {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
    padding: clamp(1.5rem, 2vw, 2rem) 0;
    text-align: center;
}

.footer-bottom-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 2vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: var(--fontXS);
    margin: 0;
}

.footer-bottom a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: var(--secondary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
        text-align: center;
    }

    .footer-section-title {
        text-align: center;
        width: 100%;
        display: block;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-description {
        text-align: center;
        max-width: 100%;
    }

    .footer-logo {
        justify-content: center;
        align-items: center;
        text-align: center;
    }

    .footer-logo-text {
        text-align: center;
    }

    .footer-social-media {
        justify-content: center;
        align-items: center;
    }

    .footer-contact-info {
        align-items: center;
        text-align: center;
    }

    .footer-contact-item {
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-contact-item i {
        align-self: center;
    }

    .footer-nav {
        align-items: center;
        text-align: center;
    }

    .footer-nav-link {
        justify-content: center;
        text-align: center;
        max-width: 250px;
        margin: 0 auto;
    }

    .footer-bottom-content {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
        align-items: center;
    }

    .footer-bottom p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-main {
        padding: clamp(2rem, 3vw, 3rem) 0;
    }

    .footer-content {
        gap: 2.5rem;
        text-align: center;
    }

    .footer-section {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-section-title {
        text-align: center;
        width: 100%;
        display: block;
        margin: 0 auto 1rem auto;
    }

    .footer-section-title::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-description {
        text-align: center;
        width: 100%;
        margin: 0 auto;
    }

    .footer-logo {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .footer-logo-text {
        text-align: center;
        width: 100%;
    }

    .footer-logo-text h2,
    .footer-logo-text p {
        text-align: center;
    }

    .footer-logo-icon {
        width: 50px;
        height: 50px;
        align-self: center;
    }

    .footer-social-media {
        gap: 0.75rem;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .footer-social-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .footer-contact-info {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-contact-item {
        font-size: var(--text-xs);
        justify-content: center;
        text-align: center;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
        width: 100%;
    }

    .footer-contact-item i {
        align-self: center;
        margin-bottom: 0.25rem;
    }

    .footer-nav {
        align-items: center;
        text-align: center;
        width: 100%;
    }

    .footer-nav-link {
        justify-content: center;
        text-align: center;
        max-width: 200px;
        margin: 0 auto;
    }

    .footer-newsletter-signup {
        align-items: center;
        text-align: center;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }

    .footer-newsletter-signup p {
        text-align: center;
        width: 100%;
    }

    .footer-newsletter-input {
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
        width: 100%;
    }

    .footer-newsletter-input input {
        width: 100%;
        text-align: center;
    }

    .footer-newsletter-btn {
        padding: 0.875rem 1.5rem;
        width: 100%;
        text-align: center;
    }

    .footer-bottom-content {
        text-align: center;
        align-items: center;
        width: 100%;
    }

    .footer-bottom p {
        text-align: center;
        width: 100%;
    }
}

/* Dark Mode Compatibility */
[data-theme="dark"] .footer-main::before {
    background: linear-gradient(135deg,
            var(--primary) 0%,
            transparent 50%,
            var(--secondary) 100%);
    opacity: 0.05;
}

/* Accessibility Enhancements */
.footer-social-icon:focus,
.footer-nav-link:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}
