/* ═══════════════════════════════════════════════════════════
   INNER PAGE HEROES — Dark Cinematic / Mint-Teal Luxury
   ═══════════════════════════════════════════════════════════ */

.page-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    min-height: clamp(400px, 52vh, 580px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

/* ── Full-bleed background photo ── */
.page-hero__canvas {
    position: absolute;
    inset: 0;
    z-index: 0;
}
.page-hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 25%;
    display: block;
}

/* ── Dark cinematic overlay (base) ── */
.page-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(110deg,
        rgba(6, 14, 13, 0.93) 0%,
        rgba(6, 14, 13, 0.88) 32%,
        rgba(6, 14, 13, 0.72) 60%,
        rgba(6, 14, 13, 0.50) 100%
    );
}

/* ── Film grain ── */
.page-hero__grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.038;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='400' height='400'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='400' height='400' filter='url(%23g)'/%3E%3C/svg%3E");
    background-size: 280px 280px;
}

/* ── Ambient mint-gold aurora ── */
.page-hero__aurora {
    position: absolute;
    top: -20%; right: -5%;
    width: 60%; height: 90%;
    z-index: 1;
    pointer-events: none;
    background: radial-gradient(ellipse at 60% 30%,
        rgba(62, 155, 140, 0.1) 0%,
        rgba(200, 169, 107, 0.05) 40%,
        transparent 65%);
    animation: phAurora 13s ease-in-out infinite alternate;
}
@keyframes phAurora {
    from { opacity: 0.5; transform: scale(1); }
    to   { opacity: 1;   transform: scale(1.1) translateY(-18px); }
}

/* ── Gold left-edge rail ── */
.page-hero__rail {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    z-index: 20;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(200, 169, 107, 0.4) 15%,
        #C8A96B 40%,
        #E5D4B3 50%,
        #C8A96B 60%,
        rgba(200, 169, 107, 0.4) 85%,
        transparent 100%);
}

/* Top gold hairline */
.page-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #1C3A35, #C8A96B 48%, #E5D4B3 52%, #C8A96B 56%, #1C3A35);
    z-index: 25;
}

/* ── Inner wrapper ── */
.page-hero__inner {
    position: relative;
    z-index: 5;
    padding-top: clamp(7.5rem, 14vw, 10rem);
    padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
}

.page-hero__copy { max-width: 46rem; }

/* ── Breadcrumb ── */
.page-hero__breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(200, 169, 107, 0.8);
    margin-bottom: 1.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid rgba(200, 169, 107, 0.2);
    background: rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(8px);
}
.page-hero__breadcrumb a {
    color: rgba(245, 250, 249, 0.45);
    text-decoration: none;
    transition: color 0.25s;
}
.page-hero__breadcrumb a:hover { color: #E5D4B3; }
.page-hero__breadcrumb span { opacity: 0.3; }

/* ── Title ── */
.page-hero__title {
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.75rem, 6.5vw, 4.75rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.03em;
    color: #F5FAF9;
    margin: 0;
}

/* ── Subtitle ── */
.page-hero__subtitle {
    margin-top: 1.25rem;
    font-size: clamp(1rem, 1.7vw, 1.12rem);
    line-height: 1.85;
    color: rgba(245, 250, 249, 0.62);
    max-width: 34rem;
}

/* ── Gold accent rule ── */
.page-hero__accent-line {
    width: 0;
    height: 2px;
    margin-top: 1.75rem;
    background: linear-gradient(90deg, #C8A96B, rgba(200, 169, 107, 0.15));
    animation: phLineGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
@keyframes phLineGrow {
    from { width: 0; opacity: 0; }
    to   { width: 72px; opacity: 1; }
}

/* ── Curve ── */
.page-hero__curve {
    position: absolute;
    bottom: -1px; left: 0;
    width: 100%; height: 72px;
    z-index: 8;
    color: #F5FAF9;
    line-height: 0;
    pointer-events: none;
}

/* ── Stat chips (services) ── */
.page-hero__stat-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
    animation: phFadeUp 0.55s ease 0.45s both;
}
.page-hero__stat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(200, 169, 107, 0.28);
    color: rgba(245, 250, 249, 0.85);
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}
.page-hero__stat-chip strong { color: #E5D4B3; font-size: 0.82rem; }

/* ── Trust row (about) ── */
.page-hero__trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.75rem;
    animation: phFadeUp 0.55s ease 0.45s both;
}
.page-hero__trust-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(229, 212, 179, 0.85);
}
.page-hero__trust-item svg { width: 1rem; height: 1rem; color: #C8A96B; }

/* ── Contact chips ── */
.page-hero__contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
    animation: phFadeUp 0.55s ease 0.45s both;
}
.page-hero__contact-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.65rem 1.25rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(200, 169, 107, 0.3);
    color: rgba(245, 250, 249, 0.9);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    backdrop-filter: blur(8px);
    transition: all 0.3s ease;
}
.page-hero__contact-chip:hover { background: rgba(200,169,107,0.15); border-color: rgba(200,169,107,0.55); }
.page-hero__contact-chip svg { width: 0.88rem; height: 0.88rem; color: #C8A96B; }
.page-hero__contact-chip--avail { cursor: default; }
.page-hero__avail-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 2px rgba(74, 222, 128, 0.22);
    animation: availPulse 2.2s ease-in-out infinite;
}
@keyframes availPulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(74,222,128,0.22); }
    50%       { box-shadow: 0 0 0 5px rgba(74,222,128,0.08); }
}

/* ── Appointment note ── */
.page-hero__appt-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1.75rem;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: rgba(229, 212, 179, 0.82);
    animation: phFadeUp 0.55s ease 0.45s both;
}
.page-hero__appt-note svg { width: 0.9rem; height: 0.9rem; color: #C8A96B; }

@keyframes phFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ════════════════════════════════════════════
   VARIANT: ABOUT — Heritage & Trust
   Warm tones · Serif italic · Faded "Care" word
   ════════════════════════════════════════════ */
.page-hero--about .page-hero__overlay {
    background: linear-gradient(150deg,
        rgba(8, 18, 16, 0.94) 0%,
        rgba(16, 34, 30, 0.88) 35%,
        rgba(18, 36, 32, 0.72) 62%,
        rgba(10, 22, 20, 0.48) 100%
    );
}
.page-hero--about .page-hero__aurora {
    background: radial-gradient(ellipse at 60% 35%,
        rgba(62, 155, 140, 0.14) 0%,
        rgba(200, 169, 107, 0.07) 45%,
        transparent 70%);
}
.page-hero__deco-word {
    position: absolute;
    right: -2%; bottom: -5%;
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(10rem, 20vw, 22rem);
    font-weight: 700;
    font-style: italic;
    color: rgba(62, 155, 140, 0.06);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    white-space: nowrap;
}
.page-hero--about .page-hero__title {
    font-style: italic;
    font-size: clamp(2.75rem, 7vw, 5rem);
}


/* ════════════════════════════════════════════
   VARIANT: SERVICES — Clinical Precision
   Cool mint-dark · Stripe texture · Floating icons
   ════════════════════════════════════════════ */
.page-hero--services .page-hero__overlay {
    background: linear-gradient(105deg,
        rgba(4, 12, 11, 0.95) 0%,
        rgba(8, 18, 16, 0.90) 30%,
        rgba(10, 22, 20, 0.75) 58%,
        rgba(8, 18, 16, 0.48) 100%
    );
}
.page-hero--services .page-hero__aurora {
    background: radial-gradient(ellipse at 70% 20%,
        rgba(62, 155, 140, 0.14) 0%,
        rgba(200, 169, 107, 0.06) 40%,
        transparent 65%);
}
.page-hero__stripe {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background: repeating-linear-gradient(
        -45deg,
        transparent,
        transparent 64px,
        rgba(62, 155, 140, 0.022) 64px,
        rgba(62, 155, 140, 0.022) 65px
    );
}
.page-hero__float-icons {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}
.page-hero__icon {
    position: absolute;
    width: 3.25rem; height: 3.25rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(62, 155, 140, 0.28);
    color: rgba(197, 232, 226, 0.65);
    backdrop-filter: blur(6px);
    animation: phIconFloat 8s ease-in-out infinite;
}
.page-hero__icon svg { width: 1.3rem; height: 1.3rem; }
.page-hero__icon--1 { top: 18%; right: 12%; animation-delay: 0s; }
.page-hero__icon--2 { top: 48%; right: 6%;  animation-delay: -2.8s; }
.page-hero__icon--3 { bottom: 22%; right: 16%; animation-delay: -5.5s; }
@keyframes phIconFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.65; }
    50%       { transform: translateY(-16px) rotate(5deg); opacity: 1; }
}
.page-hero--services .page-hero__title { letter-spacing: -0.04em; }


/* ════════════════════════════════════════════
   VARIANT: GALLERY — Immersive Mosaic
   Near-black · Photo cards floating right · Italic
   ════════════════════════════════════════════ */
.page-hero--gallery .page-hero__overlay {
    background: linear-gradient(108deg,
        rgba(4, 8, 7, 0.97) 0%,
        rgba(4, 8, 7, 0.92) 28%,
        rgba(4, 8, 7, 0.78) 52%,
        rgba(4, 8, 7, 0.45) 78%,
        rgba(4, 8, 7, 0.20) 100%
    );
}
.page-hero--gallery .page-hero__aurora {
    background: radial-gradient(ellipse at 70% 50%,
        rgba(62, 155, 140, 0.08) 0%,
        transparent 60%);
}
.page-hero__mosaic {
    position: absolute;
    right: 5%;
    top: 0; bottom: 0;
    width: 45%;
    z-index: 3;
    pointer-events: none;
}
.page-hero__mosaic-card {
    position: absolute;
    background-size: cover;
    background-position: center;
    border: 1px solid rgba(200, 169, 107, 0.25);
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    animation: phMosaicFloat 20s ease-in-out infinite alternate;
}
.page-hero__mosaic-card--1 { width: 48%; height: 52%; top: 10%; left: 0%;   animation-delay: 0s; }
.page-hero__mosaic-card--2 { width: 40%; height: 44%; top: 5%;  right: 0%;  animation-delay: -5s; }
.page-hero__mosaic-card--3 { width: 44%; height: 36%; bottom: 8%; left: 8%; animation-delay: -10s; }
.page-hero__mosaic-card--4 { width: 36%; height: 30%; bottom: 12%; right: 2%; animation-delay: -3s; }
@keyframes phMosaicFloat {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(4px, -10px) scale(1.03); }
}
.page-hero--gallery .page-hero__title {
    font-style: italic;
    font-size: clamp(2.75rem, 7vw, 5rem);
}
@media (max-width: 767px) {
    .page-hero__mosaic { display: none; }
}


/* ════════════════════════════════════════════
   VARIANT: CONTACT — Warm Invitation
   Teal tones · Dot grid · Contact chips
   ════════════════════════════════════════════ */
.page-hero--contact .page-hero__overlay {
    background: linear-gradient(135deg,
        rgba(8, 18, 16, 0.92) 0%,
        rgba(12, 26, 24, 0.86) 35%,
        rgba(14, 30, 28, 0.70) 62%,
        rgba(8, 20, 18, 0.46) 100%
    );
}
.page-hero--contact .page-hero__aurora {
    background: radial-gradient(ellipse at 55% 40%,
        rgba(62, 155, 140, 0.14) 0%,
        rgba(200, 169, 107, 0.05) 40%,
        transparent 65%);
}
.page-hero__dots-grid {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image: radial-gradient(circle, rgba(62, 155, 140, 0.22) 1px, transparent 1px);
    background-size: 38px 38px;
    opacity: 0.38;
    mask-image: linear-gradient(130deg, transparent 25%, rgba(0,0,0,0.7) 55%, transparent 85%);
    -webkit-mask-image: linear-gradient(130deg, transparent 25%, rgba(0,0,0,0.7) 55%, transparent 85%);
}


/* ════════════════════════════════════════════
   VARIANT: APPOINTMENT — Energetic Action
   Strong mint-dark · Pulsing rings
   ════════════════════════════════════════════ */
.page-hero--appointment .page-hero__overlay {
    background: linear-gradient(115deg,
        rgba(8, 18, 16, 0.94) 0%,
        rgba(14, 30, 28, 0.88) 35%,
        rgba(18, 38, 36, 0.72) 62%,
        rgba(10, 24, 22, 0.46) 100%
    );
}
.page-hero--appointment .page-hero__aurora {
    background: radial-gradient(ellipse at 75% 35%,
        rgba(62, 155, 140, 0.16) 0%,
        rgba(200, 169, 107, 0.06) 35%,
        transparent 62%);
    animation: phAurora 10s ease-in-out infinite alternate;
}
.page-hero__pulse-ring {
    position: absolute;
    width: 340px; height: 340px;
    border-radius: 50%;
    border: 1px solid rgba(62, 155, 140, 0.2);
    top: 50%; right: 10%;
    transform: translate(50%, -50%);
    z-index: 2;
    pointer-events: none;
    animation: phRingPulse 3.8s ease-out infinite;
}
.page-hero__pulse-ring::before,
.page-hero__pulse-ring::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(62, 155, 140, 0.1);
}
.page-hero__pulse-ring::before { inset: -26px; }
.page-hero__pulse-ring::after  { inset: -52px; opacity: 0.5; }
.page-hero__pulse-ring--2 {
    width: 190px; height: 190px;
    right: 22%; top: 32%;
    border-color: rgba(62, 155, 140, 0.14);
    animation-delay: -1.9s;
}
.page-hero__pulse-ring--2::before { inset: -18px; }
.page-hero__pulse-ring--2::after  { inset: -36px; }
@keyframes phRingPulse {
    0%   { transform: translate(50%, -50%) scale(0.88); opacity: 0.85; }
    65%  { transform: translate(50%, -50%) scale(1.22); opacity: 0; }
    100% { transform: translate(50%, -50%) scale(1.22); opacity: 0; }
}
@media (max-width: 767px) {
    .page-hero__pulse-ring,
    .page-hero__pulse-ring--2 { display: none; }
}


/* ════════════════════════════════════════════
   VARIANT: SERVICE DETAIL — Dramatic Spotlight
   ════════════════════════════════════════════ */
.page-hero--service .page-hero__overlay {
    background:
        radial-gradient(ellipse 80% 100% at 75% 40%,
            rgba(6, 14, 13, 0.40) 0%,
            rgba(6, 14, 13, 0.80) 55%,
            rgba(6, 14, 13, 0.96) 100%
        ),
        linear-gradient(to right,
            rgba(6, 14, 13, 0.96) 0%,
            rgba(6, 14, 13, 0.82) 40%,
            rgba(6, 14, 13, 0.50) 100%
        );
}
.page-hero--service .page-hero__bg-img { object-position: center 15%; }
.page-hero--service .page-hero__title  { font-size: clamp(2.5rem, 5.5vw, 4rem); }


/* ════════════════════════════════════════════
   VARIANT: DEFAULT
   ════════════════════════════════════════════ */
.page-hero--default {
    background: linear-gradient(145deg, #0a1c1a 0%, #163430 55%, #0c1e1c 100%);
}
.page-hero--default .page-hero__copy {
    max-width: 52rem;
    margin: 0 auto;
    text-align: center;
}
.page-hero--default .page-hero__accent-line {
    margin-left: auto;
    margin-right: auto;
}


/* ── Responsive ── */
@media (max-width: 1023px) {
    .page-hero__float-icons { display: none; }
    .page-hero__deco-word   { font-size: clamp(7rem, 22vw, 14rem); }
}
@media (max-width: 639px) {
    .page-hero__stat-chips,
    .page-hero__trust-row,
    .page-hero__contact-chips { gap: 0.5rem; }
    .page-hero__stat-chip { font-size: 0.6rem; padding: 0.4rem 0.75rem; }
    .page-hero__dots-grid  { opacity: 0.22; }
    .page-hero__deco-word  { display: none; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .page-hero__aurora,
    .page-hero__icon,
    .page-hero__mosaic-card,
    .page-hero__pulse-ring,
    .page-hero__pulse-ring--2,
    .page-hero__avail-dot,
    .page-hero__accent-line { animation: none !important; }
    .page-hero__accent-line { width: 72px; }
}
