/* ============================================================
   mm-massage.dk – Main CSS Design System (Redesigned)
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;0,900;1,400;1,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ── CSS Custom Properties (Design Tokens) ────────────────── */
:root {
    /* Colors - Jade & Gold Luxury Theme */
    --color-primary:        #091e11;   /* Deep jade/black */
    --color-primary-light:  #133e1a;   /* Rich forest emerald */
    --color-primary-hover:  #0c2912;   /* Dark hover state */
    
    --color-accent:         #c5a880;   /* Muted warm gold */
    --color-accent-bright:  #d4af37;   /* Metallic gold */
    --color-accent-light:   #f6f3ed;   /* Light champagne tint */
    --color-accent-muted:   #e3dac9;   /* Matte gold/cream */

    --color-white:          #ffffff;
    --color-bg:             #fafbfa;   /* Warm Pearl white */
    --color-bg-section:     #f4f6f4;   /* Soft Sage Tint */
    --color-bg-dark:        #07190e;   /* Dark background for premium feel */
    --color-bg-card:        #ffffff;
    
    --color-text-hero:      #ffffff;
    --color-text-dark:      #0d1e11;   /* Very deep green-black */
    --color-text-body:      #333e36;   /* Soft charcoal-olive body */
    --color-text-muted:     #6b776e;   /* Sage-grey */
    --color-text-light:     #9caaa0;   /* Light sage-grey */
    --color-text-on-green:  #ffffff;

    --color-border:         #e2e8e3;
    --color-border-light:   #edf2ee;
    --color-border-gold:    rgba(212, 175, 55, 0.25);
    
    --color-shadow:         rgba(9, 30, 17, 0.08);
    --color-shadow-strong:  rgba(9, 30, 17, 0.16);
    --color-shadow-gold:    rgba(212, 175, 55, 0.15);

    --color-open:           #10b981;   /* Emerald green open status */
    --color-closed:         #ef4444;   /* Crimson red closed status */
    
    /* Fallback/compatibility variables */
    --color-surface-alt:    var(--color-bg-section);
    --color-text:           var(--color-text-body);

    /* Typography */
    --font-display:   'Playfair Display', Georgia, serif;
    --font-body:      'Inter', system-ui, -apple-system, sans-serif;

    /* Text Sizes */
    --text-xs:    0.75rem;
    --text-sm:    0.875rem;
    --text-base:  1rem;
    --text-lg:    1.125rem;
    --text-xl:    1.25rem;
    --text-2xl:   1.5rem;
    --text-3xl:   2rem;
    --text-4xl:   2.75rem;
    --text-5xl:   3.5rem;
    --text-6xl:   4.5rem;

    --font-weight-light:   300;
    --font-weight-normal:  400;
    --font-weight-medium:  500;
    --font-weight-semi:    600;
    --font-weight-bold:    700;
    --font-weight-black:   900;

    --line-height-tight:   1.15;
    --line-height-snug:    1.35;
    --line-height-normal:  1.6;
    --line-height-relaxed: 1.8;

    /* Spacing */
    --space-1:   0.25rem;
    --space-2:   0.5rem;
    --space-3:   0.75rem;
    --space-4:   1rem;
    --space-5:   1.25rem;
    --space-6:   1.5rem;
    --space-8:   2rem;
    --space-10:  2.5rem;
    --space-12:  3rem;
    --space-16:  4rem;
    --space-20:  5rem;
    --space-24:  6rem;

    /* Border radius */
    --radius-sm:  0.5rem;
    --radius-md:  1rem;
    --radius-lg:  1.5rem;
    --radius-xl:  2.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm:   0 2px 4px var(--color-shadow);
    --shadow-md:   0 8px 16px var(--color-shadow), 0 2px 4px rgba(0,0,0,0.02);
    --shadow-lg:   0 16px 32px var(--color-shadow), 0 4px 8px rgba(0,0,0,0.02);
    --shadow-xl:   0 24px 48px var(--color-shadow), 0 8px 16px rgba(0,0,0,0.04);
    --shadow-gold: 0 12px 24px var(--color-shadow-gold), 0 4px 8px rgba(0,0,0,0.04);

    /* 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);

    /* Layout */
    --container-max:   1240px;
    --container-pad:   var(--space-8);
    --nav-height:      80px;
}

/* ── CSS Reset & Base ─────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-body);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-weight-semi);
    line-height: var(--line-height-tight);
    color: var(--color-text-dark);
    letter-spacing: -0.01em;
}

h1 { font-size: clamp(var(--text-3xl), 6vw, var(--text-6xl)); }
h2 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h3 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h4 { font-size: clamp(var(--text-lg), 2vw, var(--text-2xl)); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
    font-size: var(--text-base);
    line-height: var(--line-height-relaxed);
    color: var(--color-text-body);
    margin-bottom: var(--space-5);
}

p:last-child { margin-bottom: 0; }

a {
    color: var(--color-primary-light);
    text-decoration: none;
    transition: color var(--transition-fast), border-color var(--transition-fast);
}

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

ul, ol { list-style: none; }

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

/* ── Layout Utilities ─────────────────────────────────────── */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-pad);
}

/* Screen reader only helper (accessibility) */
.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;
}

.section {
    padding: var(--space-24) 0;
    position: relative;
}

.section--alt {
    background-color: var(--color-bg-section);
    /* Soft wave overlay pattern */
    background-image: radial-gradient(var(--color-border) 1px, transparent 1px);
    background-size: 24px 24px;
}

.section--dark {
    background-color: var(--color-bg-dark);
    color: var(--color-text-hero);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
    color: var(--color-white);
}

.section--dark p {
    color: rgba(255, 255, 255, 0.75);
}

.section--green {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    border-top: 1px solid var(--color-border-gold);
    border-bottom: 1px solid var(--color-border-gold);
    box-shadow: inset 0 20px 40px rgba(0,0,0,0.15);
}

.section--green h2,
.section--green h3,
.section--green p {
    color: var(--color-white);
}

/* ── Section Headers ──────────────────────────────────────── */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-header h2 {
    margin-bottom: var(--space-4);
    position: relative;
    display: inline-block;
    padding-bottom: var(--space-4);
}

.section-header h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-accent), var(--color-accent-bright));
    margin: var(--space-2) auto 0;
    border-radius: var(--radius-full);
}

.section-header p {
    font-size: var(--text-lg);
    color: var(--color-text-muted);
    max-width: 600px;
    margin: 0 auto;
}

.section--dark .section-header h2::after,
.section--green .section-header h2::after {
    background: linear-gradient(90deg, var(--color-accent), var(--color-white));
}

.section--dark .section-header p,
.section--green .section-header p {
    color: rgba(255,255,255,0.7);
}

/* ── Grid Layouts ─────────────────────────────────────────── */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12);
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-10);
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-8);
}

/* ── Badge / Tags ─────────────────────────────────────────── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semi);
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.badge--open {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--color-open);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge--open .badge-dot {
    background-color: var(--color-open);
    box-shadow: 0 0 10px var(--color-open);
    animation: pulse 1.8s infinite;
}

.badge--closed {
    background-color: rgba(239, 68, 68, 0.1);
    color: var(--color-closed);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge--closed .badge-dot {
    background-color: var(--color-closed);
}

/* ── Scroll Animations (Fades) ───────────────────────────── */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.fade-in {
    opacity: 0;
    transition: opacity var(--transition-slow);
}

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

/* ── Hero Section (Luxurious Overlay Slideshow) ────────────── */
.hero {
    position: relative;
    min-height: 90vh;
    display: flex;
    align-items: center;
    color: var(--color-text-hero);
    overflow: hidden;
    padding-top: var(--nav-height);
}

.hero-slideshow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transform: scale(1.05);
    transition: opacity 1.8s ease-in-out, transform 5s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
    transform: scale(1);
}

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(7, 25, 14, 0.92) 0%,
        rgba(9, 30, 17, 0.85) 50%,
        rgba(197, 168, 128, 0.15) 100%
    );
    z-index: 2;
}

.hero__content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: var(--space-12) 0;
}

.hero__tagline {
    font-size: var(--text-sm);
    font-weight: var(--font-weight-semi);
    color: var(--color-accent);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.hero__tagline svg {
    color: var(--color-accent-bright);
}

.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 8vw, var(--text-6xl));
    color: var(--color-white);
    margin-bottom: var(--space-6);
    line-height: 1.1;
    text-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.hero__subtitle {
    font-size: var(--text-xl);
    line-height: var(--line-height-relaxed);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: var(--space-8);
    max-width: 650px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.25);
}

.hero__actions {
    display: flex;
    gap: var(--space-5);
    flex-wrap: wrap;
    margin-bottom: var(--space-10);
}

.hero__status {
    display: inline-block;
}

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    color: var(--color-white);
    padding: calc(var(--nav-height) + var(--space-16)) 0 var(--space-16);
    text-align: center;
    border-bottom: 1px solid var(--color-border-gold);
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(197, 168, 128, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

.page-header h1 {
    color: var(--color-white);
    margin-bottom: var(--space-3);
    position: relative;
    z-index: 2;
}

.page-header p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--text-lg);
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* ── Treatment Detail ─────────────────────────────────────── */
.treatment-hero {
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--color-border-gold);
}

.treatment-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: start;
}

/* ── Symptom Grid ─────────────────────────────────────────── */
.symptom-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-4);
}

.symptom-item {
    background: var(--color-white);
    border: 1px solid var(--color-border-light);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--text-base);
    font-weight: var(--font-weight-medium);
    color: var(--color-text-dark);
    box-shadow: var(--shadow-sm);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
}

.symptom-item:hover {
    border-color: var(--color-accent);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.symptom-item::before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-bright) 100%);
    flex-shrink: 0;
}

/* ── Keyframes ────────────────────────────────────────────── */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}
