/* =============================================
   MEDTRAVEL — HOME PAGE DESIGN SYSTEM
   Extracted from home.php inline <style>
   ============================================= */

/* --- Design Tokens (scoped to .home-page only — avoids global override) --- */
.home-page {
    --mx-primary: #064E3B;
    --mx-secondary: #0d9488;
    --mx-gold: #C6A15B;
    --mx-gold-light: #D4AF37;
    --mx-glass: rgba(255, 255, 255, 0.75);
    --mx-glass-border: rgba(19, 78, 74, 0.08);
    --mx-shadow-lux: 0 30px 60px -12px rgba(6, 78, 59, 0.15);
    --radius-card: 2rem;
    --section-py: 7rem;
    --section-py-sm: 4rem;
    --gap-cards: 2rem;
}

/* --- Section spacer --- */
.lux-section {
    padding-top: var(--section-py);
    padding-bottom: var(--section-py);
    position: relative;
}

@media (max-width: 768px) {
    .lux-section {
        padding-top: var(--section-py-sm);
        padding-bottom: var(--section-py-sm);
    }
}

/* --- Badge --- */
.lux-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(19, 78, 74, 0.06);
    border: 1px solid rgba(19, 78, 74, 0.15);
    color: var(--mx-primary);
    padding: 0.6rem 1.25rem;
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

/* --- Heading --- */
.lux-title {
    color: var(--mx-primary);
    line-height: 1.05;
    letter-spacing: -0.04em;
    font-weight: 900;
}

.lux-text {
    color: #64748b;
    line-height: 1.8;
}

/* --- Gold CTA Button (Ultra Premium) --- */
.btn-lux-gold {
    background: linear-gradient(135deg, #C6A15B 0%, #D4AF37 50%, #B8860B 100%);
    background-size: 200% auto;
    color: #000 !important;
    padding: 1.25rem 3rem;
    border-radius: 1.25rem;
    font-weight: 900;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 40px -10px rgba(198, 161, 91, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.85rem;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-lux-gold:hover {
    background-position: right center;
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 30px 60px -15px rgba(198, 161, 91, 0.6);
    border-color: rgba(255, 255, 255, 0.4);
}

/* --- Stat Card (Refined) --- */
.lux-stat-v2 {
    background: #fff;
    border: 1px solid var(--mx-glass-border);
    border-radius: 2.5rem;
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 0 10px 40px -15px rgba(6, 78, 59, 0.1);
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.lux-stat-v2::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(198, 161, 91, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.lux-stat-v2:hover {
    transform: translateY(-12px);
    box-shadow: 0 40px 80px -20px rgba(6, 78, 59, 0.15);
    border-color: rgba(198, 161, 91, 0.3);
}

.lux-stat-v2:hover::before {
    opacity: 1;
}

.lux-stat-v2 .stat-num {
    background: linear-gradient(135deg, var(--mx-primary), #0d9488);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    line-height: 1;
}

/* =============================================
   STATS — 4-COLUMN RESPONSIVE GRID
   ============================================= */
.lux-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    align-items: stretch;
}

@media (min-width: 1024px) {
    .lux-stat-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.5rem;
    }

    .lux-stat-v2:nth-child(even) {
        transform: translateY(12px);
    }

    .lux-stat-v2:nth-child(even):hover {
        transform: translateY(-4px) scale(1.02);
    }
}

@media (max-width: 480px) {
    .lux-stat-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   INQUIRY — FORM & IMAGE GRID
   ============================================= */
.lux-inquiry-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lux-inquiry-grid {
        grid-template-columns: 1.15fr 0.85fr;
    }
}

/* =============================================
   SPECIALIST — SIDE-BY-SIDE GUARANTEE
   ============================================= */
.lux-specialist-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lux-specialist-grid {
        grid-template-columns: 1fr 1.2fr;
        gap: 6rem;
        align-items: start;
    }
    .lux-specialist-img-wrap {
        margin-top: 17rem;
    }
}

.lux-specialist-img-wrap {
    position: relative;
    width: 100%;
    max-width: 500px;
    justify-self: start;
}

/* --- Bulletproof Padding Guarantee --- */
.lux-card-padding {
    padding: 4rem !important;
}

@media (max-width: 1023px) {
    .lux-card-padding {
        padding: 2.5rem 1.5rem !important;
    }
}

/* =============================================
   CLINICAL INQUIRY FORM — PREMIUM REDESIGN
   ============================================= */
.inquiry-form-shell {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 2rem;
    border: 1px solid rgba(19, 78, 74, 0.08);
    box-shadow: 0 4px 24px rgba(19, 78, 74, 0.06), 0 0 0 1px rgba(198, 161, 91, 0.08);
    overflow: hidden;
    position: relative;
}

.inquiry-form-shell::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--mx-primary), var(--mx-gold));
    opacity: 0.9;
}

.inquiry-form-header {
    padding: 2.5rem 3rem 0;
}

.inquiry-form-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(19, 78, 74, 0.06);
    border: 1px solid rgba(19, 78, 74, 0.12);
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: var(--mx-primary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.inquiry-form-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--mx-gold);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.inquiry-form-title {
    font-family: 'Figtree', sans-serif;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--mx-primary);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.inquiry-form-desc {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
}

.inquiry-form-body {
    padding: 2rem 3rem 3rem;
}

.inquiry-form .form-group {
    margin-bottom: 1.5rem;
}

.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

@media (max-width: 640px) {
    .inquiry-form .form-row {
        grid-template-columns: 1fr;
    }
}

.inquiry-form label {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--mx-primary);
    opacity: 0.85;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(19, 78, 74, 0.12);
    border-radius: 1rem;
    background: #ffffff;
    color: #0f172a;
    transition: all 0.25s ease;
    outline: none;
}

.inquiry-form input::placeholder,
.inquiry-form textarea::placeholder {
    color: #94a3b8;
}

.inquiry-form input:hover,
.inquiry-form select:hover,
.inquiry-form textarea:hover {
    border-color: rgba(19, 78, 74, 0.2);
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    border-color: var(--mx-gold);
    box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.15);
}

.inquiry-form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23134e4a' stroke-width='2'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 2.75rem;
    cursor: pointer;
}

.inquiry-form textarea {
    min-height: 120px;
    resize: vertical;
    max-height: 200px;
}

.inquiry-form-submit {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1.15rem 2rem;
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    background: linear-gradient(135deg, var(--mx-gold) 0%, var(--mx-gold-light) 100%);
    border: none;
    border-radius: 1.25rem;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(198, 161, 91, 0.35);
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.inquiry-form-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(198, 161, 91, 0.45);
}

.inquiry-form-submit:active {
    transform: translateY(0);
}

.inquiry-form-submit svg {
    width: 1.25rem;
    height: 1.25rem;
}

#formStatus {
    border-radius: 1rem;
    font-size: 0.9rem;
}

@media (max-width: 1023px) {
    .inquiry-form-header,
    .inquiry-form-body {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

/* =============================================
   HERO — LAYOUT & 3-VIDEO PANEL
   ============================================= */
.lux-hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .lux-hero-grid {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: center;
}

.video-card-v2 {
    position: relative;
    aspect-ratio: 9 / 16;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 20px 40px -10px rgba(19, 78, 74, 0.1);
    background: #f1f5f9;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.video-card-v2 video,
.video-card-v2 img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (min-width: 1024px) {
    .video-card-v2:nth-child(even) {
        transform: translateY(20px);
    }

    .video-card-v2:hover {
        transform: translateY(-8px) scale(1.05);
        z-index: 10;
    }
}

@media (max-width: 768px) {
    .hero-video-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .video-card-v2 {
        border: none;
        border-radius: 1rem;
    }
}

/* =============================================
   GLASS CARD — universal card component
   ============================================= */
.lux-glass-card {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 50px -10px rgba(6, 78, 59, 0.08);
    display: flex;
    flex-direction: column;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.lux-glass-card:hover {
    transform: translateY(-12px) scale(1.01);
    box-shadow: 0 40px 80px -20px rgba(6, 78, 59, 0.12);
    border-color: var(--mx-gold);
    background: rgba(255, 255, 255, 0.6);
}

/* =============================================
   GRIDS — Journey / Treatment / Testimonial
   ============================================= */

/* Journey — Refined Bento-style balance */
.journey-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    align-items: stretch;
}

.journey-img-wrap {
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
}

.journey-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.lux-glass-card:hover .journey-img-wrap img {
    transform: scale(1.1);
}

.journey-body {
    padding: 2.5rem 2rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* Treatment — same cols as Journey */
.treatment-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-cards);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .treatment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .treatment-grid {
        grid-template-columns: 1fr;
    }
}

.treatment-body {
    padding: 2rem 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Testimonials — 4 col desktop, 2 tablet, 1 mobile */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--gap-cards);
    align-items: stretch;
}

@media (max-width: 1024px) {
    .testimonial-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .testimonial-grid {
        grid-template-columns: 1fr;
    }
}

.testimonial-body {
    padding: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.testimonial-body blockquote {
    flex: 1;
    font-style: italic;
}

/* learn-more link always at bottom */
.learn-more {
    margin-top: auto;
}

/* Font helpers */
.font-figtree {
    font-family: 'Figtree', sans-serif;
}

.font-outfit {
    font-family: 'Outfit', sans-serif;
}

/* Journey — Force responsive consistency */
@media (max-width: 1200px) {
    .journey-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 1.5rem !important;
    }
}

@media (max-width: 768px) {
    .journey-grid {
        grid-template-columns: 1fr !important;
        gap: 1.25rem !important;
    }

    .journey-body {
        padding: 2rem 1.5rem !important;
    }

    .journey-body [class*="tracking-"] {
        letter-spacing: 0.1em !important;
    }
}
