/**
 * Loveworld Pilgrimage Services (LPS) - Modern Minimalist Design System
 * Clean, luxury pilgrimage styling with high device compatibility
 */

:root {
    /* Color Palette */
    --bg-canvas: #faf8f5;
    --bg-surface: #ffffff;
    --bg-subtle: #f4efe6;
    --bg-dark: #0f1613;
    --bg-dark-surface: #18231e;
    --bg-dark-card: #202c26;

    --text-primary: #121815;
    --text-secondary: #48544e;
    --text-muted: #78857f;
    --text-inverse: #ffffff;
    --text-inverse-muted: rgba(255, 255, 255, 0.72);

    --gold: #bfa15f;
    --gold-hover: #d2b472;
    --gold-dark: #8c6e2b;
    --gold-soft: #fcf8ee;
    --gold-border: rgba(191, 161, 95, 0.35);
    --gold-gradient: linear-gradient(135deg, #c9a557 0%, #aa8032 100%);

    --accent-green: #10b981;
    --accent-green-bg: #ecfdf5;
    --accent-amber: #f59e0b;
    --accent-amber-bg: #fffbeb;
    --accent-red: #ef4444;
    --accent-red-bg: #fef2f2;

    --line: rgba(18, 24, 21, 0.08);
    --line-subtle: rgba(18, 24, 21, 0.04);
    --line-dark: rgba(255, 255, 255, 0.12);

    --shadow-xs: 0 1px 2px rgba(18, 24, 21, 0.04);
    --shadow-sm: 0 2px 6px rgba(18, 24, 21, 0.04), 0 1px 2px rgba(18, 24, 21, 0.02);
    --shadow-md: 0 6px 20px rgba(18, 24, 21, 0.06), 0 2px 6px rgba(18, 24, 21, 0.03);
    --shadow-lg: 0 16px 40px rgba(18, 24, 21, 0.08), 0 4px 12px rgba(18, 24, 21, 0.03);

    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;

    /* Typography */
    --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --serif: 'Playfair Display', Georgia, serif;

    /* Layout */
    --header-h: 74px;
    --max-w: 1240px;
}

/* Base Reset & Smoothness */
*, *::before, *::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    padding: 0;
    background: var(--bg-canvas);
    color: var(--text-primary);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s ease, opacity 0.18s ease;
}

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

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
    color: inherit;
    font-weight: 600;
    line-height: 1.18;
    margin: 0 0 12px;
}

h1 em, h2 em {
    color: var(--gold);
    font-style: italic;
    font-family: var(--serif);
}

.eyebrow, .section-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--gold);
    margin-bottom: 12px;
}

.lead {
    font-size: clamp(16px, 1.8vw, 19px);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ====================================================
   HEADER & NAVIGATION (Glassmorphism & Device-friendly)
   ==================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-h);
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    z-index: 100;
    background: rgba(15, 22, 19, 0.88);
    backdrop-filter: blur(14px) saturate(160%);
    -webkit-backdrop-filter: blur(14px) saturate(160%);
    border-bottom: 1px solid var(--line-dark);
    transition: background 0.25s ease, box-shadow 0.25s ease;
    color: #fff;
}

.site-header.is-scrolled {
    background: rgba(15, 22, 19, 0.96);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Brand Treatment */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: #fff;
    flex-shrink: 0;
}

.brand-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: var(--radius-xs);
    background: rgba(255, 255, 255, 0.08);
}

.brand span {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    line-height: 1.15;
    color: #fff;
}

.brand small {
    display: block;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--gold);
    opacity: 0.95;
}

/* Main Navigation Desktop */
.main-nav {
    display: flex;
    align-items: center;
    gap: 22px;
    margin-left: auto;
    font-size: 13px;
    font-weight: 600;
}

.main-nav a {
    color: rgba(255, 255, 255, 0.82);
    padding: 8px 4px;
    position: relative;
}

.main-nav a:hover {
    color: #fff;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 4px;
    right: 4px;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transition: transform 0.2s ease;
    transform-origin: center;
}

.main-nav a:hover::after {
    transform: scaleX(1);
}

.main-nav .nav-badge {
    color: var(--gold);
    font-weight: 700;
}

/* Header CTAs */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

/* Modern Hamburger Toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 110;
    color: #fff;
    border-radius: var(--radius-xs);
}

.menu-toggle-icon {
    width: 22px;
    height: 14px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.menu-toggle-icon span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.menu-toggle.is-active .menu-toggle-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu-toggle.is-active .menu-toggle-icon span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.is-active .menu-toggle-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Menu Backdrop */
.menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(6px);
    z-index: 95;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.menu-backdrop.is-active {
    display: block;
    opacity: 1;
}

/* ====================================================
   BUTTONS & BADGES
   ==================================================== */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: 1px solid transparent;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
    text-align: center;
    white-space: nowrap;
    text-decoration: none;
    min-height: 44px; /* Accessible tap target */
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.button:active {
    transform: translateY(0);
}

.button-gold {
    background: var(--gold-gradient);
    color: #1a150c;
    border-color: rgba(212, 175, 55, 0.4);
    box-shadow: 0 4px 14px rgba(191, 161, 95, 0.3);
}

.button-gold:hover {
    box-shadow: 0 8px 24px rgba(191, 161, 95, 0.45);
    filter: brightness(1.05);
}

.button-dark {
    background: var(--bg-dark);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.1);
}

.button-dark:hover {
    background: var(--bg-dark-surface);
    border-color: var(--gold);
    color: var(--gold);
}

.button-outline {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.35);
}

.button-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

.button-small {
    padding: 8px 16px;
    font-size: 12px;
    min-height: 38px;
    border-radius: var(--radius-xs);
}

.pill-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.pill-gold {
    background: var(--gold-soft);
    color: var(--gold-dark);
    border: 1px solid var(--gold-border);
}

.pill-dark {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* ====================================================
   HERO SLIDER (Modern, Device-responsive)
   ==================================================== */
.hero-slider {
    position: relative;
    min-height: 640px;
    height: min(88vh, 820px);
    background: var(--bg-dark);
    overflow: hidden;
    color: #fff;
}

.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 40px) clamp(24px, 8vw, 120px) 70px;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s ease;
}

.hero-slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(15, 22, 19, 0.94) 0%,
        rgba(15, 22, 19, 0.75) 50%,
        rgba(15, 22, 19, 0.4) 100%
    );
    z-index: 1;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 680px;
}

.hero-content h1 {
    font-family: var(--serif);
    font-size: clamp(38px, 5.2vw, 70px);
    font-weight: 600;
    line-height: 1.06;
    margin: 16px 0 20px;
    letter-spacing: -0.5px;
}

.hero-copy {
    font-size: clamp(15px, 1.8vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.84);
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Slider Controls */
.slider-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    z-index: 10;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.slider-control:hover {
    background: var(--gold);
    color: var(--bg-dark);
    border-color: var(--gold);
    transform: translateY(-50%) scale(1.06);
}

.slider-prev { left: clamp(16px, 3vw, 40px); }
.slider-next { right: clamp(16px, 3vw, 40px); }

.slider-dots {
    position: absolute;
    bottom: 32px;
    right: clamp(24px, 8vw, 120px);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.slider-dots button {
    width: 28px;
    height: 4px;
    border-radius: var(--radius-full);
    border: none;
    background: rgba(255, 255, 255, 0.35);
    padding: 0;
    cursor: pointer;
    transition: width 0.25s ease, background 0.25s ease;
}

.slider-dots button.is-active {
    width: 44px;
    background: var(--gold);
}

/* ====================================================
   CONTAINERS & SECTIONS
   ==================================================== */
.content-page {
    padding-top: var(--header-h);
}

.content-hero {
    background: linear-gradient(135deg, var(--bg-dark) 0%, #17241f 100%);
    color: #fff;
    padding: clamp(60px, 8vw, 90px) clamp(20px, 6vw, 80px);
    position: relative;
    border-bottom: 1px solid var(--line-dark);
}

.content-hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.content-hero h1 {
    font-family: var(--serif);
    font-size: clamp(34px, 4.8vw, 62px);
    margin: 14px 0 16px;
    line-height: 1.08;
}

.content-hero p {
    font-size: clamp(15px, 1.7vw, 18px);
    color: rgba(255, 255, 255, 0.82);
    max-width: 640px;
    line-height: 1.6;
    margin: 0;
}

.section-pad {
    padding: clamp(60px, 7vw, 100px) clamp(20px, 6vw, 80px);
}

.container {
    max-width: var(--max-w);
    margin: 0 auto;
}

/* Responsive Grid Systems */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(28px, 5vw, 64px);
    align-items: start;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(20px, 3vw, 32px);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Modern Card Component */
.card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(24px, 4vw, 36px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold-border);
}

.card-gold-top {
    border-top: 3px solid var(--gold);
}

/* Package Pricing Cards */
.package-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 32px 28px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--gold);
}

.package-card.is-featured {
    border: 2px solid var(--gold);
    background: #fff;
    box-shadow: 0 10px 30px rgba(191, 161, 95, 0.15);
}

.package-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.package-price {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-primary);
    font-family: var(--serif);
    margin: 12px 0 4px;
}

.package-price small {
    font-size: 13px;
    font-weight: 600;
    color: var(--gold);
    font-family: var(--sans);
    letter-spacing: 0.5px;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 28px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    font-size: 13.5px;
    color: var(--text-secondary);
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.package-features li::before {
    content: '✓';
    color: var(--gold);
    font-weight: 800;
    line-height: 1.4;
}

.package-actions {
    margin-top: auto;
}

/* ====================================================
   FORMS & INPUTS (Modern, Touch-friendly)
   ==================================================== */
.form-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: clamp(24px, 4vw, 40px);
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 20px;
}

.form-group, .form-card label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-secondary);
}

.form-card input, .form-card select, .form-card textarea {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid var(--line);
    background: var(--bg-canvas);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 15px; /* >= 16px on mobile prevents zoom */
    color: var(--text-primary);
    outline: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    min-height: 46px;
}

.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
    background: #fff;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(191, 161, 95, 0.16);
}

/* Alerts */
.portal-alert, .form-message {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    background: var(--accent-green-bg);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.portal-alert.is-error, .form-message.is-error {
    background: var(--accent-red-bg);
    color: #991b1b;
    border-color: rgba(239, 68, 68, 0.25);
}

/* ====================================================
   FOOTER (Centered, Minimal, Luxury)
   ==================================================== */
.site-footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    border-top: 1px solid var(--line-dark);
    padding: 60px clamp(20px, 6vw, 80px) 40px;
    text-align: center;
}

.footer-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
    font-size: 13px;
    font-weight: 500;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links a:hover {
    color: var(--gold);
}

.footer-copy {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    width: 100%;
}

/* ====================================================
   MOBILE & TABLET RESPONSIVENESS (< 900px)
   ==================================================== */
@media (max-width: 900px) {
    :root {
        --header-h: 68px;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -320px;
        width: min(85vw, 320px);
        height: 100vh;
        background: var(--bg-dark-surface);
        box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
        flex-direction: column;
        align-items: stretch;
        padding: calc(var(--header-h) + 24px) 24px 36px;
        gap: 8px;
        z-index: 105;
        overflow-y: auto;
        transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .main-nav.is-open {
        right: 0;
    }

    .main-nav a {
        padding: 12px 14px;
        border-radius: var(--radius-xs);
        font-size: 14.5px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .main-nav a:hover {
        background: rgba(255, 255, 255, 0.06);
    }

    .main-nav a::after {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .header-actions .button {
        display: none;
    }

    .grid-2, .grid-3, .grid-4 {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .slider-control {
        display: none; /* Swipe gestures handle mobile navigation */
    }

    .hero-content {
        max-width: 100%;
    }

    .form-card input, .form-card select, .form-card textarea {
        font-size: 16px; /* Stop Safari iOS auto-zoom */
    }
}