/*
Theme Name: Zion Trails Lanka
Theme URI: https://example.com/
Author: Zion Trails Lanka
Author URI: https://example.com/
Description: Custom travel website theme for Zion Trails Lanka.
Version: 1.0
License: GNU General Public License v2 or later
Text Domain: zion-trails
*/

/* =========================================
   IMPORT EXISTING WEBSITE CSS
========================================= */

@import url(
    'https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600&family=Playfair+Display:wght@400;500;600&display=swap'
);


/* =========================================
   VARIABLES
========================================= */

:root {
    --cream: #f3f0e7;
    --dark: #17221c;
    --dark-2: #101713;
    --green: #263c30;
    --gold: #b4935a;
    --white: #ffffff;
    --muted: #70776f;
    --border: rgba(0,0,0,0.12);

    --serif: "Playfair Display", serif;
    --sans: "DM Sans", sans-serif;
}


/* =========================================
   RESET
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--sans);
    background: var(--cream);
    color: var(--dark);
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
}


/* =========================================
   HEADER
========================================= */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;

    z-index: 1000;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 28px 5%;

    color: var(--white);

    transition:
        background 0.4s ease,
        padding 0.4s ease;
}

.site-header.scrolled {
    background: rgba(16,23,19,0.96);

    backdrop-filter: blur(12px);

    padding-top: 18px;
    padding-bottom: 18px;
}


/* LOGO */

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-size: 19px;
    font-weight: 600;
    letter-spacing: 5px;
}

.logo-sub {
    margin-top: 6px;

    font-size: 8px;
    letter-spacing: 4px;
}


/* NAVIGATION */

.main-nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.main-nav a,
.whatsapp {
    position: relative;

    font-size: 12px;
    letter-spacing: 0.8px;
}

.main-nav a::after,
.whatsapp::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: -7px;

    width: 0;
    height: 1px;

    background: var(--white);

    transition: width 0.3s ease;
}

.main-nav a:hover::after,
.whatsapp:hover::after {
    width: 100%;
}


/* HEADER BUTTONS */

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
}

.book-button {
    padding: 12px 23px;

    border: 1px solid rgba(255,255,255,0.7);

    font-size: 11px;
    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: 0.3s ease;
}

.book-button:hover {
    background: var(--white);
    color: var(--dark);
}


/* MOBILE MENU BUTTON */

.menu-toggle {
    display: none;

    width: 42px;
    height: 42px;

    background: transparent;

    border: 0;

    cursor: pointer;
}

.menu-toggle span {
    display: block;

    width: 24px;
    height: 1px;

    margin: 6px auto;

    background: var(--white);

    transition: 0.3s ease;
}


/* =========================================
   HERO
========================================= */

.hero {
    position: relative;

    min-height: 100vh;

    display: flex;
    align-items: center;

    overflow: hidden;

    color: var(--white);
}


/* SLIDES */

.hero-slides {
    position: absolute;

    inset: 0;

    z-index: 0;
}

.hero-slide {
    position: absolute;

    inset: 0;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;

    opacity: 0;

    transform: scale(1.05);

    transition:
        opacity 1.7s ease,
        transform 8s ease;
}

.hero-slide.active {
    opacity: 1;

    transform: scale(1);
}


/* HERO OVERLAY */

.hero-overlay {
    position: absolute;

    inset: 0;

    z-index: 1;

    background:
        linear-gradient(
            90deg,
            rgba(6,16,10,0.82),
            rgba(6,16,10,0.42) 48%,
            rgba(6,16,10,0.12)
        );
}


/* HERO CONTENT */

.hero-content {
    position: relative;

    z-index: 2;

    width: min(900px, 90%);

    margin-left: 8%;
}

.hero-label,
.section-label {
    margin-bottom: 22px;

    font-size: 10px;
    font-weight: 600;

    letter-spacing: 3px;
}

.hero h1 {
    max-width: 900px;

    font-family: var(--serif);

    font-size: clamp(52px, 7vw, 105px);

    font-weight: 400;

    line-height: 0.98;
}

.hero-description {
    max-width: 510px;

    margin-top: 30px;

    font-size: 16px;

    color: rgba(255,255,255,0.85);
}


/* HERO BUTTONS */

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 38px;
}

.primary-button,
.secondary-button,
.dark-button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 50px;

    padding: 0 27px;

    font-size: 10px;

    letter-spacing: 1.5px;

    text-transform: uppercase;

    transition: 0.3s ease;
}

.primary-button {
    background: var(--white);

    color: var(--dark);
}

.primary-button:hover {
    background: var(--gold);

    color: var(--white);
}

.secondary-button {
    border: 1px solid rgba(255,255,255,0.7);

    color: var(--white);
}

.secondary-button:hover {
    background: var(--white);

    color: var(--dark);
}


/* HERO COUNTER */

.hero-counter {
    position: absolute;

    right: 5%;
    bottom: 48px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 10px;

    letter-spacing: 2px;
}

.counter-line {
    width: 60px;

    height: 1px;

    background: rgba(255,255,255,0.6);
}


/* SCROLL INDICATOR */

.scroll-indicator {
    position: absolute;

    left: 5%;
    bottom: 45px;

    z-index: 3;

    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 9px;

    letter-spacing: 2px;

    opacity: 0.75;
}

.scroll-line {
    width: 45px;

    height: 1px;

    background: var(--white);
}


/* =========================================
   GENERAL SECTION HEADINGS
========================================= */

.section-heading {
    position: relative;

    z-index: 20;

    width: 100%;

    max-width: 900px;

    margin-bottom: 65px;

    isolation: isolate;
}

.section-heading .section-label {
    position: relative;

    z-index: 21;

    margin-bottom: 22px;
}

.section-heading h2 {
    position: relative;

    z-index: 21;

    display: block;

    width: 100%;

    margin: 0;

    padding: 0;

    overflow: visible;

    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 72px);

    font-weight: 400;

    line-height: 1.08;

    word-break: normal;

    overflow-wrap: normal;
}


/* =========================================
   INTRO
========================================= */

.intro {
    max-width: 900px;

    margin: auto;

    padding: 150px 5%;

    text-align: center;
}

.intro h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 72px);

    font-weight: 400;

    line-height: 1.05;
}

.intro-text {
    max-width: 620px;

    margin: 32px auto 0;

    color: var(--muted);

    font-size: 16px;
}


/* =========================================
   EXPERIENCES
========================================= */

.experiences {
    position: relative;

    padding: 120px 5%;

    background: var(--dark);

    color: var(--white);

    overflow: hidden;
}

.experience-grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 12px;
}

.experience-card {
    position: relative;

    min-height: 500px;

    display: flex;

    align-items: flex-end;

    padding: 30px;

    overflow: hidden;

    background-position: center;
    background-size: cover;

    transition:
        transform 0.5s ease;
}

.experience-card::before {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            transparent 30%,
            rgba(0,0,0,0.82)
        );
}

.experience-card:hover {
    transform: translateY(-8px);
}

.experience-card:hover::before {
    background:
        linear-gradient(
            transparent 10%,
            rgba(0,0,0,0.9)
        );
}

.card-content {
    position: relative;

    z-index: 2;
}

.card-content p {
    margin-bottom: 8px;

    font-size: 10px;

    letter-spacing: 2px;
}

.card-content h3 {
    font-family: var(--serif);

    font-size: 27px;

    font-weight: 400;
}

.card-content a {
    display: inline-block;

    margin-top: 15px;

    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* EXPERIENCE IMAGES */

.nature {
    background-image: url("images/nature.jpg");
}

.culture {
    background-image: url("images/culture.jpg");
}

.ocean {
    background-image: url("images/ocean.jpg");
}

.adventure {
    background-image: url("images/adventure.jpg");
}


/* =========================================
   TOURS
========================================= */

.tours {
    position: relative;

    padding: 140px 5%;

    overflow: hidden;
}


/* IMPORTANT HEADING FIX */

.tours .section-heading {
    position: relative;

    z-index: 50;

    margin-bottom: 70px;
}

.tours .section-heading h2 {
    position: relative;

    z-index: 51;

    background: var(--cream);
}


/* TOUR GRID */

.tour-grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;

    clear: both;
}


/* TOUR CARD */

.tour-card {
    position: relative;

    background: var(--white);

    overflow: hidden;

    transition:
        transform 0.4s ease,
        box-shadow 0.4s ease;
}

.tour-card:hover {
    transform: translateY(-8px);

    box-shadow:
        0 20px 50px rgba(0,0,0,0.1);
}


/* TOUR IMAGE */

.tour-image {
    position: relative;

    height: 450px;

    background-position: center;
    background-size: cover;

    z-index: 1;
}

.tour-one {
    background-image: url("images/tour.jpg");
}

.tour-two {
    background-image: url("images/tour2.jpg");
}

.tour-three {
    background-image: url("images/tour3.jpg");
}

.tour-tag {
    position: absolute;

    top: 20px;
    left: 20px;

    padding: 8px 12px;

    background:
        rgba(255,255,255,0.92);

    font-size: 9px;

    letter-spacing: 1px;
}


/* TOUR INFO */

.tour-info {
    position: relative;

    z-index: 2;

    padding: 27px;
}

.tour-info > p {
    font-size: 9px;

    letter-spacing: 2px;

    color: var(--muted);
}

.tour-info h3 {
    margin: 9px 0;

    font-family: var(--serif);

    font-size: 30px;

    font-weight: 400;
}

.tour-price {
    display: block;

    margin-bottom: 18px;

    font-size: 13px;

    font-weight: 600;
}

.tour-info a {
    font-size: 10px;

    letter-spacing: 1px;

    text-transform: uppercase;
}


/* VIEW ALL BUTTON */

.center-button {
    position: relative;

    z-index: 5;

    margin-top: 55px;

    text-align: center;
}

.dark-button {
    background: var(--dark);

    color: var(--white);
}

.dark-button:hover {
    background: var(--gold);
}


/* =========================================
   STAYS
========================================= */

.stays {
    min-height: 720px;

    display: flex;

    align-items: center;

    padding: 100px 8%;

    color: var(--white);

    background:
        linear-gradient(
            90deg,
            rgba(10,22,15,0.85),
            rgba(10,22,15,0.2)
        ),
        url("images/stay.jpg")
        center/cover;
}

.stay-content {
    max-width: 620px;
}

.stay-content h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 72px);

    font-weight: 400;

    line-height: 1.05;
}

.stay-content > p:not(.section-label) {
    margin: 30px 0;

    color: rgba(255,255,255,0.82);
}


/* =========================================
   WHY US
========================================= */

.why-us {
    padding: 140px 5%;

    overflow: hidden;
}

.reasons {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 70px;
}

.reason span {
    color: var(--gold);

    font-size: 11px;

    letter-spacing: 2px;
}

.reason h3 {
    margin: 15px 0;

    font-family: var(--serif);

    font-size: 30px;

    font-weight: 400;
}

.reason p {
    max-width: 310px;

    color: var(--muted);

    font-size: 14px;
}


/* =========================================
   GALLERY
========================================= */

.gallery {
    position: relative;

    padding: 120px 5%;

    background: #eae6dc;

    overflow: hidden;
}


/* IMPORTANT GALLERY HEADING FIX */

.gallery .section-heading {
    position: relative;

    z-index: 50;

    margin-bottom: 70px;
}

.gallery .section-heading h2 {
    position: relative;

    z-index: 51;

    background: #eae6dc;
}


/* GALLERY GRID */

.gallery-grid {
    position: relative;

    z-index: 1;

    display: grid;

    grid-template-columns:
        1.2fr 0.8fr 1fr;

    grid-template-rows:
        300px 300px;

    gap: 10px;

    clear: both;
}

.gallery-item {
    position: relative;

    z-index: 1;

    background-position: center;

    background-size: cover;

    min-width: 0;
}

.gallery-one {
    grid-row: span 2;
    background-image: url("images/nature.jpg");
}

.gallery-two {
    background-image: url("images/culture.jpg");
}

.gallery-three {
    background-image: url("images/ocean.jpg");
}

.gallery-four {
    background-image: url("images/adventure.jpg");
}

.gallery-five {
    background-image: url("images/tour3.jpg");
}


/* =========================================
   BOOKING CTA
========================================= */

.booking-cta {
    min-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: var(--white);

    background:
        linear-gradient(
            rgba(20,42,31,0.82),
            rgba(20,42,31,0.82)
        ),
        url("images/booking.jpg")
        center/cover;
}

.booking-content {
    max-width: 800px;
}

.booking-content h2 {
    font-family: var(--serif);

    font-size: clamp(42px, 5vw, 72px);

    font-weight: 400;

    line-height: 1.05;
}

.booking-content > p:not(.section-label) {
    margin-top: 25px;

    color: rgba(255,255,255,0.78);
}

.cta-buttons {
    display: flex;

    justify-content: center;

    gap: 14px;

    margin-top: 35px;
}


/* =========================================
   FOOTER
========================================= */

footer {
    padding: 80px 5% 30px;

    background: var(--dark-2);

    color: var(--white);
}

.footer-top {
    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 50px;

    padding-bottom: 70px;
}

.footer-brand h2 {
    font-family: var(--serif);

    font-size: 30px;

    font-weight: 400;
}

.footer-brand p {
    margin-top: 10px;

    color: rgba(255,255,255,0.5);
}

.footer-column {
    display: flex;

    flex-direction: column;

    gap: 13px;
}

.footer-column h4 {
    margin-bottom: 10px;

    font-size: 10px;

    letter-spacing: 2px;
}

.footer-column a {
    color: rgba(255,255,255,0.6);

    font-size: 12px;

    transition: 0.3s;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;

    justify-content: space-between;

    gap: 20px;

    padding-top: 25px;

    border-top:
        1px solid rgba(255,255,255,0.12);

    color: rgba(255,255,255,0.35);

    font-size: 10px;
}

.footer-bottom div {
    display: flex;

    gap: 25px;
}


/* =========================================
   WHATSAPP FLOAT
========================================= */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    z-index: 999;

    width: 52px;
    height: 52px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25D366;

    color: white;

    font-size: 10px;

    font-weight: 600;

    box-shadow:
        0 10px 30px rgba(0,0,0,0.2);

    transition:
        transform 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);
}


/* =========================================
   SCROLL REVEAL
========================================= */

.reveal {
    opacity: 0;

    transform: translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1000px) {

    .main-nav {
        gap: 18px;
    }

    .experience-grid {
        grid-template-columns:
            repeat(2, 1fr);
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    .footer-top {
        grid-template-columns:
            1fr 1fr;
    }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 700px) {

    .site-header {
        padding: 20px 5%;
    }


    /* MOBILE NAV */

    .main-nav {
        position: fixed;

        inset: 0;

        display: flex;

        flex-direction: column;

        align-items: center;

        justify-content: center;

        gap: 30px;

        background: var(--dark);

        opacity: 0;

        visibility: hidden;

        transform: translateY(-10px);

        transition:
            opacity 0.3s ease,
            visibility 0.3s ease,
            transform 0.3s ease;
    }

    .main-nav.active {
        opacity: 1;

        visibility: visible;

        transform: translateY(0);
    }

    .main-nav a {
        font-size: 18px;
    }


    .header-actions .whatsapp {
        display: none;
    }


    .menu-toggle {
        display: block;

        position: relative;

        z-index: 1100;
    }

    .menu-toggle.active span:nth-child(1) {
        transform:
            translateY(7px)
            rotate(45deg);
    }

    .menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.active span:nth-child(3) {
        transform:
            translateY(-7px)
            rotate(-45deg);
    }


    /* HERO */

    .hero-content {
        width: 90%;

        margin-left: 5%;
    }

    .hero h1 {
        font-size:
            clamp(48px, 13vw, 72px);
    }

    .hero-description {
        font-size: 14px;
    }

    .hero-buttons {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero-counter {
        right: 5%;

        bottom: 30px;
    }

    .scroll-indicator {
        display: none;
    }


    /* INTRO */

    .intro {
        padding:
            100px 7%;
    }


    /* SECTION HEADINGS */

    .section-heading {
        margin-bottom: 45px;
    }

    .section-heading h2 {
        font-size:
            clamp(40px, 11vw, 58px);

        line-height: 1.08;

        overflow: visible;
    }


    /* EXPERIENCES */

    .experiences,
    .tours,
    .why-us,
    .gallery {

        padding-top: 90px;

        padding-bottom: 90px;
    }

    .experience-grid {
        grid-template-columns: 1fr;
    }

    .experience-card {
        min-height: 420px;
    }


    /* TOURS */

    .tours .section-heading {
        margin-bottom: 50px;
    }

    .tour-grid {
        grid-template-columns: 1fr;
    }

    .tour-image {
        height: 380px;
    }


    /* WHY US */

    .reasons {
        grid-template-columns: 1fr;

        gap: 45px;
    }


    /* GALLERY */

    .gallery .section-heading {
        margin-bottom: 50px;
    }

    .gallery-grid {
        display: grid;

        grid-template-columns:
            1fr 1fr;

        grid-template-rows:
            260px 200px 200px;
    }

    .gallery-one {
        grid-row: span 2;
    }

    .gallery-five {
        grid-column: span 2;
    }


    /* FOOTER */

    .footer-top {
        grid-template-columns:
            1fr 1fr;
    }

    .footer-brand {
        grid-column: span 2;
    }

    .footer-bottom {
        flex-direction: column;
    }

    .footer-bottom div {
        flex-direction: column;

        gap: 8px;
    }


    /* CTA */

    .cta-buttons {
        flex-direction: column;

        align-items: center;
    }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 450px) {

    .logo-main {
        font-size: 16px;
    }

    .logo-sub {
        font-size: 7px;
    }

    .book-button {
        padding:
            10px 14px;
    }

    .tour-image {
        height: 380px;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }

    .footer-brand {
        grid-column: auto;
    }

}
/* =========================================
   WORDPRESS DEFAULT FIXES
========================================= */

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
}

img {
    max-width: 100%;
    height: auto;
}


/* =========================================
   WORDPRESS ADMIN BAR FIX
========================================= */

.admin-bar .site-header {
    top: 32px;
}

@media screen and (max-width: 782px) {

    .admin-bar .site-header {
        top: 46px;
    }

}


/* =========================================
   WHATSAPP FLOATING BUTTON
========================================= */

.whatsapp-float {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 56px;
    height: 56px;

    z-index: 999;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #25D366;
    color: #ffffff;

    text-decoration: none;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.22);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.08);

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.28);
}

.whatsapp-float svg {
    width: 30px;
    height: 30px;

    fill: currentColor;
}


/* =========================================
   MOBILE WHATSAPP
========================================= */

@media (max-width: 700px) {

    .whatsapp-float {
        width: 52px;
        height: 52px;

        right: 18px;
        bottom: 18px;
    }

    .whatsapp-float svg {
        width: 28px;
        height: 28px;
    }

}