:root {
    --evm-green: #97c8bc;
    --evm-green-dark: #2e6f63;
    --evm-green-deep: #1f5048;
    --evm-accent: #c7634c;
    --evm-accent-dark: #9e4432;
    --evm-ink: #2f3833;
    --evm-muted: #54645f;
    --evm-paper: #fbfbf7;
    --evm-blush: #ead2ca;
    --evm-line: rgba(31, 80, 72, 0.22);
    --evm-shadow: rgba(31, 80, 72, 0.18);
}

* {
    box-sizing: border-box;
    letter-spacing: 0;
}

html,
body {
    overflow-x: hidden;
}

body {
    margin: 0;
    color: var(--evm-ink);
    background: var(--evm-paper);
    font-family: "Inter", "Roboto", Arial, sans-serif;
}

a {
    color: inherit;
    overflow-wrap: anywhere;
}

.site-nav {
    background: rgba(151, 200, 188, 0.98);
    box-shadow: 0 4px 18px var(--evm-shadow);
}

.brand-mark {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.brand-name {
    font-family: "IM Fell Great Primer SC", Georgia, serif;
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    color: var(--evm-ink);
}

.nav-link {
    color: var(--evm-ink);
    font-weight: 600;
}

.nav-link:hover,
.nav-link:focus {
    color: var(--evm-green-deep);
    text-decoration: underline;
    text-underline-offset: 0.35rem;
}

.hero {
    min-height: 78vh;
    display: grid;
    place-items: center;
    text-align: center;
    padding: 7rem 1rem 5rem;
    background:
        linear-gradient(rgba(251, 251, 247, 0.45), rgba(251, 251, 247, 0.16)),
        url("../img/plantsbg1.jpg") center / cover no-repeat;
}

.hero h1 {
    font-family: "IM Fell Great Primer SC", Georgia, serif;
    font-size: clamp(4.5rem, 13vw, 8rem);
    line-height: 0.9;
    margin: 0;
}

.hero .tagline {
    font-family: "Arizonia", Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3rem);
    margin: 0.6rem 0 2rem;
}

.btn-evm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0.8rem 1.3rem;
    border: 1px solid var(--evm-green-deep);
    border-radius: 4px;
    background: var(--evm-green-dark);
    box-shadow: 0 10px 24px rgba(31, 80, 72, 0.22);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    white-space: normal;
    text-align: center;
    overflow-wrap: anywhere;
}

.btn-evm:hover,
.btn-evm:focus {
    background: var(--evm-accent);
    border-color: var(--evm-accent-dark);
    color: #fff;
}

.btn-primary {
    border-color: var(--evm-green-deep);
    background-color: var(--evm-green-dark);
    color: #fff;
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn-primary:hover,
.btn-primary:focus {
    border-color: var(--evm-accent-dark);
    background-color: var(--evm-accent);
    color: #fff;
}

.btn-outline-secondary {
    border-color: var(--evm-green-dark);
    color: var(--evm-green-deep);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    border-color: var(--evm-green-deep);
    background: var(--evm-green-dark);
    color: #fff;
}

.btn-outline-danger {
    border-color: var(--evm-accent-dark);
    color: var(--evm-accent-dark);
    font-weight: 700;
    white-space: normal;
    overflow-wrap: anywhere;
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    border-color: var(--evm-accent-dark);
    background: var(--evm-accent-dark);
    color: #fff;
}

.section {
    padding: clamp(3rem, 7vw, 6rem) 0;
}

.section-green {
    background: var(--evm-green);
}

.section-soft {
    background: #f4f0ed;
}

.section-title {
    font-family: "IM Fell Great Primer", Georgia, serif;
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    margin-bottom: 1rem;
}

.lead-copy {
    color: var(--evm-muted);
    font-size: 1.08rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.logo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 2rem;
    align-items: center;
    justify-items: center;
}

.logo-strip img {
    max-width: 170px;
    max-height: 92px;
    object-fit: contain;
}

.map-frame {
    width: 100%;
    min-height: 420px;
    border: 0;
    box-shadow: 0 16px 40px rgba(47, 56, 51, 0.2);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1rem;
}

.service-card,
.treatment-item,
.contact-panel,
.admin-card {
    border: 1px solid var(--evm-line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

.service-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: 220px;
    padding: 1.35rem;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.service-card:hover,
.service-card:focus {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px var(--evm-shadow);
}

.service-card h2,
.treatment-item h2 {
    font-family: "IM Fell Great Primer", Georgia, serif;
    color: var(--evm-green-deep);
    overflow-wrap: anywhere;
}

.treatment-list {
    display: grid;
    gap: 1rem;
}

.treatment-item {
    padding: 1.4rem;
}

.treatment-heading {
    display: flex;
    gap: 1rem;
    align-items: start;
    justify-content: space-between;
    border-bottom: 1px solid var(--evm-line);
    padding-bottom: 0.7rem;
    margin-bottom: 1rem;
}

.treatment-heading > div:first-child {
    min-width: 0;
}

.price {
    flex: 0 0 auto;
    font-weight: 800;
    color: var(--evm-accent-dark);
    white-space: nowrap;
}

.duration {
    color: var(--evm-muted);
    font-size: 0.95rem;
}

.page-hero {
    padding: 5rem 0;
    background:
        linear-gradient(rgba(251, 251, 247, 0.66), rgba(251, 251, 247, 0.88)),
        url("../img/plantsbg1.jpg") center / cover no-repeat;
}

.contact-hero {
    background:
        linear-gradient(rgba(251, 251, 247, 0.76), rgba(251, 251, 247, 0.9)),
        url("../img/kontaktbg.jpg") center / cover no-repeat;
}

.profile-photo {
    width: min(100%, 420px);
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 22px 44px var(--evm-shadow);
}

.site-footer {
    background: rgba(255, 255, 255, 0.94);
    border-top: 1px solid var(--evm-line);
}

.footer-logo {
    width: 150px;
    height: auto;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border: 1px solid var(--evm-green-dark);
    border-radius: 50%;
    background: #fff;
    color: var(--evm-green-deep);
    font-size: 1.35rem;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(31, 80, 72, 0.12);
}

.social-icon:hover,
.social-icon:focus {
    border-color: var(--evm-accent-dark);
    background: var(--evm-accent);
    color: #fff;
}

.flash {
    border-radius: 8px;
    padding: 1rem;
}

.flash-success {
    background: #d7f0e8;
    border: 1px solid #64a894;
}

.flash-warning {
    background: #fff1d6;
    border: 1px solid #d39942;
}

.admin-shell {
    min-height: 100vh;
    background: #f2f7f5;
}

.admin-sidebar {
    background: #1f3934;
    color: #fff;
}

.admin-sidebar a {
    color: rgba(255, 255, 255, 0.82);
    text-decoration: none;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    color: #fff;
    background: rgba(199, 99, 76, 0.32);
}

.admin-card {
    padding: 1.1rem;
    box-shadow: 0 12px 32px rgba(31, 80, 72, 0.1);
}

.admin-stat {
    font-size: 2rem;
    font-weight: 800;
    color: var(--evm-accent-dark);
}

.treatment-editor-card {
    position: relative;
}

.treatment-editor-card h3 {
    font-weight: 700;
}

.form-control,
.form-select {
    border-radius: 6px;
    min-width: 0;
    overflow-wrap: anywhere;
}

textarea.form-control {
    min-height: 110px;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.table {
    overflow-wrap: anywhere;
    word-break: normal;
}

.table th,
.table td,
dt,
dd,
p,
li,
blockquote {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: normal;
}

@media (max-width: 767px) {
    .brand-mark {
        width: 56px;
        height: 56px;
    }

    .hero {
        min-height: 68vh;
        padding-top: 5rem;
    }

    .treatment-heading {
        display: block;
    }

    .price {
        display: block;
        margin-top: 0.35rem;
    }
}
