/*
  Capitol Reef Star Tours — Shared Stylesheet
  This file contains all the styles for the website, including layout, colors, typography, and responsive adjustments.
*/

/*
  Palette + Tokens (Light Base)
  --------------------------------
  CSS Custom Properties (variables) are defined in the `:root` selector, making them globally available.
  This makes it easy to maintain a consistent design system and to create themes.
*/
:root {
    /* Base Colors */
    --paper: #faf4ee; /* warm off-white background */
    --paper-2: #fffdf9; /* card surface */
    --ink: #2e2a28; /* primary text */
    --muted: #6e5e52; /* secondary text */

    /* Accent Palette (Desert-themed) */
    --sand: #d8c3a5; /* tan */
    --mesa: #8b4a2b; /* rust brown */
    --terracotta: #e68855; /* even brighter terracotta red */
    --sage: #6b8f71; /* cactus green */
    --sunset: #e8b04b; /* sunset yellow */
    --sky: #35527a; /* deep blue accent */

    /* Semantic Accent Variables */
    --accent: var(--terracotta);
    --accent-2: var(--sunset);
    --accent-3: var(--sage);

    /* UI Element Variables */
    --stroke: rgba(139, 74, 43, 0.22); /* for borders and dividers */
    --shadow: 0 14px 38px rgba(74, 36, 16, 0.18); /* a soft, deep shadow for cards */
    --radius: 18px; /* a consistent border radius for cards and other elements */
}

/*
  Typography
  --------------------------------
  Uniform h1 styling across all pages to satisfy accessibility warnings.
*/

/* Uniform h1 styling across all pages */
h1 {
    font-family: "Inter", sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.5rem 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }
}

/*
  Base Styles
  --------------------------------
  These are foundational styles applied to the entire document.
*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
} /* A common reset to ensure consistent box model and remove default spacing. */
html,
body {
    height: 100%;
} /* Ensures the body can fill the full height of the viewport. */
body {
    font-family:
        Inter,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Arial,
        sans-serif; /* A modern, sans-serif font stack. */
    line-height: 1.65; /* A comfortable line height for readability. */
    color: var(--ink);
    background-color: var(--paper);
    /* A complex background effect combining a subtle dot pattern with large, soft radial gradients to create a textured, desert-like feel. */
    background-image:
        radial-gradient(rgba(46, 42, 40, 0.045) 1px, transparent 1.3px),
        radial-gradient(
            1200px 800px at 12% -10%,
            rgba(227, 189, 160, 0.24) 0%,
            transparent 60%
        ),
        radial-gradient(
            900px 600px at 120% 10%,
            rgba(160, 196, 170, 0.16) 0%,
            transparent 55%
        );
    background-size:
        4px 4px,
        auto,
        auto;
    overflow-x: hidden; /* Prevents horizontal scrolling. */
}

/* Home Page Background (match tours/about sand tone) */
body.home-page {
    /* Stronger sand-pink backdrop */
    background: #EDC9AF !important;
    background-image: none !important;
}

/* Force clean white backdrop on product/tour detail and tours overview pages */
/* removed override that forced white background on tours/about pages */

/* Subtle warm tint over the hero on home to feel more pink */
/* removed warmer overlay */
/* .home-page .hero-overlay {
    background: linear-gradient(
        to bottom,
        rgba(230, 136, 85, 0.35),
        rgba(0, 0, 0, 0.22),
        rgba(230, 136, 85, 0.28)
    );
}*/

/* Slightly warmer card surface on home */
/* .home-page .card {
    background: #fff7f2;
    border-color: rgba(195, 97, 61, 0.18);
}*/

/* Warm up nav and links subtly on home */
*/

img {
    max-width: 100%;
    display: block;
} /* Ensures images are responsive and don't overflow their containers. */
a {
    color: inherit;
    text-decoration: none;
} /* Makes links inherit their parent's color and removes the default underline. */

/*
  Typography
  --------------------------------
*/
.roboto-mono-regular {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Core Typography Classes */
.nunito {
    font-family: "Nunito", sans-serif;
}

.nunito-black {
    font-family: "Nunito", sans-serif;
    font-weight: 1000;
}

.roboto-flex {
    font-family: "Roboto Flex", sans-serif;
}

.roboto-mono {
    font-family: "Roboto Mono", monospace;
}

/* Space/Astronomy Theme Fonts */
.orbitron {
    font-family: "Orbitron", sans-serif;
}

.orbitron-bold {
    font-family: "Orbitron", sans-serif;
    font-weight: 700;
}

.orbitron-black {
    font-family: "Orbitron", sans-serif;
    font-weight: 900;
}

.space-mono {
    font-family: "Space Mono", monospace;
}

.space-mono-bold {
    font-family: "Space Mono", monospace;
    font-weight: 700;
}

.rajdhani {
    font-family: "Rajdhani", sans-serif;
}

.rajdhani-light {
    font-family: "Rajdhani", sans-serif;
    font-weight: 300;
}

.rajdhani-bold {
    font-family: "Rajdhani", sans-serif;
    font-weight: 700;
}

.exo-2 {
    font-family: "Exo 2", sans-serif;
}

.audiowide {
    font-family: "Audiowide", sans-serif;
}

/*
  Header / Navigation
  --------------------------------
*/
header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 2000;
    background: transparent;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
} /* Makes the header sticky to the top of the viewport. */

/* Mobile header background */
@media (max-width: 768px) {
    header {
        background: rgba(0, 0, 0, 0.9);
        backdrop-filter: blur(10px);
    }
}

/* Animated shadow when scrolled past hero */
header.scrolled {
    background: rgba(237, 201, 175, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Remove text shadows when header has background - keep original colors */
#navbar.scrolled .nav-links a,
#navbar.scrolled .logo-word,
#navbar.scrolled .logo,
#navbar.scrolled .nav-container .logo-word,
#navbar.scrolled .nav-container .logo {
    text-shadow: none !important;
    transition: text-shadow 0.3s ease;
}

/* Also ensure all states lose shadows when scrolled */
#navbar.scrolled .nav-links a:hover,
#navbar.scrolled .nav-links a:focus,
#navbar.scrolled .nav-links a:active,
#navbar.scrolled .tours-link:hover,
#navbar.scrolled .tours-link:focus,
#navbar.scrolled .tours-link:active {
    text-shadow: none !important;
}

.nav-container {
    width: 100%;
    margin: 0;
    max-width: none;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 0.9rem 1rem;
    gap: 1rem;
}
.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-weight: 800;
    text-decoration: none;
    color: var(--mesa);
}
.logo-badge {
    display: inline-block;
    width: 80px;
    height: 80px;
    border-radius: 20px;
    object-fit: contain;
    background: transparent;
    box-shadow: none;
}
.logo-word {
    font-family: "Playfair Display", serif;
    font-size: 1.6rem;
    letter-spacing: 0.2px;
    color: var(--terracotta);
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 1.25rem;
    justify-content: center;
}
.nav-links a {
    font-family: "Nunito", sans-serif;
    font-weight: 600;
    font-size: 1.2rem;
    color: var(--terracotta);
    padding: 0.6rem 1rem;
    border-radius: 8px;
    background: transparent;
    margin: 0 0.2rem;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
}
/* --- Dropdown Menu Styles --- */
.has-dropdown {
    position: relative; /* This is the anchor for the dropdown's positioning */
}
/* Dropdown menu Styling*/
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1001;
    min-width: 280px;
    background: transparent; /* Removes the white background */
    border: none; /* Removes the border */
    box-shadow: none; /* Removes the shadow */
    padding: 0; /* Removes the container's internal spacing */
    list-style: none;
    margin-top: 0.5rem;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    opacity: 0;
    visibility: hidden;
}

/* --- Dropdown Caret Icon Styles --- */
.caret {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 0.5rem;
    vertical-align: middle;
    border-top: 8px solid #fff; /* Bigger white caret */
    border-right: 8px solid transparent;
    border-left: 8px solid transparent;
    transition: transform 0.2s ease-in-out; /* Smooth transition for rotation */
    transform-origin: center; /* Ensures it rotates around its center */
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.8)); /* Add shadow to make it visible */
}

/* Rotate the caret when the dropdown is open (on desktop hover/mobile click) */
.has-dropdown:hover > .tours-link .caret {
    transform: rotate(180deg); /* Flips the caret upside down */
}

/* For mobile (when dropdown-open class is applied by JS) */
@media (max-width: 768px) {
    .has-dropdown.dropdown-open > .tours-link .caret {
        transform: rotate(180deg);
    }

    /* Style the Tours link in the mobile menu to position the caret */
    .nav-links.open .tours-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}

.dropdown-menu a {
    display: block; /* Make the whole area clickable */
    padding: 0.7rem 1rem;
    border-radius: 12px;
    white-space: nowrap; /* Prevent text from wrapping */
    opacity: 0;
    transform: translateY(-10px);
    animation: fadeInDown 0.3s ease forwards;
    transition: all 0.2s ease;
    background: var(--terracotta);
    color: white;
    margin-bottom: 0.3rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.dropdown-menu a:hover {
    transform: translateX(8px) scale(1.05) !important;
    background: rgba(195, 97, 61, 0.15) !important;
    color: var(--terracotta) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2) !important;
}

.dropdown-menu li:nth-child(1) a {
    animation-delay: 0s;
}

.dropdown-menu li:nth-child(2) a {
    animation-delay: 0.1s;
}

.dropdown-menu li:nth-child(3) a {
    animation-delay: 0.2s;
}

.dropdown-menu li:nth-child(4) a {
    animation-delay: 0.3s;
}

/* Closing animation with reverse stagger - matches opening timing exactly */
.dropdown-menu.closing li:nth-child(1) a {
    opacity: 1; /* Ensure item is fully visible before animation */
    transform: translateY(0); /* Reset transform */
    animation: fadeOutUp 0.3s ease forwards;
    animation-delay: 0.3s; /* Last to close - matches opening first item */
}

.dropdown-menu.closing li:nth-child(2) a {
    opacity: 1; /* Ensure item is fully visible before animation */
    transform: translateY(0); /* Reset transform */
    animation: fadeOutUp 0.3s ease forwards;
    animation-delay: 0.2s; /* Matches opening second item */
}

.dropdown-menu.closing li:nth-child(3) a {
    opacity: 1; /* Ensure item is fully visible before animation */
    transform: translateY(0); /* Reset transform */
    animation: fadeOutUp 0.3s ease forwards;
    animation-delay: 0.1s; /* Matches opening third item */
}

.dropdown-menu.closing li:nth-child(4) a {
    opacity: 1; /* Ensure item is fully visible before animation */
    transform: translateY(0); /* Reset transform */
    animation: fadeOutUp 0.3s ease forwards;
    animation-delay: 0s; /* First to close - matches opening fourth item */
}

@keyframes fadeInDown {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOutUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

.dropdown-menu a:not(:hover) {
    transform: translateY(0) !important;
}

/* Dropdown controlled by hover on desktop with delay */
@media (min-width: 769px) {
    /* Show dropdown on hover with smooth transition */
    .has-dropdown:hover > .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition-delay: 0.5s;
    }

    /* No automatic hiding transitions - JavaScript controls timing */
    .dropdown-menu {
        transition: none;
    }

    /* Keep dropdown visible when hovering over the menu itself */
    .has-dropdown:hover > .dropdown-menu,
    .dropdown-menu:hover {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none;
    }

    /* Force dropdown to stay visible during closing animation - highest priority */
    .dropdown-menu.closing,
    .has-dropdown:not(:hover) > .dropdown-menu.closing,
    .has-dropdown > .dropdown-menu.closing {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }
}

    /* Add invisible padding area to make hover zone bigger */
    .has-dropdown::after {
        content: "";
        position: absolute;
        top: 100%;
        left: -20px;
        right: -20px;
        height: 20px;
        z-index: 1000;
    }

    /* Flip caret on hover */
    .has-dropdown:hover > .tours-link .caret {
        transform: rotate(180deg);
    }
}

/* Styles for when the dropdown is inside the expanded mobile menu */
@media (max-width: 768px) {
    .dropdown-menu {
        position: static !important; /* Remove absolute positioning */
        box-shadow: none;
        border: none;
        padding-left: 1.5rem; /* Indent the links */
        margin-top: 0;
        background: transparent;
        opacity: 1 !important;
        visibility: visible !important;
        transition: none !important;
    }

    /* Hide dropdown by default in mobile menu */
    .nav-links.open .dropdown-menu {
        display: none !important;
    }

    /* Show dropdown only when Tours is clicked (dropdown-open class added by JS) */
    .nav-links.open .has-dropdown.dropdown-open .dropdown-menu {
        display: block !important;
        opacity: 1 !important;
        visibility: visible !important;
        position: static !important;
        transform: none !important;
        animation: none !important;
        box-shadow: none !important;
    }
}
.nav-links a:hover {
    background: rgba(195, 97, 61, 0.12);
} /* A subtle hover effect. */
.nav-toggle {
    display: none;
    border: none;
    background: transparent;
    color: var(--ink);
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
} /* The hamburger menu button, hidden on larger screens. */

.nav-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    justify-self: end;
}
.btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
} /* A pill-shaped button style. */
.btn-solid {
    background: linear-gradient(45deg, var(--terracotta), var(--sunset));
    color: #fff;
}
.btn-outline {
    border: 1px solid var(--terracotta);
    background: var(--terracotta);
    color: #fff;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Ensure buttons have proper cursor and inherit button styles */
button.btn-outline,
button.btn-pill {
    cursor: pointer;
    border: 1px solid var(--terracotta);
    background: var(--terracotta);
    color: #fff;
    text-shadow: 
        0 1px 3px rgba(0, 0, 0, 0.8),
        0 2px 6px rgba(0, 0, 0, 0.4);
    text-decoration: none;
    font-family: inherit;
    transition: all 0.3s ease;
}

button.btn-outline:hover,
button.btn-pill:hover {
    background: #c4542a;
    border-color: #c4542a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Parity for anchor buttons so they match size/hover effects */
a.btn-outline,
a.btn-pill {
    transition: all 0.3s ease;
}

a.btn-outline:hover,
a.btn-pill:hover {
    background: #c4542a;
    border-color: #c4542a;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/*
  Hero - Full Screen Media
  --------------------------------
  Styles for the full-screen hero section at the top of the page.
*/
.hero--media {
    position: relative;
    max-width: none;
    width: 100vw;
    margin-left: 50%;
    transform: translateX(
        -50%
    ); /* A trick to make the element full-width, breaking out of its container. */
    height: 100vh; /* Full viewport height. */
    /* Fallback units for different browser compatibility. */
    height: 100svh;
    height: 100lvh;
    height: 100dvh;
    padding: 0;
    background: none;
}

.hero-media {
    position: absolute;
    inset: 0;
    overflow: hidden;
} /* Container for the hero image/video. */
.hero-media img,
.hero-media video {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the media covers the entire container, cropping if necessary. */
    object-position: center 45%; /* Positions the media slightly off-center vertically. */
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55),
        rgba(0, 0, 0, 0.35),
        rgba(0, 0, 0, 0.5)
    ); /* A gradient overlay to darken the image and improve text contrast. */
    pointer-events: none; /* Allows clicks to pass through the overlay. */
    z-index: 1;
}

.hero-inner {
    position: relative;
    z-index: 2; /* Ensures the text is on top of the overlay. */
    text-align: left;
    color: #fff;
    /* New values, aligned to a base-8 scale */
    padding-top: clamp(600px, 18vh, 1200px); /* Increased padding to move text lower */
    /* Responsive padding. `clamp` provides a value within a range. */
    padding-left: 1rem;
    padding-right: 1rem;
}

.hero-inner * {
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.3); /* Multiple layered text shadows for better readability */
}

.headline {
    text-align: left;
    margin: 0;
}
.headline .headline-line {
    display: block;
} /* Makes each line of the headline its own block. */

.hero .headline.roboto-flex-hero {
    /* This class is now just a semantic hook. The font styles are applied to the lines directly. */
    font-style: normal;
}

/* Style the first line: "Guided Journeys" */
.hero .headline .headline-line:first-child {
    font-family: "Roboto Mono", monospace;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    position: relative;
    transform: translateY(-1rem);
    color: var(--terracotta);
    font-variation-settings:
        "slnt" 0,
        "wdth" 100,
        "GRAD" 0,
        "XOPQ" 96,
        "XTRA" 468,
        "YOPQ" 79,
        "YTAS" 750,
        "YTDE" -203,
        "YTFI" 738,
        "YTLC" 514,
        "YTUC" 712;
    font-size: clamp(2.2rem, 6vw, 4.5rem); /* Adjusted size */
    line-height: 1.02;
    letter-spacing: -0.01em;
}

/* Style the second line: "Through the Stars of Capitol Reef" */
.hero .headline .headline-line.highlight {
    font-family: "Roboto Mono", monospace;
    font-weight: 400;
    font-size: clamp(2.1rem, 5.6vw, 4.2rem); /* Adjusted size */
    line-height: 1.40;
    letter-spacing: 0.05em;
    padding-bottom: 0rem;
    color: var(--sand);
    position: relative;
    transform: translateY(-0rem);
}

.hero .headline .headline-line.highlight::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--accent);
    width: 0;
    animation: growLine 1.5s ease-out 0.8s forwards;
}

/*
  Sections
  --------------------------------
  General styles for the content sections of the page.
*/
main > section {
    padding: 88px 0;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 1rem;
    padding-right: 1rem;
}
main > .hero--media {
    padding: 0;
}

h2 {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: clamp(1.9rem, 3.5vw, 2.6rem);
    text-align: center;
    margin-bottom: 0.6rem;
    color: #3a2f2a;
}
.pattern-divider {
    width: 240px;
    height: 14px;
    margin: 0.4rem auto 1.2rem;
    /* An SVG background image used as a decorative divider. The SVG is URL-encoded. */
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14' viewBox='0 0 240 14'%3E%3Cg fill='none' stroke='%23C3613D' stroke-width='2' stroke-linejoin='miter' stroke-linecap='square'%3E%3Cpath d='M1 7 H60'/%3E%3Cpath d='M180 7 H239'/%3E%3Cpath d='M80 7 L90 1 L100 7 L90 13 Z'/%3E%3Cpath d='M110 7 L120 1 L130 7 L120 13 Z'/%3E%3Cpath d='M140 7 L150 1 L160 7 L150 13 Z'/%3E%3C/g%3E%3C/svg%3E")
        center/contain no-repeat;
    opacity: 0.9;
}
.sub {
    text-align: center;
    color: var(--muted);
    margin-top: -0.1rem;
    margin-bottom: 1.1rem;
} /* A style for subtitles and secondary text. */

/*
  Cards & Grids
  --------------------------------
*/
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 1.25rem;
    margin-top: 1.2rem;
} /* A responsive grid that automatically adjusts the number of columns. */
.card {
    background: var(--paper-2);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
}
.card:hover {
    transform: translateY(-4px);
} /* A subtle hover effect to lift the card. */
.card h3 {
    color: var(--mesa);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.price {
    font-weight: 800;
    color: var(--accent);
    margin-top: 0.65rem;
}
.actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}
.link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--stroke);
    border-radius: 10px;
    background: #fff;
}

/*
  Specific Section Styles
  --------------------------------
*/

/* About Section */
.about {
    background: linear-gradient(
        135deg,
        rgba(216, 195, 165, 0.35),
        rgba(195, 97, 61, 0.12)
    );
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 2rem;
}
.about-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}
.about-text {
    font-size: 1.05rem;
    color: var(--muted);
}
.about-features {
    list-style: none;
}
.about-features li {
    padding: 0.5rem 0;
    border-left: 4px solid var(--sage);
    padding-left: 1rem;
    margin-bottom: 0.6rem;
    color: #4a3e34;
}

/* Guide Section */
.guide {
    display: grid;
    grid-template-columns: minmax(240px, 360px) 1fr;
    gap: 1.5rem;
    align-items: center;
}
.guide-photo {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    border-radius: 16px;
    border: 6px solid var(--sand);
    box-shadow: 0 18px 40px rgba(74, 36, 16, 0.18);
    background: #eee;
}
.guide-kicker {
    display: inline-block;
    font-weight: 800;
    color: var(--sage);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 0.4rem;
}
.guide h3 {
    font-family: "Playfair Display", serif;
    color: #3a2f2a;
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}
.guide p {
    color: var(--ink);
}

/* Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}
label {
    font-size: 0.95rem;
    color: var(--mesa);
}
input,
textarea,
select {
    padding: 1rem;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-size: 1rem;
    min-height: 44px; /* A minimum height for accessibility on touch devices. */
}
input::placeholder,
textarea::placeholder {
    color: #8f7f72;
}

/*
  Buttons
  --------------------------------
*/
.btn {
    display: inline-block;
    background: linear-gradient(45deg, var(--terracotta), var(--sunset));
    color: #fff;
    padding: 0.8rem 1rem;
    border-radius: 12px;
}

.cta-button {
    display: inline-block;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 14px 28px;
    text-decoration: none;
    border-radius: 999px;
    font-size: 1.05rem;
    font-weight: 800;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
    box-shadow: 0 10px 26px rgba(195, 97, 61, 0.28);
    min-height: 44px;
}
.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 32px rgba(195, 97, 61, 0.38);
}

/*
  Map
  --------------------------------
*/
.map-embed {
    margin-top: 1rem;
}
.map-embed iframe {
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: var(--radius);
    aspect-ratio: 16/9;
    background: #fff;
}

/*
  Reveal Animation
  --------------------------------
  A simple fade-in and slide-up animation for elements as they are scrolled into view.
*/
.reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/*
  Footer & Sticky CTA
  --------------------------------
*/
footer {
    background: #fff;
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--stroke);
    color: #544840;
}
.sticky-cta {
    position: fixed;
    bottom: 18px;
    right: 18px;
    z-index: 999;
    background: linear-gradient(45deg, var(--accent), var(--accent-2));
    color: #fff;
    padding: 12px 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 14px 36px rgba(195, 97, 61, 0.28);
}

@media (min-width: 769px) {
    .sticky-cta {
        display: none;
    }
}

/*
  Responsive Design
  --------------------------------
  Media queries adjust the layout for different screen sizes.
*/
@media (max-width: 980px) {
    /* On smaller screens, these grids become single-column. */
    .about-content,
    .contact-grid {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .guide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 899px) {
    .hero-inner {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .hero--media {
        min-height: 100vh;
        min-height: 100svh;
    }
}

@media (min-width: 900px) {
    .hero-inner {
        max-width: none;
        margin: 0;
        padding-left: clamp(16px, 6vw, 96px);
        padding-right: clamp(12px, 4vw, 48px);
    }
}

/* Tour Pages - White text on desert sand background */
body:has(.product-layout) .product-content h1 {
    color: white !important;
}

body:has(.product-layout) .product-content p,
body:has(.product-layout) .product-content {
    color: white !important;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

body:has(.product-layout) .product-content strong {
    color: white !important;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

/* Tour Pages - Position navigation items over white section, keep logo on left */
body:has(.product-layout) .nav-container {
    position: relative;
}

/* Only apply positioning on desktop, not mobile */
@media (min-width: 769px) {
    body:has(.product-layout) .nav-links,
    body:has(.product-layout) .nav-actions {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translateY(-50%);
    }
}


/* Reset positioning on mobile for tour pages */
@media (max-width: 768px) {
    body:has(.product-layout) .nav-links {
        position: absolute !important;
        left: 0 !important;
        right: 0 !important;
        top: 100% !important;
        transform: none !important;
    }
}

body:has(.product-layout) .nav-actions {
    display: none;
}

/* Tour Pages - Remove text shadows from navigation */
body:has(.product-layout) .nav-links a {
    text-shadow: none;
}

body:has(.product-layout) .logo-word {
    text-shadow: none;
}

/* Tour Pages - Fix mobile hamburger menu z-index */
body:has(.product-layout) header {
    z-index: 2000 !important;
}

body:has(.product-layout) .nav-toggle {
    z-index: 2001 !important;
    position: relative;
}

body:has(.product-layout) .nav-links {
    z-index: 2002 !important;
}

body:has(.product-layout) .nav-container {
    z-index: 2000 !important;
}

/* Story Sections Layout */
.story-section {
    padding: 6rem 0;
    background: var(--paper);
    opacity: 0;
    transform: translateY(90px);
    transition: opacity 1.8s ease-out 0.25s, transform 1.8s ease-out 0.25s;
}

.story-section.visible {
    opacity: 1;
    transform: translateY(0);
}

.story-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 0 2rem;
}

.story-content {
    opacity: 0;
    transform: translateX(-65px);
    transition: opacity 1.5s ease-out 0.6s, transform 1.5s ease-out 0.6s;
}

.story-section.visible .story-content {
    opacity: 1;
    transform: translateX(0);
}

.story-section.reverse .story-content {
    transform: translateX(65px);
}

.story-section.reverse.visible .story-content {
    transform: translateX(0);
}

.story-content h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.story-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--muted);
    margin-bottom: 1.5rem;
}

/* Booking CTA Card Styling */
.booking-cta-card {
    background: white;
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid rgba(139, 69, 19, 0.1);
}

.booking-cta-card h2 {
    color: var(--ink);
    margin-bottom: 1rem;
}

.booking-cta-card .sub {
    color: var(--muted);
    margin-bottom: 2rem;
}

/* Override grid layout for booking CTA section */
.story-section:has(.booking-cta-card) .story-container {
    grid-template-columns: 1fr;
    max-width: 800px;
    justify-content: center;
}

.story-section:has(.booking-cta-card) .story-content {
    transform: translateY(30px);
}

.story-section:has(.booking-cta-card).visible .story-content {
    transform: translateY(0);
}

/* Calendar Section - Fade Up Animation */
.fade-up {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s ease-out 0.3s, transform 1.5s ease-out 0.3s;
}

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

.fade-up .grid {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1.2s ease-out 0.8s, transform 1.2s ease-out 0.8s;
}

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

/* Map Section - Scale In Animation */
.scale-in {
    opacity: 0;
    transform: scale(0.85) translateY(30px);
    transition: opacity 1.5s ease-out 0.4s, transform 1.5s ease-out 0.4s;
}

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

.scale-in .card {
    opacity: 0;
    transform: scale(0.9) translateY(20px);
    transition: opacity 1.2s ease-out 1.0s, transform 1.2s ease-out 1.0s;
}

.scale-in.visible .card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

/* Events Page Styling */
.cards-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.event-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(139, 69, 19, 0.1);
    margin-bottom: 2rem;
}

.event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.event-header h2 {
    font-family: "Playfair Display", serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
}

.event-date {
    background: var(--terracotta);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.event-content {
    line-height: 1.6;
}

.event-description {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

.event-details {
    color: var(--muted);
    margin-bottom: 2rem;
}

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

.text-center {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

@media (max-width: 768px) {
    .event-header {
        flex-direction: column;
        text-align: center;
    }
    
    .event-header h2 {
        font-size: 1.5rem;
    }
}

.story-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.story-features li {
    padding: 0.5rem 0;
    color: var(--muted);
    position: relative;
    padding-left: 2.5rem;
}

.story-features li::before {
    content: "✨";
    position: absolute;
    left: 1rem;
    color: var(--terracotta);
}

.story-actions {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    flex-wrap: wrap;
}

.story-note {
    font-size: 0.95rem;
    color: var(--muted);
    font-style: italic;
}

.story-note a {
    color: var(--terracotta);
    text-decoration: none;
}

.story-note a:hover {
    text-decoration: underline;
}

.story-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    opacity: 0;
    transform: translateX(65px) scale(0.875);
    transition: opacity 1.6s ease-out 0.9s, transform 1.6s ease-out 0.9s;
}

.story-section.visible .story-image {
    opacity: 1;
    transform: translateX(0) scale(1);
}

.story-section.reverse .story-image {
    transform: translateX(-65px) scale(0.875);
}

.story-section.reverse.visible .story-image {
    transform: translateX(0) scale(1);
}

.story-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transform: scale(1.15);
    transition: transform 1.2s ease 1.0s;
}

.story-section.visible .story-image img {
    transform: scale(1);
}

/* Reverse layout for alternating sections */
.story-section.reverse .story-container {
    grid-template-columns: 1fr 1fr;
}

.story-section.reverse .story-content {
    order: 2;
}

.story-section.reverse .story-image {
    order: 1;
}

/* Alternating background colors */
.story-section:nth-child(even) {
    background: var(--paper-2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .story-section {
        padding: 4rem 0;
        position: relative;
    }
    
    /* Add terracotta line between sections on mobile */
    .story-section:not(:last-child)::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 90%;
        height: 8px;
        background: var(--terracotta);
        opacity: 0.8;
        border-radius: 4px;
    }
    
    /* Don't show line after the booking section */
    .story-section:has(.booking-cta-card)::after {
        display: none;
    }
    
    .story-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1.5rem;
    }
    
    .story-section.reverse .story-container {
        grid-template-columns: 1fr;
    }
    
    .story-section.reverse .story-content,
    .story-section.reverse .story-image {
        order: unset;
    }
    
    .story-content h2 {
        font-size: 2rem;
    }
    
    .story-image img {
        height: 300px;
    }
    
    .story-actions {
        flex-direction: column;
    }
}

/*
  Section Flow Line (Home page)
  A thin terracotta line that visually connects key sections
*/
.story-section.line-run { position: relative; }
.story-section.line-run .story-container { position: relative; }
/* Anchor vertical lines to the entire container - full height on both sides */
.story-section.line-run .story-container { position: relative; }
.story-section.line-run .story-container::before,
.story-section.line-run .story-container::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--terracotta);
    opacity: 0.95;
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 1.1s ease-out 0.2s;
    pointer-events: none;
    z-index: 5;
}

/* Position lines to hug the outside of the entire container - but not for booking section */
.story-section.line-run:not(:has(.booking-cta-card)) .story-container::before { left: -2px; }
.story-section.line-run:not(:has(.booking-cta-card)) .story-container::after { right: -2px; }

.story-section.line-run.visible:not(:has(.booking-cta-card)) .story-container::before,
.story-section.line-run.visible:not(:has(.booking-cta-card)) .story-container::after { transform: scaleY(1); }

/* Ready to Book section - add lines on all 4 sides directly on the card */
.story-section.line-run:has(.booking-cta-card) .booking-cta-card { 
    position: relative; 
}

/* Use box-shadow to create all 4 lines at once */
.story-section.line-run .booking-cta-card {
    box-shadow: 
        -2px 0 0 0 transparent,  /* left line */
        2px 0 0 0 transparent,   /* right line */
        0 -2px 0 0 transparent,  /* top line */
        0 2px 0 0 transparent;   /* bottom line */
    transition: box-shadow 1.1s ease-out 0.2s;
}

.story-section.line-run.visible .booking-cta-card {
    box-shadow: 
        -2px 0 0 0 var(--terracotta),  /* left line */
        2px 0 0 0 var(--terracotta),   /* right line */
        0 -2px 0 0 var(--terracotta),  /* top line */
        0 2px 0 0 var(--terracotta);   /* bottom line */
}


/* Reduce visual clutter on small screens */
@media (max-width: 768px) {
    .story-section.line-run .story-content::before,
    .story-section.line-run .story-content::after,
    .story-section.line-run:has(.booking-cta-card) .booking-cta-card::after {
        display: none;
    }
}

/*
  Footer
  --------------------------------
*/
.site-footer {
    background: #fff;
    color: var(--terracotta);
    margin-top: 4rem;
    border-top: 3px solid var(--terracotta);
}

.site-footer a {
    color: var(--terracotta);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.site-footer .social-circle,
.site-footer .social-circle:hover { text-decoration: none; }

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: start;
    gap: 3rem;
}

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

.footer-logo {
    width: 160px;
    max-width: 70%;
    margin: 0 auto 1rem auto;
    display: block;
}

.footer-social {
    display: flex;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
}

.social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--terracotta);
    font-weight: 900;
    text-transform: lowercase;
    color: var(--terracotta);
}

.social-circle svg { width: 20px; height: 20px; display: block; }
.social-circle:hover { background: var(--terracotta); color: #fff; }
.social-circle:hover svg { filter: none; }

.footer-contact h3,
.footer-links h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin: 0 0 0.75rem 0;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.footer-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Center the Quick Links column */
.footer-links {
    text-align: center;
    justify-self: center;
}

.footer-links .footer-list {
    justify-items: center;
}

.footer-links .footer-list li {
    justify-content: center;
}

.footer-icon {
    display: inline-flex;
    width: 1.25rem;
    justify-content: center;
}

.footer-bottom {
    text-align: center;
    padding: 0.75rem 1rem 1.25rem 1rem;
    color: var(--terracotta);
}

@media (max-width: 900px) {
    .footer-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-list li {
        justify-content: center;
    }
}

/* Remove footer top margin on tours + about layouts so it touches the photo */
body:has(.product-layout) .site-footer,
body:has(.tours-grid) .site-footer {
    margin-top: 0;
}

/* Tours Grid Layout */
.tours-grid {
    display: flex;
    width: 100%;
    height: 100%;
}

.tour-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.tour-section:hover {
    transform: scale(1.08);
    filter: brightness(1.3);
    z-index: 10;
}

.tour-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.tour-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    color: white;
    text-align: center;
}

.tour-overlay h2 {
    font-family: "Playfair Display", serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-shadow: 
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.6);
    transition: all 0.3s ease;
    opacity: 1;
    color: #FFD700;
}

.tour-section:hover .tour-overlay h2 {
    color: var(--sand);
    text-shadow: 
        0 0 10px rgba(255, 215, 0, 0.5),
        0 2px 4px rgba(0, 0, 0, 0.9),
        0 4px 8px rgba(0, 0, 0, 0.6);
    transform: scale(1.05);
}

/* Mobile responsiveness for tours grid */
@media (max-width: 768px) {
    .tours-grid {
        flex-direction: column;
        height: auto;
    }
    
    .tour-section {
        height: 250px;
        margin-bottom: 1rem;
    }
    
    .tour-overlay {
        padding: 1.5rem;
    }
    
    .tour-overlay h2 {
        font-size: 1.5rem;
    }
    
    .tour-overlay p {
        font-size: 1rem;
    }
}

/* Tour Pages - Add line above certain text elements */
.with-line {
    padding-top: 0.5rem;
    margin-top: 1rem !important;
    position: relative;
}

.with-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 2px;
    background-color: var(--terracotta);
    width: 0;
    animation: growLine 1.5s ease-out 0.3s forwards;
}

@keyframes growLine {
    from {
        width: 0;
    }
    to {
        width: 100%;
    }
}

/* Line below text elements */
.with-line-below {
    padding-bottom: 0.5rem;
    margin-bottom: 1rem !important;
    position: relative;
}

.with-line-below::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    height: 2px;
    background-color: var(--terracotta);
    width: 0;
    animation: growLine 1.5s ease-out 0.3s forwards;
}

@media (max-width: 768px) {
    /* On mobile, the hamburger menu is shown and the main nav links are hidden by default. */
    .nav-toggle {
        display: inline-flex;
        font-size: 2.2rem;
        color: #fff;
        background: var(--terracotta);
        border: 3px solid #fff;
        padding: 0.8rem;
        border-radius: 12px;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
        font-weight: bold;
    }

    /* Move hamburger menu to the right on mobile */
    .nav-container {
        display: flex;
        justify-content: space-between;
        grid-template-columns: none;
    }

    /* --- EDITS START HERE --- */

    /* Add this inside your @media (max-width: 768px) block */
    .dropdown-menu {
        display: none; /* Hide submenu by default on mobile too */
        /* ... other mobile dropdown styles ... */
    }

    .has-dropdown.dropdown-open > .dropdown-menu {
        display: block !important; /* Show when toggled by JS */
        position: static !important;
        opacity: 1 !important;
        visibility: visible !important;
        transform: none !important;
        animation: none !important;
    }

    /* Hide the nav links menu by default on mobile */
    .nav-links {
        display: none;
        position: absolute;
        top: 100%; /* Position it right below the header */
        left: 0;
        right: 0;
        flex-direction: column;

        /* Add styling for the dropdown menu's appearance */
        background: transparent;
        padding: 0.6rem;
        border: none;
        box-shadow: none;
    }

    /* This class, toggled by JavaScript, shows the menu */
    .nav-links.open {
        display: flex;
    }

    /* Adjust padding for individual links within the mobile menu */
    .nav-links a {
        padding: 0.6rem 0.8rem;
        font-size: 1.0rem;
        background: white;
        color: var(--terracotta);
        margin: 0.15rem;
        border-radius: 6px;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
        font-weight: 600;
        text-shadow: none !important;
    }
    
    /* Mobile dropdown menu items styling */
    .nav-links.open .dropdown-menu a {
        padding: 0.5rem 0.6rem;
        margin: 0.1rem 0.5rem;
        border-radius: 4px;
        font-size: 0.9rem;
    }

    /* --- EDITS END HERE --- */

    /* Hide the desktop "Schedule a call" button */
    .nav-actions {
        display: none;
    }

    /* Move hero title higher up on mobile by reducing hero padding/height */
    .hero {
        min-height: 60vh; /* Reduce from default height */
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    /* Better image positioning on mobile */
    .hero-media img {
        object-fit: cover;
        object-position: center center;
    }

    /* Make the hero title more prominent and positioned higher */
    .hero-inner {
        position: relative;
        z-index: 2;
        padding-top: 25rem;
        text-align: center;
    }

    /* Ensure main content starts immediately after hero */
    main {
        margin-top: 0;
    }

    /* Reduce intro-band padding to bring content higher */
    .intro-band {
        padding: 2rem 0;
    }

    /* Make logo text smaller on mobile */
    .logo-word {
        font-size: 1.0rem;
    }

    /* Make logo image smaller on mobile */
    .logo-badge {
        width: 48px;
        height: 48px;
        border-radius: 12px;
    }

    /* Mobile positioning for "Guided Journeys" */
    .hero .headline .headline-line:first-child {
        transform: translateY(0rem);
    }

    /* Mobile positioning for "Through the Stars of Capitol Reef" */
    .hero .headline .headline-line.highlight {
        transform: translateY(2rem);
        padding-bottom: 0rem;
    }
}

/*
  Accessibility
  --------------------------------
  This media query disables animations and transitions for users who have requested reduced motion in their system settings.
*/
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/*
  Product Layout - Modern Tour Pages
  --------------------------------
  Clean, split-screen design inspired by modern product pages
*/

.product-layout {
    display: flex;
    min-height: 100vh;
    background: #EDC9AF;
}

.product-image {
    flex: 1;
    background: #f8f8f8;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    overflow: hidden;
    min-height: 100vh;
}

.product-image img {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    flex: 1;
}

.product-content {
    flex: 1;
    padding: 12rem 2rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background: #EDC9AF;
}

.product-header {
    margin-bottom: 3rem;
}

.back-link {
    color: var(--terracotta);
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 2rem;
    display: inline-block;
    font-size: 0.95rem;
}

.back-link:hover {
    text-decoration: underline;
}

.product-content h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--ink);
    margin: 1rem 0 0.5rem 0;
    font-family: "Playfair Display", serif;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.3rem;
    color: var(--muted);
    margin-bottom: 0;
    font-weight: 400;
}

.product-description {
    margin-bottom: 3rem;
    line-height: 1.7;
}

.product-description p {
    color: var(--ink);
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.product-booking {
    margin-top: -1rem;
}

.price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1rem;
}

.book-button {
    background: var(--terracotta);
    color: white;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s ease;
}

.book-button:hover {
    background: var(--mesa);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .product-layout {
        flex-direction: column;
    }
    
    .product-image {
        height: 40vh;
    }
    
    .product-image img {
        height: 40vh;
    }
    
    .product-content {
        padding: 2rem 1.5rem;
    }
    
    .product-content h1 {
        font-size: 2.2rem;
    }
    
    .price {
        font-size: 1.5rem;
    }
}

/*
  Legacy Tour Pages Styles (deprecated)
  --------------------------------
  These styles apply only to the old individual tour pages.
*/

.tour-page main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1rem;
}
.tour-page .hero {
    height: auto;
    display: block;
    text-align: left;
    margin-top: 10px;
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    background:
        linear-gradient(
            to bottom,
            rgba(232, 176, 75, 0.45),
            rgba(195, 97, 61, 0.25),
            rgba(107, 143, 113, 0.24)
        ),
        var(--paper-2);
    padding: 2rem;
    box-shadow: var(--shadow);
}
.tour-page .hero .hero-title {
    font-size: clamp(2rem, 4vw, 3rem);
}
.tour-page .pattern-divider {
    width: 220px;
    height: 14px;
    margin: 0.6rem 0 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='14' viewBox='0 0 240 14'%3E%3Cg fill='none' stroke='%23C3613D' stroke-width='2' stroke-linejoin='miter' stroke-linecap='square'%3E%3Cpath d='M1 7 H60'/%3E%3Cpath d='M180 7 H239'/%3E%3Cpath d='M80 7 L90 1 L100 7 L90 13 Z'/%3E%3Cpath d='M110 7 L120 1 L130 7 L120 13 Z'/%3E%3Cpath d='M140 7 L150 1 L160 7 L150 13 Z'/%3E%3C/g%3E%3C/svg%3E")
        center/contain no-repeat;
}
