/* Explain: Layout utilities and responsive section spacing for the site. */
.section-pad {
    padding-top: clamp(5rem, 9vw, 8rem);
    padding-bottom: clamp(5rem, 9vw, 8rem);
}

.hero-split {
    background:
        linear-gradient(115deg, rgba(250, 249, 246, 0.96) 0%, rgba(250, 249, 246, 0.78) 52%, rgba(88, 129, 87, 0.12) 100%);
}

.orb {
    position: absolute;
    border-radius: 999px;
    filter: blur(8px);
    opacity: 0.52;
    pointer-events: none;
    z-index: -1;
}

.orb-sage {
    width: 24rem;
    height: 24rem;
    right: 8%;
    top: 10%;
    background: rgba(88, 129, 87, 0.2);
}

.orb-terracotta {
    width: 18rem;
    height: 18rem;
    left: 4%;
    bottom: 10%;
    background: rgba(163, 177, 138, 0.25);
}

.contact-section {
    background:
        radial-gradient(circle at 8% 16%, rgba(163, 177, 138, 0.2), transparent 24rem),
        linear-gradient(180deg, var(--background-color), var(--surface-color));
}

/* ==========================================================================
   Responsive hardening — keeps every page readable from 320px up
   ========================================================================== */

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img,
svg,
video,
canvas,
iframe {
    max-width: 100%;
}

input,
select,
textarea,
button {
    min-width: 0;
    max-width: 100%;
}

main,
section,
header,
footer,
form {
    max-width: 100%;
}

.flex > *,
.grid > * {
    min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
li,
a,
span,
strong,
em,
label,
button,
blockquote,
figcaption,
dd,
dt {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.status-badge,
.chip,
.admin-tab,
.services-advanced-toggle,
.check-item,
.services-advanced-caret {
    max-width: 100%;
}

.status-badge,
.chip,
.admin-tab,
.services-advanced-toggle,
.check-item {
    white-space: normal;
}

@media (max-width: 767px) {
    html {
        scroll-padding-top: 84px;
    }

    .section-pad {
        padding-top: clamp(3.25rem, 9vw, 5rem);
        padding-bottom: clamp(3.25rem, 9vw, 5rem);
    }

    input,
    select,
    textarea {
        font-size: 16px;
    }

    .btn {
        height: auto;
        min-height: 2.75rem;
        max-width: 100%;
        flex-wrap: wrap;
        padding-block: 0.45rem;
        line-height: 1.3;
        text-align: center;
        white-space: normal;
    }

    .admin-card,
    .admin-column,
    .admin-cell--empty {
        border-radius: 1.2rem;
    }
}

@media (max-width: 520px) {
    h1 {
        font-size: clamp(1.68rem, 8.4vw, 2.4rem);
        line-height: 1.18;
        letter-spacing: 0;
        text-wrap: balance;
    }

    h2 {
        font-size: clamp(1.4rem, 7vw, 2rem);
        line-height: 1.22;
        letter-spacing: 0;
        text-wrap: balance;
    }

    h3 {
        font-size: clamp(1.1rem, 5.2vw, 1.4rem);
        line-height: 1.3;
        letter-spacing: 0;
    }

    h4,
    h5,
    h6 {
        letter-spacing: 0;
    }

    p,
    li {
        line-height: 1.75;
    }

    .section-kicker {
        gap: 0.5rem;
        font-size: 0.68rem;
        letter-spacing: 0.1em;
    }

    .section-kicker::before {
        width: 1.2rem;
    }

    .hero-split form {
        padding: 0.3rem;
    }

    .hero-split form input {
        padding-inline-start: 2.5rem;
        padding-inline-end: 0.35rem;
    }

    .hero-split form .btn {
        padding-inline: 0.95rem;
        font-size: 0.88rem;
    }

    .services-search-panel {
        padding: 0.9rem;
        border-radius: 1.4rem;
    }

    .services-filter-grid {
        gap: 0.75rem;
    }

    #servicesSearch {
        padding-inline-start: 2.5rem;
        padding-inline-end: 4.7rem;
    }

    #servicesSearchButton {
        gap: 0.3rem;
        padding-inline: 0.8rem;
    }

    #servicesSearchButton span {
        font-size: 0.8rem;
    }

    .service-card {
        padding: 1.15rem;
        border-radius: 1.35rem;
    }

    .service-card-head {
        gap: 0.7rem;
    }

    .service-card-photo {
        width: 3.6rem;
        height: 3.6rem;
        border-radius: 0.9rem;
    }

    .service-location {
        padding: 0.25rem 0.65rem;
        font-size: 0.72rem;
    }

    .chip {
        font-size: 0.68rem;
    }

    .service-desc {
        font-size: 0.88rem;
        line-height: 1.7;
    }

    .service-expand-btn {
        font-size: 0.75rem;
    }

    .services-empty {
        padding: 1.75rem 1rem;
        border-radius: 1.35rem;
    }

    .quiet-detail {
        padding: 1.1rem;
        border-radius: 1.25rem;
    }

    .step-card,
    .domain-card {
        padding: 1.25rem;
        border-radius: 1.4rem;
    }

    .booking-form {
        padding: 1.15rem;
        border-radius: 1.4rem;
    }

    .check-item {
        padding: 0.65rem 0.8rem;
        font-size: 0.85rem;
    }

    .admin-card,
    .admin-column {
        padding: 1rem;
    }

    .admin-connection-side {
        padding: 0.85rem;
    }

    .admin-board-head h2 {
        font-size: 1.05rem;
    }

    .form-label {
        font-size: 0.72rem;
        letter-spacing: 0.08em;
    }
}