/*
 Theme Name:   Travel Monster Child
 Description:  A barebones child theme of Travel Monster.
 Author:       Antigravity
 Template:     travel-monster
 Version:      1.0.0
*/

/* ==========================================================================
   CSS Variables & Global Settings
   ========================================================================== */
   :root {
    /* Color Palette */
    --clr-ivory: #FFFFE3;
    --clr-ivory-dark: #F5F5D9;
    --clr-dark: #1A1C19;
    --clr-dark-teal: #0B2425;
    --clr-light: #FFFFFF;

    /* Typography */
    --font-primary: 'Outfit', sans-serif;
    --font-secondary: 'Playfair Display', serif;

    /* Spacing & Layout */
    --section-padding: 8rem 2rem;
    --container-max-width: 1400px;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    background-color: var(--clr-ivory);
    color: var(--clr-dark);
    line-height: 1.7;
    overflow-x: hidden;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */
.container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.bg-ivory { background-color: var(--clr-ivory); }
.text-light { color: var(--clr-light); }
.dark-text { color: var(--clr-dark); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.font-serif { font-family: var(--font-secondary); }
.mt-4 { margin-top: 2rem; }
.text-light-weight {
    font-weight: 300;
    opacity: 0.8;
}

.section-subtitle {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.35em;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-secondary);
    font-size: 3rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 4.5rem;
    }
}

/* ==========================================================================
   Buttons & Links
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-sm {
    padding: 0.8rem 1.8rem;
    font-size: 0.65rem;
}

.btn-primary {
    /* Very subtle luxury gradient */
    background-image: linear-gradient(135deg, #1E3A8A 0%, #0F172A 100%);
    color: var(--clr-light);
    border: none;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.15);
}

.btn-primary:hover {
    background-image: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 23, 42, 0.25);
}

.btn-outline-glass {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--clr-light);
}

.btn-outline-glass:hover {
    background-color: var(--clr-light);
    color: var(--clr-dark);
}

.link-underline {
    display: inline-block;
    text-decoration: none;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    border-bottom: 1px solid currentColor;
    padding-bottom: 0.3rem;
    transition: var(--transition);
}

.link-underline:hover {
    opacity: 0.6;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 0;
    transition: var(--transition);
}

.header.scrolled {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    padding: 1.2rem 0;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: var(--container-max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--clr-light);
    transition: var(--transition);
}

.header.scrolled .logo,
.header.scrolled .nav-link {
    color: var(--clr-dark);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.25em;
    line-height: 1.2;
    display: block;
}

.nav-links {
    display: flex;
    gap: 3rem;
}

.nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    transition: var(--transition);
}

.nav-link:hover {
    opacity: 0.6;
}

/* Mobile Menu Toggle */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 30px;
    height: 20px;
    position: relative;
}

.hamburger-line {
    position: absolute;
    width: 100%;
    height: 1px;
    background-color: var(--clr-light);
    transition: all 0.3s ease;
}

.header.scrolled .hamburger-line {
    background-color: var(--clr-dark);
}

.mobile-menu-btn.active .hamburger-line {
    background-color: var(--clr-light);
}

.hamburger-line:nth-child(1) { top: 0; }
.hamburger-line:nth-child(2) { top: 50%; transform: translateY(-50%); }
.hamburger-line:nth-child(3) { bottom: 0; }

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}
.mobile-menu-btn.active .hamburger-line:nth-child(2) { opacity: 0; }
.mobile-menu-btn.active .hamburger-line:nth-child(3) {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Mobile Navigation Dropdown */
.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--clr-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: 999;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
}

.mobile-nav-link {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    color: var(--clr-light);
    text-decoration: none;
    transition: var(--transition);
}

.mobile-nav-link:hover {
    opacity: 0.6;
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-menu-btn { display: block; }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    color: var(--clr-light);
    padding: 8rem 2rem 4rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    z-index: -2;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 100%);
    z-index: -1;
}

.hero-content {
    width: 100%;
    z-index: 1;
}

.hero-text-wrapper {
    max-width: 900px;
}

.hero-subtitle {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.4em;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

.hero-title {
    font-family: var(--font-secondary);
    font-size: 4rem;
    font-weight: 400;
    line-height: 0.9;
    margin-bottom: 2.5rem;
}

.hero-desc {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.8;
    margin-bottom: 3.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 7.5rem;
    }
}

/* ==========================================================================
   About Section (Trust Markers)
   ========================================================================== */
.about-section {
    padding: var(--section-padding);
}

.about-header {
    margin-bottom: 6rem;
}

.trust-markers-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
}

.trust-marker {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.trust-icon {
    margin-bottom: 2rem;
    color: var(--clr-dark);
}

.trust-icon svg {
    width: 48px;
    height: 48px;
    stroke-width: 1px;
}

.trust-title {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: 1rem;
}

.trust-desc {
    font-size: 0.95rem;
    font-weight: 300;
    opacity: 0.7;
    max-width: 280px;
}

@media (min-width: 768px) {
    .trust-markers-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ==========================================================================
   Journeys Section (Featured)
   ========================================================================== */
.journeys-section {
    padding: 4rem 2rem 10rem;
}

.section-header.space-between {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 5rem;
}

.journeys-grid {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding-bottom: 3rem;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.journeys-grid::-webkit-scrollbar {
    display: none;
}

.journey-card {
    position: relative;
    flex: 0 0 calc(100% - 2rem);
    height: 550px;
    border-radius: 16px;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    color: var(--clr-light);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
}

.journey-img-wrapper {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.journey-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.journey-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    transition: background 0.4s ease;
}

.journey-card:hover .journey-img {
    transform: scale(1.05);
}

.journey-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem;
}

.journey-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.journey-location,
.journey-duration {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
}

.journey-location {
    color: var(--clr-ivory);
}

.journey-duration {
    opacity: 0.8;
}

.journey-name {
    font-family: var(--font-secondary);
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.journey-desc {
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.6;
    opacity: 0.8;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.journey-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 1.5rem;
}

.journey-price {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.journey-price .font-serif {
    font-size: 1.2rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}

@media (min-width: 768px) {
    .journey-card {
        flex: 0 0 450px;
        height: 650px;
    }
}

/* ==========================================================================
   History Section (Split Layout)
   ========================================================================== */
.history-section {
    padding: 0 2rem 8rem;
}

.split-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: flex-start;
}

@media (min-width: 992px) {
    .split-layout {
        grid-template-columns: 1fr 1fr;
    }

    .split-text {
        padding-left: 4rem;
    }

    .split-text p {
        font-size: 1.2rem;
        line-height: 1.8;
    }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    padding: 6rem 2rem 2rem;
    background-color: var(--clr-ivory-dark);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    margin-bottom: 6rem;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: 0.2em;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.footer-tagline {
    font-size: 1rem;
    max-width: 280px;
}

.footer-heading {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.newsletter-input {
    flex: 1;
    min-width: 200px;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.2);
    padding: 0.8rem 0;
    color: var(--clr-dark);
    font-family: inherit;
    font-size: 0.9rem;
}

.newsletter-input:focus {
    outline: none;
    border-bottom-color: var(--clr-dark);
}

.social-links {
    display: flex;
    gap: 2rem;
}

.social-links a {
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.social-links a:hover {
    opacity: 0.5;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(0,0,0,0.1);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 3rem;
}

.footer-legal a {
    text-decoration: none;
    transition: var(--transition);
}

.footer-legal a:hover {
    opacity: 0.5;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 2fr 1fr 1fr;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}