/* Design tokens */
:root {
    --ink: #25212b;
    --muted: #655e6d;
    --brand: #f700a7;
    --brand-dark: #b6007a;
    --brand-hover: #950064;
    --paper: #ffffff;
    --canvas: #f6f5f8;
    --soft: #f5eaf2;
    --line: #e1dbe5;
    --line-accent: #e4bfd9;
    --hero-middle: #f8edf6;
    --hero-end: #f4e3f2;
    --about: #efeaf3;
    --footer: #ede9f0;
    --pill: #f9e2f2;
    --card-hover: #d887c0;
    --max: 1180px;
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 112px;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    color: var(--ink);
    background: var(--canvas);
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* Grow the document content; the footer stays in normal flow on long pages. */
body > main {
    flex: 1 0 auto;
    width: 100%;
}

body > header,
body > footer {
    flex-shrink: 0;
}

body.admin-bar {
    min-height: calc(100vh - 32px);
    min-height: calc(100dvh - 32px);
}

@media (max-width: 782px) {
    body.admin-bar {
        min-height: calc(100vh - 46px);
        min-height: calc(100dvh - 46px);
    }
}

a {
    color: inherit;
    text-underline-offset: 4px;
}

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

button, input, textarea {
    font: inherit;
}

h1, h2, h3 {
    font-weight: 650;
    line-height: 1.13;
    letter-spacing: -.045em;
    overflow-wrap: break-word;
}

h2 {
    margin: 0 0 24px;
    font-size: clamp(30px, 3.5vw, 47px);
}

h3 {
    margin: 0 0 16px;
    font-size: 29px;
}

p {
    margin: 0 0 18px;
}

:focus-visible {
    outline: 3px solid var(--brand-dark);
    outline-offset: 5px;
}

.wrap {
    width: min(calc(100% - 64px), var(--max));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 12px 20px;
    background: var(--paper);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: none;
}

.eyebrow {
    margin-bottom: 20px;
    color: var(--brand-dark);
    font-size: 13px;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: .12em;
}

.lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 20px;
    line-height: 1.65;
}

.muted {
    color: var(--muted);
}

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
}

.admin-bar .site-header {
    top: 32px;
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 30px;
}

.brand {
    margin-right: auto;
    flex-shrink: 0;
}

.custom-logo-link {
    display: block;
    max-width: 185px;
}

.custom-logo {
    width: 185px;
    max-height: 70px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.main-nav ul {
    display: flex;
    gap: 26px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav a {
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

.main-nav a:hover {
    color: var(--brand-dark);
}

.main-nav .has-children > a::after {
    content: " ▾";
    color: var(--brand-dark);
}

.main-nav .sub-menu {
    display: block;
    position: absolute;
    min-width: 250px;
    top: 100%;
    left: 0;
    padding: 16px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 15px 35px #25212b18;
}

.main-nav .sub-menu li + li {
    margin-top: 10px;
}

.main-nav li {
    position: relative;
}

.main-nav li:not(:hover):not(:focus-within) > .sub-menu {
    display: none;
}

.menu-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 8px 0 8px 12px;
    border: 0;
    background: none;
    cursor: pointer;
    font-size: 13px;
}

.menu-toggle span:first-child {
    font-size: 25px;
}

/* First screen */
.hero {
    padding: 54px 0 65px;
    background: linear-gradient(110deg, var(--canvas) 0%, var(--hero-middle) 58%, var(--hero-end) 100%);
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 70px;
    align-items: center;
}

.hero-copy {
    padding-block: 26px;
}

.hero h1 {
    max-width: 600px;
    margin: 0 0 28px;
    font-size: clamp(43px, 4.3vw, 61px);
    line-height: 1.09;
}

.hero-title-line {
    display: block;
}

.hero .lead {
    max-width: 510px;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 34px;
}

.btn {
    min-height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    padding: 13px 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: var(--brand-dark);
    color: #fff;
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
    transition: background-color .18s ease;
}

.btn:hover {
    background: var(--brand-hover);
}

.btn-outline {
    border-color: var(--line);
    background: var(--paper);
    color: var(--ink);
}

.btn-outline:hover {
    border-color: var(--brand-dark);
    background: var(--soft);
    color: var(--brand-dark);
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    color: var(--brand-dark);
    font-size: 15px;
    font-weight: 650;
    text-decoration: none;
}

.text-link:hover {
    text-decoration: underline;
}

.hero-quicklinks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 34px;
}

.hero-quicklinks a {
    color: var(--brand-dark);
    font-size: 14px;
    font-weight: 650;
    text-decoration-thickness: 1px;
}

.hero-quicklinks a:hover {
    color: var(--brand-hover);
}

.hero-visual {
    position: relative;
    min-width: 0;
}

.hero-image {
    width: 100%;
    height: 560px;
    object-fit: cover;
    border-radius: 100px 12px 12px 12px;
}

.visual-caption {
    position: absolute;
    left: -24px;
    bottom: 26px;
    max-width: 250px;
    padding: 24px 26px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.25;
    letter-spacing: -.035em;
}

/* Sections and cards */
.section {
    padding: 88px 0;
}

.section-soft {
    background: var(--soft);
}

.section-head {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    align-items: end;
    gap: 80px;
    margin-bottom: 42px;
}

.section-head h2 {
    max-width: 530px;
    margin-bottom: 0;
}

.section-head > p {
    max-width: 500px;
    margin-bottom: 4px;
    color: var(--muted);
    font-size: 16px;
}

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

.category-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease;
}

.category-card:hover {
    border-color: var(--card-hover);
    box-shadow: 0 12px 30px #b6007a10;
}

.category-card p {
    color: var(--muted);
    font-size: 15px;
}

.category-card .text-link {
    margin-top: auto;
    padding-top: 12px;
}

.card-number {
    margin-bottom: 35px;
    color: var(--brand-dark);
    font-size: 11px;
    font-weight: 650;
}

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

.service-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.service-card h2, .service-card h3 {
    font-size: 28px;
}

.service-card h2 a, .service-card h3 a {
    text-decoration: none;
}

.service-card p {
    color: var(--muted);
    font-size: 14px;
}

.service-card .text-link {
    margin-top: auto;
    padding-top: 15px;
}

.about-section {
    background: var(--about);
    color: var(--ink);
}

.about-section .eyebrow {
    color: var(--brand-dark);
}

.about-section .lead {
    color: var(--muted);
}

.about-grid {
    display: grid;
    grid-template-columns: .4fr 1fr;
    gap: 100px;
}

.about-grid h2 {
    max-width: 720px;
}

.about-grid .lead {
    margin-bottom: 0;
    font-size: 18px;
}

.about-grid .lead a {
    color: var(--brand-dark);
    font-weight: 650;
    text-decoration-thickness: 1px;
}

/* Contact cards */
.locations {
    display: grid;
    gap: 18px;
}

.location-card {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    padding: 34px 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
}

.location-card h3 {
    margin: 16px 0;
    font-size: 27px;
}

.location-card h3 a {
    text-decoration: none;
}

.location-copy > p:not(.address) {
    max-width: 520px;
    font-size: 14px;
    color: var(--muted);
}

.pill {
    display: inline-block;
    padding: 7px 14px;
    border-radius: 99px;
    background: var(--pill);
    color: var(--brand-dark);
    font-size: 16px;
    font-weight: 650;
}

.address {
    font-size: 16px;
    font-weight: 500;
}

.address span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
}

.location-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 9px;
    border-left: 1px solid var(--line);
    padding-left: 38px;
}

.hours {
    color: var(--ink);
    margin-bottom: 6px;
    font-size: 16px;
    font-weight: 650;
}

.contact-phone {
    font-size: 19px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.contact-phone:hover {
    color: var(--brand-dark);
}

.location-meta .btn {
    margin-top: 15px;
}

/* Inner pages and rich content */
.page-hero {
    padding: 58px 0;
    background: linear-gradient(115deg, var(--canvas), var(--soft));
}

.page-hero h1 {
    max-width: 950px;
    font-size: clamp(32px, 4vw, 48px);
    margin: 0 0 24px;
}

.page-hero .lead:last-child {
    margin-bottom: 0;
}

.back-link {
    display: inline-block;
    margin-bottom: 25px;
    color: var(--muted);
    font-size: 13px;
    text-decoration: none;
}

.related-locations {
    margin-top: 62px;
    padding-top: 52px;
    border-top: 1px solid var(--line);
}

.related-locations > p {
    max-width: 700px;
    margin-bottom: 30px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 42px;
}

.product-card {
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--paper);
}

.product-image {
    display: block;
    background: var(--soft);
}

.product-image img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
}

.product-copy {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 26px;
}

.product-copy h2 {
    margin-bottom: 12px;
    color: var(--ink);
    font-size: 24px;
}

.product-copy h2 a {
    text-decoration: none;
}

.product-copy p:not(.eyebrow) {
    color: var(--muted);
    font-size: 14px;
}

.product-copy .product-brand {
    margin-bottom: 14px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: normal;
}

.product-copy h2 a:hover {
    color: var(--brand-dark);
}

.product-copy .product-format {
    align-self: flex-start;
    padding: 5px 12px;
    border-radius: 20px;
    background: var(--soft);
    font-weight: 650;
}

.product-copy .product-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-copy > .text-link {
    margin-top: auto;
    padding-top: 12px;
}

.product-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 22px;
    font-size: 15px;
}

/* Product navigation and details are separate from the service-page lead. */
.product-page-hero {
    padding-bottom: 46px;
}

.product-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 15px;
}

.product-breadcrumbs a {
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.product-short-description {
    margin-top: 0;
}

.product-availability-link {
    display: inline-block;
    color: var(--brand-dark);
    font-weight: 650;
    text-decoration-thickness: 1px;
}

.product-availability-text + .product-availability-link {
    margin-left: 10px;
}

.product-availability-link:hover {
    color: var(--brand-hover);
}

.service-warning {
    margin: 32px 0;
    padding: 24px;
    border-left: 4px solid var(--brand);
    border-radius: var(--radius);
    background: var(--soft);
}

.product-detail, .location-detail {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 70px;
    align-items: start;
}

/* Keep descriptions below the photo; mobile reading order is photo, specs, description. */
.product-detail {
    grid-template-areas: "photo details" "description details";
    grid-template-rows: auto 1fr;
    row-gap: 28px;
}

.product-photo {
    grid-area: photo;
}

.product-summary {
    grid-area: details;
    min-width: 0;
}

.product-summary .specs {
    grid-template-columns: minmax(105px, 140px) minmax(0, 1fr);
    margin: 0;
}

.product-summary dd {
    overflow-wrap: anywhere;
}

.product-detail > .product-description {
    grid-area: description;
    margin: 0;
    min-width: 0;
}

.product-detail-text {
    display: block;
}

.product-detail-text .product-summary {
    margin-bottom: 28px;
}

.product-photo img, .location-photo img, .service-image img {
    border-radius: var(--radius);
}

.location-photo {
    margin-bottom: 35px;
}

.service-image {
    max-width: 850px;
    margin-bottom: 40px;
}

.contact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 32px;
    border-radius: var(--radius);
    background: var(--soft);
}

.contact-box h2, .contact-box p {
    margin-bottom: 0;
}

.contact-box h2 {
    font-size: clamp(26px, 3vw, 36px);
}

.contact-box .btn {
    margin-top: 15px;
}

.feature-list, .link-list {
    list-style: none;
    margin: 0 0 38px;
    padding: 0;
}

.feature-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.link-list li {
    padding: 12px 0;
}

.link-list a {
    color: var(--brand-dark);
}

.prose {
    max-width: 820px;
    overflow-wrap: break-word;
}

.prose h2, .prose h3 {
    margin-top: 35px;
}

.prose h2 {
    font-size: clamp(27px, 3vw, 34px);
}

.prose h3 {
    font-size: 25px;
}

.related-locations > h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.service-note {
    padding: 22px 24px;
    border-left: 4px solid var(--brand-dark);
    border-radius: 0 12px 12px 0;
    background: var(--soft);
}

.service-note strong {
    color: var(--ink);
}

.prose img {
    height: auto;
}

.prose iframe {
    max-width: 100%;
}

.prose table {
    display: block;
    overflow-x: auto;
    max-width: 100%;
}

.specs {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 15px;
    padding-block: 18px;
    border-block: 1px solid var(--line);
}

.specs dt {
    font-weight: 600;
}

.specs dd {
    margin: 0;
}

.entry {
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.pagination {
    margin-top: 35px;
}

.nav-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.page-numbers {
    padding: 8px 14px;
    border: 1px solid var(--line);
    border-radius: 6px;
    text-decoration: none;
}

.page-numbers.current {
    background: var(--brand-dark);
    color: #fff;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* Footer */
.site-footer {
    padding: 45px 0;
    border-top: 1px solid var(--line);
    background: var(--footer);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 45px;
    align-items: start;
}

.footer-brand p {
    max-width: 360px;
    margin-top: 20px;
    margin-bottom: 0;
    color: var(--muted);
    font-size: 12px;
}

.site-footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.site-footer .sub-menu {
    margin: 9px 0 8px;
    padding-left: 14px;
    border-left: 1px solid var(--line-accent);
    gap: 8px;
}

.site-footer .sub-menu a {
    font-size: 12px;
}

.site-footer nav a {
    font-size: 13px;
    text-decoration: none;
}

.copyright {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 22px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

/* Responsive layout */
@media (max-width: 1060px) {
    .header-inner {
        gap: 22px;
    }

    .hero-grid {
        gap: 40px;
    }

    .hero-image {
        height: 510px;
    }

    .section-head {
        gap: 45px;
    }

    .service-card {
        padding: 26px;
    }

}

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

    .wrap {
        width: min(calc(100% - 36px), var(--max));
    }

    .header-inner {
        min-height: 76px;
        flex-wrap: wrap;
        gap: 0;
    }

    .custom-logo-link, .custom-logo {
        width: 150px;
    }

    .menu-toggle {
        display: none;
    }

    .main-nav {
        width: 100%;
        order: 4;
        padding: 0 0 18px;
    }

    .main-nav > ul {
        flex-direction: column;
        gap: 14px;
    }

    .main-nav .sub-menu {
        display: flex !important;
        position: static;
        flex-direction: column;
        gap: 10px;
        min-width: 0;
        margin-top: 10px;
        padding: 10px 14px;
        border: 0;
        border-left: 2px solid var(--line-accent);
        border-radius: 0;
        box-shadow: none;
    }

    .main-nav .sub-menu li + li {
        margin-top: 0;
    }

    .main-nav a {
        font-size: 12px;
    }

    .js .menu-toggle {
        display: inline-flex;
    }

    .js .main-nav {
        display: none;
    }

    .js .main-nav.is-open {
        display: block;
    }

    .hero {
        padding: 24px 0 46px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .hero-copy {
        padding-bottom: 5px;
    }

    .hero h1 {
        max-width: 640px;
        font-size: clamp(42px, 8vw, 60px);
    }

    .hero-image {
        height: 440px;
        border-top-left-radius: 65px;
    }

    .visual-caption {
        left: 18px;
        bottom: 18px;
        max-width: 260px;
        font-size: 20px;
    }

    .hero-quicklinks {
        margin-top: 26px;
    }

    .section {
        padding: 58px 0;
    }

    .section-head, .about-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 28px;
    }

    .about-grid {
        margin-bottom: 0;
    }

    .about-grid > .eyebrow {
        margin-bottom: 0;
    }

    .service-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card .card-number {
        margin-bottom: 20px;
    }

    .location-card {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 28px;
    }

    .location-meta {
        padding: 22px 0 0;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .location-detail, .product-detail {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .product-detail {
        grid-template-areas: "photo" "details" "description";
        grid-template-rows: auto;
        row-gap: 28px;
    }

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

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

    .copyright {
        grid-column: 1 / -1;
    }

    .admin-bar .site-header {
        top: 46px;
    }

}

@media (max-width: 500px) {
    .hero-actions {
        gap: 18px;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero .lead {
        font-size: 17px;
    }

    .hero-image {
        height: 370px;
    }

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

    .category-card {
        padding: 28px;
    }

    .card-number {
        margin-bottom: 22px;
    }

    .category-card h3 {
        font-size: 29px;
    }

    .page-hero {
        padding: 38px 0;
    }

    .page-hero h1 {
        font-size: 34px;
    }

    .location-card {
        padding: 24px;
    }

    .location-card h3 {
        font-size: 26px;
    }

    .contact-phone {
        font-size: 18px;
    }

    .contact-box {
        padding: 26px;
    }

    .related-locations {
        margin-top: 42px;
        padding-top: 35px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .admin-bar .site-header {
        top: 0;
    }

}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none !important;
    }

}
