.services-hero {
    position: relative;
    overflow: hidden;
}

.services-hero .page-hero__inner {
    position: relative;
    z-index: 1;
}

.services-hero__figure {
    position: absolute;
    right: 150px; 
    bottom: 5px; 
    z-index: 0;
    width: min(100%, 870px);
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    pointer-events: none;
}

.services-hero__figure-img {
    width: 72%;
    height: auto;
    max-height: 82vh;
    object-fit: contain;
    object-position: bottom right;

    opacity: 1;
    filter: sepia(40%);

    -webkit-mask-image: linear-gradient(to top, transparent 0%, black 5%, black 98%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 100%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to top, transparent 0%, black 5%, black 98%, transparent 100%), linear-gradient(to right, transparent 0%, black 15%, black 100%);
    mask-composite: intersect;
}

@media (max-width: 1100px) {
    .services-hero__figure { width: min(90%, 420px); }
    .services-hero__figure-img { opacity: 0.35; }
}

@media (max-width: 760px) {
    .services-hero__figure { display: none; }
}

.services-hero__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.services-hero__badges .badge-seal {
    --seal-size: 126px;
    padding: 0.75rem 0.9rem;
}
.services-hero__badges .seal-icon { font-size: 1.5rem; margin-bottom: 0.15rem; }
.services-hero__badges .seal-text {
    font-size: 0.56rem;
    line-height: 1.4;
    letter-spacing: 0.02em;
    max-width: 100%;
    overflow-wrap: anywhere;
}

.services-hero__hint {
    font-size: 0.95rem;
    color: var(--color-text);
    font-weight: 600;
}

.services-table-section { padding: 2rem 2rem 6rem; }
.services-table-section__inner { max-width: 1200px; margin: 0 auto; }

.services-table__head {
    display: grid;
    grid-template-columns: 96px minmax(180px, 260px) 1fr 32px;
    gap: 1.5rem;
    padding: 0 1.75rem 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    border-bottom: 1px solid var(--color-line);
    margin-bottom: 0.5rem;
}

.services-table {
    list-style: none;
    counter-reset: servicerow;
}

.service-row { counter-increment: servicerow; }
.service-row + .service-row { margin-top: 0.85rem; }

.service-details {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 18px;
    box-shadow: var(--glass-shadow);
    overflow: hidden;
}

.service-details > summary { list-style: none; cursor: pointer; }
.service-details > summary::-webkit-details-marker { display: none; }
.service-details > summary::marker { content: ""; }

.service-row__trigger {
    display: grid;
    grid-template-columns: 96px minmax(180px, 260px) 1fr 32px;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem 1.75rem;
    transition: background-color 0.25s ease;
}

.service-row__trigger:hover { background: rgba(214, 168, 62, 0.08); }
.service-row__trigger:focus-visible { outline: 3px solid var(--color-primary); outline-offset: -3px; }

a.service-row__trigger--link {
    text-decoration: none;
    color: inherit;
}

.service-row__media {
    display: block;
    width: 96px;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    overflow: hidden;
}
.service-row__media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-row__title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}

.service-row__desc {
    color: var(--color-text-muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.service-row__arrow {
    font-size: 1.2rem;
    color: var(--color-primary);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    justify-self: end;
}
.service-row__trigger:hover .service-row__arrow { transform: translateX(4px); }

.services-table__disclaimer {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    max-width: 70ch;
}

.service-row__detail {
    position: relative;
    padding: 0 1.75rem 2rem;
    border-top: 1px solid var(--color-line);
    margin-top: 0.25rem;
    padding-top: 1.5rem;
}

.service-row__close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--color-line-strong);
    background: var(--color-bg);
    font-size: 1.3rem;
    line-height: 1;
    color: var(--color-text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.service-row__close:hover { color: var(--color-text); border-color: var(--color-primary); transform: rotate(90deg); }

.service-row__detail-media {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.service-row__detail-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.service-row__index {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: var(--color-accent-deep);
    margin-bottom: 0.4rem;
}
.service-row__index::before {
    content: counter(servicerow, decimal-leading-zero) " / " var(--services-total, "06");
}

.service-row__detail h3 {
    font-size: 1.4rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.service-row__full {
    color: var(--color-text-muted);
    margin-bottom: 1.25rem;
}

.service-row__steps {
    list-style: none;
    counter-reset: step;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}
.service-row__steps li {
    counter-increment: step;
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    font-size: 0.92rem;
}
.service-row__steps li::before {
    content: "0" counter(step);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--color-accent-deep);
    font-weight: 700;
    flex-shrink: 0;
}

.service-row__price {
    font-size: 1.05rem;
    padding: 0.9rem 1.1rem;
    background: rgba(47, 122, 78, 0.07);
    border: 1px solid rgba(47, 122, 78, 0.15);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}
.service-row__price strong { color: var(--color-primary); font-family: var(--font-heading); }
.price-value { font-variant-numeric: tabular-nums; }
.price-was {
    color: var(--color-text-muted);
    font-family: var(--font-body);
    font-weight: 400;
    text-decoration: line-through;
    text-decoration-color: var(--color-danger, currentColor);
    margin-right: 0.35em;
}
.service-row__price small { display: block; color: var(--color-text-muted); font-size: 0.78rem; margin-top: 0.2rem; }

.service-row__cta-line { font-weight: 600; margin-bottom: 1rem; }

.service-row__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.service-row__buttons .btn { flex: 1 1 150px; }

.service-row__hours {
    font-size: 0.82rem;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.service-row__col { display: contents; }

#drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1250;
    background: rgba(18, 40, 27, 0.55);
    backdrop-filter: blur(14px) saturate(130%);
    -webkit-backdrop-filter: blur(14px) saturate(130%);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
#drawer-backdrop.active { opacity: 1; visibility: visible; }

body.has-open-drawer {
    position: fixed;
    left: 0;
    right: 0;
    width: 100%;
    overflow: hidden;
}

.service-details.is-drawer {
    position: fixed;
    top: 5vh;
    bottom: 5vh;
    left: 5vh;
    width: min(420px, calc(100vw - 10vh));
    z-index: 1260;
    border-radius: 28px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);

    max-height: calc(100vh - 10vh);

    display: block;
    overflow: hidden;

    background: var(--color-bg);
    border: 1px solid var(--glass-border);

    transform: translate3d(-130%, 0, 0);
    transition: transform 0.42s cubic-bezier(0.16, 1, 0.3, 1);
}

.service-details.is-drawer > .service-row__detail {
    position: absolute;
    inset: 0;
    height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: var(--color-line-strong) transparent;
}

.service-details.is-drawer > .service-row__detail::-webkit-scrollbar { width: 10px; }
.service-details.is-drawer > .service-row__detail::-webkit-scrollbar-track { background: transparent; }
.service-details.is-drawer > .service-row__detail::-webkit-scrollbar-thumb {
    background: var(--color-line-strong);
    border: 3px solid var(--color-bg);
    border-radius: 999px;
}
.service-details.is-drawer > .service-row__detail::-webkit-scrollbar-thumb:hover {
    background: var(--color-primary);
}

.service-details.is-drawer.is-open { transform: translate3d(0, 0, 0); }
.service-details.is-drawer.is-closing { transform: translate3d(-130%, 0, 0); }
.service-details.is-drawer > summary { display: none; }

.service-details.is-drawer > .service-row__detail {
    border-top: none;
    margin-top: 0;
    padding: 3.5rem 1.75rem 2.5rem;
}

.service-details.is-drawer .service-row__close {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--color-bg);
    box-shadow: 0 4px 14px rgba(18, 40, 27, 0.14);
    z-index: 100;
}

.booking-slot { margin-top: 1rem; }

.booking-calendar {
    margin-top: 1.25rem;
    padding: 1.25rem;
    background: var(--color-bg);
    border: 1px solid var(--color-line-strong);
    border-radius: 16px;
}

.booking-calendar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.booking-calendar__month {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    text-transform: capitalize;
}

.month-nav {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: transparent;
    color: var(--color-primary);
    font-size: 0.9rem;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}
.month-nav:hover { background: rgba(47, 122, 78, 0.08); border-color: var(--color-primary); }

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
}

.calendar-weekdays {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 0.5rem;
}

.calendar-days[aria-busy="true"] { opacity: 0.45; pointer-events: none; }

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-line);
    border-radius: 9px;
    background: var(--color-surface);
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.day-cell:hover:not(:disabled) { border-color: var(--color-accent); background: var(--color-bg-alt); }
.day-cell.is-selected {
    background: var(--color-accent);
    border-color: var(--color-accent);
    color: var(--color-ink-deep);
    font-weight: 700;
}
.day-cell.is-disabled {
    opacity: 0.3;
    background: transparent;
    border-color: transparent;
    cursor: not-allowed;
    text-decoration: line-through;
}
.day-cell.is-empty { background: transparent; border: none; cursor: default; }

.booking-calendar__label {
    margin: 1.25rem 0 0.6rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-text-muted);
}

.booking-calendar__times {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: 0.5rem;
}

.time-chip {
    padding: 0.7rem 0.5rem;
    border: 1px solid var(--color-primary);
    border-radius: 9px;
    background: var(--color-surface);
    color: var(--color-primary);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.time-chip:hover:not(:disabled) { background: var(--color-primary); color: #fff; }
.time-chip.is-selected { background: var(--color-primary); color: #fff; }
.time-chip.is-taken {
    border-color: var(--color-line);
    background: var(--color-bg-alt);
    color: var(--color-text-muted);
    text-decoration: line-through;
    opacity: 0.6;
    cursor: not-allowed;
}

.booking-calendar__empty {
    grid-column: 1 / -1;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.booking-calendar__confirm {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1.25rem;
}
.booking-calendar__confirm input:not([type="checkbox"]) {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--color-line-strong);
    border-radius: 9px;
    font-family: inherit;
    font-size: 0.92rem;
}

.booking-calendar__consent {
    margin-top: 0.35rem;
    background: rgba(250, 246, 236, 0.85);
}
.booking-calendar__confirm input:not([type="checkbox"]):focus-visible {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(47, 122, 78, 0.15);
}
.booking-calendar__submit { width: 100%; cursor: pointer; }

.booking-calendar__success {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 1.5rem;
    text-align: center;
    background: rgba(47, 122, 78, 0.09);
    border: 1px solid rgba(47, 122, 78, 0.25);
    border-radius: 14px;
}
.booking-calendar__success-icon { font-size: 2rem; }
.booking-calendar__success strong { color: var(--color-primary-hover); }
.booking-calendar__success span { font-size: 0.9rem; color: var(--color-text-muted); }

.services-cta {
    padding: 5rem 2rem;
    background-color: var(--color-ink-deep);
    color: var(--color-text-inverse);
    text-align: center;
}
.services-cta__inner { max-width: 640px; margin: 0 auto; }
.services-cta h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 1rem; color: var(--color-text-inverse); }
.services-cta p { color: var(--color-text-inverse-muted); margin-bottom: 2rem; }

@media (min-width: 992px) {
    .service-details.is-drawer {
        top: 50%;
        left: 50%;
        bottom: auto;
        width: min(90vw, 1100px);
        height: min(86vh, 660px);
        transform: translate3d(-150%, -50%, 0);
        border-radius: 20px;
    }

    .service-details.is-drawer.is-open { transform: translate3d(-50%, -50%, 0); }
    .service-details.is-drawer.is-closing { transform: translate3d(-150%, -50%, 0); }

    .service-details.is-drawer > .service-row__detail:has(> .service-row__col) {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        column-gap: 3.5rem;
        align-items: start;
        align-content: start;
        padding: 3rem 4.5rem 3rem 3rem;
    }

    .service-details.is-drawer > .service-row__detail > .service-row__col {
        display: flex;
        flex-direction: column;
        gap: 1.35rem;
        min-width: 0;
    }

    .service-details.is-drawer > .service-row__detail > .service-row__col > * {
        margin: 0;
    }

    .service-details.is-drawer .service-row__col--main > .service-row__index {
        margin-bottom: -1rem;
    }

    .service-details.is-drawer .service-row__col--main > h3 {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .service-details.is-drawer .service-row__cta-line { margin-bottom: 0.75rem; }
    .service-details.is-drawer .service-row__close { top: 1.5rem; right: 1.5rem; }
}

@media (max-width: 760px) {
    .services-table__head { display: none; }

    .service-row__trigger {
        grid-template-columns: 72px 1fr 24px;
        grid-template-areas:
            "media title arrow"
            "media desc  arrow";
        row-gap: 0.2rem;
        padding: 0.9rem 1.1rem;
    }
    .service-row__media { grid-area: media; width: 72px; }
    .service-row__title { grid-area: title; }
    .service-row__desc { grid-area: desc; font-size: 0.85rem; -webkit-line-clamp: 2; }
    .service-row__arrow { grid-area: arrow; }

    .service-details.is-drawer {
        top: 0; bottom: 0; left: 0; right: 0;
        width: 100%;
        height: 100dvh;
        border-radius: 0;
    }
    .service-details.is-drawer > .service-row__detail {
        padding-bottom: calc(3rem + env(safe-area-inset-bottom, 0px));
    }

    .service-row__buttons .btn { flex: 1 1 100%; }
}

@media (max-width: 480px) {
    .services-hero__badges { gap: 0.75rem; }
    .badge-seal { --seal-size: 92px; }
}

.booking-calendar__error {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.5rem 0 0;
    font-size: 0.82rem;
    line-height: 1.4;
    color: var(--color-danger);
}
.booking-calendar__error::before { content: "⚠"; flex: none; }

.land-purchase-backdrop {
    position: fixed;
    inset: 0;
    z-index: 997;
    background: rgba(18, 40, 27, 0.45);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}
.land-purchase-backdrop.active { opacity: 1; visibility: visible; }

.land-purchase-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 998;
    width: 100%;
    max-width: 380px;
    padding: 1.75rem 1.65rem;
    text-align: left;

    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -50%) scale(0.94);
    transition: opacity 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                visibility 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.land-purchase-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.land-purchase-popup__eyebrow {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-accent-deep);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.land-purchase-popup__headline {
    font-size: 1.25rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
    color: var(--color-text);
}
.land-purchase-popup__body {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--color-text-muted);
    margin: 0 0 1.25rem;
}
.land-purchase-popup .btn { width: 100%; }