/* 
  Font Declarations (Amulya)
*/
@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-LightItalic.otf') format('opentype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-Italic.otf') format('opentype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-MediumItalic.otf') format('opentype');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Amulya';
    src: url('Fonty/Amulya-BoldItalic.otf') format('opentype');
    font-weight: 700;
    font-style: italic;
}

:root {
    /* Colors from Image & Logo */
    --color-bg-primary: #e2f2ed;
    /* Mint background */
    --color-bg-secondary: #d4e8e2;
    /* Slightly darker mint */
    --color-text-primary: #1e3a34;
    /* Dark forest green from logo */
    --color-text-muted: #4a5c5e;
    --color-accent: #d8a7a7;
    /* Dusty pink from logo */
    --color-accent-light: #f9f0f0;
    /* Very light pink for backgrounds */
    --color-accent-hover: #c98a8a;
    --color-accent-dark: #1e3a34;
    --color-white: #ffffff;
    --color-border: rgba(30, 58, 52, 0.1);

    /* Spacing */
    --space-1: 0.5rem;
    /* 8px */
    --space-2: 1rem;
    /* 16px */
    --space-3: 1.5rem;
    /* 24px */
    --space-4: 2rem;
    /* 32px */
    --space-6: 3rem;
    /* 48px */
    --space-8: 4rem;
    /* 64px */
    --space-12: 6rem;
    /* 96px */

    /* Typography */
    --font-headings: 'Amulya', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-main: var(--font-body);
    --fs-base: 1rem;
    --line-height-base: 1.6;
    --line-height-loose: 1.8;

    /* Layout */
    --container-width: 90%;
    --max-content-width: 1100px;
    --max-text-width: 800px;
    --border-radius: 20px;
}

/* Reset & Base */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    /* Base 16px for mobile */
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html {
        font-size: 18px;
    }
}

body {
    margin: 0;
    font-family: var(--font-main);
    background-color: var(--color-bg-primary);
    color: var(--color-text-primary);
    line-height: var(--line-height-base);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-headings);
    margin-top: 0;
    line-height: 1.2;
}

/* Fluid Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.subtitle {
    font-family: var(--font-headings);
    font-size: clamp(1.25rem, 3vw, 2rem);
    font-weight: 500;
    color: var(--color-text-muted);
    margin-top: calc(-1 * var(--space-2));
    margin-bottom: var(--space-6);
    line-height: 1.3;
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 600;
    margin-bottom: var(--space-3);
}

h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

p {
    font-size: 1rem;
    margin-bottom: var(--space-3);
    max-width: var(--max-text-width);
    line-height: var(--line-height-base);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Layout Utilities */
.container {
    width: var(--container-width);
    max-width: var(--max-content-width);
    margin-left: auto;
    margin-right: auto;
}

.section {
    padding: clamp(var(--space-8), 10vw, var(--space-12)) 0;
}

.section-stories {
    padding-bottom: clamp(var(--space-4), 5vw, var(--space-6));
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-8);
}

@media (max-width: 768px) {
    .grid-2 {
        grid-template-columns: 1fr;
    }
}

.grid-4 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .grid-4 {
        grid-template-columns: 1fr;
    }
}

.stack {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

/* UI Components */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.75rem;
    font-weight: 500;
    border-radius: 9999px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    font-size: 0.9375rem;
    letter-spacing: 0.025em;
}

.btn-primary {
    background-color: var(--color-text-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-accent);
}

.btn-secondary {
    background-color: var(--color-white);
    border: 1px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-white);
}

.card {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    box-shadow: 0 4px 6px -1px rgba(45, 62, 64, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 25px -5px rgba(45, 62, 64, 0.15);
    background-color: var(--color-accent-light);
    border-color: var(--color-accent);
}

/* Navigation */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(226, 242, 237, 0.9);
    backdrop-filter: blur(12px);
    padding: var(--space-4) 0;
    border-bottom: 1px solid var(--color-border);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-headings);
    font-weight: 700;
    color: var(--color-text-primary);
    z-index: 1001;
    /* Above mobile menu */
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.logo-text {
    font-size: 0.8125rem;
    font-weight: 500;
    opacity: 0.7;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

@media (max-width: 768px) {
    .logo {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
    }

    .logo-text {
        font-size: 0.625rem;
        margin-top: -2px;
    }
}

.nav-menu {
    display: flex;
    gap: var(--space-6);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-link {
    font-weight: 500;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    padding-bottom: 4px;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: 0;
    left: 0;
    background-color: var(--color-text-primary);
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.5rem;
}

@media (max-width: 768px) {
    .hamburger {
        display: block;
        color: var(--color-text-primary);
    }

    .nav-menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--color-bg-primary);
        padding: var(--space-4);
        border-bottom: 1px solid var(--color-border);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        padding: var(--space-2) 0;
        font-size: 1rem;
    }
}

/* Modal / Disclaimer */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.5s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    max-width: 480px;
    width: 90%;
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.modal h2 {
    margin-bottom: var(--space-2);
    font-size: 1.5rem;
}

.modal p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    margin-left: auto;
    margin-right: auto;
}

.modal-actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

/* Hero Section */
.hero {
    display: flex;
    flex-direction: column;
    padding: var(--space-12) 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-image {
    position: relative;
    border-radius: 40px;
    overflow: hidden;
}

.hero-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
    margin-top: var(--space-4);
}


.video-container {
    width: 100%;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .hero {
        padding-top: var(--space-8);
        text-align: center;
    }

    .hero-actions {
        flex-direction: column;
        gap: var(--space-2);
        align-items: center;
        width: 100%;
    }

    .hero-actions .btn {
        width: auto;
        min-width: 220px;
        padding: 1rem 2rem;
    }

    .hero-content p {
        text-align: left;
    }

    .hero-image {
        margin: var(--space-6) auto 0;
        max-width: 100%;
    }
}

/* Povídky Section */
.archive-card {
    text-align: left;
    line-height: var(--line-height-loose);
    border: 1px solid var(--color-border);
}

.archive-card:hover {
    transform: none;
    box-shadow: 0 4px 6px -1px rgba(45, 62, 64, 0.05);
    background-color: var(--color-white);
    border-color: var(--color-border);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--color-accent);
    color: var(--color-white);
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: var(--space-2);
}

/* Story Locking Mechanism */
.archive-card {
    position: relative;
    overflow: hidden;
}

.story-content-wrapper {
    position: relative;
    border-radius: calc(var(--border-radius) / 2);
    overflow: hidden;
    margin-top: var(--space-4);
}

.story-content {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.story-content.is-locked {
    filter: blur(30px);
    opacity: 0.2;
    pointer-events: none;
    user-select: none;
    max-height: 500px;
    overflow: hidden;
}

.story-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    background: rgba(30, 58, 52, 0.05);
    backdrop-filter: blur(4px);
    z-index: 10;
    text-align: center;
    transition: all 0.5s ease;
}

.story-overlay.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.story-overlay-content {
    max-width: 400px;
    background: var(--color-white);
    padding: var(--space-6);
    border-radius: var(--border-radius);
    box-shadow: 0 20px 50px rgba(30, 58, 52, 0.15);
    transform: translateY(0);
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.story-overlay.is-hidden .story-overlay-content {
    transform: translateY(20px);
}

.story-overlay h4 {
    color: var(--color-text-primary);
    margin-bottom: var(--space-2);
    font-size: 1.25rem;
}

.story-overlay p {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: var(--space-4);
    line-height: 1.5;
}

/* Story Illustrations */
.story-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-6);
    align-items: center;
    margin-bottom: var(--space-4);
}

.story-row.reverse {
    grid-template-columns: 1fr 1.2fr;
}

.story-row.reverse .story-image-wrap {
    order: -1;
}

.story-image-wrap {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
}

.story-image-wrap img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.story-image-wrap:hover img {
    transform: scale(1.05);
}

@media (max-width: 992px) {

    .story-row,
    .story-row.reverse {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        display: flex;
        flex-direction: column;
    }

    /* Force image to top on mobile for consistent alternation */
    .story-image-wrap {
        order: -1;
    }
}

/* Footer & Contact Section */
.footer {
    background-color: #1e3a34;
    /* Dark teal from image */
    color: var(--color-white);
    padding: var(--space-8) 0;
    margin-top: var(--space-12);
}

.footer-content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.footer h2 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    margin-bottom: var(--space-4);
}

.footer-profile {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.footer-portrait {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-white);
}

.footer-info {
    font-weight: 500;
}

.footer-socials {
    display: flex;
    gap: var(--space-3);
    margin-top: var(--space-2);
}

.footer-socials a {
    font-size: 1.5rem;
    transition: opacity 0.3s ease;
}

.footer-socials a:hover {
    opacity: 0.7;
}

.contact-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--space-6) 0;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
}

.contact-icon {
    width: 36px;
    height: 36px;
    background: #4bb3a4;
    /* Teal circle background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
}

.reserve-box p {
    font-size: 0.9375rem;
    margin-bottom: var(--space-3);
}

.btn-reserve {
    background-color: #4bb3a4;
    color: var(--color-white);
    padding: 1rem 2rem;
    text-transform: uppercase;
    font-weight: 700;
}

.btn-reserve:hover {
    background-color: var(--color-accent);
}

/* Footer main grid – desktop: 3 columns (photo | text | socials) */
.footer-grid {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: var(--space-8);
    align-items: center;
}

/* Footer portrait inside grid */
.footer-grid>div:first-child {
    display: flex;
    justify-content: center;
}

.footer-legal {
    margin-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: var(--space-3);
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--space-2);
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-6) 0;
        text-align: center;
    }

    /* Stack the 3-column grid into a single column */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
        justify-items: center;
    }

    /* Smaller, circular portrait on mobile */
    .footer-grid>div:first-child img {
        width: 120px !important;
        height: 120px !important;
        border-radius: 50% !important;
    }

    /* Center text column */
    .footer-grid>div:nth-child(2) {
        text-align: center;
    }

    /* Center socials column and its icon row */
    .footer-grid>div:last-child {
        text-align: center !important;
    }

    .footer-grid>div:last-child>div {
        justify-content: center !important;
    }

    /* Make paragraphs not overflow */
    .footer p {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .grid-2 {
        gap: var(--space-6);
    }

    .btn-wrapper {
        text-align: center;
    }

    .context-text {
        text-align: center !important;
    }

    .context-text p {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-profile {
        flex-direction: column;
    }

    .contact-item {
        justify-content: center;
    }

    .footer-socials {
        justify-content: center;
    }

    /* Legal bar – stack and center */
    .footer-legal {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: var(--space-1);
    }

    .footer-legal div,
    .footer-legal div[style*="text-align: right"] {
        width: 100%;
        text-align: center !important;
    }
}

/* Specific Tablet refinements */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }

    .grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile Story refinement */
@media (max-width: 480px) {
    .story-overlay-content {
        padding: var(--space-4);
    }

    .archive-card {
        padding: var(--space-4);
    }

    .badge {
        font-size: 0.625rem;
    }

    .logo-text {
        font-size: 0.75rem;
    }
}

/* Accordion Customization */
.accordion-item {
    border-bottom: 1px solid var(--color-border);
}

.accordion-header {
    padding: var(--space-3) 0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-icon {
    transition: transform 0.3s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* 404 Specific */
.error-page {
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Archive Page Specific */
.archive-container {
    margin-top: var(--space-6);
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--space-2);
    box-shadow: 0 20px 50px rgba(30, 58, 52, 0.15);
    overflow: hidden;
}

.archive-iframe {
    width: 100%;
    height: 75vh;
    border: none;
    border-radius: calc(var(--border-radius) / 2);
    display: block;
}

.mobile-warning {
    display: none;
    background: var(--color-accent-light);
    color: var(--color-text-primary);
    padding: var(--space-2) var(--space-4);
    border-radius: 999px;
    font-size: 0.8125rem;
    margin-bottom: var(--space-4);
    border: 1px solid var(--color-accent);
    align-items: center;
    gap: var(--space-2);
}

@media (max-width: 768px) {
    .mobile-warning {
        display: inline-flex;
    }
}

.error-icon {
    font-size: 4rem;
    margin-bottom: var(--space-4);
    color: var(--color-text-muted);
}