:root {
    --ivory: #f8f4f0;
    --cream: #eee5dd;
    --espresso: #241c19;
    --ink: #161412;
    --gold: #b89a68;
    --rose: #d5b4b1;
    --taupe: #a89a90;
    --line: rgba(36, 28, 25, 0.14);
    --paper: #fffaf6;
    --shadow: 0 18px 50px rgba(36, 28, 25, 0.08);
    --serif: Georgia, "Times New Roman", serif;
    --sans: Inter, Manrope, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: var(--ivory);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    letter-spacing: 0;
}

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

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
    color: inherit;
}

input,
textarea,
select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 0.78rem 0.9rem;
    font-size: 16px;
}

textarea {
    resize: vertical;
}

button {
    cursor: pointer;
}

:focus-visible {
    outline: 3px solid rgba(184, 154, 104, 0.52);
    outline-offset: 3px;
}

.sr-only,
.hp-field {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    transform: translateY(-160%);
    background: var(--espresso);
    color: #fff;
    padding: 0.65rem 0.9rem;
    border-radius: 6px;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 78px;
    padding: 0.85rem max(1rem, calc((100vw - 1180px) / 2));
    background: rgba(248, 244, 240, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--serif);
    font-size: 1.25rem;
}

.brand img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: rgba(22, 20, 18, 0.72);
    border-bottom: 1px solid transparent;
}

.site-nav a.active,
.site-nav a:hover {
    color: var(--ink);
    border-color: var(--gold);
}

.nav-cta,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.78rem 1.05rem;
    border: 1px solid var(--espresso);
    border-radius: 6px;
    background: var(--espresso);
    color: #fff;
    font-weight: 700;
    text-align: center;
}

.button.ghost {
    background: transparent;
    color: var(--espresso);
}

.button.small {
    min-height: 40px;
    padding: 0.58rem 0.8rem;
    font-size: 0.92rem;
}

.button.primary:hover,
.nav-cta:hover {
    background: #342823;
}

.button.ghost:hover {
    border-color: var(--gold);
    color: var(--ink);
}

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--paper);
}

.nav-toggle span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    background: var(--espresso);
}

.eyebrow {
    margin: 0 0 0.8rem;
    color: var(--gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: 0;
}

h1 {
    font-size: 4rem;
}

h2 {
    font-size: 2.45rem;
}

h3 {
    font-size: 1.35rem;
}

p {
    margin: 0;
    color: rgba(22, 20, 18, 0.72);
}

.hero {
    min-height: calc(100svh - 78px);
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    align-items: stretch;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(90deg, var(--ivory), #f3e9e3);
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.35rem;
    padding: 5rem max(1.25rem, calc((100vw - 1180px) / 2)) 5rem 7vw;
}

.hero-copy p:not(.eyebrow) {
    max-width: 36rem;
    font-size: 1.12rem;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-image {
    min-height: 520px;
}

.hero-image img {
    width: 100%;
    height: 100%;
    min-height: inherit;
    object-fit: cover;
}

.section,
.page-hero,
.booking-shell {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.section {
    padding: 5rem 0;
}

.page-hero {
    padding: 4.2rem 0 2.8rem;
}

.page-hero.compact {
    max-width: 850px;
}

.page-hero p {
    margin-top: 1rem;
    font-size: 1.08rem;
}

.intro-band {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: end;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 2rem;
}

.text-link {
    color: var(--espresso);
    font-weight: 800;
    border-bottom: 1px solid var(--gold);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.service-card,
.treatment-row,
.portfolio-card,
.gallery-item,
.admin-panel,
.confirmation-card,
.contact-panel,
.login-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
}

.service-card {
    overflow: hidden;
}

.service-card img {
    width: 100%;
    aspect-ratio: 1.1 / 1;
    object-fit: cover;
}

.service-card > div {
    display: grid;
    gap: 0.8rem;
    padding: 1rem;
}

.service-card span,
.card-meta span,
.price-table small,
.admin-list span {
    color: rgba(22, 20, 18, 0.62);
    font-size: 0.9rem;
}

.card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.editorial-gallery,
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.gallery-item,
.portfolio-card {
    position: relative;
    overflow: hidden;
}

.gallery-item img,
.portfolio-card img {
    width: 100%;
    aspect-ratio: 1 / 1.18;
    object-fit: cover;
    transition: transform 220ms ease;
}

.gallery-item:hover img,
.portfolio-card:hover img {
    transform: scale(1.035);
}

.gallery-item span,
.portfolio-card span {
    position: absolute;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    color: #fff;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
    font-weight: 800;
}

.split-section,
.artist-section,
.contact-strip,
.price-layout,
.contact-page,
.booking-shell,
.admin-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: start;
}

.feature-list {
    display: grid;
    gap: 0.75rem;
}

.feature-list div,
.testimonial-grid figure,
.faq-item,
.notice,
.review-box {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 1rem;
}

.feature-list strong,
.feature-list span {
    display: block;
}

.feature-list span {
    color: rgba(22, 20, 18, 0.66);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.testimonial-grid figure {
    margin: 0;
}

blockquote {
    margin: 0 0 1rem;
    font-family: var(--serif);
    font-size: 1.45rem;
    line-height: 1.25;
}

.artist-section {
    align-items: center;
    background: var(--espresso);
    color: #fff;
    width: 100%;
    max-width: none;
    padding: 5rem max(1rem, calc((100vw - 1180px) / 2));
}

.artist-section p {
    color: rgba(255, 255, 255, 0.76);
}

.artist-section .button.ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.45);
    margin-top: 1.2rem;
}

.artist-image img {
    width: min(360px, 100%);
    border-radius: 50%;
    background: var(--cream);
}

.contact-strip {
    align-items: center;
    border-top: 1px solid var(--line);
}

.rounded-media {
    width: 100%;
    border-radius: 8px;
    object-fit: cover;
}

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

.category-block {
    display: grid;
    grid-template-columns: 0.42fr 1fr;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.treatment-items {
    display: grid;
    gap: 0.85rem;
}

.treatment-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.8rem;
}

.treatment-row img {
    width: 110px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

.price-layout {
    grid-template-columns: minmax(0, 1fr) 360px;
}

.price-table {
    display: grid;
    gap: 0.5rem;
    margin: 1rem 0 2rem;
}

.price-table div {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 0.95rem 0;
    border-bottom: 1px solid var(--line);
}

.price-table small {
    display: block;
}

.price-source {
    position: sticky;
    top: 96px;
    border-left: 1px solid var(--line);
    padding-left: 1.2rem;
}

.price-source img {
    border-radius: 8px;
    border: 1px solid var(--line);
}

.filter-bar {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.2rem;
}

.filter-bar button {
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    padding: 0.6rem 0.85rem;
}

.filter-bar button.active {
    border-color: var(--gold);
    background: var(--cream);
}

.booking-shell {
    grid-template-columns: minmax(0, 1fr) 340px;
    padding: 2rem 0 5rem;
}

.booking-form,
.booking-summary {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    padding: 1rem;
}

.booking-summary {
    position: sticky;
    top: 96px;
}

.booking-summary dl,
.confirmation-card dl {
    display: grid;
    gap: 0.8rem;
    margin: 1.2rem 0 0;
}

.booking-summary div,
.confirmation-card dl div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.65rem;
}

.booking-steps {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.35rem;
    padding: 0;
    margin: 0 0 1.3rem;
    list-style: none;
}

.booking-steps li {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: rgba(22, 20, 18, 0.62);
    font-size: 0.78rem;
    text-align: center;
}

.booking-steps li.active {
    border-color: var(--gold);
    color: var(--ink);
    background: var(--cream);
}

.booking-panel {
    display: none;
}

.booking-panel.active {
    display: grid;
    gap: 1rem;
}

.choice-grid,
.addon-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
}

.choice-card,
.addon-card {
    display: grid;
    gap: 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    padding: 0.75rem;
    cursor: pointer;
}

.choice-card:has(input:checked),
.addon-card:has(input:checked) {
    border-color: var(--gold);
    box-shadow: 0 0 0 2px rgba(184, 154, 104, 0.15);
}

.choice-card img {
    width: 100%;
    aspect-ratio: 1.55 / 1;
    object-fit: cover;
    border-radius: 6px;
}

.choice-card input,
.addon-card > input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.addon-card small {
    color: rgba(22, 20, 18, 0.62);
}

.form-grid,
.admin-form,
.settings-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
}

.field {
    display: grid;
    gap: 0.35rem;
    font-weight: 800;
}

.field.full,
.settings-form .full {
    grid-column: 1 / -1;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.check-row input {
    width: auto;
    min-height: auto;
    margin-top: 0.25rem;
}

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

.slot-grid button {
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
}

.slot-grid button.selected {
    border-color: var(--gold);
    background: var(--cream);
}

.booking-nav {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.form-status {
    min-height: 1.4rem;
}

.narrow {
    max-width: 760px;
}

.legal-copy {
    max-width: 820px;
}

.legal-copy h2 {
    margin: 1.8rem 0 0.55rem;
    font-size: 1.8rem;
}

.faq-item + .faq-item {
    margin-top: 0.75rem;
}

.faq-item summary {
    cursor: pointer;
    font-weight: 800;
}

.contact-page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-panel {
    padding: 1.2rem;
}

.notice {
    margin-bottom: 1rem;
}

.notice.success {
    border-color: rgba(54, 118, 74, 0.3);
    background: #f1f8f2;
}

.notice.error {
    border-color: rgba(163, 54, 54, 0.3);
    background: #fff1f1;
}

.site-footer {
    background: var(--ink);
    color: #fff;
    padding: 3rem max(1rem, calc((100vw - 1180px) / 2)) calc(3rem + env(safe-area-inset-bottom));
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-grid h2 {
    font-family: var(--sans);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
}

.footer-grid a {
    display: block;
    margin: 0.35rem 0;
}

.footer-logo {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    margin-bottom: 1rem;
}

.footer-small {
    margin-top: 2rem;
    font-size: 0.88rem;
}

.mobile-booking-cta {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(22, 20, 18, 0.86);
}

.lightbox img {
    max-height: 86vh;
    border-radius: 8px;
}

.lightbox button {
    position: fixed;
    top: 1rem;
    right: 1rem;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
    background: #fff;
}

.login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: var(--cream);
}

.login-card {
    width: min(420px, 100%);
    display: grid;
    gap: 1rem;
    padding: 1.4rem;
}

.login-card img {
    border-radius: 50%;
    margin: 0 auto;
}

.admin-body {
    background: #f4efea;
}

.admin-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 245px;
    padding: 1rem;
    background: var(--espresso);
    color: #fff;
}

.admin-brand {
    display: block;
    font-family: var(--serif);
    font-size: 1.35rem;
    margin-bottom: 1rem;
}

.admin-sidebar nav {
    display: grid;
    gap: 0.25rem;
}

.admin-sidebar a {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 0.55rem 0.7rem;
    border-radius: 6px;
    color: rgba(255, 255, 255, 0.82);
}

.admin-sidebar a:hover {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
}

.admin-main {
    margin-left: 245px;
    padding: 1.2rem;
}

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

.admin-topbar h1 {
    font-size: 2.1rem;
}

.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-stats div,
.admin-panel {
    padding: 1rem;
}

.admin-stats div {
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
}

.admin-stats span,
.admin-stats small {
    display: block;
    color: rgba(22, 20, 18, 0.62);
}

.admin-stats strong {
    display: block;
    font-family: var(--serif);
    font-size: 2rem;
    line-height: 1.1;
}

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

.admin-list {
    display: grid;
    gap: 0.65rem;
}

.admin-list > a,
.admin-list > div {
    display: grid;
    gap: 0.2rem;
    border-bottom: 1px solid var(--line);
    padding-bottom: 0.6rem;
}

.admin-filter,
.inline-form {
    display: grid;
    grid-template-columns: 1fr 180px auto;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.admin-table th,
.admin-table td {
    border-bottom: 1px solid var(--line);
    padding: 0.75rem;
    text-align: left;
    vertical-align: top;
}

.status-pill {
    display: inline-flex;
    padding: 0.24rem 0.5rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--cream);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.detail-grid div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.8rem;
}

.detail-grid strong,
.detail-grid span {
    display: block;
}

.admin-clean-list {
    padding-left: 1.2rem;
}

.mini-form button {
    border: 0;
    border-bottom: 1px solid var(--gold);
    background: transparent;
    padding: 0;
    font-weight: 800;
}

.availability-table {
    display: grid;
    gap: 0.6rem;
}

.availability-table > div {
    display: grid;
    grid-template-columns: 150px repeat(5, minmax(90px, 1fr));
    gap: 0.5rem;
    align-items: center;
}

.image-list img {
    width: 90px;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 6px;
}

@media (max-width: 980px) {
    h1 {
        font-size: 3rem;
    }

    h2 {
        font-size: 2.05rem;
    }

    .hero,
    .intro-band,
    .split-section,
    .artist-section,
    .contact-strip,
    .price-layout,
    .booking-shell,
    .category-block,
    .contact-page,
    .admin-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        padding: 3.2rem 1rem;
    }

    .hero-image {
        min-height: 360px;
    }

    .service-grid,
    .editorial-gallery,
    .portfolio-grid,
    .testimonial-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .price-source,
    .booking-summary {
        position: static;
    }

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

    .admin-sidebar {
        position: static;
        width: auto;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-stats,
    .detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    body {
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    h1 {
        font-size: 2.35rem;
    }

    h2 {
        font-size: 1.78rem;
    }

    .site-header {
        min-height: 68px;
        padding: 0.65rem 1rem;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        position: fixed;
        top: 68px;
        left: 0;
        right: 0;
        display: none;
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0.6rem 1rem 1rem;
        background: var(--paper);
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow);
    }

    .site-nav.open {
        display: grid;
    }

    .site-nav a {
        border-bottom: 1px solid var(--line);
    }

    .nav-cta {
        margin-top: 0.7rem;
    }

    .hero-copy {
        padding: 2.5rem 1rem;
    }

    .hero-actions,
    .contact-actions,
    .booking-nav {
        flex-direction: column;
    }

    .section {
        padding: 3.2rem 0;
    }

    .section-heading {
        display: grid;
        align-items: start;
    }

    .service-grid,
    .editorial-gallery,
    .portfolio-grid,
    .testimonial-grid,
    .choice-grid,
    .addon-grid,
    .form-grid,
    .admin-form,
    .settings-form,
    .admin-stats,
    .detail-grid {
        grid-template-columns: 1fr;
    }

    .treatment-row {
        grid-template-columns: 82px 1fr;
    }

    .treatment-row .button {
        grid-column: 1 / -1;
    }

    .treatment-row img {
        width: 82px;
    }

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

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

    .mobile-booking-cta {
        position: fixed;
        left: 1rem;
        right: 1rem;
        bottom: calc(0.75rem + env(safe-area-inset-bottom));
        z-index: 120;
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 50px;
        border-radius: 6px;
        background: var(--espresso);
        color: #fff;
        font-weight: 800;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    }

    .admin-filter,
    .inline-form,
    .availability-table > div {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 380px) {
    h1 {
        font-size: 2.05rem;
    }

    .brand span {
        font-size: 1rem;
    }

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

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
