/* ==========================================================================
   TERAPIA TATIANA - LUXURY DESIGN SYSTEM (V5)
   ========================================================================== */

:root {
    /* --- COLOR PALETTE --- */
    /* Primary: Elegant Gold */
    --gold-primary: #D4AF37;
    --gold-light: #F1DDA8;
    --gold-dark: #AA8C2C;
    --gold-gradient: linear-gradient(135deg, #F1DDA8 0%, #D4AF37 100%);
    --gold-gradient-hover: linear-gradient(135deg, #D4AF37 0%, #AA8C2C 100%);

    /* Neutrals: Warm & Sophisticated */
    --bg-main: #FCFBF9;
    /* Creamy Off-White */
    --bg-surface: #FFFFFF;
    /* Pure White for depth */
    --bg-subtle: #F5F3EC;
    /* Very light taupe for alternating sections */

    /* High Contrast: Midnight Charcoal */
    --text-primary: #1A1A1A;
    /* Softer than pure black */
    --text-secondary: #5A5A5A;
    --text-light: #F9F9F9;

    --border-light: #EBE5D9;

    /* --- TYPOGRAPHY --- */
    --font-heading: 'Cormorant Garamond', serif;
    --font-body: 'Hanken Grotesk', sans-serif;

    /* --- SPACING & SIZING --- */
    --header-height: 90px;
    --section-padding: 100px 0;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 30px;
    --border-radius-pill: 50px;

    /* --- EFFECTS --- */
    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 15px 40px rgba(212, 175, 55, 0.15);
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.5);

    /* Animation specifics: Premium cubic bezier curves */
    --transition-transform: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-color: color 0.4s ease, background-color 0.4s ease, border-color 0.4s ease, box-shadow 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    --transition-smooth: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   RESET & BASE 
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    color: var(--text-primary);
    background-color: var(--bg-main);
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    font-size: 1.05rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

ul {
    list-style: none;
}

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

/* ==========================================================================
   UTILITIES 
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 40px;
}

section {
    padding: var(--section-padding);
}

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

.mt-4 {
    margin-top: 40px;
}

.mb-4 {
    margin-bottom: 40px;
}

/* Elegant Section Titles */
.section-title {
    font-size: 3.5rem;
    margin-bottom: 4rem;
    position: relative;
    display: inline-block;
    letter-spacing: -0.5px;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: var(--gold-primary);
}

.section-subtitle {
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: -2rem auto 4rem auto;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Gold Text Gradient */
.text-gold {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* Glassmorphism Panel */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow-soft);
    border-radius: var(--border-radius-lg);
    padding: 50px;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 40px;
    border-radius: var(--border-radius-pill);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary {
    background: var(--gold-gradient);
    color: var(--text-primary);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gold-gradient-hover);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--gold-primary);
}

@media (hover: hover) and (pointer: fine) {
    .btn-primary:hover::before {
        opacity: 1;
    }

    .btn-primary:hover {
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 20px 40px rgba(212, 175, 55, 0.35);
        color: white;
    }

    .btn-outline:hover {
        background: var(--gold-primary);
        color: white;
        transform: translateY(-5px) scale(1.02);
        box-shadow: 0 15px 35px rgba(212, 175, 55, 0.25);
    }
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(252, 251, 249, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(235, 229, 217, 0.5);
    z-index: 1000;
    transition: var(--transition-smooth);
}

header.scrolled {
    box-shadow: var(--shadow-soft);
    height: 80px;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon img {
    height: 55px;
    width: auto;
    transition: transform 0.5s ease;
}

.logo-wrapper:hover .logo-icon img {
    transform: scale(1.05);
}

.logo-wrapper h1 {
    font-size: 1.8rem;
    letter-spacing: 1px;
    margin: 0;
}

.navbar ul {
    display: flex;
    gap: 40px;
}

.navbar li a {
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    position: relative;
    padding: 10px 0;
}

.navbar li a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gold-primary);
    transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.navbar li a:hover,
.navbar li a.active {
    color: var(--text-primary);
}

.navbar li a:hover::after,
.navbar li a.active::after {
    width: 100%;
}

/* Mobile Nav */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-btn span {
    width: 30px;
    height: 2px;
    background-color: var(--text-primary);
    transition: all 0.3s ease;
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO COMPONENT (Home)
   ========================================================================== */
.hero-luxury {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    background: var(--bg-main);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    right: 0;
    top: 0;
    width: 55%;
    height: 100%;
    background: url('images/Kraniosakralna-terapia.jpg') center/cover no-repeat;
    clip-path: polygon(15% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(252, 251, 249, 1) 0%, rgba(252, 251, 249, 0) 50%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-right: 50px;
}

.hero-brand {
    font-family: var(--font-body);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--gold-primary);
    margin-bottom: 20px;
    display: block;
}

.hero-title {
    font-size: 5.5rem;
    line-height: 1.05;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.hero-desc {
    font-size: 1.3rem;
    color: var(--text-secondary);
    margin-bottom: 50px;
    font-weight: 300;
}

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

/* ==========================================================================
   SUBPAGE HEADER COMPONENT
   ========================================================================== */
.page-header {
    padding: 180px 0 100px 0;
    background: var(--bg-subtle);
    position: relative;
    overflow: hidden;
    text-align: center;
}

.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -10%;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.05) 0%, transparent 70%);
}

.page-header::after {
    content: '';
    position: absolute;
    bottom: -30%;
    right: -5%;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, transparent 70%);
}

.page-title {
    font-size: 4.5rem;
    margin-bottom: 20px;
    position: relative;
    z-index: 2;
}

.breadcrumb {
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    z-index: 2;
    position: relative;
}

.breadcrumb a {
    color: var(--text-primary);
}

.breadcrumb a:hover {
    color: var(--gold-primary);
}

/* ==========================================================================
   FEATURE CARDS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.feature-card {
    background: var(--bg-surface);
    padding: 60px 40px;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--border-light);
    text-align: center;
    transition: var(--transition-smooth);
}

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 30px auto;
    background: var(--bg-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--gold-primary);
    transition: var(--transition-smooth);
}

@media (hover: hover) and (pointer: fine) {
    .feature-card:hover {
        transform: translateY(-12px) scale(1.01);
        box-shadow: var(--shadow-hover);
        border-color: var(--gold-light);
    }

    .feature-card:hover .feature-icon-wrapper {
        background: var(--gold-primary);
        color: white;
        transform: scale(1.15) rotate(5deg);
        box-shadow: 0 10px 20px rgba(212, 175, 55, 0.3);
    }
}

.feature-title {
    font-size: 1.8rem;
    margin-bottom: 20px;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    background: #111111;
    color: var(--text-light);
    padding: 100px 0 40px;
    font-family: var(--font-body);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-col h3 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 30px;
    font-family: var(--font-heading);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-logo img {
    height: 50px;
    width: 50px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 50%;
    padding: 5px;
}

.footer-logo h2 {
    color: white;
    font-size: 2rem;
    margin: 0;
}

.footer-text {
    color: rgba(255, 255, 255, 0.6);
    max-width: 400px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

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

.footer-links a:hover {
    color: var(--gold-primary);
    padding-left: 5px;
}

.footer-contact li {
    display: flex;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.7);
}

.footer-contact strong {
    color: white;
    min-width: 80px;
    font-weight: 500;
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
.fade-in {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    will-change: opacity, transform;
}

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

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .hero-title {
        font-size: 4.5rem;
    }

    .hero-bg {
        width: 50%;
    }

    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 60px 0;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .navbar {
        position: fixed;
        top: var(--header-height);
        right: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background: rgba(252, 251, 249, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        transition: right 0.5s cubic-bezier(0.77, 0, 0.175, 1);
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .navbar.active {
        right: 0;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .navbar li a {
        font-size: 1.1rem;
    }

    .hero-luxury {
        min-height: auto;
        padding-top: calc(var(--header-height) + 50px);
        padding-bottom: 80px;
    }

    .hero-bg {
        position: absolute;
        width: 100%;
        height: 100%;
        opacity: 0.15;
        clip-path: none;
    }

    .hero-bg::after {
        display: none;
    }

    .hero-content {
        max-width: 100%;
        padding-right: 0;
        text-align: center;
    }

    .hero-actions {
        justify-content: center;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-text {
        margin: 0 auto;
    }

    .footer-col {
        justify-self: center !important;
    }

    .footer-contact li {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 5px;
    }

    .section-title {
        font-size: 2.5rem;
        margin-bottom: 3rem;
    }

    .page-header {
        padding: 110px 0 40px 0;
    }

    .page-title {
        font-size: 2.8rem;
    }

    .feature-card {
        padding: 40px 20px;
    }

    .glass-panel {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .hero-brand {
        font-size: 0.85rem;
        margin-bottom: 10px;
        letter-spacing: 2px;
    }

    .hero-title {
        font-size: 2.2rem;
        line-height: 1.15;
        margin-bottom: 15px;
    }

    .hero-desc {
        font-size: 1rem;
        margin-bottom: 20px;
        line-height: 1.5;
    }

    .btn {
        padding: 12px 20px;
        width: 100%;
        font-size: 0.9rem;
    }

    .hero-actions {
        flex-direction: column;
        gap: 10px;
    }

    .container {
        padding: 0 15px;
    }

    .page-title {
        font-size: 2.2rem;
        margin-bottom: 15px;
    }

    .page-header {
        padding: 110px 0 25px 0;
    }

    .section-title {
        font-size: 2.2rem;
        margin-bottom: 2.5rem;
    }

    .glass-panel {
        padding: 25px 20px;
        border-radius: var(--border-radius-md);
    }
}