/*
Theme Name: Preston Orthodontics
Theme URI: https://prestonorthodontics.co.uk
Author: Preston Orthodontics
Description: Bespoke premium WordPress theme for Preston Orthodontics specialist practice in Preston, Lancashire.
Version: 1.0.0
License: Private
Text Domain: preston-orthodontics
Tags: dental, orthodontics, premium, bespoke
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
    --ivory:          #f9f7f4;
    --cream:          #f1ece4;
    --white:          #ffffff;
    --dark:           #1a1917;
    --charcoal:       #2d2926;
    --bronze:         #b07d56;
    --bronze-light:   #cfa278;
    --sage:           #7a9e82;
    --mid:            #6c6460;
    --light:          #e2dbd2;
    --border:         #ddd5ca;

    --serif:  'Cormorant Garamond', Georgia, 'Times New Roman', serif;
    --sans:   'DM Sans', 'Inter', system-ui, -apple-system, sans-serif;

    --container:  1320px;
    --section-v:  clamp(4.5rem, 9vw, 8rem);
    --gutter:     clamp(1.25rem, 4vw, 3rem);

    --ease:      cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --duration:  0.45s;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--sans);
    font-size: 1rem;
    line-height: 1.75;
    color: var(--charcoal);
    background-color: var(--ivory);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--duration) var(--ease); }
ul, ol { list-style: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }
button { cursor: pointer; border: none; background: none; }

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.01em;
    color: var(--dark);
}
h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); }
h2 { font-size: clamp(2rem, 4vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 2.5vw, 2.2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.75rem); }
h5 { font-size: 1rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
h6 { font-size: 0.8rem; font-family: var(--sans); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }

p { line-height: 1.82; }

.lead {
    font-size: clamp(1.05rem, 1.8vw, 1.25rem);
    line-height: 1.75;
    color: var(--mid);
}

.eyebrow {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 1rem;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.container--narrow {
    max-width: 820px;
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section { padding-block: var(--section-v); }
.section--dark  { background-color: var(--dark); color: var(--ivory); }
.section--dark h1, .section--dark h2, .section--dark h3, .section--dark h4 { color: var(--ivory); }
.section--dark .lead  { color: rgba(255,255,255,0.65); }
.section--dark p      { color: rgba(255,255,255,0.6); }
.section--dark .eyebrow { color: var(--bronze-light); }
.section--dark a      { color: rgba(255,255,255,0.75); }
.section--dark a:hover { color: var(--white); }
.section--cream { background-color: var(--cream); }
.section--white { background-color: var(--white); }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(2rem, 5vw, 4rem); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.25rem, 2vw, 2rem); }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.85em 2em;
    font-family: var(--sans);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 1px;
    transition: all var(--duration) var(--ease);
    cursor: pointer;
    white-space: nowrap;
}

.btn--primary {
    background-color: var(--bronze);
    color: var(--white);
    border: 2px solid var(--bronze);
}
.btn--primary:hover {
    background-color: transparent;
    color: var(--bronze);
}

.btn--outline {
    background-color: transparent;
    color: var(--dark);
    border: 2px solid var(--dark);
}
.btn--outline:hover {
    background-color: var(--dark);
    color: var(--white);
}

.btn--outline-light {
    background-color: transparent;
    color: var(--white);
    border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline-light:hover {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--white);
}

.btn--ghost {
    padding: 0 0 3px;
    color: var(--bronze);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: none;
    transition: opacity var(--duration) var(--ease);
}
.btn--ghost:hover { opacity: 0.55; }

/* ============================================================
   HEADER & NAVIGATION
   ============================================================ */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease), padding var(--duration) var(--ease);
}
.site-header.is-transparent { background: transparent; }
.site-header.is-solid {
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem var(--gutter);
    max-width: var(--container);
    margin-inline: auto;
    transition: padding var(--duration) var(--ease);
}
.is-solid .header-inner { padding-block: 1rem; }

/* Logo */
.site-logo { flex-shrink: 0; z-index: 1001; }
.site-logo a { display: block; line-height: 0; }

.logo-img {
    height: 72px;
    width: auto;
    display: block;
}

/* Solid header (inner pages + scrolled): dark logo visible, white hidden */
.logo-img--white { display: none; }
.logo-img--dark  { display: block; }

/* Transparent header (front page, unscrolled): white logo visible, dark hidden */
.is-transparent .logo-img--white { display: block; }
.is-transparent .logo-img--dark  { display: none; }

/* Smaller logo on scrolled solid header */
.is-solid .logo-img { height: 56px; }

/* Nav links */
.main-nav { display: flex; align-items: center; }
.main-nav > ul { display: flex; align-items: center; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--dark);
    transition: color var(--duration) var(--ease);
}
.is-transparent .main-nav > ul > li > a { color: rgba(255,255,255,0.88); }
.main-nav > ul > li > a:hover { color: var(--bronze); }
.is-transparent .main-nav > ul > li > a:hover { color: var(--white); }

/* Dropdown indicator */
.has-dropdown > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    margin-left: 6px;
    vertical-align: middle;
    opacity: 0.6;
}

/* Mega menu */
.mega-menu {
    position: absolute;
    top: calc(100% + 1.25rem);
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    width: 600px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 24px 64px rgba(0,0,0,0.1), 0 4px 12px rgba(0,0,0,0.06);
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 2rem 2.25rem;
    gap: 0 2.5rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.has-dropdown:hover > .mega-menu {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
}
.mega-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%);
    width: 10px;
    height: 10px;
    background: var(--white);
    border-top: 1px solid var(--border);
    border-left: 1px solid var(--border);
    transform: translateX(-50%) rotate(45deg);
}
.mega-menu__section { margin-bottom: 1.75rem; }
.mega-menu__section:last-child { margin-bottom: 0; }
.mega-menu h6 {
    color: var(--bronze);
    margin-bottom: 0.75rem;
    font-size: 0.72rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}
.mega-menu ul li a {
    font-size: 0.88rem;
    color: var(--mid);
    display: block;
    padding: 0.22rem 0;
    transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.mega-menu ul li a:hover { color: var(--bronze); padding-left: 4px; }
.mega-menu__footer { grid-column: 1 / -1; padding-top: 1.25rem; border-top: 1px solid var(--border); }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 1.25rem; margin-left: 1rem; }
.header-phone {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--dark);
    letter-spacing: 0.01em;
    transition: color var(--duration) var(--ease);
}
.is-transparent .header-phone { color: rgba(255,255,255,0.9); }
.header-phone:hover { color: var(--bronze); }

/* Mobile toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 6px 2px;
    cursor: pointer;
    z-index: 1001;
}
.menu-toggle span {
    display: block;
    width: 22px;
    height: 1.5px;
    background: var(--dark);
    transition: all var(--duration) var(--ease);
    transform-origin: center;
}
.is-transparent .menu-toggle span { background: var(--white); }
.menu-toggle.is-open span:nth-child(1) { transform: rotate(45deg) translate(4.8px, 4.8px); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-toggle.is-open span:nth-child(3) { transform: rotate(-45deg) translate(4.8px, -4.8px); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background-color: var(--dark);
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center 30%;
    z-index: 0;
    will-change: transform;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(26,25,23,0.82) 0%, rgba(26,25,23,0.48) 55%, rgba(26,25,23,0.2) 100%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-block: 10rem 5rem;
    width: 100%;
}

.hero__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--bronze-light);
    margin-bottom: 1.5rem;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.15s forwards;
}

.hero__title {
    font-family: var(--serif);
    font-size: clamp(3rem, 7vw, 6.5rem);
    font-weight: 400;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 1.5rem;
    max-width: 14ch;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.3s forwards;
}
.hero__title em { font-style: italic; color: var(--bronze-light); }

.hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: rgba(255,255,255,0.72);
    max-width: 48ch;
    margin-bottom: 2.5rem;
    line-height: 1.82;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.45s forwards;
}

.hero__cta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s var(--ease) 0.6s forwards;
}

.hero__scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    animation: fadeIn 1s var(--ease) 1.2s forwards;
}
.hero__scroll span {
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.45);
}
.hero__scroll-line {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.4), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.4; transform: scaleY(1); }
    50%       { opacity: 1;   transform: scaleY(0.7); }
}

/* Page hero (inner pages) */
.page-hero {
    position: relative;
    min-height: clamp(280px, 42vh, 480px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background-color: var(--dark);
}

.page-hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.5;
}

.page-hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(26,25,23,0.9) 0%, rgba(26,25,23,0.4) 60%, transparent 100%);
}

.page-hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    padding-block: 7rem 3.5rem;
    width: 100%;
}

.page-hero__breadcrumb {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.45);
    margin-bottom: 0.75rem;
    letter-spacing: 0.04em;
}
.page-hero__breadcrumb a { color: rgba(255,255,255,0.45); }
.page-hero__breadcrumb a:hover { color: var(--bronze-light); }
.page-hero__breadcrumb span { margin-inline: 0.5em; }

.page-hero__title {
    font-family: var(--serif);
    font-size: clamp(2.5rem, 5vw, 4.2rem);
    color: var(--white);
    font-weight: 400;
    line-height: 1.08;
}

.page-hero__subtitle {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.65);
    max-width: 58ch;
    margin-top: 1rem;
    line-height: 1.8;
}

.page-hero__price {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze-light);
    background: rgba(176,125,86,0.15);
    border: 1px solid rgba(176,125,86,0.3);
    padding: 0.4em 1em;
    border-radius: 2px;
    margin-top: 1.25rem;
}

/* ============================================================
   HOMEPAGE — INTRO
   ============================================================ */
.intro-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 580px;
}

.intro-split__text {
    background-color: var(--cream);
    padding: clamp(3rem, 8vw, 7rem) clamp(2rem, 5vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.intro-split__image {
    position: relative;
    overflow: hidden;
    min-height: 480px;
}
.intro-split__image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.intro-split__image:hover img { transform: scale(1.04); }

/* ============================================================
   STATS STRIP
   ============================================================ */
.stats-strip { background: var(--dark); padding-block: 3.5rem; }
.stats-inner {
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
    display: flex;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1rem 1.5rem;
    position: relative;
}
.stat-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background: rgba(255,255,255,0.1);
}
.stat-number {
    display: block;
    font-family: var(--serif);
    font-size: clamp(2.8rem, 5vw, 4.5rem);
    font-weight: 400;
    color: var(--white);
    line-height: 1;
}
.stat-label {
    display: block;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze-light);
    margin-top: 0.5rem;
}

/* ============================================================
   TREATMENT CARDS (Homepage preview)
   ============================================================ */
.treatment-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5px; background: var(--border); }

.treatment-card {
    background: var(--white);
    display: flex;
    overflow: hidden;
    min-height: 260px;
    transition: box-shadow 0.5s var(--ease);
}
.treatment-card:hover { box-shadow: 0 20px 50px rgba(0,0,0,0.09); z-index: 1; }

.treatment-card__image {
    width: 44%;
    flex-shrink: 0;
    overflow: hidden;
    position: relative;
}
.treatment-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
}
.treatment-card:hover .treatment-card__image img { transform: scale(1.06); }

.treatment-card__body {
    padding: 2rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}
.treatment-card__from {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.4rem;
}
.treatment-card__title {
    font-family: var(--serif);
    font-size: clamp(1.3rem, 2vw, 1.7rem);
    color: var(--dark);
    line-height: 1.18;
    margin-bottom: 0.75rem;
}
.treatment-card__desc {
    font-size: 0.875rem;
    color: var(--mid);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    flex: 1;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

.testimonial-card {
    background: var(--white);
    padding: 2.5rem 2.5rem 2.5rem 3rem;
    border-left: 3px solid var(--bronze);
    position: relative;
}
.testimonial-card::before {
    content: '\201C';
    font-family: var(--serif);
    font-size: 7rem;
    color: var(--bronze);
    opacity: 0.12;
    position: absolute;
    top: -1.5rem;
    left: 1.75rem;
    line-height: 1;
    pointer-events: none;
}
.testimonial-text {
    font-size: 0.975rem;
    line-height: 1.85;
    color: var(--charcoal);
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.testimonial-dot {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream);
    border: 2px solid var(--border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 1rem;
    color: var(--bronze);
}
.testimonial-name { font-weight: 600; font-size: 0.9rem; color: var(--dark); }
.testimonial-role { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze); margin-top: 2px; }

/* ============================================================
   TREATMENT LIST (Category pages — alternating layout)
   ============================================================ */
.treatment-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); }

.treatment-list__item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--white);
    min-height: 400px;
    overflow: hidden;
}
.treatment-list__item:nth-child(even) { direction: rtl; }
.treatment-list__item:nth-child(even) > * { direction: ltr; }

.treatment-list__image,
.treatment-list__media { overflow: hidden; }
.treatment-list__image img,
.treatment-list__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
    display: block;
}
.treatment-list__item:hover .treatment-list__image img,
.treatment-list__item:hover .treatment-list__media img { transform: scale(1.04); }

/* Explicit reverse override — needs !important to beat :nth-child(even) specificity */
.treatment-list__item--reverse { direction: ltr !important; }
.treatment-list__item--reverse > * { direction: ltr !important; }

/* Category page intro paragraph */
.treatments-category-intro {
    max-width: 74ch;
    margin: 0 auto clamp(3rem, 6vw, 5rem);
    text-align: center;
}

.treatment-list__body {
    padding: clamp(2.5rem, 6vw, 5rem) clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.treatment-list__price {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.5rem;
}
.treatment-list__title {
    font-family: var(--serif);
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    color: var(--dark);
    margin-bottom: 1rem;
}
.treatment-list__desc {
    font-size: 0.925rem;
    color: var(--mid);
    line-height: 1.82;
    margin-bottom: 1.75rem;
    max-width: 48ch;
}

/* Inline price within treatment list body */
.treatment-price {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 1rem;
    display: block;
}

/* Inline arrow link */
.btn-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--dark);
    text-decoration: none;
    border-bottom: 1px solid var(--dark);
    padding-bottom: 1px;
    transition: color var(--duration) var(--ease), border-color var(--duration) var(--ease);
    margin-top: auto;
    padding-top: 1.5rem;
}
.btn-link:hover {
    color: var(--bronze);
    border-color: var(--bronze);
}

/* ============================================================
   TEAM
   ============================================================ */
.team-owner {
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    align-items: center;
    background: var(--white);
    padding: clamp(2rem, 4vw, 3.5rem);
    margin-bottom: 4rem;
    border: 1px solid var(--border);
}

.team-owner__image {
    aspect-ratio: 3 / 4;
    object-fit: cover;
    width: 100%;
    border-radius: 1px;
}

.team-owner__title {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.5rem;
}

.team-owner__name {
    font-family: var(--serif);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.team-owner__quals {
    font-size: 0.88rem;
    color: var(--mid);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 2rem 2.5rem;
}

.team-card { text-align: center; }
.team-card__image {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 1px;
    filter: grayscale(15%);
    transition: filter 0.5s var(--ease), transform 0.5s var(--ease);
    margin-bottom: 1.2rem;
}
.team-card:hover .team-card__image { filter: grayscale(0); transform: translateY(-4px); }

.team-card__name {
    font-family: var(--serif);
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 0.2rem;
}
.team-card__role {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--bronze);
}

/* ============================================================
   CASES
   ============================================================ */
.cases-category-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--border);
}

.case-category-card {
    background: var(--white);
    overflow: hidden;
    position: relative;
}

.case-category-card__image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.9s var(--ease);
    display: block;
}
.case-category-card:hover .case-category-card__image { transform: scale(1.04); }

.case-category-card__body {
    padding: 2rem 2rem 2.5rem;
}

.case-category-card__title {
    font-family: var(--serif);
    font-size: 1.6rem;
    margin-bottom: 0.75rem;
}
.case-category-card__desc {
    font-size: 0.9rem;
    color: var(--mid);
    line-height: 1.8;
    margin-bottom: 1.25rem;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
}

.contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.contact-form .form-group { margin-bottom: 1.25rem; }
.contact-form .form-group--full { grid-column: 1 / -1; }

.contact-form label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--mid);
    margin-bottom: 0.5rem;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    padding: 0.9rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 1px;
    background: var(--white);
    color: var(--dark);
    font-size: 0.95rem;
    transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
    outline: none;
    appearance: none;
}
.contact-form input:focus,
.contact-form textarea:focus {
    border-color: var(--bronze);
    box-shadow: 0 0 0 3px rgba(176,125,86,0.1);
}
.contact-form textarea { resize: vertical; min-height: 130px; }

.contact-sidebar { position: sticky; top: 100px; }

.contact-info-block {
    padding: 1.75rem 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-block:first-child { padding-top: 0; }
.contact-info-block:last-child { border-bottom: none; }

.contact-info-label {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze);
    margin-bottom: 0.6rem;
}
.contact-info-value {
    font-size: 0.92rem;
    color: var(--charcoal);
    line-height: 1.75;
}
.contact-info-value a { color: var(--dark); font-weight: 500; }
.contact-info-value a:hover { color: var(--bronze); }

.hours-table { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1.5rem; }
.hours-table .day { color: var(--mid); font-size: 0.88rem; }
.hours-table .time { font-size: 0.88rem; }

.map-wrap { width: 100%; height: 280px; overflow: hidden; border-radius: 2px; margin-top: 1.5rem; }
.map-wrap iframe { width: 100%; height: 100%; border: none; }

/* Form notices */
.form-notice {
    padding: 1rem 1.25rem;
    border-radius: 2px;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}
.form-notice--success { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.form-notice--error   { background: #fce4ec; color: #b71c1c; border: 1px solid #ef9a9a; }

/* ============================================================
   TREATMENT DETAIL PAGES
   ============================================================ */
.treatment-detail {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: clamp(3rem, 6vw, 5rem);
    align-items: start;
}

.treatment-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-box {
    background: var(--white);
    border: 1px solid var(--border);
    padding: 2rem;
    margin-bottom: 1.5rem;
}
.sidebar-box h5 {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    color: var(--dark);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}
.sidebar-nav li { border-bottom: 1px solid var(--border); }
.sidebar-nav li:last-child { border-bottom: none; }
.sidebar-nav li a {
    display: block;
    padding: 0.7rem 0;
    font-size: 0.875rem;
    color: var(--mid);
    transition: color var(--duration) var(--ease), padding-left var(--duration) var(--ease);
}
.sidebar-nav li a:hover,
.sidebar-nav li a.current { color: var(--bronze); padding-left: 4px; }

.price-callout {
    background: var(--dark);
    color: var(--white);
    padding: 2rem;
    text-align: center;
}
.price-callout__label {
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--bronze-light);
    margin-bottom: 0.5rem;
}
.price-callout__price {
    font-family: var(--serif);
    font-size: 2.4rem;
    font-weight: 400;
    color: var(--white);
    line-height: 1;
    margin-bottom: 1.5rem;
}

/* Content prose */
.prose h3 { margin-bottom: 0.75rem; margin-top: 2.5rem; }
.prose h3:first-child { margin-top: 0; }
.prose p { color: var(--mid); margin-bottom: 1.25rem; }
.prose ul { list-style: none; margin-bottom: 1.25rem; }
.prose ul li {
    position: relative;
    padding-left: 1.25rem;
    color: var(--mid);
    margin-bottom: 0.4rem;
    font-size: 0.95rem;
}
.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--bronze);
}

/* Before/after images */
.ba-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    margin-block: 3rem;
}
.ba-strip__item { overflow: hidden; }
.ba-strip__item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.7s var(--ease);
    display: block;
}
.ba-strip:hover .ba-strip__item img { transform: scale(1.03); }
.ba-label {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mid);
    text-align: center;
    padding: 0.5rem 0.75rem;
    background: var(--cream);
}

/* Process steps */
.process { display: flex; flex-direction: column; }
.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 1.5rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    counter-increment: step;
}
.process-step:last-child { border-bottom: none; }
.process-step__num {
    font-family: var(--serif);
    font-size: 2.2rem;
    color: var(--bronze);
    opacity: 0.35;
    font-weight: 400;
    line-height: 1;
}
.process-step__title {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: 0.4rem;
}
.process-step__desc { font-size: 0.9rem; color: var(--mid); }

/* ============================================================
   CTA BANNER
   ============================================================ */
.cta-banner {
    background: var(--dark);
    padding-block: var(--section-v);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(176,125,86,0.18) 0%, transparent 65%);
    pointer-events: none;
}
.cta-banner__eyebrow { color: var(--bronze-light); }
.cta-banner__title {
    font-family: var(--serif);
    font-size: clamp(2.2rem, 5vw, 4rem);
    color: var(--white);
    font-weight: 400;
    margin-bottom: 1.25rem;
    position: relative;
}
.cta-banner__title em { font-style: italic; color: var(--bronze-light); }

.cta-banner__text {
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: rgba(255,255,255,0.62);
    max-width: 52ch;
    margin: 0 auto 2.5rem;
    line-height: 1.82;
    position: relative;
}
.cta-banner__text a { color: var(--bronze-light); font-weight: 600; }
.cta-banner__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.6);
    padding-top: 5rem;
    padding-bottom: 2.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr 1fr 1fr;
    gap: 3rem;
    padding-bottom: 3.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo-link { display: inline-block; line-height: 0; margin-bottom: 1.5rem; }
.footer-logo-img  { height: 80px; width: auto; display: block; opacity: 0.9; transition: opacity var(--duration) var(--ease); }
.footer-logo-img:hover { opacity: 1; }
.footer-tagline   { font-size: 0.875rem; line-height: 1.8; max-width: 28ch; margin-bottom: 1.5rem; }

.footer-social { display: flex; gap: 0.625rem; }
.footer-social a {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    letter-spacing: 0;
    transition: all var(--duration) var(--ease);
}
.footer-social a:hover { background: var(--bronze); border-color: var(--bronze); color: var(--white); }

.footer-col h6 { color: var(--white); margin-bottom: 1.25rem; font-size: 0.7rem; letter-spacing: 0.16em; }
.footer-col ul li { margin-bottom: 0.5rem; }
.footer-col ul li a { font-size: 0.875rem; color: rgba(255,255,255,0.5); transition: color var(--duration) var(--ease); }
.footer-col ul li a:hover { color: var(--bronze-light); }

.footer-detail { margin-bottom: 0.75rem; }
.footer-detail__key { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bronze-light); display: block; margin-bottom: 3px; }
.footer-detail__val { font-size: 0.875rem; color: rgba(255,255,255,0.55); }
.footer-detail__val a { color: rgba(255,255,255,0.55); }
.footer-detail__val a:hover { color: var(--white); }

.footer-bottom { display: flex; align-items: center; justify-content: space-between; font-size: 0.78rem; color: rgba(255,255,255,0.3); flex-wrap: wrap; gap: 0.5rem; }

/* ============================================================
   UTILITIES
   ============================================================ */
.text-center { text-align: center; }
.text-bronze { color: var(--bronze); }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.75rem; }
.mb-4 { margin-bottom: 2.5rem; }
.mb-5 { margin-bottom: 3.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }

.divider {
    width: 44px;
    height: 2px;
    background: var(--bronze);
    display: block;
    margin-block: 1.5rem;
}
.divider--center { margin-inline: auto; }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { text-align: center; }
.section-head--center .divider { margin-inline: auto; }
.section-head--center .lead { margin-inline: auto; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1120px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
    .team-owner  { grid-template-columns: 260px 1fr; gap: 3rem; }
    .treatment-detail { grid-template-columns: 1fr; }
    .treatment-sidebar { position: static; }
    .contact-layout { grid-template-columns: 1fr; gap: 3rem; }
    .contact-sidebar { position: static; }
}

@media (max-width: 900px) {
    .intro-split { grid-template-columns: 1fr; }
    .intro-split__image { min-height: 380px; aspect-ratio: 16 / 9; }
    .intro-split__image img { position: relative; inset: unset; width: 100%; height: 380px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .treatment-cards { grid-template-columns: 1fr; }
    .treatment-list__item { grid-template-columns: 1fr; min-height: auto; direction: ltr !important; }
    .treatment-list__image,
    .treatment-list__media { height: 300px; }
    .treatment-list__item:nth-child(even) > * { direction: ltr; }
    .testimonial-grid { grid-template-columns: 1fr; }
    .cases-category-grid { grid-template-columns: 1fr; }
    .ba-strip { grid-template-columns: 1fr; }
    .team-owner { grid-template-columns: 1fr; }
    .team-owner__image { max-height: 380px; object-position: top; }

    /* Mobile nav */
    .main-nav {
        display: none;
        position: fixed;
        inset: 0;
        background: var(--dark);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 6rem var(--gutter) 3rem;
        overflow-y: auto;
        z-index: 999;
    }
    .main-nav.is-open { display: flex; }
    .main-nav > ul { flex-direction: column; align-items: flex-start; width: 100%; gap: 0; }
    .main-nav > ul > li {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.08);
    }
    .main-nav > ul > li > a {
        font-family: var(--serif);
        font-size: clamp(1.8rem, 6vw, 2.5rem);
        color: var(--white);
        padding: 0.6rem 0;
        display: block;
        width: 100%;
    }
    .has-dropdown > a::after { display: none; }
    .mega-menu {
        position: static;
        opacity: 1;
        pointer-events: all;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0.5rem 0 1rem 1rem;
        width: auto;
        display: block;
        grid-template-columns: unset;
    }
    .mega-menu::before { display: none; }
    .mega-menu__section { margin-bottom: 1rem; }
    .mega-menu h6 { color: var(--bronze-light); border-color: rgba(255,255,255,0.1); font-size: 0.68rem; }
    .mega-menu ul li a { color: rgba(255,255,255,0.55); font-size: 1rem; padding: 0.2rem 0; }
    .mega-menu__footer { border-color: rgba(255,255,255,0.1); }
    .header-actions .btn--primary { display: none; }
    .menu-toggle { display: flex; }
}

@media (max-width: 600px) {
    .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .treatment-card { flex-direction: column; }
    .treatment-card__image { width: 100%; height: 200px; }
    .stats-inner { flex-wrap: wrap; }
    .stat-item { width: 50%; }
    .stat-item::after { display: none; }
    .stat-number { font-size: 2rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
    .contact-form .form-row { grid-template-columns: 1fr; }
    .hero__cta { flex-direction: column; align-items: flex-start; }
    .cta-banner__actions { flex-direction: column; align-items: center; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .page-hero__content { padding-block: 8rem 3rem; }
    .treatment-list__body { padding: 2rem 1.5rem; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}

/* ============================================================
   DARK SECTION OVERRIDES
   — Ensure buttons, dividers and links read correctly
   ============================================================ */
.section--dark .btn--outline {
    color: var(--white);
    border-color: rgba(255,255,255,0.45);
}
.section--dark .btn--outline:hover {
    background-color: var(--white);
    color: var(--dark);
    border-color: var(--white);
}
.section--dark .btn--ghost {
    color: var(--bronze-light);
    border-color: var(--bronze-light);
}
.section--dark .divider { background: var(--bronze-light); }

/* ============================================================
   BREADCRUMB SEPARATOR
   ============================================================ */
.page-hero__breadcrumb .sep {
    margin-inline: 0.5em;
    opacity: 0.4;
    font-style: normal;
}

/* ============================================================
   PROSE SPACING FIXES
   ============================================================ */
.prose h4 { margin-top: 2rem; margin-bottom: 0.5rem; }
.prose h3 + h4 { margin-top: 1.25rem; }
.prose > *:last-child { margin-bottom: 0; }

