/* =========================================================
   AKEELA DENTAL CARE — PATIENT CASES PAGE
   Uses the site tokens: teal #009DA5, dark teal #123A3C,
   orange #F3754B, off-white #F7FAFA, Georgia headings.
   Header, footer and popup styles come from style.css / gallery.css.
========================================================= */

.ak-pc-page {
    --pc-teal: #009DA5;
    --pc-teal-dark: #123A3C;
    --pc-orange: #F3754B;
    --pc-bg: #F7FAFA;
    --pc-line: #DCEBEC;
    --pc-text: #496466;
    --pc-muted: #789092;
    --h: 250px;
    --gap: 10px;
}
@media (max-width: 900px) { .ak-pc-page { --h: 190px; } }
@media (max-width: 560px) { .ak-pc-page { --h: 140px; --gap: 8px; } }

/* ---------- SELF-CONTAINED BASE (no gallery.css needed) ---------- */

.ak-pc-page {
    --ak-green: #009DA5;
    --ak-green-dark: #007F86;
    --ak-orange: #F3754B;
    --ak-ink: #173B3D;
    --ak-text: #496466;
    --ak-muted: #789092;
    --ak-line: #DCEBEC;
    --ak-white: #FFFFFF;
    --ak-offwhite: #F7FAFA;
    background: #fff; color: var(--ak-ink);
    font-family: "DM Sans", "Manrope", sans-serif;
    overflow-x: hidden;
}

/* ---------- HERO ---------- */

.ak-pc-hero {
    padding: 160px 7% 56px;
    background: linear-gradient(180deg, #F7FAFA 0%, #fff 100%);
    text-align: center;
}
.ak-pc-hero-inner { max-width: 820px; margin: 0 auto; }

.ak-pc-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    color: var(--pc-teal); font-size: 11px; font-weight: 800; letter-spacing: 3px;
}
.ak-pc-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--pc-orange); }

.ak-pc-hero h1 {
    margin: 18px 0 20px;
    color: var(--pc-teal-dark);
    font-family: Georgia, serif; font-weight: 400;
    font-size: clamp(38px, 5.6vw, 66px); line-height: 1.02; letter-spacing: -1.5px;
}
.ak-pc-hero h1 em { display: block; color: var(--pc-orange); font-style: italic; }

.ak-pc-hero p {
    max-width: 560px; margin: 0 auto 26px;
    color: var(--pc-text); font-size: 15px; line-height: 1.85;
}

.ak-pc-privacy {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 11px 18px; border-radius: 999px;
    background: #fff; border: 1px solid var(--pc-line);
    color: var(--pc-teal-dark); font-size: 12.5px; font-weight: 600; text-align: left;
}
.ak-pc-privacy svg { flex: none; color: var(--pc-teal); }

.ak-pc-back {
    display: block; width: max-content; margin: 26px auto 0;
    color: var(--pc-teal); font-size: 13px; font-weight: 700;
}
.ak-pc-back:hover { text-decoration: underline; }


/* ---------- STICKY TABS ---------- */

.ak-pc-tabs {
    position: sticky; top: 88px; z-index: 40;
    background: rgba(255,255,255,.92);
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border-top: 1px solid var(--pc-line); border-bottom: 1px solid var(--pc-line);
}
.ak-pc-tabs-inner {
    display: flex; justify-content: center; gap: 10px; flex-wrap: wrap;
    padding: 12px 7%;
}
.ak-pc-tabs a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid rgba(0,157,165,.25);
    color: var(--pc-teal-dark); font-size: 12px; font-weight: 700;
    transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.ak-pc-tabs a span {
    padding: 1px 8px; border-radius: 999px;
    background: #E6F4F5; color: var(--pc-teal); font-size: 11px;
    transition: background .25s ease, color .25s ease;
}
.ak-pc-tabs a:hover,
.ak-pc-tabs a[aria-current="true"] { background: var(--pc-teal); border-color: var(--pc-teal); color: #fff; }
.ak-pc-tabs a:hover span,
.ak-pc-tabs a[aria-current="true"] span { background: rgba(255,255,255,.22); color: #fff; }

@media (max-width: 800px) {
    .ak-pc-tabs-inner { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; padding: 10px 5%; scrollbar-width: none; }
    .ak-pc-tabs-inner::-webkit-scrollbar { display: none; }
    .ak-pc-tabs a { white-space: nowrap; }
}


/* ---------- SECTIONS ---------- */

.ak-pc-set { padding: 70px 7%; background: #fff; }
.ak-pc-set-alt { background: var(--pc-bg); }
.ak-pc-inner { width: min(1240px, 100%); margin: 0 auto; }

.ak-pc-head {
    display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap;
    margin-bottom: 28px; padding-bottom: 20px;
    border-bottom: 2px solid rgba(0,157,165,.12);
}
.ak-pc-head h2 {
    margin: 0; color: var(--pc-teal-dark);
    font-family: Georgia, serif; font-weight: 400; font-size: clamp(28px, 3.4vw, 38px); letter-spacing: -.5px;
}
.ak-pc-head p { margin: 6px 0 0; color: var(--pc-muted); font-size: 14px; line-height: 1.7; max-width: 520px; }

.ak-pc-tag {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 6px 14px; border-radius: 999px;
    background: #FFF1EB; color: var(--pc-orange); font-size: 11px; font-weight: 800;
}
.ak-pc-tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--pc-orange); }


/* ---------- PHOTO ROWS (flush rows, no cropping) ---------- */

.ak-pc-rows { display: flex; flex-wrap: wrap; gap: var(--gap); }
.ak-pc-rows::after { content: ""; flex-grow: 1000000; }
.ak-pc-rows.ak-pc-js::after { display: none; }
.ak-pc-rows.ak-pc-js .ak-pc-ph { flex: none; }

.ak-pc-ph {
    position: relative; display: block; padding: 0; border: 0; overflow: hidden; cursor: zoom-in;
    border-radius: 14px; background: #F0F4F4;
    box-shadow: 0 14px 34px rgba(14,48,49,.10);
    aspect-ratio: var(--r); align-self: flex-start;
    flex: calc(var(--r) * 100) 1 calc(var(--r) * var(--h));
    transition: transform .35s ease, box-shadow .35s ease;
}
.ak-pc-ph:hover { transform: translateY(-5px); box-shadow: 0 24px 54px rgba(14,48,49,.18); }
.ak-pc-ph:focus-visible { outline: 2px solid var(--pc-teal); outline-offset: 3px; }
.ak-pc-ph img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: none;
    object-fit: cover; display: block; transition: transform .6s ease;
}
.ak-pc-ph:hover img { transform: scale(1.05); }


/* ---------- FINAL CTA ---------- */

.ak-pc-cta {
    position: relative; min-height: 440px; padding: 90px 7%;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
    background: linear-gradient(90deg, #003A3D 0%, #00565A 100%); color: #fff;
}
.ak-pc-cta-content { position: relative; z-index: 2; width: min(720px, 100%); text-align: center; }
.ak-pc-cta-content > span { display: block; margin-bottom: 16px; color: var(--pc-orange); font-size: 9px; font-weight: 700; letter-spacing: 3px; }
.ak-pc-cta h2 { margin: 0; color: #fff; font-family: Georgia, serif; font-weight: 400; font-size: clamp(32px, 5vw, 48px); line-height: 1; }
.ak-pc-cta h2 em { display: block; color: var(--pc-orange); font-style: italic; }
.ak-pc-cta-content > p { max-width: 460px; margin: 20px auto 26px; color: rgba(255,255,255,.72); font-size: 13px; line-height: 1.8; }
.ak-pc-cta-content > div { display: flex; justify-content: center; gap: 12px; }
.ak-pc-cta small { display: block; margin-top: 26px; color: rgba(255,255,255,.45); font-size: 12px; }
@media (max-width: 600px) { .ak-pc-cta-content > div { flex-direction: column; } .ak-pc-set { padding: 50px 5%; } }


/* ---------- PHOTO VIEWER ---------- */

.ak-pc-lb {
    position: fixed; inset: 0; z-index: 1000000; display: none;
    background: rgba(4,27,29,.96);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    touch-action: pan-y;
}
.ak-pc-lb.ak-pc-lb-open { display: block; }
.ak-pc-lb-stage {
    position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto;
    padding: 68px clamp(12px, 7vw, 110px) 18px; gap: 14px;
}
.ak-pc-lb-stage img { width: 100%; height: 100%; max-width: none; min-height: 0; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.ak-pc-lb-cap { text-align: center; color: rgba(255,255,255,.7); font-size: 13px; min-height: 22px; }
.ak-pc-lb-cap b { color: #fff; font-weight: 700; margin-right: 10px; }
.ak-pc-lb button {
    position: absolute; width: 46px; height: 46px; display: grid; place-items: center;
    border: 0; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff;
    font-size: 26px; line-height: 1; cursor: pointer; transition: background .25s ease, transform .25s ease;
}
.ak-pc-lb button:hover { background: rgba(255,255,255,.25); }
.ak-pc-lb button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.ak-pc-lb-x { top: 12px; right: 12px; }
.ak-pc-lb-x:hover { transform: rotate(90deg); }
.ak-pc-lb-p { left: 12px; top: 50%; margin-top: -23px; }
.ak-pc-lb-n { right: 12px; top: 50%; margin-top: -23px; }
body.ak-pc-lock { overflow: hidden; }
@media (max-width: 720px) {
    .ak-pc-lb-p, .ak-pc-lb-n { top: auto; bottom: 12px; margin-top: 0; }
    .ak-pc-lb-stage { padding-bottom: 76px; }
}

@media (prefers-reduced-motion: reduce) {
    .ak-pc-ph, .ak-pc-ph img { transition: none; }
    .ak-pc-ph:hover, .ak-pc-ph:hover img { transform: none; }
}/* ---------- CTA BUTTONS ---------- */

.ak-gal-btn-primary, .ak-gal-btn-outline {
    display: inline-flex; align-items: center; gap: 12px; padding: 15px 22px; border-radius: 100px;
    font-size: 11px; font-weight: 700; letter-spacing: .8px; transition: transform .3s ease, background-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.ak-gal-btn-primary { background: var(--ak-orange); color: #fff; }
.ak-gal-btn-primary:hover { background: #ff8a62; transform: translateY(-3px); box-shadow: 0 18px 35px rgba(243,117,75,.3); }
.ak-gal-btn-outline { border: 1px solid rgba(255,255,255,.35); color: #fff; }
.ak-gal-btn-outline:hover { background: #fff; color: var(--ak-green-dark); transform: translateY(-3px); }


/* =====================================================
   APPOINTMENT POPUP (reused pattern)
===================================================== */

.ak-svc-popup {
    position: fixed; right: 24px; bottom: 24px; z-index: 9999; width: 350px; max-width: calc(100vw - 32px);
    padding: 25px 25px 23px; background: rgba(255,255,255,.97); border: 1px solid var(--ak-line); border-radius: 22px;
    box-shadow: 0 25px 70px rgba(16,43,45,.2), 0 5px 20px rgba(16,43,45,.08); backdrop-filter: blur(18px);
    opacity: 0; visibility: hidden; transform: translateY(30px) scale(.96);
    transition: opacity .45s ease, visibility .45s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.ak-svc-popup.ak-svc-popup-visible { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }
.ak-svc-popup-accent { position: absolute; top: 0; left: 24px; width: 42px; height: 3px; background: var(--ak-orange); border-radius: 0 0 5px 5px; }
.ak-svc-popup-close {
    position: absolute; top: 13px; right: 14px; width: 28px; height: 28px; border: 0; border-radius: 50%;
    background: var(--ak-offwhite); color: var(--ak-ink); font-size: 18px; line-height: 1; cursor: pointer;
    transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.ak-svc-popup-close:hover { transform: rotate(90deg); background: var(--ak-green); color: #fff; }
.ak-svc-popup-kicker { display: block; margin-bottom: 10px; font-size: 9px; font-weight: 800; letter-spacing: .17em; color: var(--ak-green); }
.ak-svc-popup h3 { margin: 0; font-family: Georgia, serif; font-size: 27px; font-weight: 400; line-height: 1.05; letter-spacing: -.5px; color: var(--ak-ink); }
.ak-svc-popup h3 em { font-style: italic; color: var(--ak-orange); }
.ak-svc-popup > p { margin: 11px 0 17px; font-size: 12px; line-height: 1.5; color: var(--ak-muted); }
.ak-svc-popup-actions { display: flex; gap: 8px; }
.ak-svc-popup-call, .ak-svc-popup-wa {
    min-height: 40px; display: inline-flex; align-items: center; justify-content: center; border-radius: 9px;
    font-size: 10px; font-weight: 800; letter-spacing: .04em; transition: transform .25s ease, background-color .25s ease, color .25s ease;
}
.ak-svc-popup-call { flex: 1; gap: 8px; background: var(--ak-green-dark); color: #fff; }
.ak-svc-popup-call:hover { transform: translateY(-2px); background: var(--ak-green); }
.ak-svc-popup-wa { padding: 0 15px; border: 1px solid var(--ak-line); color: var(--ak-ink); }
.ak-svc-popup-wa:hover { transform: translateY(-2px); background: var(--ak-offwhite); }

@media (max-width: 600px) {
    .ak-svc-popup { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 21px; border-radius: 18px; }
    .ak-svc-popup h3 { font-size: 24px; }
}