@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Poppins:wght@300;400;500;600&display=swap');

:root {
    /* Brand palette (from the Gulmarg Ski School logo) */
    --brand-green: #43B800;        /* "GULMARG" wordmark */
    --brand-green-dark: #29B100;   /* Snowflake + pine tree mark */
    --brand-navy: #002343;         /* Skier, mountains, gondola */
    --brand-navy-text: #002745;    /* "SKI SCHOOL" */
    --brand-navy-accent: #002D68;  /* "SINCE 1999" */

    --primary-color: var(--brand-navy);    /* Structural fills: header, footer, CTA, buttons */
    --accent-color: var(--brand-green);   /* Highlights: icons, rules, badges */
    --hover-color: var(--brand-green);    /* Green takes over on hover */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --border-radius: 12px;
    --max-width: 1200px;
    --section-padding: 80px;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --header-h: 90px;         /* Fixed header height (shrinks on small screens) */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden; /* CRITICAL: Prevent horizontal scroll from off-screen elements */
    width: 100%;
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--white);
    padding-top: var(--header-h); /* Account for fixed header */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    color: var(--brand-navy-text);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: var(--section-padding) 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
}

.section-title p {
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Header */
header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed; /* Make Navbar fixed */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1100; /* Above the drawer backdrop, which sits at 1050 */
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    height: var(--header-h);
}

.logo img {
    height: calc(var(--header-h) - 20px);
    width: auto;
    object-fit: contain;
    display: block;
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    color: #444;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--brand-navy-accent);
}

.mobile-menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    position: relative; /* Essential for z-index to work */
    z-index: 1002; /* Ensure it stays above the mobile nav menu */
    color: var(--primary-color);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: var(--transition);
    cursor: pointer;
    border: none;
    font-family: 'Poppins', sans-serif;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--hover-color);
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 184, 0, 0.35);
}

.btn-accent {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-accent:hover {
    background-color: var(--hover-color);
    color: var(--brand-navy);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 184, 0, 0.35);
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
}

.btn-outline:hover {
    background: var(--hover-color);
    border-color: var(--hover-color);
    color: var(--brand-navy);
}

.contact-no-hover:hover {
    transform: none !important;
    box-shadow: none !important;
}

.btn-sm {
    padding: 8px 15px;
    font-size: 0.85rem;
    min-width: auto;
}

/* Hero Section */
.hero {
    min-height: 80vh;
    min-height: 80dvh;
    position: relative;
    overflow: hidden;
    background-color: var(--primary-color);
}

.hero .slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    transition: transform 1.2s cubic-bezier(0.7, 0, 0.3, 1);
}

.hero .slide {
    min-width: 100.5%; /* Slightly wider to prevent sub-pixel gaps/lines */
    height: 100%;
    overflow: hidden;
    position: relative;
    left: -0.25%;
}

.hero .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    animation: kenBurns 10s ease-in-out infinite alternate;
}

@keyframes kenBurns {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

.hero-overlay {
    position: relative;
    width: 100%;
    min-height: inherit; /* Sync with parent */
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    display: flex;
    align-items: center;
    padding: 100px 0;
    z-index: 5;
}

.hero-text-content {
    max-width: 850px;
    color: var(--white);
    animation: fadeInUp 1.2s ease-out;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 25px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.hero-text-content h1 {
    font-size: clamp(2.1rem, 7vw, 4.5rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: 25px;
    color: var(--white);
    text-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.hero-text-content h1 span {
    color: var(--white); /* No orange except on hover */
}

.hero-text-content p {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--white);
    margin-bottom: 45px;
    opacity: 0.9;
    line-height: 1.6;
    max-width: 90%;
}

.hero-btns {
    display: flex;
    gap: 20px;
}

.hero-btns .btn {
    padding: 18px 40px;
    border-radius: 50px; /* Pill shape */
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.95rem;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.8;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

.scroll-down span {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.scroll-down i {
    font-size: 1.2rem;
}


/* Hero Indicators */
.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 10;
}

.indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    cursor: pointer;
    transition: var(--transition);
}

.indicator.active {
    background: var(--white);
    width: 30px;
    border-radius: 5px;
}



/* Services Section */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
}

.service-card:hover {
    transform: translateY(-10px);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 20px;
    display: block;
}

.service-card h3 {
    margin-bottom: 15px;
}

/* Packages Section */
.package-group {
    margin-bottom: 60px;
}

.package-group-title {
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-color);
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
}

.package-group-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--hover-color); /* Use orange for the accent line */
    border-radius: 2px;
}



.package-card {
    background: var(--white);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 35, 67, 0.05), 0 14px 30px -14px rgba(0, 35, 67, 0.25);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease;
    border: 1px solid rgba(0, 35, 67, 0.07);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 1px 2px rgba(0, 35, 67, 0.05), 0 26px 48px -18px rgba(0, 35, 67, 0.35);
}

.package-img {
    height: 240px;
    position: relative;
    overflow: hidden;
}

/* Subjects sit high in these shots, so bias the crop upward */
.package-img img,
.package-image img,
.package-slides .hero-img {
    object-position: center 30%;
}

.package-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Scrim keeps the badge and image edge readable against bright snow */
.package-img::after {
    content: '';
    position: absolute;
    inset: auto 0 0 0;
    height: 45%;
    background: linear-gradient(to top, rgba(0, 35, 67, 0.35), transparent);
    pointer-events: none;
}

.package-card:hover .package-img img {
    transform: scale(1.1);
}

.package-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: var(--brand-green);
    color: var(--brand-navy);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(0, 35, 67, 0.25);
    z-index: 2;
}

.package-info {
    padding: 26px 24px 24px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.package-info h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 10px;
    color: var(--brand-navy-text);
}

.package-info p {
    color: #5b6b7a;
    font-size: 0.93rem;
    margin-bottom: 22px;
    line-height: 1.6;
    flex-grow: 1;
}

.package-card-btns {
    display: flex;
    gap: 12px;
    width: 100%;
}

.package-card-btns .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    font-size: 0.93rem;
    border-radius: 999px;
}

.package-card-btns .btn i {
    transition: transform 0.3s ease;
}

.package-card:hover .package-card-btns .btn i {
    transform: translateX(4px);
}

/* Fallback for package-image class (used in some pages) */
.package-image {
    height: 240px;
    position: relative;
    overflow: hidden;
}

.package-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.1);
}

/* Package Detail Pages */
.package-hero {
    min-height: 30vh;
}

.package-overview {
    margin-bottom: 40px;
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
    text-align: center;
}

.package-overview p {
    color: #444;
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 0;
}

.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.why-card {
    text-align: center;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-card i {
    font-size: 2rem;
    color: var(--accent-color);
    margin-bottom: 15px;
    display: block;
}

/* CTA Section */
.cta-section {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 30px 0; /* Very short vertical space */
}

.cta-section .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    max-width: var(--max-width);
}

.cta-content {
    text-align: left;
}

.cta-section h2 {
    font-size: clamp(1.4rem, 3.5vw, 1.8rem);
    margin-bottom: 5px;
    font-weight: 700;
}

.cta-section p {
    font-size: 1rem;
    margin-bottom: 0;
    opacity: 0.9;
}

.cta-btns {
    display: flex;
    gap: 15px;
    flex-shrink: 0;
}

.cta-btns .btn {
    padding: 10px 25px;
    font-size: 0.9rem;
    min-width: 140px;
    border-radius: 6px;
}

/* Mobile adjustments for slim CTA */
@media (max-width: 991px) {
    .cta-section .container {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .cta-content {
        text-align: center;
    }
    
    .cta-btns {
        width: 100%;
        justify-content: center;
    }
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.2rem;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    opacity: 0.8;
    transition: var(--transition);
}

.footer-links a:hover {
    opacity: 1;
    padding-left: 5px;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 0.9rem;
    opacity: 0.7;
}

.footer-bottom a {
    color: var(--white);
    text-decoration: underline;
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background-color: #25d366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0,0,0,0.2);
    z-index: 1000;
    transition: var(--transition);
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    opacity: 1;
    visibility: visible;
}

/* About Page */
.about-page-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-page-content h1 {
    font-size: clamp(1.9rem, 5vw, 3rem);
    margin-bottom: 30px;
}

.about-page-content p {
    font-size: 1.2rem;
    margin-bottom: 25px;
    color: #444;
}

/* Contact Page */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.contact-info-card {
    background: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--primary-color);
}

.contact-btns {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-btns .btn {
    text-align: center;
    padding: 18px;
    font-size: 1.1rem;
}

/* Animations */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

[data-reveal].active {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Design --- */

/* Tablet & Smaller */
@media (max-width: 1024px) {
    :root {
        --section-padding: 60px;
    }
    
    .hero, .hero-overlay {
        min-height: 60vh;
    }
    
    .hero-btns .btn {
        padding: 15px 30px;
        font-size: 0.95rem;
        min-width: 180px;
    }

    .services-grid, 
    .why-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%; /* Ensure text fits on one line */
        height: 100vh;
        background-color: var(--primary-color);
        display: block; /* Kill flexbox to prevent any vertical stretching/spacing bugs */
        padding-top: 80px; /* Space for the X button */
        transition: 0.4s ease;
        z-index: 1001;
        box-shadow: -10px 0 30px rgba(0,0,0,0.2);
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links li {
        display: block;
        width: 100%;
        text-align: left;
        margin: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15); 
    }

    .nav-links a {
        color: var(--white);
        font-size: 1.05rem;
        font-weight: 500;
        display: block;
        padding: 16px 30px;
        letter-spacing: 0.5px;
    }

    .mobile-menu-btn {
        display: block;
        z-index: 1002;
    }

    /* Make X button white when menu is open so it's visible on green */
    .mobile-menu-btn .ri-close-line {
        color: var(--white);
    }

    /* Package detail hero banners */
    .package-hero {
        height: 30vh !important;
        min-height: 200px;
    }

    .package-hero h1 {
        font-size: 1.5rem !important;
    }

    /* Package detail content */
    .package-detail {
        padding: 30px 0;
    }

    .detail-grid {
        grid-template-columns: 1fr !important;
        gap: 25px;
    }

    .info-box {
        padding: 20px;
    }

    .contact-btns .btn {
        width: 100%;
        text-align: center;
    }

    .hero {
        min-height: 70vh;
    }
    .hero-overlay {
        min-height: inherit; /* Sync with parent */
        padding: 80px 0 100px;
    }

    .scroll-down {
        display: none;
    }

    .hero-text-content {
        text-align: center;
        width: 100%;
    }

    .hero-btns {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .hero-btns .btn {
        width: auto; /* Medium size instead of full width */
        min-width: 160px;
        padding: 14px 25px;
        font-size: 0.9rem;
    }

    .services-grid, 
    .why-grid, 
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .package-img {
        height: 220px;
    }

    .package-info {
        padding: 22px 20px 20px;
    }

    .package-info h3 {
        font-size: 1.15rem;
    }

    .package-card-btns .btn {
        padding: 12px 22px;
        font-size: 0.88rem;
    }

    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-btns {
        flex-direction: column;
    }
    
    .cta-btns .btn {
        width: 100%;
    }
}

/* Extra Small Devices */
@media (max-width: 480px) {
    .hero {
        min-height: 85vh;
    }
    .hero-overlay {
        min-height: inherit;
        padding: 80px 0 120px;
    }

    .footer-bottom {
        padding: 20px 10px;
        font-size: 0.8rem;
    }

    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        left: 20px;
        font-size: 25px;
    }

    .back-to-top {
        width: 40px;
        height: 40px;
        bottom: 20px;
        right: 20px;
    }
}


/* Package Slider Styles */
.packages-slider-wrap {
    position: relative;
}
.packages-grid {
    display: flex !important;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 30px;
    padding-bottom: 20px;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.packages-grid::-webkit-scrollbar {
    display: none;
}
/* Two per view, so there is always a third card to slide to */
.packages-grid .package-card {
    flex: 0 0 calc(50% - 15px);
    scroll-snap-align: start;
    min-width: 300px;
}
@media (max-width: 1024px) {
    .packages-grid .package-card {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 768px) {
    /* Leave a sliver of the next card visible so the swipe is discoverable */
    .packages-grid .package-card {
        flex: 0 0 calc(100% - 45px);
        min-width: calc(100% - 45px);
    }
}
/* Sit over the image band, inside the track - outside it they fell off screen */
.slider-btn {
    position: absolute;
    top: 120px;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 6px 18px rgba(0, 35, 67, 0.45);
    transition: background 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

.slider-btn:active {
    transform: translateY(-50%) scale(0.94);
}

/* Only offer arrows when there is actually somewhere to scroll */
.packages-slider-wrap:not(.has-overflow) .slider-btn {
    display: none;
}
.slider-btn:hover {
    background: var(--hover-color);
    color: var(--brand-navy);
}
.slider-btn.prev {
    left: 10px;
}
.slider-btn.next {
    right: 10px;
}
@media (max-width: 768px) {
    .slider-btn {
        display: none;
    }
}
/* Package Hero Slider */
.package-hero-slider {
    position: relative;
    width: 100%;
    height: 400px;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
}
.package-slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}
.package-slides .hero-img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
    margin-bottom: 0;
    border-radius: 0;
}
.ph-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.7);
    color: var(--primary-color);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}
.ph-btn:hover {
    background: var(--primary-color);
    color: white;
}
.ph-prev { left: 15px; }
.ph-next { right: 15px; }

@media (max-width: 768px) {
    .package-hero-slider {
        height: 250px;
    }
}

/* ==========================================================================
   Mobile Responsiveness Layer
   Loaded last so it refines everything above without touching the desktop look.
   ========================================================================== */

/* --- Overflow & text safety ------------------------------------------------ */
html {
    -webkit-text-size-adjust: 100%;
}

img, svg, video, iframe {
    max-width: 100%;
}

h1, h2, h3, h4, h5, h6, p, li, a, span {
    overflow-wrap: break-word;
}

/* Anchor targets must clear the fixed header */
[id] {
    scroll-margin-top: calc(var(--header-h) + 15px);
}

/* Cards that carry their padding in the markup are normalised here instead */
.about-hero-card,
.contact-info-card {
    padding: 50px;
}

/* Package detail headings scale with the viewport */
.package-detail-content h1 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
}

.package-detail-content h2,
.policy-content h2 {
    font-size: clamp(1.25rem, 4vw, 1.6rem);
}

/* Drawer backdrop (mobile only, see media query below) */
.nav-backdrop {
    display: none;
}

/* --- Tablet / small laptop ------------------------------------------------- */
@media (max-width: 991px) {
    :root {
        --header-h: 72px;
    }
}

/* --- Mobile ---------------------------------------------------------------- */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px;
    }

    /* Navigation drawer */
    .nav-links {
        width: min(82%, 320px);
        height: 100dvh;
        padding-top: calc(var(--header-h) + 15px);
        padding-bottom: calc(20px + env(safe-area-inset-bottom));
    }

    .nav-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.35s ease, visibility 0.35s ease;
        z-index: 1050;
    }

    .nav-backdrop.active {
        opacity: 1;
        visibility: visible;
    }

    /* Stop the page scrolling behind an open drawer */
    body.nav-open {
        overflow: hidden;
    }

    /* Comfortable tap targets (44px minimum) */
    .mobile-menu-btn {
        padding: 8px;
        margin: -8px;
        line-height: 1;
    }

    .btn {
        min-height: 46px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .footer-links a {
        display: inline-block;
        padding: 5px 0;
    }

    /* Hero */
    .hero {
        min-height: 70dvh;
    }

    .hero-overlay {
        padding: 60px 0 80px;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
        margin-bottom: 18px;
        letter-spacing: 0.5px;
    }

    .hero-text-content p {
        max-width: 100%;
        margin-bottom: 30px;
    }

    /* Sections & spacing */
    .section-title {
        margin-bottom: 30px;
    }

    .package-group {
        margin-bottom: 40px;
    }

    .packages-slider-wrap {
        margin: 0;
        padding: 0;
    }

    .package-overview {
        padding: 24px 20px;
    }

    .about-hero-card,
    .contact-info-card {
        padding: 30px 20px !important;
    }

    /* Inline auto-fit grids used on the About page */
    .grid-3 {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    footer {
        padding: 45px 0 20px;
    }

    .footer-grid {
        gap: 30px;
        margin-bottom: 25px;
    }

    .footer-links li {
        overflow-wrap: anywhere;
    }
}

/* --- Small phones ---------------------------------------------------------- */
@media (max-width: 480px) {
    :root {
        --header-h: 64px;
        --section-padding: 40px;
    }

    .container {
        padding: 0 16px;
    }

    .hero {
        min-height: 80dvh;
    }

    .hero-overlay {
        padding: 50px 0 90px;
    }

    .hero-btns .btn,
    .package-card-btns .btn {
        width: 100%;
        min-width: 0;
    }

    .package-img,
    .package-image {
        height: 200px;
    }

    /* Contact page action buttons stack full width */
    .contact-btns > a {
        width: 100%;
        min-width: 0 !important;
        justify-content: center;
        text-align: center;
    }

    .package-hero-slider {
        height: 200px;
    }

    .ph-btn {
        width: 38px;
        height: 38px;
        font-size: 1.2rem;
    }

    .ph-prev { left: 8px; }
    .ph-next { right: 8px; }
}


/* ==========================================================================
   Enquiry Form
   ========================================================================== */

.inquiry-section {
    background: var(--bg-light);
}

.inquiry-card {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    border: 1px solid rgba(0, 35, 67, 0.07);
    border-radius: 18px;
    padding: 40px;
    box-shadow: 0 1px 2px rgba(0, 35, 67, 0.05), 0 18px 40px -20px rgba(0, 35, 67, 0.3);
}

.inquiry-title {
    font-size: clamp(1.4rem, 3.5vw, 1.9rem);
    margin-bottom: 8px;
}

.inquiry-intro {
    color: #5b6b7a;
    margin-bottom: 28px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-width: 0;
}

.form-field-full {
    grid-column: 1 / -1;
}

.form-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--brand-navy-text);
    letter-spacing: 0.01em;
}

.form-field .req {
    color: var(--brand-green-dark);
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--text-color);
    background: #fbfcfd;
    border: 1.5px solid rgba(0, 35, 67, 0.14);
    border-radius: 12px;
    padding: 13px 15px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}

.form-field textarea {
    resize: vertical;
    min-height: 110px;
}

/* Native arrow is stripped by the reset above, so draw one back in */
.form-field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002343' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 18px;
    padding-right: 42px;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
    color: #9aa7b4;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    background: var(--white);
    border-color: var(--brand-green);
    box-shadow: 0 0 0 4px rgba(67, 184, 0, 0.15);
}

.inquiry-submit {
    margin-top: 26px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px 30px;
    font-size: 1rem;
    border-radius: 999px;
}

.form-note {
    margin-top: 14px;
    font-size: 0.83rem;
    color: #7c8894;
    text-align: center;
}

@media (max-width: 768px) {
    .inquiry-card {
        padding: 26px 20px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* 16px keeps iOS from zooming the page when a field is focused */
    .form-field input,
    .form-field select,
    .form-field textarea {
        font-size: 16px;
    }
}

/* Spam honeypot - must never be reachable by a real visitor */
.form-botcheck {
    position: absolute !important;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
    left: -9999px;
}

.form-status {
    margin-top: 16px;
    padding: 13px 16px;
    border-radius: 12px;
    font-size: 0.92rem;
    text-align: center;
    background: rgba(67, 184, 0, 0.12);
    border: 1px solid rgba(67, 184, 0, 0.35);
    color: #1f5c05;
}

.form-status.is-error {
    background: rgba(193, 40, 0, 0.08);
    border-color: rgba(193, 40, 0, 0.3);
    color: #8c2b00;
}

.inquiry-submit[disabled] {
    opacity: 0.65;
    cursor: progress;
}

.form-note a {
    color: var(--brand-navy-accent);
    text-decoration: underline;
    font-weight: 600;
}

.form-note a:hover {
    color: var(--brand-green-dark);
}

/* Centred hero copy sits over bright snow on phones, so darken evenly
   rather than with the left-weighted desktop gradient */
@media (max-width: 768px) {
    .hero-overlay {
        background: linear-gradient(to bottom, rgba(0, 35, 67, 0.5) 0%, rgba(0, 35, 67, 0.62) 100%);
    }

    .hero-text-content p {
        text-shadow: 0 2px 8px rgba(0, 35, 67, 0.45);
    }
}

/* Breathing room between the hero and the first section on phones */
@media (max-width: 768px) {
    .hero + .section {
        padding-top: 72px;
    }
}


/* ==========================================================================
   Founder
   ========================================================================== */

.founder-card {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    align-items: center;
    background: var(--white);
    border: 1px solid rgba(0, 35, 67, 0.07);
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 1px 2px rgba(0, 35, 67, 0.05), 0 18px 40px -22px rgba(0, 35, 67, 0.3);
}

.founder-photo {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 4;
    background: var(--bg-light);
}

.founder-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 22%;
    display: block;
}

.founder-role {
    display: inline-block;
    background: var(--brand-green);
    color: var(--brand-navy);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.founder-name {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    margin-bottom: 16px;
}

.founder-body p {
    color: #4d5c6b;
    font-size: 1.03rem;
    line-height: 1.75;
    margin-bottom: 16px;
}

.founder-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid rgba(0, 35, 67, 0.08);
}

.founder-facts li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--brand-navy-text);
}

/* flex-shrink would squash the glyph out of shape on the longer row */
.founder-facts i {
    flex: 0 0 auto;
    color: var(--brand-green-dark);
    font-size: 1.15rem;
    line-height: 1.45;
}

@media (max-width: 860px) {
    .founder-card {
        grid-template-columns: 1fr;
        gap: 26px;
        padding: 24px;
        text-align: center;
    }

    /* Keep the portrait from towering over the copy once it is full width */
    .founder-photo {
        max-width: 260px;
        margin: 0 auto;
    }

    /* One fact per row, so long labels wrap under themselves not the icon */
    .founder-facts {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .founder-facts li {
        text-align: left;
        max-width: 100%;
    }
}


/* ==========================================================================
   404
   ========================================================================== */

.notfound-card {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 20px;
}

.notfound-icon {
    font-size: 3.5rem;
    color: var(--brand-green);
    display: block;
    margin-bottom: 18px;
}

.notfound-card h1 {
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    margin-bottom: 14px;
}

.notfound-card > p {
    color: #5b6b7a;
    font-size: 1.05rem;
    margin-bottom: 30px;
}

.notfound-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    margin-bottom: 36px;
}

.notfound-links .btn {
    border-radius: 999px;
    padding: 14px 32px;
}

.notfound-suggestions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 26px;
    border-top: 1px solid rgba(0, 35, 67, 0.08);
}

.notfound-suggestions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 9px 0;
    font-weight: 600;
    color: var(--brand-navy-text);
    transition: color 0.2s ease;
}

.notfound-suggestions a:hover {
    color: var(--brand-green-dark);
}

@media (max-width: 480px) {
    .notfound-links .btn {
        width: 100%;
    }
}
