/* Fonts are preloaded in HTML head to prevent render blocking and layout shifts */

/* ==========================================================================
   DESIGN SYSTEM TOKENS & ROOT VARIABLES
   ========================================================================== */
:root {
    /* Premium Outdoor Color Palette */
    --bg-light: #ffffff;
    --bg-xl-light: #F5F4F4;
    --bg-md-light: #EBEAEA;
    --bg-page: #D8D5D5;        /* Warm Sand/Off-white */
    --bg-card: #ffffff;        /* Clean White Cards */
    --bg-callout: #113804;     /* Deep Forest Green */
    --accent-gold: #BFEDE6;
    --accent-terracotta: #762119; /* Warm Terracotta */
    
    /* Text Colors */
    --text-main: #373F51;      /* Soft Charcoal Green */
    --text-muted: #555e57;     /* Slate/Muted green-gray */
    --text-accent-light: #B6BDCD; /* Surprisingly blue*/
    --text-accent: #1b3b2b;    /* Deep Forest Green */
    --text-light: #BFEDE6;     /* Off-white */
    --text-light-muted: #C4BFBF;

    /* Font Sizes */
    --font-size-XXL: 2.8rem;
    --font-size-large: 1.8rem;
    --font-size-normal: 1.1rem;

    /* Spacing System */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2.5rem;

    /* Typography */
    --font-family: 'Montserrat', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-base: 16px;

    /* Borders & Shadows */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 2px 8px rgba(27, 59, 43, 0.05);
    --shadow-md: 0 8px 24px rgba(27, 59, 43, 0.08);
    --shadow-lg: 0 16px 40px rgba(27, 59, 43, 0.12);

    /* Transitions */
    --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   GLOBAL RESET & ELEMENT BASES
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-family);
}

body {
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent-terracotta);
    font-weight: 600;
    text-decoration: underline;
}

/* ==========================================================================
   UNIVERSAL TYPOGRAPHY & HEADINGS
   ========================================================================== */
.font-rye,
.section-title,
.section-subtitle,
.departure-title,
.pricing-title,
.table-card h4,
.includes-card h2,
.includes-card h4,
.season-blurb h2,
.season-dates-section h2,
.gift-packs-section h2,
.policy-section h2,
.faq-section h2,
.guarantee-banner h3,
.callout-banner h3 {
    font-family: 'Rye', Georgia, serif;
}

.section-title {
    font-size: var(--font-size-XXL);
    color: var(--text-accent);
    margin-bottom: var(--spacing-sm);
}

.section-heading,
.season-dates-section h2,
.gift-packs-section h2,
.policy-section h2,
.faq-section h2,
.includes-card h2 {
    font-size: var(--font-size-large);
    color: var(--text-accent);
    margin-bottom: var(--spacing-md);
}

.section-subtitle,
.departure-title,
.pricing-title {
    font-size: 1.35rem;
    color: var(--text-accent);
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-sm);
    border-bottom: 2px solid rgba(27, 59, 43, 0.08);
    padding-bottom: var(--spacing-xs);
    display: inline-block;
}

.section-intro,
.hero-subtitle,
.gift-subtitle,
.season-dates-section .intro-p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.hero-subtitle {
    font-size: 1.15rem;
    font-weight: 500;
    max-width: 800px;
    margin: 0 auto var(--spacing-md) auto;
}

.gift-subtitle {
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   UNIVERSAL LAYOUT UTILITIES
   ========================================================================== */
.hidden {
    display: none !important;
}

.center,
.text-center {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.twoWide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    padding: 1.5rem 0;
}

.two-by-one{
    grid-column: 1/3;
}

@media (max-width: 768px) {
    .twoWide {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* ==========================================================================
   UNIVERSAL COMPONENTS (CARDS, BUTTONS, LISTS, TABLES)
   ========================================================================== */

/* ---- Universal Card Component ---- */
.card {
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg) var(--spacing-xl);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 59, 43, 0.04);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    margin-top: var(--spacing-md);
    /* margin-bottom: var(--spacing-md); */
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* ---- Universal Card Component ---- */
.card2 {
    background-color: var(--bg-xl-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md) var(--spacing-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(27, 59, 43, 0.04);
}

.card2:hover {
    box-shadow: var(--shadow-md);
}

/* ---- Universal Button Component ---- */
.btn {
    display: inline-block;
    background-color: var(--text-accent);
    color: var(--text-light);
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color var(--transition-fast), transform var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn:hover {
    background-color: var(--accent-gold);
    transform: translateY(-1px);
}

.cta-container {
    margin-top: var(--spacing-lg);
}

/* ---- Phone Callout Utility ---- */
.phone-callout {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-top: var(--spacing-lg);
}

.phone-callout a {
    color: var(--accent-terracotta);
    text-decoration: none;
    border-bottom: 2px dotted var(--accent-terracotta);
}

.center-callout {
    margin-top: var(--spacing-xl);
    text-align: center;
}

/* ---- Social Icons Component ---- */
.social {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: var(--spacing-sm);
}

.social .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    transition: transform var(--transition-fast), filter var(--transition-fast);
}

.social .social-icon:hover {
    transform: translateY(-3px);
}

.social img.social-icon {
    object-fit: contain;
}

/* ---- Universal Custom Lists ---- */
.custom-list,
.includes-list,
.options-list {
    list-style: none;
    padding: 0;
    margin-bottom: var(--spacing-lg);
}

.custom-list li,
.includes-list li,
.options-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: var(--spacing-sm);
    font-size: 0.95rem;
    color: var(--text-main);
    line-height: 1.5;
}

.includes-list li::before,
.custom-list.bullet-star li::before {
    content: "✦";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent-gold);
    font-size: 0.9rem;
}

.options-list li::before,
.custom-list.bullet-dot li::before {
    content: "•";
    position: absolute;
    left: 4px;
    top: -2px;
    color: var(--accent-gold);
    font-size: 1.2rem;
}

/* ---- Universal Data Tables ---- */
.data-table,
.departure-table,
.pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table td,
.departure-table td,
.pricing-table td {
    padding: 10px 14px;
    border-bottom: 1px solid rgba(27, 59, 43, 0.06);
    font-size: 1rem;
    color: var(--text-main);
}

.data-table tr:last-child td,
.departure-table tr:last-child td,
.pricing-table tr:last-child td {
    border-bottom: none;
}

.data-table .category,
.pricing-table .category {
    font-weight: 600;
}

.data-table .price,
.pricing-table .price {
    font-weight: 700;
    color: var(--accent-terracotta);
    text-align: right;
    font-size: 1.1rem;
}

.pricing-footnote {
    margin-top: var(--spacing-md);
    font-size: 0.85rem;
    color: var(--text-muted);
    font-style: italic;
}

.pricing-info {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-accent);
    margin-top: var(--spacing-sm);
}

.table-card {
    background-color: #f7faf7;
    border-radius: var(--radius-md);
    padding: var(--spacing-md);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.02);
}

.table-card h4 {
    color: var(--text-accent);
    margin-bottom: var(--spacing-md);
    font-size: 1.15rem;
}

/* ---- Universal Callouts & Banners ---- */
.guarantee-banner,
.callout-banner {
    background-color: var(--accent-gold);
    color: var(--text-main);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    margin: var(--spacing-xl) 0;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.guarantee-banner h3,
.callout-banner h3 {
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

/* ---- Universal Image Wrappers ---- */
.img-wrapper,
.includes-img-wrapper,
.banner-image-wrapper {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.img-wrapper img,
.includes-img-wrapper img,
.banner-image-wrapper img,
.rounded-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.includes-split {
    text-align: left;
    align-items: center;
}

#TheAdvenIncluImg {
    aspect-ratio: 1/1;
}

@media (max-width:970px) {
    #TheAdvenIncluImg {
        aspect-ratio: 3/4;
    }
}

/* ==========================================================================
   JS-INJECTED COMPONENT STYLES
   ========================================================================== */

/* ---- Placeholders Layout Reservation (Zero CLS) ---- */
#season-blurb-placeholder {
    min-height: 200px;
    contain-intrinsic-size: 200px;
}

#rates-planning-placeholder {
    min-height: 480px;
    contain-intrinsic-size: 480px;
}

#policy-placeholder {
    min-height: 320px;
    contain-intrinsic-size: 320px;
}

#faq-placeholder {
    min-height: 520px;
    contain-intrinsic-size: 520px;
}

#footer-placeholder {
    min-height: 380px;
    contain-intrinsic-size: 380px;
}

@media (max-width: 768px) {
    #season-blurb-placeholder {
        min-height: 240px;
        contain-intrinsic-size: 240px;
    }
    #rates-planning-placeholder {
        min-height: 760px;
        contain-intrinsic-size: 760px;
    }
    #policy-placeholder {
        min-height: 540px;
        contain-intrinsic-size: 540px;
    }
}

/* ---- Season Blurb Component (seasonBlurb.js) ---- */
.season-blurb {
    background-color: var(--bg-callout);
    color: var(--text-light);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    margin-bottom: var(--spacing-xl);
}

.season-blurb h2 {
    font-size: var(--font-size-large);
    color: var(--text-light-muted);
    margin-bottom: var(--spacing-md);
}

.season-blurb p {
    font-size: 1.1rem;
    color: var(--bg-page);
    opacity: 0.9;
    margin-bottom: var(--spacing-sm);
}

.inline-cta,
.cta-red,
.inline-cta-red {
    color: var(--accent-terracotta);
    font-weight: 600;
    text-decoration: underline;
    transition: color var(--transition-fast);
}

.inline-cta:hover,
.cta-red:hover,
.inline-cta-red:hover {
    color: #a8281e;
}

.season-blurb .inline-cta {
    color: var(--text-light-muted);
}

.season-blurb .inline-cta:hover {
    color: #ffffff;
}

.season-blurb .highlight-text {
    font-weight: 500;
    font-style: italic;
}

.season-blurb .tagline {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-light-muted);
    margin-top: var(--spacing-md);
}

.welcome-blurb {
    color: var(--bg-page) !important;
    text-align: center;
    border-left: none;
    border-top: 5px solid var(--accent-gold);
}

.welcome-blurb p, 
.welcome-blurb h2 {
    color: var(--bg-card);
}

/* ---- Rates & Planning Section Component (ratesNPlanning.js) ---- */
#ratesNPlanning-sect {
    padding: var(--spacing-xl) 0;
}

.season-dates-section {
    text-align: center;
}

.season-dates-section .intro-p {
    margin-bottom: var(--spacing-xs);
}

/* ---- Adventure Gift Packs Component (giftPacks.js) ---- */
.gift-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.6;
}

.gift-info .highlight-label {
    font-weight: 700;
    color: var(--text-accent);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    margin-bottom: var(--spacing-xs);
}

/* Slideshow Component */
.slideshow-container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.slideshow-wrapper {
    position: relative;
    width: 100%;
    max-width: 440px;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    background-color: #000;
}

@media (min-width: 770px) and (max-width: 900px) {
    .slideshow-wrapper {
        aspect-ratio: 2 / 3;
    }
}

.slideshow-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(27, 59, 43, 0.7);
    color: #ffffff;
    border: none;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.1rem;
    border-radius: 50%;
    transition: background-color var(--transition-fast);
    z-index: 5;
}

.slide-btn:hover {
    background-color: var(--accent-gold);
}

.prev-btn {
    left: 12px;
}

.next-btn {
    right: 12px;
}

.play-pause-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background-color: rgba(27, 59, 43, 0.7);
    color: #ffffff;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    transition: background-color var(--transition-fast);
    z-index: 5;
}

.play-pause-btn:hover {
    background-color: var(--accent-gold);
}

.slide-progress {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(27, 59, 43, 0.75);
    color: #ffffff;
    padding: 4px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 12px;
    z-index: 5;
}

/* ---- Policy Section Component (policy.js) ---- */
.policy-section p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: var(--spacing-md);
    line-height: 1.7;
}

.policy-section strong {
    color: var(--text-accent);
}

.policy-section .policy-urgency {
    color: var(--accent-terracotta);
    font-weight: 600;
    font-style: italic;
}

.section-divider {
    border: 0;
    height: 1px;
    background: rgba(27, 59, 43, 0.12);
    margin: var(--spacing-xl) 0;
}

/* ---- FAQ Section Component (faq.js) ---- */
.faq-item {
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(27, 59, 43, 0.08);
    padding-bottom: var(--spacing-md);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-accent);
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 14px;
}

.faq-question::before {
    content: "?";
    position: absolute;
    left: 0;
    color: var(--accent-gold);
    font-weight: 800;
}

.faq-answer {
    font-size: 0.92rem;
    color: var(--text-muted);
    line-height: 1.6;
    padding-left: 14px;
}

/* ---- Blue Highlight Around the Cards ----*/
.blue-line-left {
    border-left: 5px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, #f4f6f4 100%);
    padding: var(--spacing-xl) !important;
}

.blue-line-right {
    border-right: 5px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, #f4f6f4 100%);
    padding: var(--spacing-xl) !important;
}

.blue-line-top {
    border-top: 5px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, #f4f6f4 100%);
    padding: var(--spacing-xl) !important;
}

.blue-line-bottom {
    border-bottom: 5px solid var(--accent-gold);
    background: linear-gradient(135deg, var(--bg-card) 0%, #f4f6f4 100%);
    padding: var(--spacing-xl) !important;
}

/* ==========================================================================
   ACCESSIBILITY & KEYBOARD NAVIGATION STYLES
   ========================================================================== */

/* Universal Focus-Visible Ring */
:focus-visible {
    outline: 3px solid var(--accent-terracotta);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Visually Hidden Utility for Screen Readers */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Accessibility Skip Link */
.skip-link {
    position: absolute;
    top: -999px;
    left: 1rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    background: var(--bg-callout);
    color: #ffffff;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    box-shadow: var(--shadow-md);
    text-decoration: underline;
    transition: top var(--transition-fast);
}

.skip-link:focus,
.skip-link:focus-visible {
    top: 0;
    outline: 3px solid var(--accent-gold);
    outline-offset: 2px;
}

