/* Production category page — follows the accepted homepage visual system. */
.category-page {
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Inter', Arial, sans-serif;
    --category-ivory: #fcfaf8;
    --category-charcoal: #2c2a28;
    --category-gold: #b7936b;
    --category-gold-hover: #a3815b;
    --category-beige: #f4f0ea;
    --category-beige-light: #f9f7f4;
    --category-border: rgba(229, 231, 235, 0.8);
    --category-footer: #1a1a1a;
    --category-container: 80rem;
    background: var(--category-ivory);
    color: var(--category-charcoal);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.5;
}

.category-page h1,
.category-page h2,
.category-page h3 {
    color: var(--category-charcoal);
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1.2;
}

.category-page .container {
    width: 100%;
    max-width: var(--category-container);
    padding-inline: 2rem;
}

.category-page .button,
.category-page button.button {
    min-height: 0;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    border: 1px solid var(--category-gold);
    border-radius: 0.375rem;
    background: var(--category-gold);
    box-shadow: 0 4px 6px -1px rgba(183, 147, 107, 0.2), 0 2px 4px -2px rgba(183, 147, 107, 0.2);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.25;
    text-transform: none;
    transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease;
}

.category-page .button:hover {
    border-color: var(--category-gold-hover);
    background: var(--category-gold-hover);
    color: #fff;
    transform: none;
}

/* Shared header treatment, scoped so the accepted homepage stays untouched. */
.category-page .site-header {
    position: sticky;
    padding-block: 1rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    background: rgba(252, 250, 248, 0.96);
    backdrop-filter: blur(12px);
}

.category-page .site-header.is-scrolled {
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.category-page .site-header__inner {
    min-height: 2.9921875rem;
    padding-block: 0;
    gap: 1rem;
}

.category-page .brand__wordmark,
.category-page .site-footer__wordmark {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
    color: var(--category-charcoal);
    line-height: 1;
}

.category-page .brand__wordmark strong,
.category-page .site-footer__wordmark strong {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    letter-spacing: 0.08em;
}

.category-page .brand__wordmark small,
.category-page .site-footer__wordmark em {
    margin-top: 0.25rem;
    color: #6b7280;
    font-family: var(--font-body);
    font-size: 0.65rem;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.category-page .site-nav__list {
    gap: 2rem;
}

.category-page .site-nav a:not(.button) {
    padding-block: 0.5rem;
    color: rgba(44, 42, 40, 0.8);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
}

.category-page .site-nav a:not(.button)::after,
.category-page .nav-caret {
    display: none;
}

.category-page .site-nav a:not(.button):hover,
.category-page .site-nav a[aria-current='page']:not(.button) {
    color: var(--category-gold);
}

.category-page .site-nav .button--small {
    width: auto;
    margin: 0;
    padding: 0.625rem 1.25rem;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.category-page .site-nav .icon {
    width: 1rem;
    height: 1rem;
}

.category-page .breadcrumbs {
    border-bottom: 1px solid rgba(229, 231, 235, 0.7);
    background: var(--category-ivory);
}

.category-page .breadcrumbs__list {
    gap: 0.5rem;
    padding-block: 0.9rem;
    color: rgba(44, 42, 40, 0.6);
    font-size: 0.75rem;
}

.category-page .breadcrumbs a {
    text-decoration: none;
}

.category-page .breadcrumbs li + li::before {
    color: var(--category-gold);
    content: '→';
}

.category-eyebrow {
    color: var(--category-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

/* Category hero */
.category-hero {
    padding-block: 3.5rem;
}

.category-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(30rem, 1.1fr);
    align-items: center;
    gap: clamp(3rem, 5vw, 4.5rem);
}

.category-hero__content {
    max-width: 34rem;
}

.category-hero__content .category-eyebrow {
    display: flex;
    align-items: center;
    margin-bottom: 1.25rem;
}

.category-hero__content .category-eyebrow::before {
    width: 2rem;
    height: 1px;
    margin-right: 0.75rem;
    background: currentColor;
    content: '';
}

.category-hero h1 {
    margin-bottom: 1.25rem;
    font-size: clamp(3.25rem, 4.2vw, 3.75rem);
    line-height: 1.04;
}

.category-hero__intro {
    max-width: 31rem;
    margin-bottom: 1rem;
    color: var(--category-charcoal);
    font-family: var(--font-display);
    font-size: clamp(1.125rem, 1.6vw, 1.25rem);
    line-height: 1.5;
}

.category-hero__support {
    max-width: 33rem;
    color: rgba(44, 42, 40, 0.68);
    font-size: 0.96875rem;
    line-height: 1.65;
}

.category-hero__media {
    position: relative;
    justify-self: end;
    width: 100%;
    aspect-ratio: 1.48 / 1;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 18px 42px -28px rgba(44, 42, 40, 0.38);
}

.category-hero__media::after {
    position: absolute;
    inset: 0;
    background: rgba(183, 147, 107, 0.04);
    content: '';
    mix-blend-mode: multiply;
    pointer-events: none;
}

.category-hero__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--category-hero-object-position, center 26%);
}

/* Need cues */
.category-needs {
    padding-block: 1.5rem;
    border-block: 1px solid rgba(229, 231, 235, 0.65);
    background: rgba(252, 250, 248, 0.5);
}

.category-needs__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-needs__grid li {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    min-width: 0;
    padding-inline: 1.5rem;
    color: var(--category-charcoal);
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
}

.category-needs__grid li:first-child {
    padding-left: 0;
}

.category-needs__grid li:last-child {
    padding-right: 0;
}

.category-needs__grid li + li {
    border-left: 1px solid rgba(229, 231, 235, 0.85);
}

.category-needs__number {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    place-items: center;
    border: 1px solid rgba(183, 147, 107, 0.3);
    border-radius: 50%;
    background: rgba(183, 147, 107, 0.07);
    color: var(--category-gold);
    font-family: var(--font-display);
    font-size: 1rem;
    line-height: 1;
}

/* Treatment listing */
.category-treatments {
    padding-block: 4.5rem;
    background: var(--category-beige-light);
}

.category-section-heading {
    max-width: 44rem;
    margin-bottom: 2.5rem;
}

.category-section-heading .category-eyebrow {
    margin-bottom: 0.75rem;
}

.category-section-heading h2 {
    margin-bottom: 0.85rem;
    font-size: clamp(2.375rem, 3.3vw, 2.75rem);
}

.category-section-heading > p:last-child {
    color: rgba(44, 42, 40, 0.68);
    font-size: 1rem;
    line-height: 1.7;
}

.category-treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.category-treatment-grid > li {
    min-width: 0;
}

.category-treatment-grid > li:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.category-treatment-card {
    display: flex;
    height: 100%;
    min-width: 0;
    flex-direction: column;
    padding: 1.75rem;
    border: 1px solid rgba(221, 216, 209, 0.72);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 12px 30px -26px rgba(44, 42, 40, 0.4);
    transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.category-treatment-card:hover {
    border-color: rgba(183, 147, 107, 0.45);
    box-shadow: 0 16px 34px -26px rgba(44, 42, 40, 0.48);
    transform: translateY(-1px);
}

.category-treatment-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
}

.category-treatment-card__brand {
    margin-bottom: 0.65rem;
    color: var(--category-gold);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.11em;
    line-height: 1.3;
    text-transform: uppercase;
}

.category-treatment-card h3 {
    font-size: clamp(1.55rem, 2.2vw, 1.75rem);
    line-height: 1.15;
}

.category-treatment-card__number {
    flex: 0 0 auto;
    color: rgba(44, 42, 40, 0.22);
    font-family: var(--font-display);
    font-size: 1.1rem;
    line-height: 1;
}

.category-treatment-card__keywords {
    margin-top: 1.1rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(229, 231, 235, 0.75);
    color: var(--category-gold-hover);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.45;
}

.category-treatment-card__copy {
    flex: 1 1 auto;
    margin-top: 1.1rem;
    color: rgba(44, 42, 40, 0.7);
    font-size: 0.9375rem;
    line-height: 1.65;
}

.category-treatment-card__copy p + p {
    margin-top: 0.65rem;
}

.category-treatment-card__footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-top: 1.35rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(229, 231, 235, 0.75);
}

.category-treatment-card__facts {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
}

.category-treatment-card__facts > div {
    display: flex;
    align-items: center;
    min-width: 0;
}

.category-treatment-card__facts > div + div {
    margin-left: 0.85rem;
    padding-left: 0.85rem;
    border-left: 1px solid rgba(44, 42, 40, 0.16);
}

.category-treatment-card__facts dd {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin: 0;
    color: var(--category-charcoal);
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.category-treatment-card__facts .icon {
    width: 0.95rem;
    height: 0.95rem;
    color: var(--category-gold);
}

.category-treatment-card__link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.25rem;
    color: var(--category-gold-hover);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.category-treatment-card__link .icon {
    width: 1rem;
    height: 1rem;
    transition: transform 180ms ease;
}

.category-treatment-card__link:hover .icon {
    transform: translateX(0.2rem);
}

/* Consultation CTA */
.category-consultation {
    padding-block: 0 4.5rem;
    background: var(--category-beige-light);
}

.category-consultation__panel {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2.25rem 2.5rem;
    border: 1px solid rgba(221, 216, 209, 0.65);
    border-radius: 1.25rem;
    background: var(--category-beige);
    box-shadow: none;
}

.category-consultation__icon {
    display: grid;
    width: 4rem;
    height: 4rem;
    flex: 0 0 4rem;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--category-gold);
}

.category-consultation__icon .icon {
    width: 1.75rem;
    height: 1.75rem;
}

.category-consultation__copy {
    flex: 1 1 auto;
}

.category-consultation__copy .category-eyebrow {
    margin-bottom: 0.65rem;
}

.category-consultation h2 {
    max-width: 37rem;
    margin-bottom: 0.6rem;
    font-size: clamp(1.6rem, 2.1vw, 1.95rem);
}

.category-consultation__copy > p:last-child {
    max-width: 43rem;
    color: rgba(44, 42, 40, 0.68);
    font-size: 0.95rem;
    line-height: 1.65;
}

.category-consultation__action {
    display: flex;
    flex: 0 0 auto;
    align-items: flex-end;
    flex-direction: column;
    gap: 0.85rem;
}

.category-consultation__action strong {
    color: var(--category-gold-hover);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

/* Shared footer treatment, matching the accepted homepage family. */
.category-page .site-footer {
    margin-top: 0;
    padding-block: 5rem 2rem;
    border-top: 1px solid #1f2937;
    background: var(--category-footer);
    color: rgba(255, 255, 255, 0.8);
}

.category-page .site-footer__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem;
}

.category-page .site-footer__wordmark {
    color: #fff;
}

.category-page .site-footer__wordmark strong {
    font-size: 1.875rem;
}

.category-page .site-footer__wordmark em {
    margin-top: 0.375rem;
    color: #9ca3af;
}

.category-page .site-footer__identity > p {
    max-width: 20rem;
    margin-top: 1.5rem;
    color: #9ca3af;
    font-size: 0.875rem;
    line-height: 1.625;
}

.category-page .site-footer__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1.5rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
}

.category-page .site-footer__phone .icon {
    width: 1rem;
    height: 1rem;
    color: var(--category-gold);
}

.category-page .site-footer__heading {
    margin-bottom: 1.5rem;
    color: var(--category-gold);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.category-page .footer-links {
    gap: 1rem;
}

.category-page .footer-links a,
.category-page .site-footer__visit,
.category-page .site-footer__booking {
    color: #d1d5db;
    font-size: 0.875rem;
    line-height: 1.625;
}

.category-page .site-footer__visit address + p,
.category-page .site-footer__booking p + .button {
    margin-top: 1.5rem;
}

.category-page .site-footer__booking > p {
    color: #9ca3af;
}

.category-page .site-footer__booking .button {
    width: 100%;
    padding: 0.75rem 1.5rem;
    border-color: var(--category-gold);
    background: transparent;
    box-shadow: none;
    color: var(--category-gold);
}

.category-page .site-footer__booking .button:hover {
    background: var(--category-gold);
    color: #fff;
}

.category-page .site-footer__bottom {
    margin-top: 4rem;
    padding-top: 2rem;
    border-color: rgba(31, 41, 55, 0.8);
    color: #6b7280;
    font-size: 0.75rem;
}

@media (min-width: 48rem) {
    .category-page .site-header__inner {
        flex-wrap: nowrap;
        padding-block: 0;
    }

    .category-page .nav-toggle {
        display: none;
    }

    .category-page .site-nav {
        position: static;
        display: block;
        width: auto;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .category-page .site-nav__list {
        align-items: center;
        flex-direction: row;
        padding-block: 0;
        border: 0;
    }

    .category-page .site-nav li + li {
        border: 0;
    }
}

@media (max-width: 63.99rem) {
    .category-page .container {
        padding-inline: 1.5rem;
    }

    .category-hero__layout {
        grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
        gap: 2.5rem;
    }

    .category-hero h1 {
        font-size: clamp(3rem, 5.3vw, 3.5rem);
    }

    .category-needs__grid li {
        padding-inline: 1.25rem;
    }

    .category-consultation__panel {
        flex-wrap: wrap;
    }

    .category-consultation__action {
        width: 100%;
        align-items: center;
        justify-content: space-between;
        flex-direction: row;
        padding-left: 5.5rem;
    }

    .category-page .site-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 3rem;
    }
}

@media (max-width: 55.99rem) {
    .category-hero {
        padding-block: 3rem 3.5rem;
    }

    .category-hero__layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .category-hero__content {
        max-width: 42rem;
    }

    .category-hero__media {
        justify-self: stretch;
        width: 100%;
        aspect-ratio: 1.5 / 1;
    }

    .category-hero__media img {
        object-position: var(--category-hero-object-position, center 26%);
    }

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

    .category-needs__grid li {
        padding: 1.25rem;
    }

    .category-needs__grid li:first-child,
    .category-needs__grid li:nth-child(3) {
        padding-left: 0;
        border-left: 0;
    }

    .category-needs__grid li:nth-child(n + 3) {
        border-top: 1px solid rgba(229, 231, 235, 0.85);
    }

    .category-treatment-grid {
        gap: 1.25rem;
    }

    .category-treatment-card__footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-consultation__panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .category-consultation__action {
        padding-left: 0;
    }
}

@media (max-width: 48rem) {
    .category-page .site-header {
        padding-block: 1rem;
    }

    .category-page .site-header__inner {
        min-height: 2.5rem;
        flex-wrap: nowrap;
    }

    .category-page .nav-toggle {
        display: inline-grid;
        width: 2.5rem;
        min-width: 2.5rem;
        height: 2.5rem;
        min-height: 2.5rem;
        padding: 0.5rem;
        place-items: center;
        border: 0;
    }

    .category-page .nav-toggle .icon {
        width: 1.5rem;
        height: 1.5rem;
    }

    .category-page .site-nav {
        position: absolute;
        top: calc(100% + 1px);
        right: 0;
        left: 0;
        display: none;
        width: 100%;
        padding: 1.5rem;
        border: 0;
        border-top: 1px solid rgba(229, 231, 235, 0.7);
        background: var(--category-ivory);
        box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08);
    }

    .category-page .site-nav[data-open] {
        display: block;
    }

    .category-page .site-nav__list {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        padding: 0;
        border: 0;
    }

    .category-page .site-nav li + li {
        border: 0;
    }

    .category-page .site-nav a:not(.button) {
        min-height: 3rem;
        justify-content: flex-start;
        padding-block: 0.75rem;
        font-size: 1rem;
    }

    .category-page .site-nav .button {
        width: 100%;
        margin-top: 1rem;
        padding-block: 0.875rem;
    }

    .category-treatment-grid {
        grid-template-columns: 1fr;
    }

    .category-treatment-grid > li:last-child:nth-child(odd) {
        grid-column: auto;
    }
}

@media (max-width: 39.99rem) {
    .category-page .container {
        padding-inline: 1rem;
    }

    .category-page .breadcrumbs__list {
        flex-wrap: nowrap;
        overflow-x: auto;
        white-space: nowrap;
    }

    .category-hero {
        padding-block: 2.5rem 3rem;
    }

    .category-hero__layout {
        gap: 2rem;
    }

    .category-hero h1 {
        font-size: 2.5rem;
        line-height: 1.05;
    }

    .category-hero__intro {
        font-size: 1.2rem;
    }

    .category-hero__support {
        font-size: 1rem;
        line-height: 1.6;
    }

    .category-hero__media {
        aspect-ratio: 1.32 / 1;
        border-radius: 1.25rem;
    }

    .category-needs {
        padding-block: 0.75rem;
    }

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

    .category-needs__grid li {
        padding: 1rem 0.75rem;
        border-left: 0;
    }

    .category-needs__grid li:nth-child(even) {
        border-left: 1px solid rgba(229, 231, 235, 0.85);
    }

    .category-needs__grid li:nth-child(n + 3) {
        border-top: 1px solid rgba(229, 231, 235, 0.85);
    }

    .category-needs__grid li:first-child,
    .category-needs__grid li:nth-child(3) {
        padding-left: 0;
    }

    .category-needs__grid li:nth-child(2),
    .category-needs__grid li:nth-child(4) {
        padding-right: 0;
    }

    .category-treatments {
        padding-block: 4rem;
    }

    .category-section-heading {
        margin-bottom: 2.5rem;
    }

    .category-section-heading h2 {
        font-size: 2.4rem;
    }

    .category-treatment-card {
        padding: 1.5rem;
    }

    .category-treatment-card h3 {
        font-size: 1.7rem;
    }

    .category-treatment-card__copy {
        font-size: 1rem;
    }

    .category-treatment-card__footer,
    .category-treatment-card__facts {
        width: 100%;
    }

    .category-treatment-card__link {
        width: 100%;
        justify-content: space-between;
    }

    .category-consultation {
        padding-bottom: 4rem;
    }

    .category-consultation__panel {
        align-items: center;
        padding: 2rem 1.5rem;
        text-align: center;
    }

    .category-consultation__action {
        align-items: stretch;
        flex-direction: column;
    }

    .category-consultation .button {
        width: 100%;
    }

    .category-page .site-footer {
        padding-top: 5rem;
    }

    .category-page .site-footer__grid {
        grid-template-columns: 1fr;
    }

    .category-page .site-footer__bottom {
        align-items: flex-start;
        flex-direction: column;
        text-align: left;
    }
}

@media (max-width: 22rem) {
    .category-needs__grid {
        grid-template-columns: 1fr;
    }

    .category-needs__grid li,
    .category-needs__grid li:first-child,
    .category-needs__grid li:nth-child(2),
    .category-needs__grid li:nth-child(3),
    .category-needs__grid li:nth-child(4) {
        padding: 1rem 0;
        border-left: 0;
    }

    .category-needs__grid li + li {
        border-top: 1px solid rgba(229, 231, 235, 0.85);
    }
}

@media (prefers-reduced-motion: reduce) {
    .category-page *,
    .category-page *::before,
    .category-page *::after {
        transition-duration: 0.01ms !important;
    }
}
