/* ============================================================
   disesngts – Global Theme
   Author: disesngts Team | 2024
   ============================================================ */

/* ------------------ CSS Variables -------------------------- */
:root {
    /* Split-Complementary Palette */
    --clr-primary: #ffb400;           /* Orange – hlavní akcent */
    --clr-primary-dark: #d99100;
    --clr-secondary: #00a6ff;         /* Modrozelená – doplněk 1 */
    --clr-secondary-dark: #0082c7;
    --clr-tertiary: #a600ff;          /* Purpurová – doplněk 2 */
    --clr-tertiary-dark: #7a00bf;

    /* Neutral */
    --clr-dark: #222222;
    --clr-mid:  #555555;
    --clr-light: #f7f7f7;
    --clr-white: #ffffff;

    /* Gradients */
    --grad-primary: linear-gradient(135deg, var(--clr-primary) 0%, var(--clr-secondary) 100%);
    --grad-dark: linear-gradient(135deg, #1d1d1d 0%, #353535 100%);

    /* Typography Scale (Adaptive) */
    --fs-h1: clamp(2rem, 5vw + 1rem, 3.5rem);
    --fs-h2: clamp(1.75rem, 4vw + 0.5rem, 2.8rem);
    --fs-h3: clamp(1.4rem, 2.5vw + 0.5rem, 2rem);
    --fs-body: 1rem;
    --fs-small: 0.875rem;

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;

    /* Radius & Shadows */
    --radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.07);
    --shadow-md: 0 4px 10px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 20px rgba(0,0,0,0.18);

    /* Motion */
    --timing-fast: 150ms;
    --timing-medium: 300ms;
    --timing-slow: 600ms;
}

/* ------------------ Global Resets & Base ------------------- */
html {
    scroll-behavior: smooth;
}
body {
    font-family: 'Lato', sans-serif;
    font-size: var(--fs-body);
    line-height: 1.6;
    color: var(--clr-dark);
    background-color: var(--clr-white);
    overflow-x: hidden;
}

/* Utility */
.container {
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--space-sm);
}
.flex { display: flex; }
.between { justify-content: space-between; }
.align-center { align-items: center; }
.gap-2 { gap: var(--space-sm); }
.gap-3 { gap: var(--space-md); }
.wrap { flex-wrap: wrap; }
.text-center { text-align: center; }

/* ------------------ Typography ----------------------------- */
h1, h2, h3, h4 {
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--clr-dark);
    margin-bottom: var(--space-sm);
    text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
p { margin-bottom: var(--space-sm); }
.section-title {
    text-align: center;
    margin-bottom: var(--space-lg);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

/* ------------------ Buttons & Links ------------------------ */
a { color: var(--clr-secondary); text-decoration: none; transition: color var(--timing-medium); }
a:hover, a:focus { color: var(--clr-tertiary); }

.btn,
button,
input[type='submit'] {
    display: inline-block;
    padding: 0.8rem 2.2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius);
    background: var(--grad-primary);
    color: var(--clr-dark);
    cursor: pointer;
    transition: transform var(--timing-fast) ease, box-shadow var(--timing-fast);
    box-shadow: var(--shadow-sm);
}
.btn:hover,
button:hover,
input[type='submit']:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.btn:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

/* Link “Číst více” */
.read-more {
    font-weight: 700;
    position: relative;
}
.read-more::after {
    content: '➜';
    margin-left: 0.3em;
    transition: transform var(--timing-fast);
}
.read-more:hover::after {
    transform: translateX(4px);
}

/* ------------------ Header & Navigation -------------------- */
.site-header {
    position: sticky;
    top: 0;
    width: 100%;
    background: var(--clr-white);
    box-shadow: var(--shadow-sm);
    z-index: 90;
}
.logo { font-weight: 900; }
.main-nav ul,
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }

.main-nav li { margin-inline: var(--space-xs); }
.main-nav a {
    font-weight: 600;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius);
}
.main-nav a:hover,
.mobile-nav a:hover { background: var(--clr-light); }

.burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
}
.burger span {
    width: 24px;
    height: 3px;
    background: var(--clr-dark);
}

.mobile-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--clr-white);
    width: 200px;
    box-shadow: var(--shadow-md);
}
.mobile-nav li { border-bottom: 1px solid var(--clr-light); }
.mobile-nav a { display: block; padding: var(--space-sm); }

/* ------------------ Hero Section --------------------------- */
.hero {
    position: relative;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    color: var(--clr-white);
    text-align: center;
    padding-block: var(--space-xl);
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);   /* Extra dark overlay */
}
.hero-inner {
    position: relative;
    max-width: 760px;
}
.hero-title { color: var(--clr-white); }
.hero-subtitle { color: var(--clr-white); margin-bottom: var(--space-lg); }

/* ------------------ Sections ------------------------------- */
.section { padding-block: var(--space-xl); }
.alt-bg { background: var(--clr-light); }
.parallax { background-attachment: fixed; }

/* ------------------ Grid Helpers --------------------------- */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr));
}
.is-two-thirds { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }

/* ------------------ Card Component ------------------------- */
.card {
    background: var(--clr-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: box-shadow var(--timing-medium);
}
.card:hover { box-shadow: var(--shadow-md); }
.card-image,
.image-container {
    width: 100%;
    height: 220px;
    overflow: hidden;
    border-top-left-radius: var(--radius);
    border-top-right-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}
.card-image img,
.image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
.card-content { padding: var(--space-md); }
.highlighted {
    border: 2px solid var(--clr-primary);
}

/* ------------------ Pricing ------------------------------- */
.price {
    font-size: 1.6rem;
    font-weight: 900;
    margin: var(--space-sm) 0;
}

/* ------------------ Progress Bar -------------------------- */
.progress-wrapper { margin-top: var(--space-lg); }
.progress-item { margin-bottom: var(--space-sm); }
.progress-bar {
    width: 0;
    height: 8px;
    border-radius: 4px;
    background: var(--grad-primary);
    animation: growBar var(--timing-slow) forwards;
}
@keyframes growBar {
    to { width: var(--target, 100%); }
}

/* ------------------ Accordion ----------------------------- */
.accordion-item + .accordion-item { margin-top: var(--space-sm); }
.accordion-header {
    width: 100%;
    text-align: left;
    padding: var(--space-sm);
    font-weight: 700;
    background: var(--clr-light);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    position: relative;
}
.accordion-header::after {
    content: '+';
    position: absolute;
    right: var(--space-sm);
    top: 50%;
    transform: translateY(-50%);
    transition: transform var(--timing-medium);
}
.accordion-header[aria-expanded="true"]::after {
    content: '–';
}
.accordion-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--timing-medium) ease;
    background: var(--clr-white);
    padding: 0 var(--space-sm);
}
.accordion-body p { margin-top: var(--space-sm); }

/* ------------------ Modal ------------------------------- */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 100;
}
.modal-content {
    background: var(--clr-white);
    padding: var(--space-lg);
    border-radius: var(--radius);
    max-width: 500px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

/* ------------------ Calendar ----------------------------- */
.calendar {
    margin-top: var(--space-md);
    display: grid;
    row-gap: var(--space-xs);
}
.calendar-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: var(--clr-white);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    padding: var(--space-sm);
}

/* ------------------ Contact Form ------------------------- */
.contact-form {
    max-width: 640px;
    margin-inline: auto;
}
.form-group { margin-bottom: var(--space-md); }
label {
    display: block;
    font-weight: 700;
    margin-bottom: var(--space-xs);
}
input[type="text"],
input[type="email"],
textarea {
    width: 100%;
    padding: var(--space-sm);
    border-radius: var(--radius);
    border: 1px solid var(--clr-light);
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(6px);
}
input:focus,
textarea:focus { outline: 2px solid var(--clr-secondary); }

/* ------------------ Footer -------------------------------- */
.site-footer {
    background: var(--grad-dark);
    color: var(--clr-light);
    padding-block: var(--space-lg);
}
.site-footer h3 { color: var(--clr-white); margin-bottom: var(--space-sm); }
.site-footer a { color: var(--clr-secondary); }
.site-footer a:hover { color: var(--clr-primary); }

/* Social Text Links */
.site-footer .footer-column ul { list-style: none; padding: 0; }
.site-footer .footer-column li + li { margin-top: var(--space-xs); }

/* ------------------ Utilities & Media --------------------- */
@media (max-width: 768px) {
    .main-nav { display: none; }
    .burger { display: flex; }
    .mobile-nav.show { display: block; }
    .calendar-row { grid-template-columns: 1fr; }
}

/* ------------------ Static Pages -------------------------- */
.success-page,
.privacy-page,
.terms-page { min-height: 100vh; padding-top: 100px; display: flex; align-items: center; justify-content: center; }
.success-page h1 { color: var(--clr-primary); }

/* ------------------ Parallax Performance ----------------- */
/* Better on mobile: disable attachment fixed */
@media (max-width: 1024px) {
    .parallax { background-attachment: scroll; }
}