/* ============================================
   MOLEKULY PŘÍBĚHŮ — Brand Design System
   Based on logo manual: #7064a1 + #5f6062
   ============================================ */

/* --- Reset & Custom Properties --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Brand palette */
    --purple: #7064a1;
    --purple-deep: #5a4f8a;
    --purple-light: #9b91c4;
    --purple-subtle: #e8e4f0;
    --purple-wash: #f5f3f9;

    --grey: #5f6062;
    --grey-light: #8a8b8d;
    --grey-pale: #c8c8ca;

    --cream: #faf8f5;
    --warm: #f3efe9;
    --white: #ffffff;
    --dark: #1a1420;

    /* Typography */
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Montserrat', 'Helvetica Neue', sans-serif;

    /* Spacing */
    --section-pad: clamp(80px, 10vw, 140px);
    --container: 1140px;
    --container-narrow: 760px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    color: var(--dark);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--purple); text-decoration: none; transition: color 0.3s var(--ease); }
a:hover { color: var(--purple-deep); }

/* --- Layout --- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
}

.container--narrow { max-width: var(--container-narrow); }

/* --- Typography --- */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    line-height: 1.2;
    color: var(--dark);
}

h2 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    margin-bottom: 1.5rem;
}

h3 {
    font-size: clamp(1.15rem, 2vw, 1.5rem);
    margin-bottom: 0.75rem;
}

.section-label {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 1rem;
    position: relative;
    padding-left: 40px;
}

.section-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 28px;
    height: 1px;
    background: var(--purple-light);
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--grey);
    line-height: 1.85;
    max-width: 600px;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

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

/* ============================================
   HERO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--dark);
}

.hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(26,20,32,0.2) 0%, rgba(26,20,32,0.1) 40%, rgba(26,20,32,0.5) 100%),
        radial-gradient(ellipse at center, transparent 30%, rgba(26,20,32,0.3) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    animation: scaleIn 1.5s var(--ease);
}

.hero__logo {
    width: clamp(160px, 22vw, 260px);
    height: auto;
    filter: drop-shadow(0 4px 30px rgba(0,0,0,0.3)) brightness(1.1);
}

.hero__scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: rgba(255,255,255,0.6);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    animation: fadeIn 2s var(--ease) 1s both;
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0.5), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   NAV — transparent over hero, solid on scroll
   ============================================ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.nav--scrolled {
    background: var(--white);
    box-shadow: 0 1px 30px rgba(26,20,32,0.08);
}

.nav__inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(20px, 4vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__brand {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: rgba(255,255,255,0.95);
    letter-spacing: 0.02em;
    transition: color 0.4s var(--ease);
}

.nav--scrolled .nav__brand { color: var(--dark); }
.nav__brand:hover { color: var(--purple-light); }
.nav--scrolled .nav__brand:hover { color: var(--purple); }

.nav__links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav__links a {
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.8);
    position: relative;
    padding-bottom: 4px;
    transition: color 0.4s var(--ease);
}

.nav--scrolled .nav__links a { color: var(--grey); }

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--purple-light);
    transition: width 0.3s var(--ease), background 0.4s var(--ease);
}

.nav--scrolled .nav__links a::after { background: var(--purple); }

.nav__links a:hover { color: #fff; }
.nav--scrolled .nav__links a:hover { color: var(--purple); }
.nav__links a:hover::after { width: 100%; }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
}

.nav__toggle span {
    display: block;
    width: 26px;
    height: 1.5px;
    background: #fff;
    transition: 0.3s var(--ease);
    transform-origin: center;
}

.nav--scrolled .nav__toggle span { background: var(--dark); }

.nav__toggle--open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5.5px); }
.nav__toggle--open span:nth-child(2) { opacity: 0; }
.nav__toggle--open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5.5px); }

/* ============================================
   INTRO — "V hlavní roli"
   ============================================ */
.intro {
    padding: var(--section-pad) 0;
    text-align: center;
}

.intro__badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(1.5rem, 4vw, 3rem);
}

.intro__deco {
    width: clamp(80px, 10vw, 130px);
    opacity: 0.6;
    transition: opacity 0.5s var(--ease);
}

.intro__deco:hover { opacity: 0.9; }

.intro__text {
    max-width: 480px;
}

.intro__text h2 {
    color: var(--purple);
    font-style: italic;
}

.intro__text p {
    color: var(--grey);
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

/* ============================================
   STORY — "Můj příběh"
   ============================================ */
.story-section {
    position: relative;
    padding: var(--section-pad) 0;
    background-color: var(--warm);
    background-size: cover;
    background-position: center;
    background-blend-mode: soft-light;
}

.story-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(243,239,233,0.92) 0%, rgba(243,239,233,0.85) 100%);
}

.story-section > .container { position: relative; z-index: 1; }

.story { max-width: 900px; margin: 0 auto; }

.story__header {
    text-align: center;
    margin-bottom: 3rem;
}

.story__columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.story__col p {
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
    color: var(--grey);
}

.story__continuation {
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(20px);
    padding: clamp(2rem, 4vw, 3rem);
    border-radius: 16px;
    border: 1px solid rgba(112,100,161,0.1);
    margin-bottom: 2.5rem;
}

.story__continuation h3 {
    color: var(--purple);
    margin-bottom: 1.2rem;
}

.story__continuation p {
    margin-bottom: 0.8rem;
    font-size: 0.95rem;
    color: var(--grey);
}

.story__cta {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.15rem;
    color: var(--purple) !important;
    margin-top: 1.5rem;
}

.story__signature {
    width: 160px;
    margin: 0 auto;
    opacity: 0.65;
}

/* ============================================
   VALUES
   ============================================ */
.values-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.values-section .section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.values-section .section-header p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: var(--grey);
    max-width: 550px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.value-card {
    padding: 2.5rem 2rem;
    border-radius: 16px;
    background: var(--purple-wash);
    border: 1px solid var(--purple-subtle);
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    position: relative;
    overflow: hidden;
}

.value-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 0;
    background: var(--purple);
    transition: height 0.5s var(--ease);
    border-radius: 0 0 3px 0;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(112,100,161,0.12);
}

.value-card:hover::before { height: 100%; }

.value-card h3 {
    font-size: 1.35rem;
    line-height: 1.35;
    margin-bottom: 1.2rem;
}

.value-card h3 span {
    color: var(--purple);
    font-style: italic;
}

.value-card p {
    font-size: 0.85rem;
    color: var(--grey);
    font-style: italic;
    line-height: 1.7;
}

/* ============================================
   VISION
   ============================================ */
.vision-section {
    padding: var(--section-pad) 0;
    background: var(--cream);
    text-align: center;
}

.vision__quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: clamp(1.3rem, 3vw, 2rem);
    color: var(--dark);
    max-width: 600px;
    margin: 0 auto 4rem;
    line-height: 1.5;
}

.vision__cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.vision__card {
    transition: transform 0.5s var(--ease);
}

.vision__card:hover { transform: translateY(-6px); }

.vision__card img {
    width: clamp(150px, 16vw, 220px);
    height: clamp(150px, 16vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 1.2rem;
    box-shadow: 0 8px 30px rgba(112,100,161,0.15);
    transition: box-shadow 0.5s var(--ease);
}

.vision__card:hover img {
    box-shadow: 0 12px 40px rgba(112,100,161,0.25);
}

.vision__card p {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--grey);
}

/* ============================================
   TREATMENTS / PROCEDURY
   ============================================ */
.treatments-section {
    padding: var(--section-pad) 0;
    background: var(--white);
}

.treatments-header {
    text-align: center;
    margin-bottom: 4rem;
}

.treatments-header h2 span {
    color: var(--purple);
    font-style: italic;
}

.treatments-header .lead {
    margin: 0 auto;
    text-align: center;
}

.treatments-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.treatment-card {
    background: var(--cream);
    padding: 2.5rem;
    border-radius: 16px;
    border-left: 3px solid var(--purple);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.treatment-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.06);
}

.treatment-card h3 {
    color: var(--purple);
    margin-bottom: 1.2rem;
    font-size: 1.2rem;
}

.treatment-card ul {
    list-style: none;
    padding: 0;
}

.treatment-card li {
    padding: 0.4rem 0 0.4rem 1.5rem;
    position: relative;
    font-size: 0.88rem;
    color: var(--grey);
    line-height: 1.7;
}

.treatment-card li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--purple-light);
}

/* ============================================
   PRODUCTS / VÝROBKY
   ============================================ */
.products-section {
    padding: var(--section-pad) 0;
    background: var(--purple-wash);
}

.products-header {
    text-align: center;
    margin-bottom: 4rem;
}

.products-header .lead {
    margin: 0 auto;
    text-align: center;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.product-card {
    background: var(--white);
    border-radius: 20px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 48px rgba(112,100,161,0.12);
    border-color: var(--purple-subtle);
}

.product-card img {
    width: 90px;
    height: 90px;
    object-fit: contain;
    margin: 0 auto 1.5rem;
    transition: transform 0.5s var(--ease);
}

.product-card:hover img { transform: scale(1.08); }

.product-card h3 {
    font-size: 1.05rem;
    color: var(--dark);
}

/* ============================================
   TEAROOM / ČAJOVNA
   ============================================ */
.tearoom-section {
    padding: var(--section-pad) 0;
    background: var(--warm);
}

.tearoom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
}

.tearoom__video-wrap {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 48px rgba(0,0,0,0.1);
}

.tearoom__video-wrap video {
    width: 100%;
    display: block;
}

.tearoom__content h2 { margin-bottom: 2rem; }

.tearoom__items {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.tearoom__item h3 {
    color: var(--purple);
    font-size: 1.15rem;
    margin-bottom: 0.4rem;
}

.tearoom__item p {
    font-size: 0.9rem;
    color: var(--grey);
    line-height: 1.7;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-section {
    padding: var(--section-pad) 0;
    background: var(--white);
    text-align: center;
}

.contact__image {
    max-width: 520px;
    margin: 0 auto 2.5rem;
    border-radius: 20px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.08);
}

.contact-section p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: var(--grey);
}

.contact-section strong { color: var(--dark); }

.contact__email {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.contact__email a {
    color: var(--purple);
    font-weight: 600;
    border-bottom: 2px solid var(--purple-subtle);
    padding-bottom: 2px;
    transition: border-color 0.3s var(--ease);
}

.contact__email a:hover { border-color: var(--purple); }

.contact__social {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.contact__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--purple-wash);
    transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}

.contact__social a:hover {
    background: var(--purple-subtle);
    transform: scale(1.1);
}

.contact__social img {
    width: 22px;
    height: 22px;
    opacity: 0.7;
    transition: opacity 0.3s var(--ease);
}

.contact__social a:hover img { opacity: 1; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--dark);
    padding: 3.5rem 0;
    text-align: center;
}

.footer__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
}

.footer__logo {
    height: 40px;
    width: auto;
    opacity: 0.5;
    transition: opacity 0.3s var(--ease);
}

.footer__logo:hover { opacity: 0.8; }

.footer p {
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .values-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    .nav__toggle { display: flex; }

    .nav__links {
        display: none;
        position: absolute;
        top: 72px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        padding: 1.5rem clamp(20px, 4vw, 48px);
        gap: 0.8rem;
        border-bottom: 1px solid rgba(0,0,0,0.06);
        box-shadow: 0 12px 30px rgba(0,0,0,0.06);
    }

    .nav__links a { color: var(--grey) !important; }
    .nav__links a:hover { color: var(--purple) !important; }

    .nav__links--open { display: flex; }

    .intro__deco { display: none; }

    .story__columns { grid-template-columns: 1fr; gap: 0; }

    .values-grid { grid-template-columns: 1fr; }

    .vision__cards { grid-template-columns: 1fr; gap: 2rem; }

    .treatments-grid { grid-template-columns: 1fr; }

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

    .tearoom {
        grid-template-columns: 1fr;
    }

    .tearoom__video-wrap { order: -1; }
}

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

    .hero { min-height: 500px; }
}
