/* Publik webbplats – styrs av CSS-variabler från API */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.55;
}

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

.wrap {
    width: min(1100px, calc(100% - 2rem));
    margin-inline: auto;
}
.wrap.narrow { width: min(720px, calc(100% - 2rem)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: color-mix(in srgb, var(--color-surface) 92%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    position: relative;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}
.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    opacity: 0;
    transform: translateX(100vw);
}
.brand-logo.is-in {
    animation: brand-logo-slide-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
@keyframes brand-logo-slide-in {
    from {
        opacity: 0.35;
        transform: translateX(100vw);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@media (prefers-reduced-motion: reduce) {
    .brand-logo,
    .brand-logo.is-in {
        opacity: 1;
        transform: none;
        animation: none;
    }
}
.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.brand-text strong {
    font-family: var(--font-heading);
    font-size: 1.15rem;
}
.brand-text small {
    color: var(--color-muted);
    font-size: 0.85rem;
}
.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle:hover {
    border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle-bars {
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars {
    background: transparent;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before {
    top: 0;
    transform: rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after {
    top: 0;
    transform: rotate(-45deg);
}
.nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    align-items: center;
}
.nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}
.nav a:hover { color: var(--color-accent); }

.hero {
    position: relative;
    min-height: min(72vh, 640px);
    display: flex;
    align-items: flex-end;
    background:
        linear-gradient(160deg, color-mix(in srgb, var(--color-primary) 92%, #000) 0%, var(--color-secondary) 100%);
    color: #fff;
    overflow: hidden;
}
.hero.has-image {
    background-image:
        linear-gradient(180deg, rgba(10, 16, 28, 0.35) 0%, rgba(10, 16, 28, 0.78) 100%),
        var(--hero-image);
    background-size: cover;
    background-position: center;
}
.hero-inner {
    padding: 4rem 0 3.5rem;
    transform: translateY(12px);
    opacity: 0;
    transition: transform 0.7s ease, opacity 0.7s ease;
}
.hero.is-ready .hero-inner {
    transform: none;
    opacity: 1;
}
.hero h1 {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
    margin: 0 0 0.75rem;
    max-width: 14ch;
}
.hero-sub {
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    max-width: 36ch;
    opacity: 0.92;
    margin: 0 0 1.5rem;
}
.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.btn-hero-secondary {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.35);
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.22); }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.7rem 1.25rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 700;
    border: none;
}
.btn-accent {
    background: var(--color-accent);
    color: #fff;
}
.btn-accent:hover { filter: brightness(1.05); }
.btn-block { width: 100%; text-align: center; }

.btn-offert-submit {
    cursor: pointer;
    transition: background-color 0.15s ease, filter 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
    box-shadow: 0 2px 0 color-mix(in srgb, var(--color-accent) 55%, #000);
}
.btn-offert-submit:hover:not(:disabled) {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px color-mix(in srgb, var(--color-accent) 35%, transparent);
}
.btn-offert-submit:active:not(:disabled) {
    filter: brightness(0.92);
    transform: translateY(1px);
    box-shadow: 0 1px 0 color-mix(in srgb, var(--color-accent) 55%, #000);
}
.btn-offert-submit:disabled,
.btn-offert-submit.is-sending {
    cursor: not-allowed;
    opacity: 0.72;
    filter: none;
    transform: none;
    box-shadow: none;
    background: color-mix(in srgb, var(--color-accent) 70%, #64748b);
}

.flash-section { padding-top: 1.5rem; padding-bottom: 0; }
.flash {
    padding: 1rem 1.15rem;
    border-radius: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
}
.flash-success {
    background: color-mix(in srgb, #16a34a 12%, var(--color-surface));
    border: 1px solid color-mix(in srgb, #16a34a 35%, transparent);
    color: #14532d;
}
.flash-error {
    background: color-mix(in srgb, #dc2626 10%, var(--color-surface));
    border: 1px solid color-mix(in srgb, #dc2626 30%, transparent);
    color: #7f1d1d;
}
.flash-notice {
    background: color-mix(in srgb, var(--color-accent) 10%, var(--color-surface));
    border: 1px solid color-mix(in srgb, var(--color-accent) 25%, transparent);
    margin: 1rem 0 1.25rem;
}
.flash-notice p { margin: 0 0 0.35rem; }
.flash-notice p:last-child { margin-bottom: 0; }

.offert-form { margin-top: 1.25rem; }
.form-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid.three { grid-template-columns: 2fr 1fr 1fr; }
.form-field label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.form-field input,
.form-field textarea,
.form-field select {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
    border-radius: 8px;
    font: inherit;
    background: var(--color-surface);
    color: var(--color-text);
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
    outline: 2px solid color-mix(in srgb, var(--color-accent) 45%, transparent);
    border-color: transparent;
}
.form-field textarea { resize: vertical; min-height: 6rem; }
.field-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--color-muted);
    font-size: 0.82rem;
}
.field-hint.is-ok { color: color-mix(in srgb, var(--color-accent) 70%, var(--color-muted)); }
.field-hint.is-warn { color: var(--color-muted); }
.boka-cal-label {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.45rem;
}
.boka-cal {
    max-width: 22.5rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
    border-radius: 12px;
    padding: 0.85rem 0.9rem 0.75rem;
    background: var(--color-surface);
}
.boka-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.65rem;
}
.boka-cal-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    flex: 1;
}
.boka-cal-nav {
    width: 2.1rem;
    height: 2.1rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
    border-radius: 8px;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
.boka-cal-nav:hover:not(:disabled) {
    border-color: var(--color-accent);
    color: var(--color-accent);
}
.boka-cal-nav:disabled {
    opacity: 0.35;
    cursor: default;
}
.boka-cal-weekdays,
.boka-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.2rem;
    text-align: center;
}
.boka-cal-weekdays {
    margin-bottom: 0.3rem;
}
.boka-cal-weekdays span {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-muted);
    padding: 0.2rem 0;
}
.boka-cal-day {
    aspect-ratio: 1;
    min-height: 2.15rem;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: color-mix(in srgb, var(--color-text) 45%, transparent);
    font: inherit;
    font-size: 0.9rem;
    padding: 0;
}
.boka-cal-day.is-empty {
    visibility: hidden;
    pointer-events: none;
}
.boka-cal-day.is-today:not(.is-bookable) {
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--color-text) 18%, transparent);
}
.boka-cal-day.is-bookable {
    background: color-mix(in srgb, var(--color-accent) 14%, var(--color-surface));
    color: var(--color-text);
    font-weight: 700;
    cursor: pointer;
}
.boka-cal-day.is-bookable:hover,
.boka-cal-day.is-bookable:focus-visible {
    background: color-mix(in srgb, var(--color-accent) 26%, var(--color-surface));
    outline: none;
}
.boka-cal-day.is-selected,
.boka-cal-day.is-selected:hover {
    background: var(--color-accent);
    color: #fff;
}
.boka-cal-day:disabled {
    cursor: default;
}
.boka-cal-chosen {
    margin: 0.7rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--color-text);
}
.spam-fieldset {
    margin: 0;
    padding: 0;
    border: none;
}
.spam-fieldset legend {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0;
}
.spam-choices {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}
.spam-choice-btn {
    appearance: none;
    border: 2px solid color-mix(in srgb, var(--color-text) 16%, transparent);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text);
    font: inherit;
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0.85rem 0.5rem;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.12s ease, box-shadow 0.15s ease;
}
.spam-choice-btn:hover {
    border-color: color-mix(in srgb, var(--color-accent) 45%, transparent);
    transform: translateY(-1px);
}
.spam-choice-btn.is-selected {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
}
.spam-choice-hint {
    color: #b45309;
}
.span-2 { grid-column: span 2; }
.math-field input { max-width: 8rem; }
.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.section {
    padding: 4rem 0;
}
.section-alt {
    background: color-mix(in srgb, var(--color-surface) 70%, var(--color-bg));
}
.section h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 1.25rem;
}
.prose { font-size: 1.05rem; color: var(--color-text); }
.prose p { margin: 0 0 1rem; }
.prose p:last-child { margin-bottom: 0; }
.prose h2,
.prose h3,
.prose h4 {
    font-family: var(--font-heading);
    margin: 1.25rem 0 0.5rem;
}
.prose h2 { font-size: 1.45rem; }
.prose h3 { font-size: 1.25rem; }
.prose h4 { font-size: 1.1rem; }
.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin: 0.75rem 0;
    vertical-align: middle;
}
.prose .webbplats-img {
    display: contents;
}
.prose a { color: var(--color-accent); }
.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}
.prose th,
.prose td {
    border: 1px solid color-mix(in srgb, var(--color-text) 14%, transparent);
    padding: 0.55rem 0.7rem;
    text-align: left;
    vertical-align: top;
}
.prose th {
    background: color-mix(in srgb, var(--color-primary) 8%, var(--color-surface));
    font-weight: 700;
}
.prose blockquote {
    margin: 1rem 0;
    padding: 0.75rem 1rem;
    border-left: 4px solid var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 8%, var(--color-surface));
    color: var(--color-muted);
}
.muted { color: var(--color-muted); }

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}
.card {
    background: var(--color-surface);
    border-radius: 10px;
    padding: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: transform 0.25s ease;
    position: relative;
    overflow: hidden;
}
.card-has-icon::before {
    content: '';
    position: absolute;
    right: 0.4rem;
    bottom: 0.2rem;
    width: min(42%, 6.5rem);
    height: min(55%, 5.5rem);
    background-image: var(--card-icon);
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.16;
    pointer-events: none;
    filter: saturate(0.85);
}
.card-has-icon::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, color-mix(in srgb, var(--color-surface) 92%, transparent) 35%, transparent 70%);
    pointer-events: none;
}
.card-content {
    position: relative;
    z-index: 1;
}
.card:hover { transform: translateY(-3px); }
a.card.card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}
a.card.card-link:hover .card-more { text-decoration: underline; }
.card h3 {
    font-family: var(--font-heading);
    margin: 0 0 0.5rem;
    font-size: 1.15rem;
}
.card p { margin: 0; color: var(--color-muted); }
.card-more {
    display: inline-block;
    margin-top: 0.85rem;
    font-weight: 600;
    color: var(--color-accent);
}

.services-carousel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.65rem;
    align-items: center;
}
.services-carousel-viewport {
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 0.15rem 0;
}
.services-carousel-viewport::-webkit-scrollbar { display: none; }
.cards.cards-carousel {
    display: flex;
    gap: 1rem;
}
.cards.cards-carousel > .card,
.cards.cards-carousel > a.card {
    flex: 0 0 calc(25% - 0.75rem);
    min-width: 220px;
    scroll-snap-align: start;
}
.carousel-btn {
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--color-text) 12%, transparent);
    background: var(--color-surface);
    color: var(--color-primary);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    line-height: 1;
    transition: transform 0.15s ease, opacity 0.15s ease;
}
.carousel-btn:hover:not(:disabled) { transform: translateY(-1px); }
.carousel-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}
@media (max-width: 960px) {
    .cards.cards-carousel > .card,
    .cards.cards-carousel > a.card {
        flex-basis: calc(50% - 0.5rem);
    }
}
@media (max-width: 560px) {
    .services-carousel {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 0.35rem;
    }
    .carousel-btn {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 1.35rem;
    }
    .cards.cards-carousel > .card,
    .cards.cards-carousel > a.card {
        flex-basis: 84%;
        min-width: 0;
    }
}

.subpage-main .section { padding-top: 1.5rem; }
.subpage-back {
    margin: 0 0 1rem;
    font-size: 0.95rem;
}
.subpage-back a {
    color: var(--color-muted);
    text-decoration: none;
}
.subpage-back a:hover { color: var(--color-accent); }
.subpage-main h1 {
    font-family: var(--font-heading);
    margin: 0 0 1rem;
    font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.subpage-cta {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}
.btn-muted {
    background: color-mix(in srgb, var(--color-primary) 10%, var(--color-surface));
    color: var(--color-primary);
}
.btn-muted:hover {
    background: color-mix(in srgb, var(--color-primary) 16%, var(--color-surface));
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}
.gallery-item {
    margin: 0;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #111;
}
.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.04); }

.hours-list { margin: 0; }
.hours-map-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 2rem 2.5rem;
    align-items: start;
}
.hours-map-grid.is-single {
    grid-template-columns: 1fr;
    max-width: 720px;
}
.hours-col h2,
.map-col h2 {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.1rem);
    margin: 0 0 1.25rem;
}
.map-address { margin: -0.5rem 0 1rem; }
.map-company { color: var(--color-text); font-weight: 700; }
.map-frame {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
    background: #e8edf2;
    aspect-ratio: 16 / 11;
    min-height: 260px;
}
.map-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.map-address-link {
    display: inline-block;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}
.map-address-link:hover,
.map-address-link:focus-visible {
    color: var(--color-accent);
    text-decoration: underline;
}
.contact-pill.contact-address {
    line-height: 1.45;
    white-space: normal;
    text-align: left;
}
.contact-pill.static.contact-address {
    cursor: default;
}
.contact-pill.contact-address:not(.static):hover,
.contact-pill.contact-address:not(.static):focus-visible {
    background: rgba(255,255,255,0.2);
    border-color: rgba(255,255,255,0.35);
}
.hours-item {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
}
.hours-item dt { font-weight: 700; }
.hours-item dd { margin: 0; color: var(--color-muted); }

.section-contact {
    background: var(--color-primary);
    color: #fff;
}
.section-contact h2 { color: #fff; }
.contact-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}
.contact-pill {
    background: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
}
.contact-pill.static { cursor: default; }
.section-contact .btn-accent { margin-top: 0.25rem; }

.site-footer {
    padding: 1.5rem 0 2rem;
    color: var(--color-muted);
    font-size: 0.9rem;
    border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
    text-align: center;
}
.footer-quality {
    max-width: 46rem;
    margin: 0 auto 0.85rem;
    font-size: 0.85rem;
    line-height: 1.5;
    text-align: center;
}
.footer-copy {
    text-align: center;
}
.footer-copy,
.footer-quality p,
.footer-copy p {
    margin: 0 0 0.4rem;
}
.footer-quality p:last-child,
.footer-copy p:last-child {
    margin-bottom: 0;
}
.footer-quality a,
.footer-copy a {
    color: inherit;
    text-decoration: underline;
}
.footer-quality [style*="text-align:left"],
.footer-copy [style*="text-align:left"] {
    text-align: left;
}
.boka-cal.is-loading {
    opacity: 0.65;
    pointer-events: none;
}
.jobbtyp-fieldset {
    margin: 0 0 1rem;
    padding: 0;
    border: none;
}
.jobbtyp-fieldset legend {
    display: block;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    padding: 0;
}
.jobbtyp-choices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.jobbtyp-choice {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    padding: 0.55rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--color-text) 18%, transparent);
    border-radius: 8px;
    background: var(--color-surface);
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
}
.jobbtyp-choice:has(input:checked) {
    border-color: var(--color-accent);
    background: color-mix(in srgb, var(--color-accent) 12%, var(--color-surface));
}
.jobbtyp-choice input {
    width: auto;
    margin: 0;
    accent-color: var(--color-accent);
}

body.modal-open { overflow: hidden; }

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(3px);
}
.modal-panel {
    position: relative;
    width: min(440px, 100%);
    background: var(--color-surface);
    color: var(--color-text);
    border-radius: 14px;
    padding: 2rem 1.75rem 1.75rem;
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22);
    text-align: center;
    transform: translateY(12px) scale(0.98);
    transition: transform 0.25s ease;
}
.modal.is-open .modal-panel {
    transform: none;
}
.modal-close {
    position: absolute;
    top: 0.65rem;
    right: 0.75rem;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--color-muted);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.modal-close:hover { color: var(--color-text); background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.modal-icon {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1rem;
    border-radius: 999px;
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    font-weight: 700;
    color: #166534;
    background: color-mix(in srgb, #16a34a 14%, var(--color-surface));
    border: 1px solid color-mix(in srgb, #16a34a 28%, transparent);
}
.modal-panel h2 {
    font-family: var(--font-heading);
    margin: 0 0 0.75rem;
    font-size: 1.65rem;
}
.modal-lead {
    margin: 0 0 0.85rem;
    font-size: 1.05rem;
    line-height: 1.55;
}
.modal-note {
    margin: 0 0 1.25rem;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}
.modal-phone { margin: 0 0 1rem; }
.modal-ok { min-width: 8rem; }

@media (max-width: 720px) {
    .hero { min-height: 60vh; align-items: center; }
    .hero h1 { max-width: none; }
    .nav-toggle { display: inline-flex; }
    .nav {
        display: none;
        position: absolute;
        top: calc(100% + 0.35rem);
        right: 0;
        left: auto;
        width: min(16rem, calc(100vw - 2rem));
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.4rem;
        background: var(--color-surface);
        border: 1px solid color-mix(in srgb, var(--color-text) 10%, transparent);
        border-radius: 12px;
        box-shadow: 0 16px 32px rgba(15, 23, 42, 0.14);
        z-index: 30;
    }
    .site-header.nav-open .nav {
        display: flex;
    }
    .nav a {
        padding: 0.75rem 0.9rem;
        border-radius: 8px;
        font-size: 1rem;
    }
    .nav a:hover,
    .nav a:active {
        background: color-mix(in srgb, var(--color-accent) 10%, transparent);
        color: var(--color-accent);
    }
    .hours-map-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .form-grid.two,
    .form-grid.three { grid-template-columns: 1fr; }
    .span-2 { grid-column: span 1; }
    .spam-choices { grid-template-columns: 1fr; }
}

