/* ===================== FONTY (lokalne, bez Google) ===================== */

/* Libre Baskerville - text */
@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/baskerville-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/baskerville-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Libre Baskerville';
    src: url('fonts/baskerville-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Playfair Display - nadpisy */
@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('fonts/playfair-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-dark: #2B2B2B;
    --primary-light: #F3F1EC;
    --accent-orange: #DE6526;
    --accent-navy: #2E4057;
    --header-font: 'Playfair Display', serif;
    --body-font: 'Libre Baskerville', serif;
    --section-space: 3rem;        /* mezera mezi sekcemi - PC */
    --header-space: 3rem;         /* mezera pod hlavickou sekce (nadpis/podnadpis/text) k obsahu */
}

body {
    font-family: var(--body-font);
    color: var(--primary-dark);
    background-color: var(--primary-light);
    line-height: 1.7;
}

/* Navigation */
header {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background-color: transparent;
    border-bottom: 1px solid transparent;
    transition: all 0.4s ease;
    padding: 1.25rem 0;
}

header.scrolled {
    background-color: rgba(243, 241, 236, 0.98);
    border-bottom: 1px solid rgba(43, 43, 43, 0.1);
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 4rem;
}

/* Left Menu - All Items */
.nav-left {
    display: flex;
    justify-content: flex-start;
}

.nav-left ul {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-left a {
    text-decoration: none;
    color: white;
    font-size: 0.9rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    position: relative;
}

header.scrolled .nav-left a {
    color: var(--primary-dark);
}

.nav-left a:hover {
    color: var(--accent-orange);
}

.nav-left a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.nav-left a:hover::after {
    width: 100%;
}

/* Center Logo */
.logo {
    font-family: var(--header-font);
    font-size: 2.2rem;
    font-weight: 700;
    color: white;
    text-decoration: none;
    letter-spacing: 3px;
    text-align: center;
    transition: all 0.4s ease;
    white-space: nowrap;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-text {
    display: none;
}

.logo-devon {
    color: white;
}

.logo-stables {
    color: var(--accent-orange);
}

.logo-img {
    display: none;
    height: 55px;
    width: auto;
    transition: all 0.4s ease;
}

header.scrolled .logo-text {
    display: none;
}

header.scrolled .logo-img {
    display: block;
}

header.scrolled .logo {
    color: var(--primary-dark);
}

/* Right - Contact Button */
.nav-right {
    display: flex;
    justify-content: flex-end;
}

.contact-btn {
    padding: 0.7rem 2rem;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
    white-space: nowrap;
    display: inline-block;
}

header.scrolled .contact-btn {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.contact-btn:hover {
    background-color: transparent;
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(222, 101, 38, 0.3);
}

.contact-btn::after {
    display: none;
}

header.scrolled .contact-btn:hover {
    background-color: transparent;
    color: var(--accent-orange);
}

/* Kotvy v menu - sekce se zastavi pod fixni hlavickou, ne pod ni */
section[id] {
    scroll-margin-top: 88px;   /* vyska hlavicky po sjeti dolu - PC */
}

/* Hero Section */
.hero {
    margin-top: 0;
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(46, 64, 87, 0.4), rgba(43, 43, 43, 0.5)),
                url('pictures/Devon_hero.webp');
    background-size: cover;
    background-position: center 35%;
    animation: zoomIn 20s ease-in-out infinite alternate;
    z-index: -1;

}

@keyframes zoomIn {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-content {
    max-width: 900px;
    padding: 2rem;
    animation: fadeInUp 1.2s ease;
    position: relative;
    z-index: 1;
    margin-top: 15vh;
}

.hero-subtitle {
    font-family: var(--body-font);
    font-size: 0.9rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    color: var(--primary-light);
    opacity: 0.9;
}

.hero h1 {
    font-family: var(--header-font);
    font-size: 5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    letter-spacing: 3px;
}

/* Nadpis v hero - DEVON oranzove, STABLES zustava bile */
.hero h1 .hero-devon {
    color: var(--accent-orange);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
    line-height: 1.8;
}

/* Scroll Down Arrow */
.scroll-down {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    animation: bounce 2s infinite;
    transition: all 0.3s ease;
}

.scroll-down:hover {
    transform: translateX(-50%) translateY(-5px);
}

.scroll-down svg {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 3rem;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-family: var(--body-font);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--accent-orange);
    transition: all 0.3s ease;
    margin: 0.5rem;
}

.cta-button:hover {
    background-color: transparent;
    color: var(--accent-orange);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(222, 101, 38, 0.3);
}

.cta-button.secondary {
    background-color: transparent;
    border-color: white;
    color: white;
}

.cta-button.secondary:hover {
    background-color: white;
    color: var(--primary-dark);
}

/* About Section */
.about {
    padding: var(--section-space) 3rem;
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.about-image {
    width: 100%;
    height: 600px;
    border-radius: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f5f5f5;
}

.about-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.about:hover .about-img {
    transform: scale(1.05);
}

.about-content h2 {
    font-family: var(--header-font);
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-navy);
    line-height: 1.3;
}

.about-content h2 span {
    color: var(--accent-orange);
}

.about-content p {
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    color: var(--primary-dark);
    opacity: 0.85;
}

/* Stats Strip */
.stats-strip {
    background-color: var(--accent-navy);
    color: var(--primary-light);
    padding: 0 3rem var(--section-space);
}

.stats-container {
    padding-top: var(--section-space);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding: 0 1rem;
}

.stat-number {
    font-family: var(--header-font);
    font-size: 2.6rem;
    font-weight: 600;
    line-height: 1;
    color: var(--accent-orange);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.stat-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.75;
}

@media (max-width: 768px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        row-gap: 1.8rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.65rem;
        letter-spacing: 1.5px;
    }
}

/* Services Section */
.services {
    background-color: var(--accent-navy);
    padding: var(--section-space) 3rem;
    color: var(--primary-light);
}

.services-container {
    max-width: 1400px;
    margin: 0 auto;
}

.section-title {
    text-align: center;
    margin-bottom: var(--header-space);
}

.section-title h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.section-title p {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

/* Services - bento: velka karta + 2x2 */
.bento {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 1.5rem;
}

.b-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 2rem;
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(243, 241, 236, 0.08);
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

.b-card:hover {
    transform: translateY(-4px);
    border-color: rgba(222, 101, 38, 0.5);
    background-color: rgba(255, 255, 255, 0.06);
}

.b-card h3 {
    font-family: var(--header-font);
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 0.6rem;
    letter-spacing: 0.5px;
}

.b-card p {
    font-size: 0.88rem;
    line-height: 1.75;
    opacity: 0.75;
    flex-grow: 1;
}

/* Hlavni karta Horse Sales s fotkou */
.b-feature {
    grid-row: 1 / 3;
    justify-content: flex-end;
    min-height: 560px;
    padding: 2.5rem;
    background-color: #1f2b3a;
    background-image:
        linear-gradient(to top, rgba(20, 30, 45, 0.95) 20%, rgba(20, 30, 45, 0.2) 70%),
        url('pictures/services.webp');
    background-size: cover;
    background-position: center;
    border: none;
}

.b-feature:hover {
    background-color: #1f2b3a;
}

.b-feature h3 {
    font-size: 2.2rem;
    margin-bottom: 0.8rem;
}

.b-feature p {
    flex-grow: 0;
    max-width: 440px;
    font-size: 0.95rem;
    opacity: 0.85;
}

.b-kicker {
    font-size: 0.7rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.6rem;
}

/* Ikony */
.service-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    margin-bottom: 1.25rem;
    border-radius: 50%;
    border: 1px solid rgba(222, 101, 38, 0.4);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.service-icon svg {
    width: 28px;
    height: 28px;
    color: var(--accent-orange);
    stroke: var(--accent-orange);
    transition: stroke 0.3s ease;
}

.b-card:hover .service-icon {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.b-card:hover .service-icon svg {
    stroke: white;
    color: white;
}

.service-link {
    margin-top: 1.25rem;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
}

.service-link .arrow {
    display: inline-block;
    transition: transform 0.3s ease;
}

.b-card:hover .service-link .arrow {
    transform: translateX(6px);
}

/* Horses for Sale Section */
.horses-section {
    background-color: var(--primary-light);
    padding: var(--section-space) 3rem;
}

.horses-container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Section Header */
.section-header {
    margin-bottom: var(--header-space);
    text-align: center;
}

.header-content h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    color: var(--accent-navy);
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.header-content p {
    font-size: 1.15rem;
    color: var(--primary-dark);
    opacity: 0.7;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.header-divider {
    width: 80px;
    height: 3px;
    background: linear-gradient(to right, var(--accent-orange), transparent);
    margin: 0 auto;
}

/* Horse Grid */
.horses-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Horse Card */
.horse-card {
    background-color: white;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.320, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.horse-card:hover {
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-8px);
}

/* Horse Image Wrapper */
.horse-image-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: #f5f5f5;
}

.horse-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.23, 1, 0.320, 1);
}

.horse-card:hover .horse-image-wrapper img {
    transform: scale(1.08);
}

/* Horse Badge */
.horse-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background-color: var(--accent-orange);
    color: white;
    padding: 0.5rem 1.2rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    z-index: 2;
    box-shadow: 0 4px 15px rgba(222, 101, 38, 0.3);
}

.horse-badge.featured {
    background-color: #2E4057;
    box-shadow: 0 4px 15px rgba(46, 64, 87, 0.3);
}

/* Hover Overlay */
.horse-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(43, 43, 43, 0.4), rgba(43, 43, 43, 0.8));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 3;
}

.horse-card:hover .horse-overlay {
    opacity: 1;
}

.overlay-btn {
    padding: 0.9rem 2.5rem;
    background-color: var(--accent-orange);
    color: white;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--accent-orange);
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
    transform: translateY(20px) scale(0.95);
    cursor: pointer;
    opacity: 0;
    box-shadow: 0 4px 15px rgba(222, 101, 38, 0.2);
}

.horse-card:hover .overlay-btn {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.overlay-btn:hover {
    background-color: white;
    color: var(--accent-orange);
    border-color: white;
    box-shadow: 0 8px 25px rgba(222, 101, 38, 0.35);
    transform: translateY(-2px) scale(1);
}

/* Horse Info */
.horse-info {
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    background-color: white;
    flex-grow: 1;
    text-align: center;
}

.horse-info h3 {
    font-family: var(--header-font);
    font-size: 1.7rem;
    color: var(--primary-dark);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin: 0 0 0.5rem 0;
}

.horse-breed {
    font-size: 0.95rem;
    color: var(--accent-orange);
    margin-bottom: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.5px;
}

/* Horse Specs */
.horse-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    padding-bottom: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.spec {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.5rem 0;
    position: relative;
}

.spec:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -0.75rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40%;
    background-color: rgba(0, 0, 0, 0.1);
}

.spec-label {
    font-size: 0.7rem;
    color: var(--primary-dark);
    opacity: 0.6;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.spec-value {
    font-size: 1rem;
    color: var(--primary-dark);
    font-weight: 600;
}

/* View All Button */
.view-all-container {
    text-align: center;
}

.view-all-btn {
    display: inline-block;
    padding: 1.2rem 3.5rem;
    background-color: var(--accent-navy);
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 400;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 2px solid var(--accent-navy);
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background-color: transparent;
    color: var(--accent-navy);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(46, 64, 87, 0.3);
}

/* Zatim neaktivni (stranka horses jeste neni) - smazat az bude odkaz */
.view-all-btn[aria-disabled="true"] {
    cursor: default;
    pointer-events: none;
}

/* Horses for Sale Carousel */
.horses-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.horses-track-wrapper {
    overflow: hidden;
    flex: 1;
    padding: 10px 0 30px;
}

.horses-track {
    display: flex;
    gap: 2.5rem;
    transition: transform 0.5s ease;
}

.horses-track .horse-card {
    flex: 0 0 calc((100% - 5rem) / 3);
    height: auto;
}

.h-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin: 0.5rem 0 2rem;
}

.h-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(43, 43, 43, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.h-carousel-dot.active {
    background-color: var(--accent-orange);
    width: 24px;
    border-radius: 4px;
}

/* Poznamka pod karuselem koni (mezi teckami a View All) */
.horses-note {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.8;
    font-style: italic;
    color: var(--primary-dark);
    opacity: 0.75;
}

.horses-note a {
    color: var(--accent-orange);
    text-decoration: none;
    font-style: normal;
    white-space: nowrap;
}

.horses-note a:hover {
    text-decoration: underline;
}

@media (max-width: 968px) {
    .horses-track .horse-card {
        flex-basis: calc((100% - 2.5rem) / 2);
    }
}

@media (max-width: 768px) {
    /* Karta pres celou sirku, sipky lezi na fotce */
    .horses-carousel-wrapper {
        position: relative;
        gap: 0;
    }

    /* Minimalisticke sipky bez krouzku - stejne jako v galerii kone */
    .horses-carousel-wrapper .carousel-btn {
        position: absolute;
        z-index: 5;
        /* stred fotky: 10px horni odsazeni + polovina vysky fotky (sirka x 2/3 / 2) */
        top: calc(10px + (100vw - 3rem) / 3);
        transform: translateY(-50%);
        width: auto;
        height: auto;
        padding: 0.5rem;
        border: none;
        border-radius: 0;
        background: none;
        color: white;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    }

    .horses-carousel-wrapper .carousel-btn svg {
        width: 32px;
        height: 32px;
        stroke-width: 1.5;
    }

    .horses-carousel-wrapper .carousel-btn:hover {
        background: none;
        color: var(--accent-orange);
    }

    .h-carousel-prev { left: 0.25rem; }
    .h-carousel-next { right: 0.25rem; }

    /* Successful Sales: stejne jednoduche sipky na fotce, karta pres celou sirku */
    .carousel-wrapper {
        gap: 0;
    }

    .carousel-wrapper .carousel-btn {
        position: absolute;
        z-index: 5;
        top: 110px;               /* stred fotky (fotka ma na mobilu 220px) */
        transform: translateY(-50%);
        width: auto;
        height: auto;
        padding: 0.5rem;
        border: none;
        border-radius: 0;
        background: none;
        color: white;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    }

    .carousel-wrapper .carousel-btn svg {
        width: 32px;
        height: 32px;
        stroke-width: 1.5;
    }

    .carousel-wrapper .carousel-btn:hover {
        background: none;
        color: var(--accent-orange);
    }

    .carousel-prev { left: 0.25rem; }
    .carousel-next { right: 0.25rem; }

    .horses-track .horse-card {
        flex-basis: 100%;
    }

    /* Kompaktnejsi text pod fotkou */
    .horse-info {
        padding: 1.5rem 1.25rem;
    }

    .horse-info h3 {
        font-size: 1.4rem;
    }

    .horse-breed {
        margin-bottom: 0.5rem;
    }

    .horse-specs {
        margin-top: 0.75rem;
        padding-top: 1rem;
        gap: 1rem;
    }

    /* Poznamka pod karuselem - mensi pismo, mensi mezera */
    .horses-note {
        font-size: 0.85rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }

    /* Tlacitko View All na mobilu uzsi, aby se veslo */
    .view-all-btn {
        padding: 1rem 2rem;
        font-size: 0.85rem;
    }
}

/* YouTube Section - fotka pres celou sirku, text na stredu */
.yt-section {
    position: relative;
    min-height: min(460px, 55vh);   /* na nizsich monitorech (notebook) se pruh zmensi */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 5rem 3rem;
    background-color: var(--accent-navy);
    background-image: url('pictures/Devon_quote.webp');
    background-size: cover;
    background-position: center 20%;   /* 0% = horni okraj fotky, 50% = stred, 100% = spodek */
}

.yt-section::before {
    content: '';
    position: absolute;
    inset: 0;
    /* silne ztmaveni - fotka je videt jen lehce; pro vic fotky sniz 0.88 / 0.9 */
    background: linear-gradient(rgba(46, 64, 87, 0.88), rgba(43, 43, 43, 0.9));
}

.yt-content {
    position: relative;
    max-width: 720px;
}

.yt-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-orange);
}

.yt-icon svg {
    width: 28px;
    height: 28px;
}

.yt-section .b-kicker {
    display: block;
}

.yt-section h2 {
    font-family: var(--header-font);
    font-size: 3.4rem;
    line-height: 1.15;
    margin: 0.4rem 0 1.2rem;
}

.yt-section p {
    font-size: 1.05rem;
    line-height: 1.8;
    opacity: 0.85;
    max-width: 600px;          /* kratsi radky se ctou lip */
    margin: 0 auto 2.2rem;
}

.yt-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.yt-btn svg {
    width: 18px;
    height: 18px;
}

/* Tablet */
@media (max-width: 968px) {
    .yt-section {
        min-height: 400px;
    }

    .yt-section h2 {
        font-size: 2.8rem;
    }
}

/* Mobil - vyska podle obsahu, zadne zbytecne prazdne misto */
@media (max-width: 768px) {
    .yt-section {
        min-height: 0;
        padding: 4rem 1.5rem;
    }

    .yt-section h2 {
        font-size: 2.2rem;
    }

    .yt-section p {
        font-size: 0.95rem;
    }

    .yt-btn {
        padding: 0.9rem 1.5rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }
}

/* Male telefony */
@media (max-width: 400px) {
    .yt-section {
        padding: 3.5rem 1.25rem;
    }

    .yt-section h2 {
        font-size: 1.9rem;
    }

    .yt-section p {
        font-size: 0.9rem;
        margin-bottom: 1.8rem;
    }

    .yt-btn {
        padding: 0.85rem 1.2rem;
        letter-spacing: 1.5px;
    }
}

/* Footer */
/* Team Section */
.team-section {
    padding: var(--section-space) 3rem;
    background-color: var(--accent-navy);
}

.team-container {
    max-width: 1400px;
    margin: 0 auto;
}

.team-header {
    text-align: center;
    margin-bottom: var(--header-space);
}

.team-header h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.team-header p {
    font-size: 1.1rem;
    opacity: 0.8;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--primary-light);
}

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

.team-card {
    position: relative;
    height: 340px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.4s ease;
}

.team-card:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.team-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    transition: transform 0.6s ease;
}

.team-card:hover .team-photo {
    transform: scale(1.05);
}

.team-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(222, 101, 38, 0.3) 0%,
        rgba(222, 101, 38, 0.95) 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: flex-end;
}

.team-card:hover .team-overlay {
    opacity: 1;
}

.team-info {
    padding: 2rem;
    color: white;
    width: 100%;
}

.team-info h3 {
    font-family: var(--header-font);
    font-size: 1.4rem;
    margin-bottom: 0.3rem;
    letter-spacing: 1px;
}

.team-role {
    font-size: 0.85rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 0.8rem;
    color: white;
}

.team-divider {
    width: 40px;
    height: 1px;
    background-color: rgba(255,255,255,0.4);
    margin-bottom: 1rem;
}

.team-contacts {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.team-contacts a {
    color: white;
    text-decoration: none;
    font-size: 0.82rem;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.team-contacts a:hover {
    opacity: 1;
}

/* References / Successful Sales Section */
.references-section {
    padding: var(--section-space) 3rem;
    background-color: var(--primary-light);
    color: var(--primary-dark);
}

.references-container {
    max-width: 1400px;
    margin: 0 auto;
}

.references-header {
    text-align: center;
    margin-bottom: var(--header-space);
}

.references-header h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    color: var(--accent-navy);
    margin-bottom: 1rem;
}

.references-header > p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.references-intro {
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    opacity: 0.7 !important;
    max-width: 600px;
    margin: 1.5rem auto 0 !important;
    line-height: 1.8;
}

/* Carousel */
.carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.carousel-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.5s ease;
}

.ref-card {
    flex: 0 0 calc(25% - 1.2rem);
    overflow: hidden;
    position: relative;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.15);
}

.ref-photo {
    height: 260px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.ref-card:hover .ref-photo {
    transform: scale(1.03);
    transition: transform 0.6s ease;
}

/* Hover overlay - orange gradient bottom half */
.ref-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(222, 101, 38, 0.95) 0%,
        rgba(222, 101, 38, 0.75) 50%,
        transparent 100%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 20%;
    padding-top: 30%;
}

.ref-card:hover .ref-overlay {
    opacity: 1;
}

.sold-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: white;
    opacity: 0.95;
    margin-bottom: 0.4rem;
    font-family: var(--body-font);
}

.sold-dest {
    display: block;
    font-family: var(--header-font);
    font-size: 1.6rem;
    color: white;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.ref-info {
    padding: 1.1rem 1.4rem;
    text-align: center;
}

.ref-info h3 {
    font-family: var(--header-font);
    font-size: 1.1rem;
    color: var(--accent-navy);
    margin-bottom: 0.25rem;
}

.ref-detail {
    font-size: 0.78rem;
    opacity: 0.55;
    margin-bottom: 0;
    color: var(--primary-dark);
}

.ref-destination {
    display: none;
}

.ref-destination-line {
    display: none;
}

.carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    background: transparent;
    color: var(--accent-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(43, 43, 43, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--accent-orange);
    width: 24px;
    border-radius: 4px;
}

/* Testimonials Section */
.testimonials-section {
    padding: var(--section-space) 3rem;
    background-color: var(--accent-navy);
    color: var(--primary-light);
}

.testimonials-container {
    max-width: 1400px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--header-space);
}

.testimonials-header h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    color: var(--primary-light);
    margin-bottom: 1rem;
}

.testimonials-header > p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

.testimonials-intro {
    font-size: 1rem !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    opacity: 0.7 !important;
    max-width: 600px;
    margin: 1.5rem auto 0 !important;
    line-height: 1.8;
}

.testimonials-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1000px;      /* uzsi sekce - fotky recenzi nejsou v kvalite na celou sirku */
    margin: 0 auto;
}

.testimonials-track-wrapper {
    overflow: hidden;
    flex: 1;
}

.testimonials-track {
    display: flex;
    transition: transform 0.5s ease;
}

.t-card {
    flex: 0 0 100%;
    display: grid;
    grid-template-columns: 300px 1fr;
    min-height: 340px;
    overflow: hidden;
}

.t-photo {
    background-size: cover;
    background-position: center top;
}

.t-content {
    padding: 2.5rem 3rem;
    background-color: rgba(255,255,255,0.04);
    display: flex;
    flex-direction: column;
    justify-content: center;
}


.t-text {
    font-size: 1rem;
    line-height: 1.9;
    opacity: 0.85;
    font-style: italic;
    margin-bottom: 2rem;
}

.t-divider {
    width: 50px;
    height: 2px;
    background-color: var(--accent-orange);
    margin-bottom: 1.2rem;
}

.t-name {
    font-family: var(--header-font);
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.t-role {
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
    color: var(--accent-orange);
}

.t-carousel-btn {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid var(--accent-orange);
    background: transparent;
    color: var(--accent-orange);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.t-carousel-btn:hover {
    background: var(--accent-orange);
    color: white;
}

.t-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2.5rem;
}

.t-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(243, 241, 236, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.t-carousel-dot.active {
    background-color: var(--accent-orange);
    width: 24px;
    border-radius: 4px;
}

footer {
    background-color: var(--primary-dark);
    color: var(--primary-light);
    padding: 5rem 3rem 2rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 0.6fr 1.6fr 0.8fr;
    gap: 1.5rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.footer-column h4 {
    font-family: var(--body-font);
    font-size: 0.9rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    color: var(--accent-orange);
    font-weight: 400;
}

/* Footer Logo */
.footer-logo {
    margin-bottom: 2rem;
}

.footer-logo h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-light);
    letter-spacing: 2px;
}

.footer-logo span {
    color: var(--accent-orange);
}

/* Footer Center Logo */
/* Contact Info */
.contact-info p {
    font-size: 0.9rem;
    line-height: 1.8;
    margin-bottom: 1rem;
    opacity: 0.8;
}

.contact-info a {
    color: var(--primary-light);
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--accent-orange);
}

.contact-info strong {
    color: inherit;
    font-weight: 400;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.social-icons a {
    width: 40px;
    height: 40px;
    border: 1px solid rgba(243, 241, 236, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
    transform: translateY(-3px);
}

.social-icons svg {
    width: 18px;
    height: 18px;
}

/* Footer Map */
.footer-map {
    width: 75%;
    margin: 0 auto 1rem auto;
    border: 1px solid rgba(243, 241, 236, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.footer-map svg {
    width: 100%;
    height: auto;
    display: block;
}

.map-description {
    font-size: 0.85rem;
    font-style: italic;
    text-align: center;
    color: var(--accent-orange);
    opacity: 1;
}

.footer-column:nth-child(2) h4 {
    text-align: center;
}

.footer-column:nth-child(3) {
    text-align: left;
}

.footer-column:nth-child(3) .contact-info {
    text-align: left;
    white-space: nowrap;
}

.footer-column:nth-child(3) .social-icons {
    justify-content: flex-start;
}

/* Footer Links */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0.8;
}

.footer-links a:hover {
    color: var(--accent-orange);
    opacity: 1;
    padding-left: 5px;
}

/* Footer Bottom */
.footer-bottom {
    border-top: 1px solid rgba(243, 241, 236, 0.1);
    padding-top: 2rem;
    text-align: center;
}

.footer-logo-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    max-width: 80px;
    height: auto;
    opacity: 0.85;
    transition: all 0.3s ease;
    display: block;
    margin: 0 auto 1.5rem auto;
}

.footer-logo-img:hover {
    opacity: 1;
    transform: scale(1.05);
}

.footer-bottom p {
    font-size: 0.85rem;
    opacity: 0.6;
    letter-spacing: 1px;
}

/* Pravni odkazy pod copyrightem */
.footer-legal {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 0.3rem 1.2rem;
    margin-top: 0.6rem;
}

.footer-legal a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.footer-legal a:hover {
    color: var(--accent-orange);
    opacity: 1;
}

/* Spodni radek patice - PC: copyright na stredu, pod nim logo na stredu,
   Privacy/Cookie vlevo na stejnem radku jako logo (neodskakuji dolu) */
.footer-bottom {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas:
        ".     copy   ."
        "legal credit .";
    align-items: center;
}

.footer-bottom p {
    grid-area: copy;
}

.footer-bottom .footer-legal {
    grid-area: legal;
}

/* Autor webu - logo WEBKRU hned pod copyrightem na stredu, na hover se lehce zvetsi */
.footer-credit {
    grid-area: credit;
    display: block;
    width: fit-content;
    margin: 0.8rem auto 0;    /* mezera mezi copyrightem a logem */
}

.footer-credit img {
    height: 28px;             /* velikost loga - PC */
    width: auto;
    display: block;
    transition: transform 0.3s ease;
}

.footer-credit:hover img {
    transform: scale(1.1);
}

/* Mobil - vse pod sebou na stredu: copyright, logo, Privacy/Cookie */
@media (max-width: 768px) {
    .footer-bottom {
        display: block;
    }

    .footer-credit img {
        height: 24px;
    }
}

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

/* Hamburger Menu Button */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001;
    position: relative;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background-color: white;
    transition: all 0.3s ease;
    border-radius: 2px;
}

header.scrolled .hamburger span {
    background-color: var(--primary-dark);
}

.hamburger.active span,
header.scrolled .hamburger.active span {
    background-color: white;
}

.hamburger.active {
    z-index: 1002;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(5.5px, 5.5px);
    transform-origin: center;
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5.5px, -5.5px);
    transform-origin: center;
}

/* Mobile Menu Overlay */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: var(--primary-dark);
    z-index: 999;
    transition: left 0.4s ease;
    padding-top: 20px;   /* logo nahore v urovni krizku */
    overflow-y: auto;
}

.mobile-menu.active {
    left: 0;
    display: block;
}

.mobile-menu-logo {
    text-align: center;
    padding: 0 2rem 2rem;   /* mezera mezi logem a polozkami menu */
}

.mobile-menu-logo img {
    height: 50px;
    width: auto;
    opacity: 0.9;
}



.mobile-menu nav ul {
    list-style: none;
    padding: 1rem 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.mobile-menu nav li {
    text-align: center;
}

.mobile-menu nav a {
    color: var(--primary-light);
    text-decoration: none;
    font-size: 1rem;
    font-family: var(--body-font);
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 0.55rem 0;
    position: relative;
}

.mobile-menu nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--accent-orange);
    transition: width 0.3s ease;
}

.mobile-menu nav a:hover {
    color: var(--accent-orange);
}

.mobile-menu nav a:hover::after {
    width: 80%;
}

.mobile-menu nav a.mobile-contact {
    background-color: var(--accent-orange);
    color: white;
    text-align: center;
    padding: 0.75rem 2.2rem;
    margin-top: 1rem;
    border: 2px solid var(--accent-orange);
    font-size: 0.9rem;
}

.mobile-menu nav a.mobile-contact::after {
    display: none;
}

.mobile-menu nav a.mobile-contact:hover {
    background-color: transparent;
}

.mobile-menu-footer {
    padding: 1.25rem 2rem 1.5rem;
    border-top: 1px solid rgba(243, 241, 236, 0.1);
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
}

.mobile-contact-info h4,
.mobile-social h4 {
    font-family: var(--body-font);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.6rem;
    text-align: center;
}

.mobile-contact-info a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--primary-light);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-bottom: 0.4rem;
    transition: opacity 0.2s ease;
}

.mobile-contact-info a:hover {
    opacity: 1;
    color: var(--accent-orange);
}

.mobile-social-icons {
    display: flex;
    gap: 1.2rem;
}

.mobile-social-icons a {
    color: var(--primary-light);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.mobile-social-icons a:hover {
    color: var(--accent-orange);
    opacity: 1;
}
/* Responsive */
@media (max-width: 1200px) {
    .nav-container {
        gap: 2rem;
        padding: 0 1.5rem;
    }

    .nav-left ul {
        gap: 1.2rem;
    }

    .nav-left a {
        font-size: 0.8rem;
    }
}

@media (max-width: 968px) {
    /* Show hamburger menu */
    .hamburger {
        display: flex;
        position: absolute;
        right: 1.5rem;
        top: 50%;
        transform: translateY(-50%);
    }

    .mobile-menu {
        display: block;
    }

    /* Hide desktop menu */
    .nav-left,
    .nav-right {
        display: none;
    }

    .nav-container {
        grid-template-columns: 1fr;
        padding: 1rem 1.5rem;
        position: relative;
    }

    .logo {
        font-size: 1.5rem;
        margin: 0;
    }

    header.scrolled .logo {
        font-size: 1.3rem;
    }

    section[id] {
        scroll-margin-top: 120px;   /* vyska hlavicky - tablet */
    }

    /* Team - 2 columns on tablet */
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        max-width: 100%;
    }

    /* References - 2 cards on tablet */
    .ref-card {
        flex: 0 0 calc(50% - 0.75rem);
    }

    /* Services - velka karta pres celou sirku, pod ni 2x2 */
    .bento {
        grid-template-columns: 1fr 1fr;
    }

    .b-feature {
        grid-column: 1 / -1;
        grid-row: auto;
        min-height: 380px;
    }

    /* Testimonials */
    .t-card {
        grid-template-columns: 240px 1fr;
    }
}

@media (max-width: 768px) {

    :root {
        --section-space: 2.5rem;  /* mezera mezi sekcemi - mobil */
    }

    /* === GLOBAL === */
    section[id] {
        scroll-margin-top: 88px;   /* vyska hlavicky - mobil */
    }

    section {
        padding-left: 1.5rem !important;
        padding-right: 1.5rem !important;
    }

    /* === HEADER === */
    .nav-container {
        padding: 0 1.5rem;
    }

    /* Hero na mobilu - obsah se nikdy neprekryva se sipkou dolu */
    .hero {
        height: auto;
        min-height: 100vh;
        min-height: 100svh;
        padding-top: 90px;       /* misto pro hlavicku */
        padding-bottom: 5rem;    /* misto pro sipku dolu */
    }

    .hero-content {
        margin-top: 0;
    }

    .scroll-down {
        bottom: 1.5rem;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 0.95rem;
        padding: 0 0.5rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* === ABOUT === */
    .about {
        grid-template-columns: 1fr;
        padding: var(--section-space) 1.5rem;
        gap: 2.5rem;
    }

    .about-content {
        text-align: center;   /* nadpis a tlacitko na stredu */
    }

    .about-content p {
        text-align: left;     /* odstavce doleva - delsi text se lip cte */
    }

    .about-content a.cta-button {
        display: inline-block;
        margin: 0 auto;
    }

    .about-content h2,
    .section-title h2 {
        font-size: 2.2rem;
    }

    /* === SERVICES === */
    .services {
        padding: var(--section-space) 1.5rem;
    }

    /* Services - vse pod sebou */
    .bento {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .b-feature {
        min-height: 340px;
        padding: 1.75rem;
    }

    .b-feature h3 {
        font-size: 1.8rem;
    }

    .b-card {
        padding: 1.5rem;
    }

    /* === HORSES === */
    .horses-section {
        padding: var(--section-space) 1.5rem;
    }

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

    .header-content h2 {
        font-size: 2.2rem;
    }



    /* Mobil: Learn More az uplne dole pod Born/Type/Height, fotka je cista.
       Prekryti se ukotvi ke cele karte misto k fotce. */
    .horse-card {
        position: relative;
    }

    .horse-image-wrapper {
        position: static;
    }

    .horse-overlay {
        opacity: 1;
        background: none;
        align-items: flex-end;
        padding-bottom: 1.5rem;
        pointer-events: none;
    }

    .horse-overlay .overlay-btn {
        pointer-events: auto;
    }

    .horse-info {
        padding-bottom: calc(1.5rem + 40px + 1.25rem);   /* misto pro tlacitko */
    }

    .overlay-btn {
        transform: translateY(0);
        opacity: 1;
        padding: 0.5rem 1.3rem;
        font-size: 0.72rem;
        letter-spacing: 1.5px;
    }

    /* === TEAM === */
    .team-section {
        padding: var(--section-space) 1.5rem;
    }

    .team-header h2,
    .references-header h2,
    .testimonials-header h2 {
        font-size: 2.2rem;
    }

    .team-grid {
        grid-template-columns: 1fr;
        max-width: 380px;
        margin: 0 auto;
    }

    .team-card {
        height: 360px;
    }

    /* === REFERENCES === */
    .references-section {
        padding: var(--section-space) 1.5rem;
    }

    .carousel-wrapper {
        gap: 0.5rem;
    }

    .ref-card {
        flex: 0 0 100%;
    }

    .ref-photo {
        height: 220px;
    }

    .carousel-btn {
        width: 38px;
        height: 38px;
    }

    /* === TESTIMONIALS === */
    .testimonials-section {
        padding: var(--section-space) 1.5rem;
    }

    .t-card {
        grid-template-columns: 1fr;
        align-content: start;   /* text hned pod fotkou, bez mezery u kratsich recenzi */
    }

    .t-photo {
        height: 200px;
    }

    .t-content {
        padding: 2rem 1.5rem;
    }


    .t-text {
        font-size: 0.9rem;
    }

    /* Recenze: karta pres celou sirku, jednoduche sipky bez krouzku lezi na fotce */
    .testimonials-carousel-wrapper {
        position: relative;
        gap: 0;
    }

    .t-carousel-btn {
        position: absolute;
        z-index: 5;
        top: 120px;               /* stred fotky (fotka ma na mobilu 240px) */
        transform: translateY(-50%);
        width: auto;
        height: auto;
        padding: 0.5rem;
        border: none;
        border-radius: 0;
        background: none;
        color: white;
        filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
    }

    .t-carousel-btn svg {
        width: 32px;
        height: 32px;
        stroke-width: 1.5;
    }

    .t-carousel-btn:hover {
        background: none;
        color: var(--accent-orange);
    }

    .t-carousel-prev { left: 0.25rem; }
    .t-carousel-next { right: 0.25rem; }

    /* === FOOTER === */
    footer {
        padding: 4rem 1.5rem 2rem;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 3rem;
        max-width: 100%;
    }

    .footer-column {
        text-align: center;
    }

    .footer-column:nth-child(3) {
        text-align: center;
    }

    .footer-column:nth-child(3) .contact-info {
        text-align: center;
        white-space: normal;
    }

    .footer-column:nth-child(3) .social-icons,
    .social-icons {
        justify-content: center;
    }

    .footer-map {
        width: 90%;
        margin: 0 auto 1rem;
    }

    .footer-bottom {
        text-align: center;
    }

    /* Privacy / Cookie odkazy na mobilu na stred */
    .footer-legal {
        justify-content: center;
    }

    .footer-links a:hover {
        padding-left: 0;
    }
}

/* ===================== SHIPPING PAGE ===================== */
.page-hero {
    height: 55vh;
    min-height: 380px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(rgba(46, 64, 87, 0.5), rgba(43, 43, 43, 0.6)),
                url('pictures/Devon_hero.webp');
    background-size: cover;
    background-position: center 50%;
    z-index: -1;
}

.page-hero-content {
    padding: 2rem;
    margin-top: 5rem;
    animation: fadeInUp 1.2s ease;
}

.page-hero h1 {
    font-family: var(--header-font);
    font-size: 5rem;
    font-weight: 700;
    letter-spacing: 3px;
    line-height: 1.2;
}

.shipping-intro {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 3rem 2rem;
    text-align: center;
}

/* Shipping bez hero - obsah zacina pod bilou hlavickou */
.solid-header .shipping-intro {
    padding-top: calc(88px + 3rem);
}

.shipping-intro .shipping-provider {
    margin-bottom: 2.5rem;
}

.shipping-intro-text {
    font-size: 1.15rem;
    line-height: 1.9;
    opacity: 0.85;
}

.shipping-section {
    padding: 3rem 3rem 6rem;
}

.shipping-container {
    max-width: 1400px;
    margin: 0 auto;
}

.shipping-provider {
    text-align: center;
    margin-bottom: 4rem;
}

.shipping-provider h1,
.shipping-provider h2 {
    font-family: var(--header-font);
    font-size: 3.5rem;
    color: var(--accent-navy);
    margin-bottom: 1rem;
}

.shipping-provider p {
    font-size: 1.1rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

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

.ship-grid--4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 2rem;
}

.ship-grid--4 .ship-card {
    flex: 0 1 calc((100% - 4rem) / 3);
}

.ship-card {
    background: white;
    padding: 2.2rem 2rem;
    border-top: 3px solid var(--accent-orange);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ship-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.ship-card-head {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.ship-flag {
    width: 40px;
    height: auto;
    border-radius: 3px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
    flex-shrink: 0;
}

.ship-card-head h3 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--accent-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ship-rows {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.ship-row {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 1rem;
    align-items: baseline;
}

.ship-label {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0.6;
}

.ship-price {
    font-family: var(--header-font);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-orange);
    text-align: right;
}

.ship-row .ship-note {
    grid-column: 1 / -1;
    text-align: right;
}

.ship-note {
    font-size: 0.8rem;
    font-style: italic;
    opacity: 0.6;
}

.ship-card--single .ship-price {
    text-align: left;
    font-size: 1.5rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 968px) {
    .ship-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .ship-grid--4 .ship-card {
        flex-basis: calc((100% - 2rem) / 2);
    }
}

@media (max-width: 768px) {
    .page-hero {
        height: 40vh;
        min-height: 300px;
    }

    .page-hero h1 {
        font-size: 2.5rem;
    }

    .shipping-intro {
        padding: 4rem 1.5rem 1rem;
    }

    .solid-header .shipping-intro {
        padding-top: calc(88px + 2rem);
    }

    .shipping-intro-text {
        font-size: 1rem;
    }

    .shipping-provider h1,
    .shipping-provider h2 {
        font-size: 2.2rem;
    }

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

    .ship-grid--4 .ship-card {
        flex-basis: 100%;
    }
}

/* ===================== LEGAL PAGES (GDPR, Cookies, Terms) ===================== */
.legal-section {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 3rem;
}

/* Pravni stranky bez hero - obsah zacina pod bilou hlavickou */
.solid-header .legal-section {
    padding-top: calc(88px + 3rem);
}

.legal-content {
    background: white;
    padding: 3rem 3.5rem;
    border-top: 3px solid var(--accent-orange);
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.legal-updated {
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-family: var(--header-font);
    font-size: 1.5rem;
    color: var(--accent-navy);
    margin: 2.5rem 0 1rem;
}

.legal-content h3 {
    font-family: var(--header-font);
    font-size: 1.15rem;
    color: var(--accent-orange);
    margin: 1.5rem 0 0.6rem;
}

.legal-updated + h2 {
    margin-top: 0;
}

.legal-content p,
.legal-content li {
    font-size: 0.95rem;
    line-height: 1.85;
    opacity: 0.85;
}

.legal-content p {
    margin-bottom: 1rem;
}

.legal-content ul {
    margin: 0 0 1rem 1.3rem;
}

.legal-content li {
    margin-bottom: 0.4rem;
}

.legal-content a {
    color: var(--accent-orange);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .legal-section {
        padding: 4rem 1.5rem;
    }

    .solid-header .legal-section {
        padding-top: calc(88px + 2rem);
    }

    .legal-content {
        padding: 2rem 1.5rem;
    }

    .legal-content h2 {
        font-size: 1.25rem;
    }
}

/* Shipping Partners */
.partners-section {
    background-color: var(--accent-navy);
    color: var(--primary-light);
    padding: 6rem 3rem;
    text-align: center;
}

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

.partners-section .shipping-provider {
    margin-bottom: 2.5rem;
}

.partners-section .shipping-provider h2 {
    color: var(--primary-light);
}

.partners-text {
    font-size: 1.1rem;
    line-height: 1.9;
    opacity: 0.85;
    margin-bottom: 3rem;
}

.partners-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.8rem;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.9rem 1.6rem;
    font-size: 0.85rem;
    text-transform: none;
    letter-spacing: 1px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .partners-section {
        padding: 4rem 1.5rem;
    }

    .partners-text {
        font-size: 1rem;
    }

    .partners-buttons {
        flex-direction: column;
        align-items: center;
    }

    .partner-btn {
        width: 100%;
        max-width: 320px;
        justify-content: center;
    }
}


/* ===================== CONTACT PAGE ===================== */
/* Hero = .page-hero, nadpis = .shipping-intro + .shipping-provider (stejne jako ostatni podstranky) */

/* ── Contact Cards Section ── */
.contact-section {
    background-color: var(--primary-light);
    padding: 4rem 3rem 6rem;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    background: white;
    box-shadow: 0 8px 50px rgba(46,64,87,0.12);
    border-top: 4px solid var(--accent-orange);
    align-items: stretch;
}

/* ── Left Column ── */
.contact-left {
    padding: 3rem;
    border-right: 1px solid rgba(46,64,87,0.08);
    display: flex;
    flex-direction: column;
}

.contact-left h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    color: var(--accent-navy);
    margin-bottom: 0.4rem;
}

.contact-left .contact-tagline {
    font-size: 0.72rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 2.5rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-bottom: 2.5rem;
}

.contact-detail-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

/* Ikony Address / Phone / Email – stejne jako Follow Us */
.contact-detail-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.contact-detail-icon svg {
    stroke: white;
}

.contact-detail-item:hover .contact-detail-icon {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

/* Nadpis (Address / Phone / Email) na stejnem radku a ve stredu ikony - vyska radku = vyska ikony 40px */
.contact-detail-text strong {
    display: block;
    font-size: 0.68rem;
    line-height: 40px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0;
    font-family: var(--body-font);
    font-weight: 400;
}

.contact-detail-text a,
.contact-detail-text p {
    color: var(--primary-dark);
    text-decoration: none;
    font-size: 0.9rem;
    line-height: 1.7;
    opacity: 0.75;
    transition: opacity 0.2s, color 0.2s;
}

.contact-detail-text a:hover {
    opacity: 1;
    color: var(--accent-orange);
}

/* Follow Us */
.contact-social-label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 1rem;
    font-family: var(--body-font);
}

.contact-social-icons {
    display: flex;
    gap: 0.8rem;
}

.contact-social-icons a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--accent-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.contact-social-icons a:hover {
    background-color: var(--accent-orange);
    transform: translateY(-3px);
}

/* ── Right Column - Form ── */
.contact-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
}

.contact-right h3 {
    font-family: var(--header-font);
    font-size: 1.8rem;
    color: var(--accent-navy);
    margin-bottom: 0.4rem;
}

.contact-right .form-tagline {
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 2.5rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
    flex: 1;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.4rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.68rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-navy);
    margin-bottom: 0.5rem;
    font-family: var(--body-font);
    opacity: 0.7;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(46,64,87,0.2);
    padding: 0.7rem 0;
    color: var(--primary-dark);
    font-family: var(--body-font);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

.form-group select {
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%232E4057' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0 center;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-bottom-color: var(--accent-orange);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: rgba(43,43,43,0.3);
    font-style: italic;
}

.form-group textarea {
    resize: none;
    height: 100px;
    line-height: 1.7;
}

.form-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
}

.form-consent input[type="checkbox"] {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
    accent-color: var(--accent-orange);
    cursor: pointer;
}

.form-consent label {
    font-size: 0.8rem;
    color: var(--primary-dark);
    opacity: 0.6;
    line-height: 1.6;
    cursor: pointer;
}

.form-consent label a {
    color: var(--accent-orange);
    text-decoration: none;
}

.form-submit {
    background-color: var(--accent-navy);
    color: white;
    border: 2px solid var(--accent-navy);
    padding: 1rem 2.5rem;
    font-family: var(--body-font);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.form-submit:hover {
    background-color: var(--accent-orange);
    border-color: var(--accent-orange);
}

.form-submit:disabled,
.form-submit:disabled:hover {
    opacity: 0.6;
    cursor: wait;
    background-color: var(--accent-navy);
    border-color: var(--accent-navy);
}

/* Honeypot – skryte pole pro boty */
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Hlaska po odeslani formulare */
.form-status {
    font-size: 0.85rem;
    line-height: 1.6;
}

.form-status:empty {
    display: none;
}

.form-status.is-success {
    color: var(--accent-navy);
}

.form-status.is-error {
    color: var(--accent-orange);
}

/* ── Responsive ── */
@media (max-width: 968px) {
    .contact-container {
        grid-template-columns: 1fr;
    }

    .contact-left {
        border-right: none;
        border-bottom: 1px solid rgba(46,64,87,0.08);
    }
}

@media (max-width: 768px) {
    .contact-section {
        padding: 3rem 1.5rem 5rem;
    }

    .contact-left,
    .contact-right {
        padding: 2rem 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ===================== HORSE DETAIL PAGE ===================== */
/* Mensi hero jen pro stranky koni (shipping zustava beze zmeny) */
.page-hero--compact {
    height: 35vh;
    min-height: 260px;
}

.page-hero--compact .page-hero-content {
    margin-top: 4rem;
}

.horse-detail {
    padding: 2.5rem 3rem 4rem;
}

.horse-detail-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.25rem;   /* mezera mezi galerii a kartou */
    align-items: start;
}

/* Stranka bez hero - bile menu hned od zacatku, obsah zacina pod hlavickou */
.solid-header .horse-detail {
    padding-top: calc(88px + 2rem);
}

/* ── Galerie (2/3) ── */
.hd-gallery {
    min-width: 0;
}

.hd-stage {
    position: relative;
    overflow: hidden;
    overflow: clip;   /* zabrani posunuti galerie pri focusu na sipku */
    aspect-ratio: 3 / 2;
    background-color: #f5f5f5;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
}

.hd-track {
    display: flex;
    height: 100%;
    transition: transform 0.5s ease;
    touch-action: pan-y;
}

.hd-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;   /* fotky 3:2 (napr. 1500x1000) vyplni plochu presne, nic se neorizne */
    display: block;
    user-select: none;
    -webkit-user-drag: none;
}

/* Sipky pres fotku - jen minimalisticka sipka, bez kruhu */
.hd-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    padding: 0.75rem;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
    transition: color 0.3s ease, transform 0.3s ease;
}

.hd-arrow svg {
    width: 38px;
    height: 38px;
    display: block;
}

.hd-arrow:hover {
    color: var(--accent-orange);
}

.hd-prev:hover { transform: translateY(-50%) translateX(-3px); }
.hd-next:hover { transform: translateY(-50%) translateX(3px); }

.hd-prev { left: 0.75rem; }
.hd-next { right: 0.75rem; }

.hd-counter {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    padding: 0.35rem 0.9rem;
    background: rgba(43, 43, 43, 0.65);
    color: white;
    font-size: 0.75rem;
    letter-spacing: 2px;
}

/* Nahledy */
.hd-thumbs {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    scrollbar-width: thin;
}

.hd-thumb {
    flex: 0 0 96px;
    aspect-ratio: 3 / 2;
    padding: 0;
    border: 2px solid transparent;
    background: none;
    cursor: pointer;
    opacity: 0.55;
    transition: all 0.3s ease;
}

.hd-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hd-thumb:hover {
    opacity: 0.9;
}

.hd-thumb.active {
    border-color: var(--accent-orange);
    opacity: 1;
}

/* ── Karta kone (1/3) ── */
.hd-card {
    position: sticky;
    top: 100px;
    background: white;
    padding: 2rem 2rem 2.2rem;
    border-top: 4px solid var(--accent-orange);
    box-shadow: 0 8px 50px rgba(46, 64, 87, 0.12);
}

.hd-card-head {
    padding-bottom: 1.2rem;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.hd-card-head .b-kicker {
    display: block;
}

.hd-card-head h1,
.hd-card-head h2 {
    font-family: var(--header-font);
    font-size: 2.1rem;
    color: var(--accent-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
    margin-bottom: 0.3rem;
}

.hd-card-head .horse-breed {
    margin-bottom: 0;
}

.hd-card-title {
    font-family: var(--body-font);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-orange);
    margin-bottom: 0.5rem;
}

.hd-details {
    margin-bottom: 1.5rem;
}

.hd-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.hd-row:last-child {
    border-bottom: none;
}

.hd-row dt {
    font-size: 0.72rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.6;
}

.hd-row dd {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--primary-dark);
    text-align: right;
}

.hd-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.hd-buttons .cta-button {
    margin: 0;
    text-align: center;
    padding: 0.85rem 1.5rem;
}

/* Tlacitko zpet na kone - pod galerii a kartou, na stredu */
.hd-back {
    text-align: center;
    margin-top: 3rem;
}

.hd-back .view-all-btn {
    padding: 0.6rem 1.8rem;
    font-size: 0.8rem;
}

.hd-btn-navy {
    background-color: var(--accent-navy);
    border-color: var(--accent-navy);
}

.hd-btn-navy:hover {
    color: var(--accent-navy);
    box-shadow: 0 10px 30px rgba(46, 64, 87, 0.3);
}

/* ── Responsive ── */
/* PC: fotka se zmensi podle vysky monitoru, aby galerie i karta byly videt cele */
/* PC: galerie se zmensi podle vysky monitoru (porad 3:2, bez okraju),
   karta zustane hned vedle a cely blok je na strede */
@media (min-width: 969px) {
    .horse-detail-container {
        display: flex;
        justify-content: center;
    }

    .hd-gallery {
        flex: 0 0 auto;
        width: min(calc((100% - 1.25rem) * 2 / 3), max(calc((100vh - 250px) * 1.5), 510px));
    }

    .hd-card {
        flex: 0 1 460px;
    }

    .hd-stage {
        width: 100%;
    }
}

/* Nizke obrazovky (notebooky) - kompaktnejsi karta, aby se vesla na vysku */
@media (min-width: 969px) and (max-height: 760px) {
    .solid-header .horse-detail {
        padding-top: calc(88px + 1.25rem);
    }

    .hd-card {
        padding: 1.5rem 1.75rem 1.6rem;
    }

    .hd-card-head {
        padding-bottom: 0.9rem;
        margin-bottom: 0.9rem;
    }

    .hd-card-head h1,
    .hd-card-head h2 {
        font-size: 1.8rem;
    }

    .hd-row {
        padding: 0.4rem 0;
    }

    .hd-details {
        margin-bottom: 1.1rem;
    }

    .hd-buttons .cta-button {
        padding: 0.7rem 1.5rem;
    }
}

@media (max-width: 968px) {
    .horse-detail-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hd-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .horse-detail {
        padding: 3rem 1.5rem 4rem;
    }

    .hd-arrow svg {
        width: 30px;
        height: 30px;
    }

    .hd-prev { left: 0.25rem; }
    .hd-next { right: 0.25rem; }

    .hd-thumb {
        flex-basis: 80px;
    }

    .hd-card {
        padding: 2rem 1.5rem;
    }

    .hd-card-head h1,
    .hd-card-head h2 {
        font-size: 2rem;
    }
}

/* ===================== 404 PAGE ===================== */
/* Bez hero - obsah zacina pod bilou hlavickou (stejne jako legal / shipping) */
.error-section {
    padding: 6rem 3rem;
    text-align: center;
}

.solid-header .error-section {
    padding-top: calc(88px + 4rem);
}

.error-content {
    max-width: 700px;
    margin: 0 auto;
}

/* 404 - misto nuly podkova */
.error-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-family: var(--header-font);
    font-size: 9rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-navy);
    margin-bottom: 2rem;
}

.error-horseshoe {
    width: 0.8em;
    height: 0.88em;
    color: var(--accent-orange);
    fill: var(--primary-light);   /* otvory pro hrebiky */
    animation: horseshoeSwing 3s ease-in-out infinite;
    transform-origin: 50% 0;
}

@keyframes horseshoeSwing {
    0%, 100% { transform: rotate(-6deg); }
    50%      { transform: rotate(6deg); }
}

.error-content h1 {
    font-family: var(--header-font);
    font-size: 2.6rem;
    color: var(--accent-navy);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.error-content .header-divider {
    margin-bottom: 2rem;
}

.error-text {
    font-size: 1.05rem;
    line-height: 1.9;
    opacity: 0.8;
    margin-bottom: 1.2rem;
}

.error-joke {
    font-size: 0.9rem;
    font-style: italic;
    opacity: 0.6;
    margin-bottom: 2.5rem;
}

.error-joke strong {
    color: var(--accent-orange);
    font-style: normal;
}

/* Druhe tlacitko - obrys v navy (secondary je bile, na svetlem pozadi neni videt) */
.cta-button.error-btn-outline {
    background-color: transparent;
    border-color: var(--accent-navy);
    color: var(--accent-navy);
}

.cta-button.error-btn-outline:hover {
    background-color: var(--accent-navy);
    color: white;
    box-shadow: 0 10px 30px rgba(46, 64, 87, 0.3);
}

@media (prefers-reduced-motion: reduce) {
    .error-horseshoe {
        animation: none;
    }
}

@media (max-width: 768px) {
    .error-section {
        padding: 4rem 1.5rem;
    }

    .solid-header .error-section {
        padding-top: calc(88px + 2.5rem);
    }

    .error-code {
        font-size: 6rem;
    }

    .error-content h1 {
        font-size: 1.8rem;
    }

    .error-text {
        font-size: 1rem;
    }

    .error-actions {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}


/* ===================== COOKIE BANNER ===================== */
/* Banner vklada cookies.js - vzhled stejny jako karty na webu (bila karta, oranzova linka nahore) */
#cookie-banner {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    max-width: 360px;
    background: white;
    border-top: 3px solid var(--accent-orange);
    box-shadow: 0 8px 40px rgba(46, 64, 87, 0.18);
    padding: 1.5rem 1.6rem;
    z-index: 9999;
    font-family: var(--body-font);
    font-size: 0.8rem;
    color: var(--primary-dark);
    display: none;
}

#cookie-banner.visible {
    display: block;
    animation: cookieSlideIn 0.4s ease;
}

@keyframes cookieSlideIn {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

#cookie-banner p {
    margin: 0 0 1.2rem;
    line-height: 1.75;
    opacity: 0.85;
}

#cookie-banner strong {
    display: block;
    font-family: var(--header-font);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent-navy);
    margin-bottom: 0.4rem;
    letter-spacing: 0.5px;
}

#cookie-banner a {
    color: var(--accent-orange);
    text-decoration: none;
}

#cookie-banner a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.6rem;
}

.cookie-btn-accept,
.cookie-btn-decline {
    flex: 1;
    padding: 0.7rem 1rem;
    font-family: var(--body-font);
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
}

/* Prijmout - oranzove jako .cta-button */
.cookie-btn-accept {
    background: var(--accent-orange);
    color: white;
    border: 2px solid var(--accent-orange);
}

.cookie-btn-accept:hover {
    background: transparent;
    color: var(--accent-orange);
}

/* Odmitnout - obrys v navy */
.cookie-btn-decline {
    background: transparent;
    color: var(--accent-navy);
    border: 2px solid rgba(46, 64, 87, 0.25);
}

.cookie-btn-decline:hover {
    border-color: var(--accent-navy);
    background: var(--accent-navy);
    color: white;
}

@media (max-width: 480px) {
    #cookie-banner {
        bottom: 0;
        right: 0;
        left: 0;
        max-width: 100%;
        padding: 1.25rem 1.5rem 1.5rem;
    }
}

/* ===================== PRECHODY MEZI STRANKAMI ===================== */
/* Jemne prolnuti pri prechodu na jinou stranku webu (Chrome, Edge, Safari) */
@media (prefers-reduced-motion: no-preference) {
    @view-transition {
        navigation: auto;
    }
}


/* ===================== ANIMACE SEKCI PRI SCROLLU ===================== */
/* Tridu .reveal pridava script.js - bez JS je vse normalne videt */
.reveal {
    opacity: 0;
}

.reveal.is-visible {
    animation: revealUp 0.8s cubic-bezier(0.23, 1, 0.32, 1) both;
}

/* "translate" misto "transform" - nekoliduje s hover efekty karet */
@keyframes revealUp {
    from {
        opacity: 0;
        translate: 0 30px;
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}
