/* =========================================
   1. GLOBAL SETTINGS & VARIABLES
   ========================================= */
:root {
    --primary-color: #0a192f; /* Deep Navy (Professional Security) */
    --accent-color: #00d4ff; /* Electric Cyan (Tech/Modern) */
    --text-dark: #333;
    --text-light: #f4f4f4;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: #f0f2f5;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
header {
    background: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky; /* Keeps nav at top when scrolling */
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}

.container {
    width: 90%;
    max-width: 1200px; /* Limits width on big screens */
    margin: auto;
    padding: 0 20px;
}

/* Flexbox Layout for Header */
header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Brand / Logo Area */
.brand-area {
    display: flex;
    align-items: center;
}

.site-logo {
    height: 50px; /* Good size for navbar */
    width: auto;
    margin-right: 15px;
}

header h1 {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin: 0;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Navigation Links */
header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
}

header nav li {
    margin-left: 20px;
}

header a {
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s;
}

    header a:hover {
        color: var(--accent-color);
    }

/* Cart Icon Styling */
.snipcart-checkout {
    background: rgba(255,255,255,0.1);
    padding: 8px 15px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .snipcart-checkout:hover {
        background: rgba(255,255,255,0.2);
    }

/* =========================================
   3. HERO SECTION (BANNER)
   ========================================= */
.hero {
    /* Dark Gradient Overlay + Background Image */
    background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(10, 25, 47, 0.8)), url('images/logo.png');
    background-size: cover;
    background-position: center;
    /* YOUR REQUESTED HEIGHT */
    height: 170vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 20px;
}

    .hero h2 {
        font-family: var(--font-heading);
        font-size: 2.5rem;
        margin-bottom: 1rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 1.1rem;
        margin-bottom: 2rem;
        color: #ccc;
    }

/* =========================================
   4. BUTTONS
   ========================================= */
.btn {
    display: inline-block;
    background: var(--accent-color);
    color: var(--primary-color);
    padding: 12px 30px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: transform 0.2s, box-shadow 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    border: none;
    font-family: var(--font-body);
}

    .btn:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 20px rgba(0, 212, 255, 0.3);
    }

/* =========================================
   5. GRIDS & CARDS (Services & Shop)
   ========================================= */
section {
    padding: 60px 0;
}

h2 {
    font-family: var(--font-heading);
    text-align: center;
    margin-bottom: 40px;
    color: var(--primary-color);
}

.service-grid {
    display: grid;
    /* FIX: Using 220px ensures 4 items fit in a row on desktop */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.card {
    background: white;
    padding: 30px 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
    border-top: 4px solid var(--accent-color);
    /* Flex makes sure buttons stay at bottom */
    display: flex;
    flex-direction: column;
    align-items: center;
}

    .card:hover {
        transform: translateY(-10px);
    }

    .card i {
        color: var(--primary-color);
        margin-bottom: 20px;
    }

    .card h3 {
        font-family: var(--font-heading);
        margin-bottom: 15px;
    }

    /* --- THE FIX FOR TEXT ALIGNMENT --- */
    .card p {
        font-size: 0.9rem;
        color: #666;
        /* 1. Reserve space so short text aligns with long text */
        min-height: 4.5em;
        /* 2. Cut off text after 4 lines */
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 15px;
    }

/* =========================================
   6. SHOP SPECIFICS
   ========================================= */
.product-img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 5px;
    margin-bottom: 15px;
}

.price-tag {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
    margin: 10px 0;
}

.buy-btn {
    width: 100%;
    background: #2ecc71; /* Green buy button */
    color: white;
    margin-top: auto;
}

    .buy-btn:hover {
        background: #27ae60;
        box-shadow: none;
    }

/* =========================================
   7. LISTS & FORMS
   ========================================= */
/* Service Area Bubble List */
.service-area ul li {
    background: #eef;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    margin: 5px;
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

input, textarea {
    width: 100%;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    box-sizing: border-box;
    font-family: var(--font-body);
}

    input:focus, textarea:focus {
        outline: none;
        border-color: var(--accent-color);
    }

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    text-align: center;
    padding: 20px;
    background: #333;
    color: #fff;
    margin-top: 50px;
}

/* =========================================
   9. MOBILE RESPONSIVENESS
   ========================================= */
/* Phones (Portrait) */
@media (max-width: 768px) {
    .service-grid {
        grid-template-columns: 1fr; /* Stack everything in 1 column */
    }

    header .container {
        flex-direction: column; /* Stack logo above nav */
        gap: 15px;
    }

    header nav ul {
        flex-wrap: wrap; /* Allow menu links to wrap if screen is tiny */
        justify-content: center;
    }

    header nav li {
        margin: 5px 10px;
    }
}

/* =========================================
   10. TRAVEL SCHEDULE TABLE
   ========================================= */
.table-wrapper {
    overflow-x: auto; /* Allows table to scroll sideways on phones */
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}

.schedule-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 500px; /* Ensures text doesn't squish too much on mobile */
}

    /* Header Styling */
    .schedule-table th {
        background: var(--primary-color);
        color: white;
        text-align: left;
        padding: 15px 20px;
        font-family: var(--font-heading);
        text-transform: uppercase;
        letter-spacing: 1px;
        font-size: 0.9rem;
    }

    /* Row Styling */
    .schedule-table td {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
        color: #555;
        vertical-align: middle;
    }

    /* Zebra Striping (Makes every second row grey) */
    .schedule-table tr:nth-child(even) {
        background-color: #f9f9f9;
    }

/* Status Badges */
.status-open {
    color: #27ae60; /* Green */
    font-weight: bold;
    background: #eafaf1;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.status-limited {
    color: #f39c12; /* Orange */
    font-weight: bold;
    background: #fef5e7;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}

.status-full {
    color: #c0392b; /* Red */
    font-weight: bold;
    background: #fadbd8;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 0.85rem;
}
/* =========================================
   11. RESPONSIVE GOOGLE CALENDAR
   ========================================= */
.calendar-wrapper {
    position: relative;
    padding-bottom: 75%; /* Aspect ratio (Height is 75% of width) */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    background: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border-radius: 10px;
}

    .calendar-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }