/* style.css — Snowy Trails Tour & Travels */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');
@import url('https://cdn.jsdelivr.net/npm/remixicon@3.5.0/fonts/remixicon.css');

/* ── Design Tokens ──────────────────────────────── */
:root {
    --primary-color: #a7854f;
    --primary-light: #c09e68;
    --primary-dark: #8c6d3d;
    --bg-color: #f9f9f9;
    --text-main: #333333;
    --text-muted: #666666;
    --white: #ffffff;
    --transition: all 0.3s ease;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.05);
    --shadow-md: 0 10px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 30px rgba(0,0,0,0.12);
    --nav-height: 90px;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Lora', serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ── Typography ─────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 15px;
    color: var(--primary-dark);
}

/* Fluid type scale */
h1 { font-size: clamp(1.8rem, 5vw, 3rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 3vw, 1.8rem); }
p  { margin-bottom: 15px; }

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul { list-style: none; }

/* ── Utilities ──────────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 70px 0;
}

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

.section-title {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    text-align: center;
    margin-bottom: 45px;
    position: relative;
    padding-bottom: 15px;
    color: var(--primary-dark);
}
.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 3px;
    background-color: var(--primary-color);
    border-radius: 2px;
}

/* ── Buttons ────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 500;
    font-family: 'Lora', serif;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    white-space: nowrap;
    min-height: 44px; /* touch target */
    text-align: center;
}
.btn:hover {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
}
.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}
.btn-whatsapp:hover {
    background-color: transparent;
    color: #25D366;
}
.btn-phone {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}
.btn-phone:hover {
    background-color: transparent;
    color: var(--primary-color);
}

/* ── Header / Nav ───────────────────────────────── */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--white);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    max-width: 1200px;
    margin: 0 auto;
    height: var(--nav-height);
}
.logo img {
    height: 90px;
    width: auto;
    transition: var(--transition);
    /* Respect explicit width/height attrs from package pages (122x90) */
    max-width: 140px;
}
.nav-links {
    display: flex;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-main);
    position: relative;
    padding: 6px 2px;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color);
}
.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}
.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* Hamburger button */
.menu-btn {
    display: none;
    font-size: 1.8rem;
    cursor: pointer;
    color: var(--primary-dark);
    background: none;
    border: none;
    padding: 8px;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}
.menu-btn:hover {
    background: rgba(167, 133, 79, 0.1);
}

/* ── Hero Section ───────────────────────────────── */
.hero {
    height: 75vh;
    min-height: 420px;
    position: relative;
    overflow: hidden;
    margin-top: var(--nav-height);
}
.hero-slider {
    width: 100%;
    height: 100%;
    position: relative;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.slide.active {
    opacity: 1;
    animation: zoomIn 10s infinite alternate;
}
@keyframes zoomIn {
    0%   { transform: scale(1); }
    100% { transform: scale(1.08); }
}
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 20px;
    z-index: 10;
}
.hero-overlay h1 {
    color: var(--white);
    font-size: clamp(1.8rem, 5.5vw, 4rem);
    margin-bottom: 15px;
    animation: fadeInUp 1s ease;
    text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-overlay p {
    color: rgba(255,255,255,0.93);
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    max-width: 680px;
    margin-bottom: 35px;
    animation: fadeInUp 1.2s ease;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-overlay .btn {
    animation: fadeInUp 1.4s ease;
    padding: 14px 36px;
    font-size: 1.05rem;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Grid System ────────────────────────────────── */
.grid {
    display: grid;
    gap: 28px;
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

/* Offset anchor scroll for sticky header */
section[id] {
    scroll-margin-top: calc(var(--nav-height) + 10px);
}

/* ── Cards ──────────────────────────────────────── */
.card {
    background: var(--white);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}
.card-img {
    height: 230px;
    overflow: hidden;
    flex-shrink: 0;
}
.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.card:hover .card-img img {
    transform: scale(1.08);
}
.card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.card-title {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 12px;
}
.card-text {
    color: var(--text-muted);
    margin-bottom: 18px;
    flex-grow: 1;
    font-size: 0.97rem;
    line-height: 1.7;
}

/* ── Icon Cards ─────────────────────────────────── */
.icon-card {
    background: var(--white);
    padding: 36px 24px;
    border-radius: 14px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border-bottom: 4px solid transparent;
}
.icon-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}
.icon-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 18px;
    display: inline-block;
}
.icon-card .card-title {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
}

/* ── Booking Actions ────────────────────────────── */
.booking-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
    flex-wrap: wrap;
}

/* ── Floating Buttons ───────────────────────────── */
.floating-whatsapp {
    position: fixed;
    left: 16px;
    bottom: 24px;
    width: 56px;
    height: 56px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 16px rgba(37,211,102,0.4);
    z-index: 999;
    transition: var(--transition);
    text-decoration: none;
    animation: bounce 2s infinite;
}
.floating-whatsapp:hover {
    transform: scale(1.12);
    color: white;
}

.back-to-top {
    position: fixed;
    right: 16px;
    bottom: 24px;
    width: 48px;
    height: 48px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    box-shadow: var(--shadow-md);
    z-index: 999;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: none;
}
.back-to-top.show {
    opacity: 1;
    visibility: visible;
}
.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-3px);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-12px); }
    60% { transform: translateY(-6px); }
}

/* ── Footer ─────────────────────────────────────── */
.footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 55px 0 20px;
}
/* .footer-grid is used by package pages — same styles as .footer-top */
.footer-top, .footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px;
    margin-bottom: 36px;
}
.footer h3, .footer h4 {
    color: var(--white);
    font-size: 1.15rem;
    margin-bottom: 22px;
    position: relative;
    padding-bottom: 10px;
}
.footer h3::after, .footer h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 36px;
    height: 2px;
    background-color: rgba(255,255,255,0.6);
}
.footer p, .footer a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
}
.footer a:hover {
    color: var(--white);
    padding-left: 4px;
}
.footer ul li {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
}
.footer ul li i {
    flex-shrink: 0;
    margin-top: 2px;
    font-size: 1rem;
}
.footer-bottom {
    text-align: center;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 0.88rem;
}
.footer-bottom p {
    margin-bottom: 4px;
}

/* Developer credit — show name only, no visible URL */
.dev-link {
    color: rgba(255,255,255,0.9);
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid rgba(255,255,255,0.4);
    transition: var(--transition);
}
.dev-link:hover {
    color: var(--white);
    border-bottom-color: var(--white);
    padding-left: 0;
}
.social-links {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}
.social-links a, .social-icon {
    width: 42px;
    height: 42px;
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: var(--transition);
    color: rgba(255,255,255,0.9);
    text-decoration: none;
}
.social-links a:hover, .social-icon:hover {
    background: var(--white);
    color: var(--primary-color);
    padding-left: 0;
    transform: translateY(-3px);
}

/* ── Page Header (inner pages) ──────────────────── */
.page-header {
    padding: 110px 20px 60px;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 100%);
    color: var(--white);
    text-align: center;
    margin-top: var(--nav-height);
}
.page-header h1 {
    color: var(--white);
    margin-bottom: 8px;
    font-size: clamp(1.6rem, 5vw, 2.8rem);
}

/* ── Package Details (style.css version) ────────── */
.package-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 36px;
}
.package-content {
    background: var(--white);
    padding: 36px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 36px;
}
.itinerary-day {
    margin-bottom: 28px;
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
}
.itinerary-day h4 {
    color: var(--primary-color);
    margin-bottom: 10px;
}
.inclusions-list, .exclusions-list {
    margin-bottom: 28px;
}
.inclusions-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 28px;
    line-height: 1.7;
}
.inclusions-list li::before {
    content: '\eb7a';
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: #25D366;
    font-weight: bold;
}
.exclusions-list li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 28px;
    line-height: 1.7;
}
.exclusions-list li::before {
    content: '\eb96';
    font-family: 'remixicon';
    position: absolute;
    left: 0;
    color: #e74c3c;
    font-weight: bold;
}

/* ── Scroll Animations ──────────────────────────── */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in.appear {
    opacity: 1;
    transform: translateY(0);
}

/* ════════════════════════════════════════════════ */
/*   RESPONSIVE BREAKPOINTS                         */
/* ════════════════════════════════════════════════ */

/* ── Tablet landscape / small desktop (≤1024px) ── */
@media (max-width: 1024px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .nav-links { gap: 20px; }
    .nav-links a { font-size: 0.95rem; }
}

/* ── Tablet portrait (≤900px) ────────────────────  */
@media (max-width: 900px) {
    :root { --nav-height: 80px; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-5 { grid-template-columns: repeat(3, 1fr); }
    .footer-top, .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .package-layout { grid-template-columns: 1fr; }
    .section { padding: 55px 0; }
    .hero { height: 60vh; }
}

/* ── Mobile (≤768px) ─────────────────────────────  */
@media (max-width: 768px) {
    /* Nav height: 90px logo + 10px top + 10px bottom padding */
    :root { --nav-height: 110px; }

    /* Hamburger menu */
    .menu-btn {
        display: flex;
    }

    /* Full-screen mobile nav */
    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100dvh - var(--nav-height));
        background: var(--white);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 20px 0;
        gap: 0;
        transition: left 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 0 10px 30px rgba(0,0,0,0.12);
        overflow-y: auto;
    }
    .nav-links.active {
        left: 0;
    }
    .nav-links a {
        font-size: 1.1rem;
        padding: 16px 24px;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        min-height: 52px;
        width: 100%;
    }
    .nav-links a::after { display: none; }
    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(167, 133, 79, 0.08);
        color: var(--primary-color);
    }

    /* Logo — keep at 122×90 on mobile as requested */
    .logo img {
        height: 90px;
        max-width: 122px;
    }

    /* Hero */
    .hero { height: 55vh; min-height: 340px; }
    .hero-overlay h1 { font-size: clamp(1.5rem, 6vw, 2.2rem); }
    .hero-overlay p  { font-size: clamp(0.9rem, 3.5vw, 1.1rem); margin-bottom: 24px; }
    .hero-overlay .btn { padding: 12px 28px; font-size: 0.95rem; }

    /* Grids → single col */
    .grid-2,
    .grid-3,
    .grid-4,
    .grid-5,
    .package-layout {
        grid-template-columns: 1fr;
    }

    /* Cards */
    .card-img { height: 200px; }
    .card-body { padding: 18px; }

    /* Sections */
    .section { padding: 45px 0; }
    .section-title { margin-bottom: 32px; }

    /* Page header */
    .page-header { padding: 90px 20px 50px; }

    /* Footer */
    .footer-top, .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer { padding: 45px 0 18px; }

    /* Package content */
    .package-content { padding: 22px 18px; }

    /* Booking actions full width */
    .booking-actions { flex-direction: column; }
    .booking-actions .btn { width: 100%; }
}

/* ── Small mobile (≤480px) ───────────────────────  */
@media (max-width: 480px) {
    /* Nav: logo stays 122×90, nav height stays 110px */
    :root { --nav-height: 110px; }

    .logo img { height: 90px; max-width: 122px; }
    .nav-container { padding: 10px 16px; }
    .container { padding: 0 16px; }

    .hero { height: 50vh; min-height: 300px; }
    .hero-overlay { padding: 16px; }
    .hero-overlay h1 { font-size: clamp(1.3rem, 7vw, 1.9rem); }
    .hero-overlay p  { font-size: 0.9rem; }

    .icon-card { padding: 28px 18px; }
    .icon-card i { font-size: 2.5rem; }

    .card-img { height: 180px; }
    .section { padding: 36px 0; }
    .section-title { font-size: clamp(1.3rem, 5vw, 1.8rem); }
    .page-header { padding: 80px 16px 40px; }

    .footer-top, .footer-grid { gap: 24px; }
    .social-links a { width: 38px; height: 38px; }

    .floating-whatsapp { left: 12px; bottom: 18px; width: 50px; height: 50px; font-size: 1.6rem; }
    .back-to-top { right: 12px; bottom: 18px; width: 42px; height: 42px; font-size: 1.3rem; }
}

/* ── Cab Booking — center car name & button ─────  */
.cab-section .card-body {
    text-align: center;
    align-items: center;
}

@media (max-width: 360px) {
    .hero-overlay h1 { font-size: 1.25rem; }
    .btn { padding: 11px 20px; font-size: 0.9rem; }
    /* Logo stays 90px (122×90 aspect) — do NOT shrink further */
}

