/* ==========================================================================
   Theme: Digitální plánování – Creative / Biomorphic / Monochrome
   ========================================================================== */

/* ---------- CSS Variables ---------- */
:root {
    /* Core Palette (Monochrome) */
    --color-bg: #FFFFFF;
    --color-bg-alt: #F5F5F5;
    --color-surface: #E8E8E8;
    --color-text: #333333;
    --color-heading: #222222;
    --color-muted: #777777;
    --color-accent: #555555;
    --color-border: #DDDDDD;

    /* Buttons & Links */
    --color-btn-bg: #222222;
    --color-btn-text: #FFFFFF;
    --color-btn-hover-bg: #444444;
    --color-link: #222222;
    --color-link-hover: #000000;

    /* Shadows & Radius */
    --shadow-lg: 0 20px 35px rgba(0, 0, 0, 0.15);
    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
    --radius: 8px;

    /* Animation */
    --dur-fast: .3s;
    --dur-base: .6s;
}

/* ---------- Global Resets ---------- */
html, body {
    scroll-behavior: smooth;
    background: var(--color-bg);
    color: var(--color-text);
    font-family: 'Nunito', sans-serif;
}

section {
    padding: 4.5rem 1.5rem;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Oswald', sans-serif;
    color: var(--color-heading);
    text-align: center;
    letter-spacing: .5px;
    line-height: 1.2;
}

p, li {
    line-height: 1.7;
    font-size: 1.05rem;
}

/* ---------- Navbar ---------- */
.navbar {
    backdrop-filter: blur(8px);
    background: rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--dur-fast) ease-in;
}

.navbar.is-transparent {
    background: transparent;
    border: none;
}

.navbar-burger span {
    background: var(--color-text);
}

/* ---------- Buttons ---------- */
.btn,
button,
input[type="submit"] {
    background: var(--color-btn-bg);
    color: var(--color-btn-text);
    border: none;
    border-radius: var(--radius);
    padding: .75rem 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    transition: all var(--dur-fast) ease;
    cursor: pointer;
}

.btn:hover,
button:hover,
input[type="submit"]:hover {
    background: var(--color-btn-hover-bg);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* ---------- Links ---------- */
a {
    color: var(--color-link);
    transition: color var(--dur-fast) ease;
}

a:hover {
    color: var(--color-link-hover);
}

.read-more {
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #FFFFFF;
}

.hero .title,
.hero .subtitle {
    color: #FFFFFF;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .55));
    z-index: 0;
}

.hero * {
    position: relative;
    z-index: 1;
}

/* ---------- Cards ---------- */
.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--color-bg);
    margin-bottom: 2rem;
    transition: transform var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    margin: 0 auto;
}

/* ---------- Timeline ---------- */
.timeline:before {
    background: var(--color-accent);
}

.timeline .timeline-marker.is-dark {
    background: var(--color-accent);
    border: none;
}

/* ---------- Gallery Grid ---------- */
#gallery .columns .column {
    padding: .5rem;
}

#gallery img {
    border-radius: var(--radius);
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--dur-base) cubic-bezier(.36, -0.02, .37, 1.98);
}

#gallery img:hover {
    transform: scale(1.06);
}

/* ---------- Team ---------- */
#team .card-image {
    height: 260px;
}

/* ---------- FAQ ---------- */
details {
    background: var(--color-bg-alt);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: .75rem;
    box-shadow: var(--shadow-sm);
}

summary {
    cursor: pointer;
    font-weight: 700;
}

/* ---------- Contact ---------- */
#contact form .field:not(:last-child) {
    margin-bottom: 1.25rem;
}

#contact input, #contact textarea {
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
}

/* ---------- Footer ---------- */
.footer {
    padding: 3rem 1.5rem;
}

.footer a {
    color: #FFFFFF;
    font-weight: 600;
}

.footer a:hover {
    text-decoration: underline;
}

.footer p {
    color: #E0E0E0;
}

/* ---------- Parallax & Overlay Utils ---------- */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-repeat: no-repeat;
}

.overlay-dark {
    position: relative;
}

.overlay-dark::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, .5), rgba(0, 0, 0, .5));
    z-index: 0;
}

.overlay-dark > * {
    position: relative;
    z-index: 1;
}

/* ---------- Glassmorphism Utility ---------- */
.glass {
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ---------- Biomorphic Shapes ---------- */
.blob {
    position: absolute;
    border-radius: 50% 35% 40% 60%/60% 40% 60% 35%;
    opacity: 0.12;
    pointer-events: none;
    filter: blur(60px);
}

.blob.accent {
    background: var(--color-accent);
}

.blob.dark {
    background: var(--color-heading);
}

/* ---------- Non-Linear Motion Animations ---------- */
@keyframes floatY {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
    100% {
        transform: translateY(0);
    }
}

[data-aos] {
    will-change: transform, opacity;
}

.card, [data-float] {
    animation: floatY 6s ease-in-out infinite alternate;
}

.blob {
    animation: floatY 12s cubic-bezier(.36, -0.02, .37, 1.98) infinite alternate;
}

/* ---------- Success Page ---------- */
.page-success {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* ---------- Legal Pages ---------- */
.legal-page {
    padding-top: 100px;
}

/* ---------- Cookie Popup ---------- */
#cookiePopup {
    font-size: .9rem;
}

#cookiePopup button {
    margin-left: .75rem;
}

/* ---------- Utilities ---------- */
.text-center {
    text-align: center;
}

.mt-6 {
    margin-top: 6rem;
}

.mb-6 {
    margin-bottom: 6rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    section {
        padding: 3.5rem 1rem;
    }

    .card-image {
        height: 200px;
    }
}

.columns:not(.is-desktop) {
    display: flex;
    flex-direction: column;
}

.navbar-burger {
    display: none !important;
}

/* ==========================================================================
   End of stylesheet
   ========================================================================== */