/* Miracle Hills Spas - Ultra Luxury Spa Theme CSS Variables and Global Styles */

/* Adobe Fonts - TT Modernoir */
@import url("https://use.typekit.net/evd7inp.css");

:root {
    /* Premium Brand Colors - Luxurious Spa Palette */
    --brand-primary: #2d5661;
    /* Soft Champagne Bronze - Sophisticated main brand */
    --brand-dark: #1a3940;
    /* Warm Charcoal - Softer dark tone */
    --brand-light: #e8f1f3;
    /* Warm Ivory - Pristine backgrounds */
    --brand-accent: #4a89a0;
    /* Soft Champagne - Luxury accents */
    --brand-accent-light: #bbd1d7;
    /* Pale Champagne - Accent variations */
    --brand-neutral: #4A453E;
    /* Darker Warm Gray - Enhanced readability for body text */
    --brand-dark-alt: #4A453E;
    /* Alternative warm dark tone */

    /* Text Color System */
    --text-primary: #3A3530;
    /* Dark text for maximum readability - matches brand-dark */
    --text-secondary: #4A453E;
    /* Secondary text color - matches brand-neutral for consistency */
    --text-muted: #999999;
    /* Muted/disabled text */
    --text-light: #CCCCCC;
    /* Light text */
    --text-light-muted: #D4D0CA;
    /* Muted light text for dark backgrounds */
    --text-light-subtle: #B8B0A6;
    /* Very subtle light text */
    --text-inverse: #FFFFFF;
    /* White text on dark backgrounds */

    /* Gray Scale System */
    --gray-50: #FAFAFA;
    --gray-100: #F5F5F5;
    --gray-200: #EEEEEE;
    --gray-300: #E0E0E0;
    --gray-400: #BDBDBD;
    --gray-500: #9E9E9E;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Sophisticated Secondary Colors */
    --spa-green: #A8BCA7;
    /* Soft Sage - Lighter, more relaxing green */
    --spa-green-light: #C2D1C1;
    /* Very Light sage for gradients */
    --spa-blue: #B8D4E3;
    /* Soft Sky - Lighter, serene blue */
    --spa-blue-light: #D0E2EC;
    /* Pale sky for gradients */
    --spa-lavender: #E6DCF0;
    /* Soft Lavender - Much lighter, dreamy */
    --spa-lavender-light: #F2ECF7;
    /* Very pale lavender for gradients */
    --spa-coral: #F0D4D0;
    /* Gentle Blush - Soft, warm coral */
    --spa-coral-light: #F7E4E2;
    /* Very light coral for gradients */
    --spa-pearl: #FAF7F2;
    /* Soft Pearl - Replaces sand, more elegant */
    --spa-pearl-light: #FDFBF8;
    /* Light pearl for gradients */
    --spa-cream: #FBF8F3;
    /* Silk Cream - Ultra-soft background */
    --spa-platinum: #FDFBF8;
    /* Warm Platinum - Luxurious ultra-light */

    /* Enhanced Typography Scale */
    --text-xs: 0.75rem;
    /* 12px */
    --text-sm: 0.875rem;
    /* 14px */
    --text-base: 1rem;
    /* 16px */
    --text-lg: 1.125rem;
    /* 18px */
    --text-xl: 1.25rem;
    /* 20px */
    --text-2xl: 1.5rem;
    /* 24px */
    --text-3xl: 1.875rem;
    /* 30px */
    --text-4xl: 2.25rem;
    /* 36px */
    --text-5xl: 3rem;
    /* 48px */
    --text-6xl: 3.75rem;
    /* 60px */
    --text-7xl: 4.5rem;
    /* 72px */

    /* Premium Font Families */
    --font-heading: 'tt-modernoir', 'Helvetica Neue', sans-serif;
    /* TT Modernoir for all headings */
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;
    --font-accent: 'tt-modernoir', 'Helvetica Neue', sans-serif;
    /* Using TT Modernoir for accents too */

    /* TT Modernoir Font Weights:
     * 400 - Regular
     * 500 - Medium
     * 600 - DemiBold
     * 700 - Bold
     */

    /* Refined Spacing System */
    --space-xs: 0.5rem;
    /* 8px */
    --space-sm: 1rem;
    /* 16px */
    --space-md: 1.5rem;
    /* 24px */
    --space-lg: 2rem;
    /* 32px */
    --space-xl: 3rem;
    /* 48px */
    --space-2xl: 4rem;
    /* 64px */
    --space-3xl: 6rem;
    /* 96px */
    --space-4xl: 8rem;
    /* 128px */

    /* Modern Border Radius */
    --radius-xs: 2px;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-2xl: 36px;
    --radius-full: 9999px;

    /* Sophisticated Shadow System */
    --shadow-xs: 0 1px 2px rgba(26, 20, 16, 0.04);
    --shadow-sm: 0 2px 4px rgba(26, 20, 16, 0.06), 0 1px 2px rgba(26, 20, 16, 0.04);
    --shadow-md: 0 4px 8px rgba(26, 20, 16, 0.08), 0 2px 4px rgba(26, 20, 16, 0.06);
    --shadow-lg: 0 8px 16px rgba(26, 20, 16, 0.1), 0 4px 8px rgba(26, 20, 16, 0.08);
    --shadow-xl: 0 16px 32px rgba(26, 20, 16, 0.12), 0 8px 16px rgba(26, 20, 16, 0.1);
    --shadow-2xl: 0 24px 48px rgba(26, 20, 16, 0.15), 0 12px 24px rgba(26, 20, 16, 0.12);
    --shadow-luxury: 0 32px 64px rgba(26, 20, 16, 0.18), 0 16px 32px rgba(26, 20, 16, 0.15);

    /* Premium Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-luxury: 600ms cubic-bezier(0.25, 0.1, 0.25, 1);

    /* Gradient Definitions */
    --gradient-primary: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-accent) 100%);
    --gradient-luxury: linear-gradient(135deg, var(--brand-accent) 0%, var(--brand-accent-light) 50%, var(--brand-primary) 100%);
    --gradient-subtle: linear-gradient(135deg, var(--spa-cream) 0%, var(--spa-platinum) 100%);
    --gradient-wellness: linear-gradient(135deg, var(--spa-green) 0%, var(--spa-blue) 100%);
    --gradient-pearl: linear-gradient(180deg, var(--spa-pearl) 0%, var(--spa-platinum) 100%);
    --gradient-spa: linear-gradient(135deg, var(--spa-lavender-light) 0%, var(--spa-blue-light) 50%, var(--spa-green-light) 100%);
}

/* Required CMS Classes */
.cms-bg-primary {
    background-color: var(--brand-primary) !important;
}

.cms-text-primary {
    color: var(--brand-primary) !important;
}

.cms-border-primary {
    border-color: var(--brand-primary) !important;
}

.cms-bg-dark {
    background-color: var(--brand-dark) !important;
}

.cms-text-dark {
    color: var(--brand-dark) !important;
}

.cms-border-dark {
    border-color: var(--brand-dark) !important;
}

.cms-bg-light {
    background-color: var(--brand-light) !important;
}

.cms-text-light {
    color: var(--brand-light) !important;
}

.cms-border-light {
    border-color: var(--brand-light) !important;
}

.cms-bg-accent {
    background-color: var(--brand-accent) !important;
}

.cms-text-accent {
    color: var(--brand-accent) !important;
}

.cms-border-accent {
    border-color: var(--brand-accent) !important;
}

.cms-bg-neutral {
    background-color: var(--brand-neutral) !important;
}

.cms-text-neutral {
    color: var(--brand-neutral) !important;
}

.cms-border-neutral {
    border-color: var(--brand-neutral) !important;
}

/* Global Styles - Ultra Premium */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    scroll-padding-top: 100px;
    scroll-snap-type: y proximity;
}

body {
    font-family: var(--font-body);
    color: var(--brand-dark);
    background-color: var(--brand-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 400;
    letter-spacing: 0.3px;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    line-height: 1.2;
    letter-spacing: -0.01em;
    color: var(--brand-dark);
    margin-bottom: 0.5em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 600;
    /* DemiBold for main titles */
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    /* Medium for section headings */
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 500;
    /* Medium for subsections */
}

h4 {
    font-size: var(--text-xl);
    font-weight: 600;
    /* DemiBold for smaller headings */
}

h5 {
    font-size: var(--text-lg);
    font-weight: 500;
    /* Medium */
}

h6 {
    font-size: var(--text-base);
    font-weight: 600;
    /* DemiBold for smallest headings */
}

p {
    margin-bottom: 1em;
    line-height: 1.7;
    color: var(--brand-neutral);
    font-weight: 400;
    /* Using brand-neutral for consistent readability across all body text */
}

a {
    color: var(--brand-primary);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
}

a:hover {
    color: var(--brand-accent);
}

a:focus {
    outline: 2px solid var(--brand-accent);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Enhanced Button Styles */
.cms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 36px;
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: center;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}

.cms-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left var(--transition-slow);
}

.cms-btn:hover::before {
    left: 100%;
}

.cms-btn-primary {
    background: var(--gradient-luxury);
    color: var(--brand-dark);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-accent);
}

.cms-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #E6C547 0%, var(--brand-accent) 50%, var(--brand-primary) 100%);
}

.cms-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--brand-primary);
    border-color: var(--brand-primary);
    backdrop-filter: blur(10px);
}

.cms-btn-secondary:hover {
    background: var(--brand-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.cms-btn-luxury {
    background: white;
    color: var(--brand-dark);
    border-color: rgba(212, 175, 55, 0.2);
    box-shadow: var(--shadow-sm);
}

.cms-btn-luxury:hover {
    background: var(--gradient-primary);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

/* Enhanced Container Styles */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
}

.container-narrow {
    max-width: 900px;
}

.container-wide {
    max-width: 1400px;
}

.container-luxury {
    max-width: 1600px;
    padding: 0 40px;
}

/* Premium Section Styles */
.section {
    position: relative;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

.section-md {
    padding: var(--space-3xl) 0;
}

.section-lg {
    padding: calc(var(--space-4xl) * 1.2) 0;
}

.section-luxury {
    padding: calc(var(--space-4xl) * 1.5) 0;
}

/* Section Separators */
.section-separator {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.15), transparent);
}

.section-separator-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 115, 85, 0.15), transparent);
}

/* Grid System */
.grid {
    display: grid;
    gap: var(--space-sm);
}

.grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

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

/* Premium Card Styles */
.card {
    background: white;
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(212, 175, 55, 0.08);
    transition: all var(--transition-luxury);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-subtle);
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
    border-color: rgba(212, 175, 55, 0.15);
}

.card:hover::before {
    opacity: 1;
}

.card-luxury {
    background: linear-gradient(135deg, white 0%, var(--spa-cream) 100%);
    border: 1px solid rgba(212, 175, 55, 0.12);
    box-shadow: var(--shadow-lg);
}

.card-luxury:hover {
    box-shadow: var(--shadow-luxury);
    transform: translateY(-12px) scale(1.02);
}

/* Spa-Specific Styles */
.spa-pattern {
    background-image:
        radial-gradient(circle at 20% 80%, var(--spa-sand) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, var(--spa-lavender) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, var(--spa-green) 0%, transparent 50%);
    opacity: 0.1;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.luxury-border {
    position: relative;
}

.luxury-border::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(135deg, var(--brand-accent), var(--brand-primary), var(--brand-accent));
    border-radius: inherit;
    z-index: -1;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.luxury-border:hover::before {
    opacity: 1;
}

/* Premium Animations */
@keyframes luxuryFadeIn {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes elegantFloat {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    33% {
        transform: translateY(-8px) rotate(1deg);
    }

    66% {
        transform: translateY(-4px) rotate(-0.5deg);
    }
}

@keyframes shimmerLuxury {
    0% {
        transform: translateX(-100%) skewX(-15deg);
    }

    100% {
        transform: translateX(200%) skewX(-15deg);
    }
}

@keyframes pulseGlow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
    }

    50% {
        box-shadow: 0 0 40px rgba(212, 175, 55, 0.4);
    }
}

@keyframes sophisticatedSlide {
    0% {
        opacity: 0;
        transform: translateX(-60px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

/* Animation Classes */
.fade-in-luxury {
    animation: luxuryFadeIn 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) both;
}

.float-elegant {
    animation: elegantFloat 4s ease-in-out infinite;
}

.shimmer-effect {
    position: relative;
    overflow: hidden;
}

.shimmer-effect::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    animation: shimmerLuxury 2.5s ease-in-out infinite;
}

.glow-luxury {
    animation: pulseGlow 3s ease-in-out infinite;
}

.slide-sophisticated {
    animation: sophisticatedSlide 0.6s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* Staggered Animation Classes */
.stagger-1 {
    animation-delay: 0.1s;
}

.stagger-2 {
    animation-delay: 0.2s;
}

.stagger-3 {
    animation-delay: 0.3s;
}

.stagger-4 {
    animation-delay: 0.4s;
}

.stagger-5 {
    animation-delay: 0.5s;
}

/* Responsive Design */
@media (max-width: 768px) {
    :root {
        --text-base: 0.875rem;
        --text-lg: 1rem;
        --text-xl: 1.125rem;
        --text-2xl: 1.25rem;
        --text-3xl: 1.5rem;
        --text-4xl: 1.875rem;
        --text-5xl: 2.25rem;
    }

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


    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .cms-btn {
        padding: 10px 24px;
        font-size: 0.8rem;
    }
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-justify {
    text-align: justify;
}

.mt-sm {
    margin-top: var(--space-sm);
}

.mt-md {
    margin-top: var(--space-md);
}

.mt-lg {
    margin-top: var(--space-lg);
}

.mt-xl {
    margin-top: var(--space-xl);
}

.mb-sm {
    margin-bottom: var(--space-sm);
}

.mb-md {
    margin-bottom: var(--space-md);
}

.mb-lg {
    margin-bottom: var(--space-lg);
}

.mb-xl {
    margin-bottom: var(--space-xl);
}

.pt-sm {
    padding-top: var(--space-sm);
}

.pt-md {
    padding-top: var(--space-md);
}

.pt-lg {
    padding-top: var(--space-lg);
}

.pt-xl {
    padding-top: var(--space-xl);
}

.pb-sm {
    padding-bottom: var(--space-sm);
}

.pb-md {
    padding-bottom: var(--space-md);
}

.pb-lg {
    padding-bottom: var(--space-lg);
}

.pb-xl {
    padding-bottom: var(--space-xl);
}

/* Overlays */
.overlay {
    position: relative;
}

.overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(44, 36, 22, 0.3) 0%, rgba(44, 36, 22, 0.7) 100%);
    z-index: 1;
}

.overlay>* {
    position: relative;
    z-index: 2;
}

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');