/**
 * Theme Base CSS
 *
 * Utility styles, scrollbar customization, animations,
 * and component base classes for the starter-landing theme.
 *
 * @package starter-landing
 */

/* Icon system — consistent sizing for starter_icon() */
.starter-icon {
    display: block;
    flex-shrink: 0;
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--sm {
    width: 1.125rem;
    height: 1.125rem;
}
.starter-icon--md {
    width: 1.25rem;
    height: 1.25rem;
}
.starter-icon--lg {
    width: 1.5rem;
    height: 1.5rem;
}
.starter-icon--xl {
    width: 2rem;
    height: 2rem;
}

/* Section tabs */
.starter-tab-btn {
    border-radius: var(--btn-radius, var(--radius));
    background: hsl(var(--card));
    color: hsl(var(--foreground));
    border-color: hsl(var(--border));
}
.starter-tab-btn:hover {
    border-color: hsl(var(--primary) / 0.5);
}
.starter-tab-btn.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
    box-shadow: 0 4px 12px rgb(0 0 0 / 0.08);
}
.starter-tab-btn.is-active:hover {
    border-color: hsl(var(--primary));
}

/* Scroll carousel — card width from data-visible (supports decimals e.g. 2.5 for peek) */
.starter-carousel-track {
    --carousel-visible: 1;
    --carousel-gap: 0px;
}

.starter-carousel-track > .starter-carousel-item,
.starter-carousel-track > [data-carousel-item] {
    flex: 0 0 calc(
        (100% - var(--carousel-gap) * (var(--carousel-visible) - 1)) / var(--carousel-visible)
    );
    min-width: 0;
}

/* Hero title — shared look for <h1> (first slide / split) and <p> (later slides) */
.starter-hero-title {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    margin: 0;
}

/* Hero slider — contained card (inset + radius), banners without side crop */
.starter-hero__frame .hero-slide img {
    max-width: 100%;
}

/*
 * Cards — no outer borders site-wide.
 * Beats Tailwind utilities (border / border-border / hover:border-*) on .starter-card.
 * Keeps radius, shadow, background; focus rings on interactive children unchanged.
 */
.starter-card,
.starter-card:hover,
.doctor-card,
.starter-diff-card,
.starter-diff-card:hover,
.starter-diff-card--featured,
.starter-promo-feature,
.starter-promo-feature:hover,
.starter-promo-feature--accent,
.starter-float-card {
    border: none !important;
}

/* Card / grid item titles — NOT h3 (global h3 scale from Customizer blows up text-xl) */
.starter-card-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1.125rem;
    line-height: 1.35;
    color: hsl(var(--heading-foreground));
}
@media (min-width: 768px) {
    .starter-card-title {
        font-size: 1.25rem;
    }
}
.starter-card-title--sm {
    font-size: 0.9375rem;
    line-height: 1.4;
}
@media (min-width: 768px) {
    .starter-card-title--sm {
        font-size: 1rem;
    }
}
.starter-card-title--lg {
    font-size: 1.25rem;
    line-height: 1.3;
}
@media (min-width: 768px) {
    .starter-card-title--lg {
        font-size: 1.375rem;
    }
}

/* Posts pagination — pill buttons */
.starter-pagination {
    display: flex;
    justify-content: center;
}
.starter-pagination .navigation.pagination,
.starter-pagination nav.navigation {
    width: 100%;
}
.starter-pagination .screen-reader-text {
    position: static !important;
    width: auto !important;
    height: auto !important;
    margin: 0 0 0.75rem !important;
    padding: 0 !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    border: 0 !important;
    display: block;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: hsl(var(--muted-foreground));
    line-height: 1.2;
}
.starter-pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}
.starter-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    color: hsl(var(--foreground));
    background: hsl(var(--card));
    border: 1px solid hsl(var(--border));
    border-radius: var(--btn-radius, var(--radius));
    text-decoration: none;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.starter-pagination a.page-numbers:hover {
    border-color: hsl(var(--primary));
    color: hsl(var(--primary));
}
.starter-pagination .page-numbers.current {
    background: hsl(var(--primary));
    border-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}
.starter-pagination .page-numbers.dots {
    min-width: auto;
    padding: 0 0.35rem;
    border: none;
    background: transparent;
    color: hsl(var(--muted-foreground));
    font-weight: 500;
}

/* Accent card — primary background (starter-card forces white bg; never rely on bg-primary alone) */
.starter-card--primary {
    background-color: hsl(var(--primary)) !important;
    color: #ffffff;
}
.starter-card--primary .starter-card-title {
    color: #ffffff;
}
.starter-card--primary .starter-card-muted {
    color: rgb(255 255 255 / 0.88);
}
.starter-card--primary .starter-card-link {
    color: #ffffff;
}
.starter-card--primary .starter-card-link:hover {
    color: rgb(255 255 255 / 0.85);
}
.starter-card--primary h1,
.starter-card--primary h2,
.starter-card--primary h3 {
    color: #ffffff;
}

/* Soft accent card — light tinted background */
.starter-card--soft {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    ) !important;
}

/* Primary soft — weakest primary tint (dark text) */
.starter-card--primary-soft {
    background: color-mix(in srgb, hsl(var(--primary)) 14%, white) !important;
}
.starter-card--primary-soft .starter-card-title {
    color: hsl(var(--primary));
}
.starter-card--primary-soft .starter-icon-box {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Primary mid — medium-weak tint (dark text) */
.starter-card--primary-mid {
    background: color-mix(in srgb, hsl(var(--primary)) 38%, white) !important;
    color: hsl(var(--heading-foreground));
}
.starter-card--primary-mid .starter-card-title {
    color: hsl(var(--primary));
}
.starter-card--primary-mid .starter-card-muted,
.starter-card--primary-mid p {
    color: hsl(var(--foreground) / 0.8);
}
.starter-card--primary-mid .starter-icon-box {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

/* Deep accent card — strongest primary (white text) */
.starter-card--deep {
    background: color-mix(in srgb, hsl(var(--primary)) 48%, black) !important;
    color: #ffffff;
}
.starter-card--deep .starter-card-title {
    color: #ffffff;
}
.starter-card--deep .starter-card-muted,
.starter-card--deep p {
    color: rgb(255 255 255 / 0.9);
}
.starter-card--deep .starter-icon-box {
    background: rgb(255 255 255 / 0.2);
    color: #ffffff;
}
.starter-card--deep .starter-btn.bg-secondary {
    background: rgb(255 255 255 / 0.95);
    color: hsl(var(--heading-foreground));
}

/* Filled primary cards — icon box on solid tone */
.starter-card--primary .starter-icon-box {
    background: rgb(255 255 255 / 0.22);
    color: #ffffff;
}

.starter-hero .starter-hero-content h1,
.starter-hero .starter-hero-content p {
    color: #fff;
}
.starter-hero .starter-hero-content p {
    color: rgb(255 255 255 / 0.8);
}

/* Decorative section backgrounds */
.starter-section-decor {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

.starter-section-decor::before,
.starter-section-decor::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.starter-section-decor--hero::before {
    width: min(42rem, 80vw);
    height: min(42rem, 80vw);
    top: -18%;
    right: -12%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, transparent 68%);
}

.starter-section-decor--hero::after {
    width: min(28rem, 60vw);
    height: min(28rem, 60vw);
    bottom: -8%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 70%);
}

.starter-section-decor--muted::before {
    width: min(36rem, 70vw);
    height: min(36rem, 70vw);
    top: -20%;
    left: -8%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 65%);
}

.starter-section-decor--muted::after {
    width: min(24rem, 50vw);
    height: min(24rem, 50vw);
    bottom: -12%;
    right: -6%;
    background: radial-gradient(circle, hsl(var(--accent)) 0%, transparent 68%);
}

.starter-section-inner {
    position: relative;
    z-index: 1;
}

/* Hero gradient band */
.starter-hero-band {
    background: linear-gradient(
        135deg,
        hsl(var(--accent)) 0%,
        hsl(var(--background)) 45%,
        hsl(var(--muted)) 100%
    );
}

/* Cut-out person visual */
.starter-cutout-visual {
    position: relative;
    min-height: 20rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.starter-cutout-visual__glow {
    position: absolute;
    inset: 8% 10% 0;
    background: radial-gradient(
        ellipse at center bottom,
        hsl(var(--primary) / 0.22) 0%,
        transparent 72%
    );
    pointer-events: none;
}

.starter-cutout-visual__rings {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.starter-cutout-visual__ring {
    position: absolute;
    border: 1px solid hsl(var(--primary) / 0.18);
    border-radius: 50%;
    animation: starter-ring-pulse 6s ease-in-out infinite;
}

.starter-cutout-visual__ring:nth-child(1) {
    width: 88%;
    height: 88%;
    animation-delay: 0s;
}

.starter-cutout-visual__ring:nth-child(2) {
    width: 68%;
    height: 68%;
    animation-delay: 1s;
}

.starter-cutout-visual__ring:nth-child(3) {
    width: 48%;
    height: 48%;
    animation-delay: 2s;
}

@keyframes starter-ring-pulse {
    0%, 100% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.02);
    }
}

.starter-cutout-visual__person {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 26rem;
    margin: 0 auto;
    filter: drop-shadow(0 20px 40px hsl(var(--primary) / 0.18));
}

.starter-cutout-visual__person img {
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    object-position: bottom center;
}

/* Floating UI cards */
.starter-float-card {
    position: absolute;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    background: hsl(var(--card) / 0.96);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius);
    box-shadow: 0 12px 32px hsl(var(--primary) / 0.12);
    animation: starter-float 5s ease-in-out infinite;
}

.starter-float-card--delay {
    animation-delay: 1.5s;
}

@keyframes starter-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

.starter-avatar-stack {
    display: flex;
    align-items: center;
}

.starter-avatar-stack img,
.starter-avatar-stack__item {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid hsl(var(--card));
    object-fit: cover;
    margin-left: -0.5rem;
}

.starter-avatar-stack img:first-child,
.starter-avatar-stack__item:first-child {
    margin-left: 0;
}

/* Promo banner strip */
.starter-promo-band {
    background: linear-gradient(
        110deg,
        hsl(var(--accent)) 0%,
        hsl(var(--primary) / 0.12) 50%,
        hsl(var(--accent)) 100%
    );
    border-top: 1px solid hsl(var(--primary) / 0.12);
    border-bottom: 1px solid hsl(var(--primary) / 0.12);
}

.starter-promo-feature {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
    background: hsl(var(--card) / 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: var(--radius);
    padding: 1.5rem;
    height: 100%;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.starter-promo-feature:hover {
    box-shadow: 0 12px 28px hsl(var(--primary) / 0.1);
    transform: translateY(-2px);
}

.starter-promo-feature__step {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: hsl(var(--primary) / 0.45);
    line-height: 1;
}

.starter-promo-feature__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    background: hsl(var(--primary) / 0.1);
    color: hsl(var(--primary));
    border-radius: calc(var(--radius) * 0.75);
    flex-shrink: 0;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.starter-promo-feature:hover .starter-promo-feature__icon {
    background-color: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
}

.starter-promo-features {
    position: relative;
}

@media (min-width: 1024px) {
    .starter-promo-features::before {
        content: '';
        position: absolute;
        top: 2.35rem;
        left: 12.5%;
        right: 12.5%;
        height: 1px;
        background: linear-gradient(
            90deg,
            transparent 0%,
            hsl(var(--primary) / 0.25) 15%,
            hsl(var(--primary) / 0.25) 85%,
            transparent 100%
        );
        pointer-events: none;
        z-index: 0;
    }
}

.starter-promo-features > * {
    position: relative;
    z-index: 1;
}

/* Internal page header — compact brand banner */
.starter-page-header--banner {
    display: flex;
    align-items: flex-end;
    min-height: 9.5rem;
    isolation: isolate;
}

@media (min-width: 768px) {
    .starter-page-header--banner {
        min-height: 11.5rem;
    }
}

.starter-page-header__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.starter-page-header__bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transform: scale(1.02);
}

.starter-page-header__gradient {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 70% 90% at 88% 20%, hsl(var(--primary) / 0.45) 0%, transparent 55%),
        linear-gradient(
            118deg,
            hsl(var(--heading-foreground) / 0.97) 0%,
            hsl(var(--heading-foreground) / 0.9) 42%,
            hsl(var(--primary) / 0.82) 100%
        );
}

.starter-page-header__gradient--photo {
    background:
        linear-gradient(
            105deg,
            hsl(var(--heading-foreground) / 0.92) 0%,
            hsl(var(--heading-foreground) / 0.78) 48%,
            hsl(var(--primary) / 0.72) 100%
        ),
        linear-gradient(to top, hsl(var(--heading-foreground) / 0.55) 0%, transparent 55%);
}

.starter-page-header__glow {
    position: absolute;
    width: 18rem;
    height: 18rem;
    right: -4rem;
    bottom: -8rem;
    border-radius: 9999px;
    background: hsl(var(--primary) / 0.28);
    filter: blur(40px);
    pointer-events: none;
}

.starter-page-header__accent {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        hsl(var(--primary)) 0%,
        hsl(var(--primary) / 0.35) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.starter-page-header--banner .starter-page-header__inner,
.starter-page-header--plain .starter-page-header__inner {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__inner,
    .starter-page-header--plain .starter-page-header__inner {
        padding-top: 1.75rem;
        padding-bottom: 1.875rem;
    }
}

.starter-page-header__breadcrumbs {
    margin-bottom: 0.625rem;
}

/* Breadcrumbs-only bar (single midia posts) */
.starter-page-header--breadcrumbs .starter-page-header__inner {
    justify-content: center;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

@media (min-width: 768px) {
    .starter-page-header--breadcrumbs .starter-page-header__inner {
        padding-top: 0.875rem;
        padding-bottom: 0.875rem;
    }
}

.starter-page-header--breadcrumbs .starter-page-header__breadcrumbs {
    margin-bottom: 0;
}

.starter-page-header--banner .starter-page-header__crumb-link,
.starter-page-header--banner .starter-page-header__crumb-sep {
    color: rgb(255 255 255 / 0.72);
}

.starter-page-header--banner .starter-page-header__crumb-link:hover {
    color: #ffffff;
}

.starter-page-header--banner .starter-page-header__crumb-current {
    color: #ffffff;
}

.starter-page-header--banner .starter-page-header__title {
    font-size: 1.625rem !important;
    color: #ffffff;
    letter-spacing: -0.02em;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__title {
        font-size: 2.125rem !important;
    }
}

.starter-page-header--banner .starter-page-header__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: rgb(255 255 255 / 0.86);
    max-width: 36rem;
}

@media (min-width: 768px) {
    .starter-page-header--banner .starter-page-header__subtitle {
        font-size: 1rem;
    }
}

.starter-page-header__rule {
    display: block;
    width: 2.75rem;
    height: 3px;
    margin-top: 0.875rem;
    border-radius: 9999px;
    background: hsl(var(--primary));
    box-shadow: 0 0 0 4px hsl(var(--primary) / 0.18);
}

/* Plain fallback (muted band) */
.starter-page-header--plain .starter-page-header__crumb-link,
.starter-page-header--plain .starter-page-header__crumb-sep {
    color: hsl(var(--muted-foreground));
}

.starter-page-header--plain .starter-page-header__crumb-link:hover {
    color: hsl(var(--primary));
}

.starter-page-header--plain .starter-page-header__crumb-current {
    color: hsl(var(--heading-foreground));
}

.starter-page-header--plain .starter-page-header__title {
    font-size: 1.5rem !important;
    color: hsl(var(--heading-foreground));
}

@media (min-width: 768px) {
    .starter-page-header--plain .starter-page-header__title {
        font-size: 1.875rem !important;
    }
}

.starter-page-header--plain .starter-page-header__subtitle {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: hsl(var(--muted-foreground));
}

@media (min-width: 768px) {
    .starter-page-header--plain .starter-page-header__subtitle {
        font-size: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .starter-page-header__bg-image {
        transform: none;
    }
}

/*
 * Internal page content H2s — modest step below home / Customizer scale.
 * Page-header remains H1 (untouched). Beats Customizer `h2 { --h2-size !important }` via specificity.
 * Scale ≈ text-xl / md:text-2xl / lg:text-3xl (was ~text-2xl / Customizer 3rem).
 */
body:not(.home) main h2 {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    body:not(.home) main h2 {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 1024px) {
    body:not(.home) main h2 {
        font-size: 1.875rem !important;
    }
}

/* Sobre internal page — denser prose rhythm */
.starter-page-sobre .starter-prose p {
    margin: 0 0 0.75rem;
}

.starter-page-sobre .starter-prose p:last-child {
    margin-bottom: 0;
}

.starter-page-sobre__media {
    background: hsl(var(--muted));
}

/* Differential cards — Sobre page */
.starter-diff-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-diff-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 1.5rem;
    }
}

.starter-diff-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: hsl(var(--card));
    box-shadow: var(--card-shadow);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.starter-diff-card:hover {
    box-shadow: 0 16px 40px hsl(var(--primary) / 0.12);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .starter-diff-card--wide {
        grid-column: span 7;
    }

    .starter-diff-card--tall {
        grid-column: span 5;
    }

    .starter-diff-card--banner {
        grid-column: span 12;
    }
}

.starter-diff-card__media {
    position: relative;
    overflow: hidden;
}

.starter-diff-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.starter-diff-card:hover .starter-diff-card__media img {
    transform: scale(1.05);
}

.starter-diff-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.55) 0%,
        hsl(var(--heading-foreground) / 0.1) 55%,
        transparent 100%
    );
    pointer-events: none;
}

.starter-diff-card--split {
    display: grid;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .starter-diff-card--split {
        grid-template-columns: 42% 1fr;
    }
}

.starter-diff-card--split .starter-diff-card__media {
    min-height: 14rem;
}

@media (min-width: 640px) {
    .starter-diff-card--split .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card--vertical .starter-diff-card__media {
    height: 11rem;
}

@media (min-width: 768px) {
    .starter-diff-card--vertical .starter-diff-card__media {
        height: 13.5rem;
    }
}

.starter-diff-card--banner .starter-diff-card__media {
    min-height: 12rem;
}

@media (min-width: 640px) {
    .starter-diff-card--banner {
        grid-template-columns: 38% 1fr;
    }

    .starter-diff-card--banner .starter-diff-card__media {
        min-height: 100%;
    }
}

.starter-diff-card__icon {
    position: absolute;
    bottom: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: calc(var(--radius) * 0.75);
    box-shadow: 0 8px 20px hsl(var(--primary) / 0.35);
}

.starter-diff-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.625rem;
    padding: 1.5rem;
}

@media (min-width: 768px) {
    .starter-diff-card__body {
        padding: 1.75rem 2rem;
    }
}

.starter-diff-card--featured .starter-diff-card__body {
    background: linear-gradient(
        145deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card)) 100%
    );
}

.starter-benefit-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .starter-benefit-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.5rem;
    }
}

.starter-promo-feature--accent {
    background: linear-gradient(
        160deg,
        hsl(var(--accent)) 0%,
        hsl(var(--card) / 0.9) 100%
    ) !important;
}

/* Blog card image overlay */
.starter-post-card__media {
    position: relative;
    overflow: hidden;
    height: 13.75rem;
}

.starter-post-card__media::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        hsl(var(--heading-foreground) / 0.45) 0%,
        transparent 55%
    );
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.starter-post-card:hover .starter-post-card__media::after {
    opacity: 1;
}

.starter-post-card__category {
    position: absolute;
    top: 0.875rem;
    left: 0.875rem;
    z-index: 2;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    padding: 0.35rem 0.75rem;
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-radius: var(--radius-full);
}

/* Units — full-bleed specialty plaques (carousel) */
.unit-plaque {
    position: relative;
    display: block;
    overflow: hidden;
    isolation: isolate;
    aspect-ratio: 3 / 4;
    min-height: 22rem;
    color: #fff;
    background: #0a0a0a;
    border-radius: var(--radius);
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.unit-plaque__rail {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    z-index: 4;
    background: var(--unit-accent, hsl(var(--primary)));
}

.unit-plaque__media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.unit-plaque__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.unit-plaque:hover .unit-plaque__img,
.unit-plaque:focus-visible .unit-plaque__img {
    transform: scale(1.08);
}

.unit-plaque__shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, transparent 28%, transparent 42%, rgba(0, 0, 0, 0.72) 78%, rgba(0, 0, 0, 0.92) 100%),
        linear-gradient(90deg, color-mix(in srgb, var(--unit-accent, #000) 22%, transparent) 0%, transparent 55%);
    pointer-events: none;
}

.unit-plaque__index {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    font-family: var(--font-heading);
    font-size: clamp(2.5rem, 6vw, 3.25rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: rgba(255, 255, 255, 0.14);
    pointer-events: none;
    transition: color 0.35s ease;
}

.unit-plaque:hover .unit-plaque__index,
.unit-plaque:focus-visible .unit-plaque__index {
    color: color-mix(in srgb, var(--unit-accent, #fff) 55%, transparent);
}

.unit-plaque__body {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    padding: 1.35rem 1.25rem 1.35rem 1.4rem;
}

.unit-plaque__logo-wrap {
    display: block;
    height: 2.75rem;
    max-width: 160px;
    margin-bottom: 0.35rem;
    filter: drop-shadow(0 1px 10px rgba(0, 0, 0, 0.45));
}

@media (min-width: 768px) {
    .unit-plaque__logo-wrap {
        height: 3.5rem;
    }
}

.unit-plaque__logo {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
    object-position: left center;
    filter: brightness(0) invert(1);
}

.unit-plaque__tagline {
    margin: 0;
    max-width: 18rem;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.78);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.unit-plaque__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.35rem;
    padding-top: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #fff;
    transform: translateY(0.25rem);
    opacity: 0.85;
    transition: transform 0.35s ease, opacity 0.35s ease, border-color 0.35s ease;
}

.unit-plaque:hover .unit-plaque__cta,
.unit-plaque:focus-visible .unit-plaque__cta {
    transform: translateY(0);
    opacity: 1;
    border-color: color-mix(in srgb, var(--unit-accent, #fff) 70%, transparent);
}

.unit-plaque--nolink {
    cursor: default;
}

.unit-plaque--nolink .unit-plaque__cta--muted,
.unit-plaque__cta--muted {
    opacity: 0.45;
    pointer-events: none;
}

.unit-plaque--nolink:hover .unit-plaque__cta--muted {
    transform: translateY(0.25rem);
    opacity: 0.45;
    border-color: rgba(255, 255, 255, 0.18);
}

.unit-plaque:focus-visible {
    outline: 2px solid var(--unit-accent, hsl(var(--primary)));
    outline-offset: 3px;
}

/* Hide native scrollbar on carousel tracks */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Custom scrollbar for main page */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: hsl(var(--background));
}
::-webkit-scrollbar-thumb {
    background: hsl(var(--primary) / 0.3);
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: hsl(var(--primary) / 0.6);
}

/* Transition utilities for lightbox image */
#lightbox-img {
    transition: opacity 0.15s ease-in-out;
}

/* WhatsApp FAB animation */
@keyframes fab-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    50% { box-shadow: 0 0 0 12px rgba(37, 211, 102, 0); }
}
.whatsapp-fab {
    animation: fab-pulse 2s ease-in-out infinite;
}

/* Section fade-in animation (optional, applied via JS Intersection Observer) */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out both;
}

/* About (home) — soft primary tint + marks */
.starter-about-section {
    color: hsl(var(--foreground));
    background:
        radial-gradient(ellipse 70% 55% at 8% 20%, hsl(var(--primary) / 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 55% 50% at 92% 85%, hsl(var(--primary) / 0.08) 0%, transparent 50%),
        linear-gradient(
            165deg,
            color-mix(in srgb, hsl(var(--primary)) 10%, white) 0%,
            color-mix(in srgb, hsl(var(--primary)) 7%, white) 48%,
            color-mix(in srgb, hsl(var(--primary)) 14%, white) 100%
        );
}
.starter-about-section::before {
    width: min(40rem, 78vw);
    height: min(40rem, 78vw);
    top: -22%;
    right: -14%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.14) 0%, transparent 68%);
    animation: starter-about-orb 14s ease-in-out infinite alternate;
}
.starter-about-section::after {
    width: min(26rem, 58vw);
    height: min(26rem, 58vw);
    bottom: -16%;
    left: -10%;
    background: radial-gradient(circle, hsl(var(--primary) / 0.1) 0%, transparent 70%);
    animation: starter-about-orb 18s ease-in-out infinite alternate-reverse;
}
.starter-about-section .starter-prose,
.starter-about-section .starter-prose p {
    color: hsl(var(--muted-foreground));
}

/* Hospital SVG marks — corner transitions */
.starter-about-mark {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    aspect-ratio: 1278 / 460;
    background: hsl(var(--primary) / 0.14);
    -webkit-mask: url('../images/hospital-2026.svg') center / contain no-repeat;
    mask: url('../images/hospital-2026.svg') center / contain no-repeat;
}
.starter-about-mark--tr {
    top: -8%;
    right: -14%;
    width: min(38rem, 72vw);
    background: hsl(var(--primary) / 0.12);
    transform: rotate(8deg);
    animation: starter-about-mark-drift 18s ease-in-out infinite alternate;
}
.starter-about-mark--bl {
    bottom: -14%;
    left: -16%;
    width: min(52rem, 95vw);
    background: hsl(var(--primary) / 0.18);
    transform: scaleX(-1) rotate(-5deg);
    animation: starter-about-mark-drift 22s ease-in-out infinite alternate-reverse;
}
@keyframes starter-about-orb {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to { transform: translate3d(3%, 4%, 0) scale(1.06); }
}
@keyframes starter-about-mark-drift {
    from { translate: 0 0; }
    to { translate: 1.25% -1.75%; }
}
.starter-about-media .starter-about-photo {
    transition: transform 0.5s ease;
}
.starter-about-media img {
    transition: transform 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}
/* First scan has white padding at the bottom — crop it out */
.starter-about-photo--crop {
    object-position: center 28%;
    transform: scale(1.14);
    transform-origin: center top;
}
.starter-about-media .starter-about-photo:hover img {
    transform: scale(1.04);
}
.starter-about-media .starter-about-photo:hover img.starter-about-photo--crop {
    transform: scale(1.18);
}
.starter-about-media.is-visible img {
    animation: starter-about-kenburns 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.starter-about-media.is-visible .starter-about-photo:nth-child(2) img {
    animation-delay: 120ms;
}
.starter-about-media.is-visible img.starter-about-photo--crop {
    animation: starter-about-kenburns-crop 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
}
@keyframes starter-about-kenburns {
    from { transform: scale(1.08); }
    to { transform: scale(1); }
}
@keyframes starter-about-kenburns-crop {
    from { transform: scale(1.2); }
    to { transform: scale(1.14); }
}

/*
 * Scroll reveal — toggled by reveal.js (.is-visible).
 * Styles only apply when html.starter-reveal is set, so content stays
 * visible if JS fails or is disabled.
 */
.starter-reveal [data-reveal] {
    opacity: 0;
    transform: translate3d(0, 1.25rem, 0);
    transition:
        opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
}
.starter-reveal [data-reveal='left'] {
    transform: translate3d(-1.25rem, 0, 0);
}
.starter-reveal [data-reveal='right'] {
    transform: translate3d(1.25rem, 0, 0);
}
.starter-reveal [data-reveal='up'] {
    transform: translate3d(0, 1.25rem, 0);
}
.starter-reveal [data-reveal].is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}
@media (prefers-reduced-motion: reduce) {
    .starter-about-section::before,
    .starter-about-section::after,
    .starter-about-mark {
        animation: none;
    }
    .starter-about-media img,
    .starter-about-media .starter-about-photo:hover img,
    .starter-about-media.is-visible img {
        animation: none;
        transition: none;
    }
    .starter-about-media img:not(.starter-about-photo--crop) {
        transform: none;
    }
    .starter-about-photo--crop {
        transform: scale(1.14);
    }
    .starter-reveal [data-reveal] {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Scale utility for group-hover */
.scale-98 { transform: scale(0.98); }
.scale-102 { transform: scale(1.02); }
.scale-103 { transform: scale(1.03); }

/* Smooth transitions for all interactive elements */
a, button, input, select, textarea {
    transition-property: color, background-color, border-color, box-shadow, transform, opacity;
    transition-duration: 200ms;
    transition-timing-function: ease;
}

/* Custom logo — brand mark sizing in header/footer */
.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: 11rem;
}
.custom-logo-link img.custom-logo,
.custom-logo {
    height: 2.75rem;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}
@media (min-width: 768px) {
    .custom-logo-link {
        max-width: 14rem;
    }
    .custom-logo-link img.custom-logo,
    .custom-logo {
        height: 3.25rem;
    }
}

/* Sticky below #main-header — --header-offset set by sticky-header.js */
.doctor-filters-bar {
    top: var(--header-offset, 7rem);
}

/* Doctor filter active state */
.doctor-filter.is-active {
    background: hsl(var(--primary));
    color: hsl(var(--primary-foreground));
    border-color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Gutenberg landing (full-bleed when title band is hidden)
   -------------------------------------------------------------------------- */
.starter-gutenberg-landing {
    --uti-primary: #c5e063;
    --uti-primary-fg: #0a0a0a;
    --uti-ink: #121212;
    overflow-x: clip;
}

.starter-gutenberg-landing > .alignfull {
    width: 100%;
    max-width: none;
    margin-left: 0;
    margin-right: 0;
}

.starter-gutenberg-landing .wp-block-group.alignfull > .wp-block-group__inner-container,
.starter-gutenberg-landing .wp-block-group.alignfull.is-layout-constrained {
    margin-inline: auto;
    padding-inline: 1.25rem;
}

@media (min-width: 768px) {
    .starter-gutenberg-landing .wp-block-group.alignfull > .wp-block-group__inner-container,
    .starter-gutenberg-landing .wp-block-group.alignfull.is-layout-constrained {
        padding-inline: 2rem;
    }
}

/* UTI brand landing */
.starter-uti-hero {
    color: #fff;
}

.starter-uti-hero .wp-block-cover__inner-container {
    width: 100%;
    max-width: 72rem;
    margin-inline: auto;
}

.starter-uti-hero-title {
    font-family: var(--font-heading, inherit);
    font-size: clamp(2rem, 4vw, 3.25rem) !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0.75rem 0 0.5rem !important;
}

.starter-uti-hero-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 36rem;
    margin: 0 0 1.25rem !important;
}

.starter-uti-btn .wp-block-button__link {
    background: var(--uti-primary) !important;
    color: var(--uti-primary-fg) !important;
    border: none !important;
    border-radius: var(--btn-radius, var(--radius));
    font-weight: 600;
    padding: 0.85rem 1.5rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.starter-uti-btn .wp-block-button__link:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.starter-uti-btn-ghost .wp-block-button__link {
    background: transparent !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: var(--btn-radius, var(--radius));
    font-weight: 500;
    padding: 0.85rem 1.5rem;
}

.starter-uti-btn-ghost .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.1) !important;
}

.starter-uti-strip {
    background: var(--uti-ink);
    color: #fff;
    padding: 1.75rem 0;
}

.starter-uti-strip-cols {
    gap: 1.25rem !important;
}

.starter-uti-stat-value {
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.75rem, 3vw, 2.25rem) !important;
    font-weight: 700;
    color: var(--uti-primary) !important;
    margin: 0 !important;
    letter-spacing: -0.02em;
}

.starter-uti-stat-label {
    font-size: 0.8rem !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7) !important;
    margin: 0.35rem 0 0 !important;
}

.starter-uti-section {
    padding: 3.5rem 0;
}

@media (min-width: 768px) {
    .starter-uti-section {
        padding: 4.5rem 0;
    }
}

.starter-uti-structure {
    background: hsl(var(--muted) / 0.35);
    border-block: 1px solid hsl(var(--border));
}

.starter-uti-eyebrow {
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #6a8a1f !important;
    margin: 0 0 0.65rem !important;
}

.starter-uti-heading {
    font-family: var(--font-heading, inherit);
    font-size: clamp(1.75rem, 3vw, 2.5rem) !important;
    letter-spacing: -0.02em;
    color: hsl(var(--foreground)) !important;
    margin: 0 0 1rem !important;
}

.starter-uti-section-lead {
    color: hsl(var(--muted-foreground)) !important;
    max-width: 36rem;
    margin-inline: auto !important;
    margin-bottom: 2rem !important;
}

.starter-uti-structure-media img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    display: block;
    object-fit: cover;
}

.starter-uti-structure .wp-block-column p {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
    font-size: 0.975rem;
}

.starter-uti-equip {
    background: hsl(var(--background));
}

.starter-uti-equip-grid {
    gap: 1.25rem !important;
    margin-top: 1.25rem !important;
}

.starter-uti-equip-card {
    overflow: hidden;
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    box-shadow: var(--card-shadow, 0 1px 2px rgb(0 0 0 / 0.04));
    height: 100%;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.starter-uti-equip-card:hover {
    border-color: color-mix(in srgb, var(--uti-primary) 55%, hsl(var(--border)));
    transform: translateY(-2px);
}

.starter-uti-equip-img {
    margin: 0 !important;
}

.starter-uti-equip-img img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    display: block;
}

.starter-uti-equip-title {
    font-weight: 600;
    font-size: 1rem !important;
    color: hsl(var(--foreground)) !important;
    margin: 0 !important;
    padding: 1rem 1.1rem 1.15rem;
}

.starter-uti-cert-panel {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    overflow: hidden;
    background: hsl(var(--card));
    box-shadow: var(--card-shadow, 0 1px 2px rgb(0 0 0 / 0.04));
    gap: 0 !important;
}

.starter-uti-cert-panel > .wp-block-column {
    padding: 1.75rem;
}

@media (min-width: 782px) {
    .starter-uti-cert-panel > .wp-block-column:first-child {
        background: color-mix(in srgb, var(--uti-primary) 14%, hsl(var(--background)));
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

.starter-uti-cert-badge img {
    width: 100%;
    max-width: 22rem;
    height: auto;
    margin-inline: auto;
    display: block;
}

.starter-uti-team {
    background: hsl(var(--muted) / 0.3);
    border-block: 1px solid hsl(var(--border));
}

.starter-uti-team p:not(.starter-uti-eyebrow):not(.starter-uti-heading) {
    color: hsl(var(--muted-foreground));
    line-height: 1.7;
}

.starter-uti-info-card {
    border: 1px solid hsl(var(--border));
    border-radius: var(--radius);
    background: hsl(var(--card));
    padding: 1.35rem 1.4rem;
    height: 100%;
}

.starter-uti-info-label {
    font-size: 0.7rem !important;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #6a8a1f !important;
    margin: 0 0 0.65rem !important;
}

.starter-uti-info-card a {
    color: hsl(var(--foreground));
    text-decoration: none;
}

.starter-uti-info-card a:hover {
    color: #6a8a1f;
}

.starter-uti-cta .wp-block-cover__inner-container {
    max-width: 40rem;
    margin-inline: auto;
    text-align: center;
}


.alignfull {
	width: 100vw;
	position: relative;
	left: 50%;
	right: 50%;
	margin-left: -50vw;
	margin-right: -50vw;
	text-align: center;
}

.alignfull img {
	width: 100%;
}

.alignfull .wp-block-cover__inner-container {
    max-width: var(--max-width);
}