:root {
    --bg: #F8F5EE;
    --surface: #ffffff;
    --text: #253238;
    --primary: #116B74;
    --primary-dark: #0D585F;
    --primary-light: #e6f2f0;
    --primary-hover: #14808A;
    --accent: #D4A72C;
    --accent-dark: #E0B94B;
    --muted: #5b5b5b;
    --border: #ddd5c8;
    --radius: 12px;
    --shadow-sm: 0 1px 4px rgba(0, 0, 0, 0.07);
    --shadow: 0 3px 14px rgba(17, 107, 116, 0.1);
    --shadow-md: 0 6px 28px rgba(17, 107, 116, 0.18);
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Open Sans", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
}

h1, h2, h3 {
    line-height: 1.2;
    margin-top: 0;
}

a {
    transition: color 0.2s;
}

img {
    max-width: 100%;
    height: auto;
}

/* ================================
   LAYOUT
   ================================ */

.container {
    width: min(1120px, 92%);
    margin: 0 auto;
}

/* ================================
   HEADER
   ================================ */

.site-header {
    background: #F8F5EE;
    border-bottom: 2px solid rgba(13, 88, 95, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 108px;
}

.brand {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
}

.brand-logo {
    height: 90px;
    width: auto;
    flex-shrink: 0;
    display: block;
}

/* ================================
   NAVIGATION
   ================================ */

.nav-toggle {
    display: none;
    position: absolute;
}

.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    min-width: 44px;
    min-height: 44px;
    align-items: center;
}

.hamburger:hover {
    background: rgba(13, 88, 95, 0.1);
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu {
    display: flex;
    gap: 0.2rem;
    flex-wrap: wrap;
    align-items: center;
}

.menu a {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.04em;
    padding: 0.45rem 0.85rem;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
    white-space: nowrap;
    text-transform: uppercase;
}

.menu a:hover,
.menu a.active {
    color: var(--accent);
    background: rgba(212, 167, 44, 0.1);
}

.menu a.nav-cta {
    background: var(--primary-dark);
    color: #fff;
    border-radius: 20px;
    padding: 0.45rem 1.2rem;
    font-weight: 700;
}

.menu a.nav-cta:hover {
    background: var(--primary);
    color: #fff;
}

/* ================================
   HERO
   ================================ */

/* Výchozí hero pro podstránky – petrolejový gradient */
.hero {
    background: linear-gradient(
        135deg,
        #0D585F 0%,
        #116B74 55%,
        #14808A 100%
    );
    padding: 4rem 0;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: -80px;
    right: -80px;
    width: 380px;
    height: 380px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    bottom: 30px;
    left: -40px;
    width: 220px;
    height: 220px;
    background: rgba(212, 167, 44, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

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

/* Homepage hero – obrázek jako pozadí */
.hero-home {
    background-image: url('/images/cat_a_dog.webp');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    width: 100%;
    height: 750px;
    padding: 0;
}

.hero-home .container {
    height: 100%;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 600px;
    width: 100%;
    padding: 0;
}

.hero h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.1rem, 3.5vw, 3.2rem);
    line-height: 1.15;
    color: #fff;
    font-weight: 700;
}

.hero-brand-name {
    color: var(--accent);
    display: block;
}

.hero-lead {
    max-width: 100%;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.95);
    font-size: clamp(0.75rem, 1.6vw, 1.05rem);
    line-height: 1.65;
}

.hero p {
    max-width: 1000px;
    width: 92%;
    margin: 0 0 1.75rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 0.875rem;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions--mobile {
    display: none;
}

/* Subpage hero – centrované nadpis a popis */
.hero-subpage .container {
    text-align: center;
}

.hero-subpage h1 {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.hero-subpage p {
    max-width: 1000px;
    width: 92%;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
}

/* Homepage services preview */
.services-preview {
    padding: 3rem 0 2rem;
    background: var(--surface);
}

.services-preview-title {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text);
    margin: 0 0 0.5rem;
}

.services-preview-underline {
    width: 48px;
    height: 3px;
    background: var(--accent);
    border-radius: 2px;
    margin: 0 auto 2.5rem;
}

.services-preview-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.service-preview-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem 0.75rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.service-preview-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
    transform: translateY(-3px);
}

.service-preview-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 1.5px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.2s, background 0.2s;
}

.service-preview-card:hover .service-preview-icon {
    border-color: var(--accent);
    background: rgba(212, 167, 44, 0.06);
}

.service-preview-icon svg {
    width: 26px;
    height: 26px;
    fill: var(--primary);
}

.service-preview-card span {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
}

/* ================================
   SECTION
   ================================ */

.section {
    padding: 2.5rem 0 3.5rem;
}

/* ================================
   CARDS
   ================================ */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    border-color: var(--accent);
}

.card h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.card-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.card-icon-svg {
    width: 22px;
    height: 22px;
    fill: var(--primary);
    flex-shrink: 0;
}

/* Team section headings */
.team-section-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 2rem 0 0.85rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--primary-light);
}

.team-section-title:first-child {
    margin-top: 0;
}

.card p {
    margin: 0 0 0.65rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.card p:last-child {
    margin-bottom: 0;
}

.card p a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}

.card p a:hover {
    text-decoration: underline;
}

.list {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--text);
}

.list li {
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}

/* ================================
   SERVICE CARDS (Služby page)
   ================================ */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 1.25rem;
}

.service-card {
    background: var(--surface);
    border-radius: var(--radius);
    padding: 1.75rem 1.25rem 1.5rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: box-shadow 0.25s ease, transform 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background 0.2s;
}

.service-card:hover .service-icon {
    background: var(--primary);
}

.service-icon svg {
    width: 28px;
    height: 28px;
    fill: var(--primary);
    transition: fill 0.2s;
}

.service-card:hover .service-icon svg {
    fill: #fff;
}

.service-card h2 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
    line-height: 1.45;
}

/* ================================
   HIGHLIGHT / INFO BOX
   ================================ */

.highlight {
    background: linear-gradient(
        135deg,
        #0D585F 0%,
        #116B74 45%,
        #14808A 100%
    );
    color: #fff;
    padding: 1.75rem 2rem;
    border-radius: var(--radius);
    margin-top: 1.5rem;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
}

.highlight::after {
    content: "";
    position: absolute;
    top: -40px;
    right: -40px;
    width: 160px;
    height: 160px;
    background: rgba(212, 167, 44, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.highlight-icon {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    margin-top: 0.1rem;
}

.highlight-icon svg {
    width: 26px;
    height: 26px;
    fill: #fff;
}

/* Animal cards on homepage */
.animal-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.65rem;
    padding: 1.5rem 1rem;
}

.animal-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
    margin: 0;
}

.animal-card p {
    font-size: 0.875rem;
    color: var(--muted);
    margin: 0;
}

.home-animals {
    margin-top: 2rem;
}

.highlight-content {
    position: relative;
    z-index: 1;
}

.highlight h2 {
    color: #fff;
    margin: 0 0 0.4rem;
    font-size: 1.2rem;
}

.highlight p {
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    font-size: 0.95rem;
}

/* ================================
   BUTTONS / CTA
   ================================ */

.cta {
    display: inline-block;
    text-decoration: none;
    background: var(--primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.7rem 1.4rem;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 2px 8px rgba(17, 107, 116, 0.25);
    white-space: nowrap;
    margin-top: 0.75rem;
}

.cta:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(17, 107, 116, 0.38);
    color: #fff;
}

.cta-accent {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(212, 167, 44, 0.35);
}

.cta-accent:hover {
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 4px 14px rgba(212, 167, 44, 0.5);
}

.cta-outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.cta-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.85);
    color: #fff;
    box-shadow: none;
}

.hero-actions .cta {
    margin-top: 0;
}

/* Tlačítko vycentrované v rámci karty (ticket #3 — jen karta "Proč právě k nám?") */
.cta-card-center {
    display: block;
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

/* ================================
   MAP (Contacts page)
   ================================ */

.map-wrap {
    margin-top: 2rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.map-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--primary-dark);
    padding: 1.1rem 1.5rem;
    flex-wrap: wrap;
}

.map-header-text {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.map-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    margin: 0;
}

.map-address {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.82);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.map-address svg {
    width: 13px;
    height: 13px;
    fill: var(--accent);
    flex-shrink: 0;
}

.map-route-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0;
    white-space: nowrap;
}

.map-route-btn svg {
    width: 15px;
    height: 15px;
    fill: #fff;
    flex-shrink: 0;
}

.map-frame iframe {
    display: block;
    width: 100%;
    height: 420px;
    border: 0;
}

@media (max-width: 600px) {
    .map-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .map-route-btn {
        width: 100%;
        justify-content: center;
    }

    .map-frame iframe {
        height: 300px;
    }
}

/* ================================
   FOOTER
   ================================ */

.site-footer {
    margin-top: 3rem;
    background: var(--primary-dark);
    color: #F4F7F8;
    padding: 2.5rem 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
}

.footer-col h3 {
    color: var(--accent);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 0.8rem;
    font-weight: 700;
}

.footer-col strong {
    color: #fff;
}

.footer-col p,
.footer-col li {
    font-size: 0.875rem;
    margin: 0 0 0.35rem;
    line-height: 1.55;
    color: #F4F7F8;
    list-style: none;
}

.footer-col ul {
    padding: 0;
    margin: 0;
}

.site-footer a {
    color: #F4F7F8;
    text-decoration: none;
    transition: color 0.2s;
}

.site-footer a:hover {
    color: var(--accent);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(244, 247, 248, 0.5);
}

.footer-bottom a {
    color: rgba(244, 247, 248, 0.65);
}

.footer-bottom a:hover {
    color: var(--accent);
}

/* ================================
   RESPONSIVE — TABLET (≤900px)
   ================================ */

@media (max-width: 900px) {
    .brand-logo {
        height: 76px;
    }

    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .services-preview-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero-home {
        height: 500px;
        background-position: center top;
    }

    .hero-content {
        max-width: 480px;
        padding: 0;
    }
}


@media (max-width: 720px) {
    .brand-logo {
        height: 64px;
    }

    .header-inner {
        min-height: auto;
        padding: 0.6rem 0;
        flex-wrap: wrap;
        align-items: center;
    }

    .hamburger {
        display: flex;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(13, 88, 95, 0.2);
        order: 10;
    }

    .menu a {
        width: 100%;
        padding: 0.75rem 1rem;
        font-size: 1rem;
        border-radius: 6px;
    }

    .menu a.nav-cta {
        border-radius: 6px;
        text-align: center;
        margin: 0.25rem 0;
    }

    .nav-toggle:checked ~ .menu {
        display: flex;
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .nav-toggle:checked ~ .hamburger span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .hero-actions--desktop {
        display: none;
    }

    .hero-actions--mobile {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1.25rem 4%;
        background: var(--bg);
    }

    .hero-actions--mobile .cta {
        text-align: center;
        width: 100%;
    }

    /* "Naše služby" na mobilu plná barva místo průhledného obrysu (ticket #1) */
    .hero-actions--mobile .cta-outline {
        background: #116b74;
        border-color: #116b74;
        color: #fff;
        box-shadow: 0 2px 8px rgba(17, 107, 116, 0.25);
    }

    .hero-actions--mobile .cta-outline:hover {
        background: var(--primary-dark);
        border-color: var(--primary-dark);
    }

    .hero-home {
        height: 380px;
        background-position: center top;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-actions .cta {
        text-align: center;
        width: 100%;
    }

    .highlight {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.5rem;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ================================
   RESPONSIVE — SMALL PHONES (≤480px)
   ================================ */

@media (max-width: 480px) {
    .brand-logo {
        height: 54px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 35px;
    }

    .hero p {
        max-width: 300px;
        width: 53%;
    }

    .hero-home {
        height: 260px;
        background-position: center top;
    }

    .hero-content {
        padding: 0;
    }

    .hero-lead {
        font-size: 0.85rem;
        margin-bottom: 1.1rem;
    }

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

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .services-preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }

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