/* ==========================================================================
   Bazény Ulrich – design tokens
   ========================================================================== */
@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-400-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-500-normal.woff2") format("woff2");
}

@font-face {
    font-family: "Roboto";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/roboto/roboto-latin-700-normal.woff2") format("woff2");
}

:root {
    --color-primary: #1a8fd4;
    --color-primary-dark: #1578b5;
    --color-primary-light: #3eb5e8;
    --color-text: #4d4d4d;
    --color-text-muted: #6b6b6b;
    --color-heading: #1a8fd4;
    --color-white: #ffffff;
    --color-bg: #ffffff;
    --color-border: #dde3e8;
    --color-placeholder: #e8ecef;
    --color-footer-bg: #252525;
    --color-footer-text: #c8c8c8;
    --color-footer-muted: #9a9a9a;
    --color-overlay: rgba(0, 0, 0, 0.45);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.06);
    --radius-card: 12px;
    --radius-input: 8px;
    --font-base: "Roboto", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
    --container-max: 1140px;
    --header-height: 72px;

    --bs-primary: #1a8fd4;
    --bs-primary-rgb: 26, 143, 212;
    --bs-body-color: #4d4d4d;
    --bs-body-font-family: var(--font-base);
    --bs-border-radius: 8px;

    /* Typography – desktop */
    --fs-body: 1rem;
    --lh-body: 1.65;
    --fs-h1: 2.75rem;
    --fs-h2: 2rem;
    --fs-h3: 1.375rem;
    --fs-h4: 1.125rem;
}

@media (max-width: 991.98px) {
    :root {
        --fs-h1: 2.125rem;
        --fs-h2: 1.625rem;
        --fs-h3: 1.25rem;
        --fs-h4: 1.0625rem;
    }
}

@media (max-width: 575.98px) {
    :root {
        --fs-body: 0.9375rem;
        --fs-h1: 1.75rem;
        --fs-h2: 1.375rem;
        --fs-h3: 1.125rem;
        --fs-h4: 1rem;
        --header-height: 64px;
    }
}

/* ==========================================================================
   Base & typography
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    margin: 0;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    font-weight: 400;
    line-height: var(--lh-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--color-primary-dark);
}

h1,
.h1 {
    font-size: var(--fs-h1);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-heading);
    margin: 0 0 0.75rem;
}

h2,
.h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-heading);
    margin: 0 0 0.75rem;
}

h3,
.h3 {
    font-size: var(--fs-h3);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-heading);
    margin: 0 0 0.5rem;
}

h4,
.h4 {
    font-size: var(--fs-h4);
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
    margin: 0 0 0.5rem;
}

p {
    margin: 0 0 1rem;
}

.entry-content ul,
.entry-content ol {
    margin-bottom: 1rem;
    padding-left: 1.25rem;
}

.entry-content li {
    margin-bottom: 0.35rem;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: relative;
    z-index: 100;
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
}

.site-header__nav {
    min-height: var(--header-height);
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.site-brand__logo,
.site-brand .custom-logo {
    width: auto;
    max-height: 48px;
    height: auto;
}

.site-header__toggler {
    border-color: var(--color-border);
    padding: 0.35rem 0.55rem;
}

.site-header__toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 143, 212, 0.25);
}

.site-nav .nav-link {
    color: var(--color-text);
    font-weight: 400;
    font-size: 0.9375rem;
    padding: 0.5rem 1rem;
}

.site-nav .nav-link:hover,
.site-nav .nav-link:focus,
.site-nav .nav-link.active {
    color: var(--color-primary);
}

@media (max-width: 991.98px) {
    .site-nav {
        padding: 0.75rem 0 1rem;
    }

    .site-nav .nav-link {
        padding: 0.65rem 0;
        border-bottom: 1px solid var(--color-border);
    }

    .site-nav .nav-item:last-child .nav-link {
        border-bottom: 0;
    }
}

/* ==========================================================================
   Hero (homepage)
   ========================================================================== */
.hero {
    position: relative;
    z-index: 1;
    min-height: clamp(320px, 52vh, 520px);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: var(--color-white);
}

.hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image--placeholder {
    background: linear-gradient(135deg, #1a6fa0 0%, #0d4d73 100%);
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 3rem 1rem;
}

.hero__title {
    color: var(--color-white);
    font-size: clamp(1.75rem, 5vw, 2.75rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.hero__subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==========================================================================
   Wave dividers (full-width SVG)
   ========================================================================== */
.wave-divider {
    display: block;
    width: 100%;
    line-height: 0;
    font-size: 0;
    overflow: hidden;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: clamp(44px, 7vw, 80px);
    vertical-align: bottom;
}

.wave-divider--primary {
    position: relative;
    z-index: 2;
    background: transparent;
    margin-top: calc(-1 * clamp(44px, 7vw, 80px));
    pointer-events: none;
}

.wave-divider--footer {
    background: var(--color-white);
    margin-bottom: -1px;
}

/* ==========================================================================
   Opening hours banner
   ========================================================================== */
.hours-banner {
    position: relative;
    z-index: 2;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 1.25rem 0 1.75rem;
    margin-top: -1px;
}

.hours-banner__text {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem 0.75rem;
    margin: 0;
    font-size: clamp(0.9375rem, 2vw, 1.0625rem);
    font-weight: 500;
    text-align: center;
}

.hours-banner__icon {
    display: inline-flex;
    flex-shrink: 0;
}

/* ==========================================================================
   Services
   ========================================================================== */
.services-section {
    padding: 3.5rem 0 4rem;
}

.services-section__heading {
    text-align: center;
    margin-bottom: 2.5rem;
    color: var(--color-heading);
}

.service-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card--link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    color: inherit;
}

.service-card__media {
    position: relative;
}

.service-card__photo {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--color-placeholder);
}

.service-card__photo--empty {
    min-height: 140px;
}

.service-card__icon {
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border-radius: 50%;
    box-shadow: var(--shadow-soft);
    padding: 8px;
}

.service-card__icon img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.service-card__title {
    text-align: center;
    padding: 2.25rem 1rem 1.5rem;
    margin: 0;
    color: var(--color-heading);
    font-size: var(--fs-h3);
}

/* ==========================================================================
   Brands
   ========================================================================== */
.brands-section {
    padding: 2rem 0 3rem;
    border-top: 1px solid var(--color-border);
}

.brands-section__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.25rem 2rem;
}

.brands-section__label {
    margin: 0;
    font-weight: 500;
    color: var(--color-text-muted);
    flex-shrink: 0;
}

.brands-section__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem 2.5rem;
    flex: 1;
}

.brands-section__logo {
    max-height: 48px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: grayscale(20%);
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.brands-section__logo:hover {
    opacity: 1;
}

.brands-section__name {
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

@media (max-width: 575.98px) {
    .brands-section__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ==========================================================================
   Page templates
   ========================================================================== */
.page-hero {
    position: relative;
    min-height: 200px;
    display: flex;
    align-items: flex-end;
    background: linear-gradient(135deg, #e8f4fb 0%, #d0e8f5 100%);
    padding: 2.5rem 0;
}

.page-hero--has-image {
    min-height: clamp(220px, 35vh, 360px);
    align-items: center;
}

.page-hero__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-hero__overlay {
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
}

.page-hero__content {
    position: relative;
    z-index: 1;
}

.page-hero__title {
    color: var(--color-white);
    margin: 0;
}

.page-hero:not(.page-hero--has-image) .page-hero__title {
    color: var(--color-heading);
}

.page-content-section {
    padding: 3rem 0 4rem;
}

.page-content__title {
    margin-bottom: 1.5rem;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    position: relative;
    background: var(--color-footer-bg);
    color: var(--color-footer-text);
    padding: 2.5rem 0 0;
    margin-top: 0;
}

.site-footer__inner {
    padding-bottom: 2rem;
}

.site-footer__row {
    align-items: center;
}

.site-footer__col--contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-footer__brand img,
.site-footer__logo-img {
    max-height: 48px;
    width: auto;
    margin-bottom: 1rem;
}

.site-footer__about {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--color-footer-muted);
    margin: 0;
    max-width: 22rem;
}

.site-footer__title {
    color: var(--color-primary-light);
    font-size: var(--fs-h3);
    margin-bottom: 1rem;
}

.site-footer__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-footer-text);
}

.site-footer__contact {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.site-footer__contact li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
}

.site-footer__contact li:last-child {
    margin-bottom: 0;
}

.site-footer__contact a {
    color: var(--color-footer-text);
}

.site-footer__contact a:hover {
    color: var(--color-white);
}

.site-footer__icon {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    color: var(--color-primary-light);
}

.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.25rem 0 1.5rem;
    text-align: center;
}

.site-footer__copy {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--color-footer-muted);
}

/* ==========================================================================
   Forms (Bootstrap + Contact Form 7)
   ========================================================================== */
.bazeny-form .form-label,
.wpcf7-form label,
.entry-content .wp-block-contact-form label {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.9375rem;
    margin-bottom: 0.35rem;
}

.bazeny-form .form-control,
.bazeny-form .form-select,
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form textarea,
.wpcf7-form select,
.entry-content input[type="text"],
.entry-content input[type="email"],
.entry-content input[type="tel"],
.entry-content textarea,
.entry-content select {
    border: 1px solid var(--color-border);
    border-radius: var(--radius-input);
    padding: 0.65rem 0.9rem;
    font-family: var(--font-base);
    font-size: var(--fs-body);
    color: var(--color-text);
    background: var(--color-white);
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.bazeny-form .form-control:focus,
.wpcf7-form input:focus,
.wpcf7-form textarea:focus,
.wpcf7-form select:focus,
.entry-content input:focus,
.entry-content textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.2rem rgba(26, 143, 212, 0.2);
    outline: 0;
}

.bazeny-form .btn-primary,
.wpcf7-form input[type="submit"],
.wpcf7-submit,
.entry-content .wp-block-button__link,
.entry-content button[type="submit"] {
    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-input);
    color: var(--color-white);
    font-weight: 500;
    padding: 0.7rem 1.75rem;
    font-family: var(--font-base);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.bazeny-form .btn-primary:hover,
.wpcf7-form input[type="submit"]:hover,
.wpcf7-submit:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: var(--color-white);
}

.wpcf7-not-valid-tip {
    color: #c0392b;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.wpcf7-response-output {
    border-radius: var(--radius-input);
    margin-top: 1rem;
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.custom-logo-link {
    display: inline-flex;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}
