/* ==========================================================================
   Host Hub Guest House - Master Stylesheet
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens / CSS Variables
   -------------------------------------------------------------------------- */
:root {
    --blue-dark: #0f172a;
    --blue-primary: #1e3a8a;
    --blue-light: #3b82f6;
    --green-primary: #059669;
    --green-light: #10b981;
    --gray-bg: #f8fafc;
    --gray-card: #ffffff;
    --text-main: #334155;
    --text-muted: #64748b;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --header-height: 70px;
}

/* --------------------------------------------------------------------------
   2. Base & Reset Styles
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--gray-bg);
    color: var(--text-main);
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* --------------------------------------------------------------------------
   3. Header & Navigation Layout
   -------------------------------------------------------------------------- */
.site-header {
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-height);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo Image Support */
.brand-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Logo Styling */
.brand-logo img {
    height: 90px;
    width: auto;
    padding: 0.5rem 0; /* Adds vertical padding around the logo */
    display: block;
    transition: height 0.2s ease;
}

/* Desktop Navigation */
.nav-menu {
    display: flex;
    align-items: center;
}

.nav-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--green-primary);
}

/* Mobile Toggle Icon */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--blue-dark);
    cursor: pointer;
    padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   4. Structure & Page Layouts
   -------------------------------------------------------------------------- */
.container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1.5rem;
    width: 100%;
    flex-grow: 1;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue-primary) 100%);
    color: var(--white);
    padding: 4rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
    color: #cbd5e1;
}

/* Flexible Grid System */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

/* --------------------------------------------------------------------------
   5. Reusable Components
   -------------------------------------------------------------------------- */
/* Cards */
.card {
    background-color: var(--gray-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border-top: 4px solid var(--blue-primary);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.card-body {
    padding: 1.5rem;
}

.card-title {
    color: var(--blue-dark);
    margin-bottom: 0.5rem;
}

/* Buttons */
.btn-primary,
.btn-book {
    display: inline-block;
    background-color: var(--green-primary);
    color: var(--white) !important;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    border: none;
    transition: background-color 0.2s ease;
}

.btn-primary:hover,
.btn-book:hover {
    background-color: var(--green-light);
}

/* Form Styling */
form label {
    display: block;
    font-weight: 600;
    color: var(--blue-dark);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

form input[type="text"],
form input[type="email"],
form input[type="tel"],
form input[type="date"],
form select,
form textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 0.95rem;
    background-color: #fff;
    color: #333;
    font-family: inherit;
}

/* --------------------------------------------------------------------------
   6. Animation & Observer Classes
   -------------------------------------------------------------------------- */
.js-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.js-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   7. Responsive Breakpoints & Mobile Nav
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .mobile-toggle {
        display: block;
    }

    .nav-menu {
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background-color: var(--white);
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    /* Activated via JS (supports both .open and .show) */
    .nav-menu.open,
    .nav-menu.show {
        max-height: 380px;
    }

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        padding: 1.5rem;
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 1.05rem;
        width: 100%;
        display: block;
    }

    .btn-book {
        display: inline-block;
        margin-top: 0.5rem;
    }

    .hero h1 {
        font-size: 1.8rem;
    }
}

/* --------------------------------------------------------------------------
   8. Floating Dual WhatsApp Buttons
   -------------------------------------------------------------------------- */
.whatsapp-float-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.whatsapp-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: #25d366;
    color: #ffffff;
    padding: 10px 16px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp-btn i {
    font-size: 1.25rem;
}

.whatsapp-btn:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

/* Distinct hover accents for branch identification */
.wa-croydon:hover {
    background-color: #1eb954;
}

.wa-glenmarais:hover {
    background-color: #128c7e;
}

@media (max-width: 480px) {
    .whatsapp-float-container {
        bottom: 15px;
        right: 15px;
    }
    
    .whatsapp-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}

/* ==========================================================================
   Hero Slideshow Styles
   ========================================================================== */

.hero-slider-section {
    position: relative;
    width: 100%;
    overflow: hidden;
    background-color: var(--blue-dark);
}

.slider-container {
    position: relative;
    width: 100%;
    height: 75vh;
    min-height: 480px;
    max-height: 650px;
}

.slides-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Individual Slide */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
    visibility: visible;
}

/* Slide Image Overlay */
.slide img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Dark Gradient Overlay for Text Legibility */
.slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.75) 100%);
    z-index: 2;
}

/* Slide Text Content */
.slide-content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    max-width: 800px;
    padding: 0 1.5rem;
    transform: translateY(20px);
    transition: transform 0.8s ease-out;
}

.slide.active .slide-content {
    transform: translateY(0);
}

.slide-content h1 {
    font-size: 2.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
    line-height: 1.2;
}

.slide-content p {
    font-size: 1.2rem;
    color: #e2e8f0;
    margin-bottom: 1.75rem;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Arrow Controls */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 4;
    background: rgba(15, 23, 42, 0.5);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.slider-arrow:hover {
    background: var(--green-primary);
    transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev { left: 20px; }
.slider-arrow.next { right: 20px; }

/* Dot Indicators */
.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    display: flex;
    gap: 8px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.dot.active,
.dot:hover {
    background-color: var(--green-primary);
    transform: scale(1.2);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .slider-container {
        height: 60vh;
        min-height: 380px;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .slide-content p {
        font-size: 0.95rem;
        margin-bottom: 1.2rem;
    }

    .slider-arrow {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}

/* ==========================================================================
   Host Hub Guest House - Header Extras Stylesheet
   ========================================================================== */

.header-main-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* Header Search Form Layout */
.header-search-form {
    flex: 1;
    max-width: 320px;
    display: flex;
    align-items: center;
    position: relative;
    margin-bottom: 0;
}

.header-search-form input[type="text"] {
    padding-right: 2.5rem;
    margin-bottom: 0;
    border-radius: 50px;
    border-color: var(--border-color);
}

.header-search-form button {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.95rem;
}

/* Branch Phone Section */
.header-branches-contact {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.branch-phone-link {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--text-main);
    transition: opacity 0.2s ease;
}

.branch-phone-link:hover {
    opacity: 0.8;
}

/* Green Circular Icon Styling */
.branch-icon-circle {
    width: 40px;
    height: 40px;
    background-color: var(--green-primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    box-shadow: 0 2px 4px rgba(5, 150, 105, 0.2);
    flex-shrink: 0;
}

/* Branch Text Labels */
.branch-label-group {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.branch-name {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
}

.branch-sub {
    font-size: 0.85rem;
    color: var(--blue-dark);
    font-weight: 600;
}

/* Sub-Header Navigation Styling */
.sub-header-nav {
    background-color: var(--blue-dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.sub-nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.sub-nav-list {
    display: flex;
    gap: 2rem;
    list-style: none;
    padding: 0.6rem 0;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.sub-header-nav .nav-link {
    color: var(--white);
    font-weight: 500;
}

.sub-header-nav .nav-link:hover,
.sub-header-nav .nav-link.active {
    color: var(--green-light);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .header-branches-contact {
        display: none; /* Can be shifted to mobile menu drawer if desired */
    }
}