/* ==========================================================================
   AR Orthopaedic — shared styles for city landing pages & homepage extras
   (Hand-written, plain CSS — the compiled Tailwind build in style.css is a
   purged/JIT bundle scoped to index.html's original markup, so new
   components live here instead of relying on utility classes that may not
   exist in that bundle.)
   ========================================================================== */

.ml-2 {
    margin-left: 0.5rem;
}

:root {
    --ar-navy: #0a1f3d;
    --ar-navy-light: #143059;
    --ar-teal: #0d9488;
    --ar-teal-light: #14b8a6;
    --ar-teal-dark: #0f766e;
    --ar-surface: #f8fafc;
}

/* ---- Header "Locations" dropdown (desktop) --------------------------- */
.nav-dropdown {
    position: relative;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
}

.nav-dropdown-trigger svg {
    width: 0.7rem;
    height: 0.7rem;
    transition: transform 0.2s ease;
}

.nav-dropdown:hover .nav-dropdown-trigger svg,
.nav-dropdown:focus-within .nav-dropdown-trigger svg {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% + 0.85rem);
    left: 50%;
    transform: translate(-50%, 6px);
    background: #fff;
    border: 1px solid #eef2f6;
    border-radius: 0.85rem;
    box-shadow: 0 16px 40px rgba(10, 31, 61, 0.14);
    padding: 0.5rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.18s ease;
    z-index: 60;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.nav-dropdown-menu a {
    display: flex;
    flex-direction: column;
    padding: 0.55rem 0.75rem;
    border-radius: 0.6rem;
    text-decoration: none;
    color: var(--ar-navy);
    font-weight: 600;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.nav-dropdown-menu a span {
    font-weight: 500;
    font-size: 0.72rem;
    color: #94a3b8;
    margin-top: 0.1rem;
}

.nav-dropdown-menu a:hover {
    background: #f0fdfa;
    color: var(--ar-teal-dark);
}

/* ---- Mobile menu location sub-links ----------------------------------- */
.mobile-sublinks {
    display: flex;
    flex-direction: column;
    padding: 0.25rem 0 0.75rem 1rem;
    border-bottom: 1px solid #f1f5f9;
    gap: 0.1rem;
}

.mobile-sublinks a {
    color: #64748b;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-decoration: none;
}

.mobile-sublinks a:hover {
    color: var(--ar-teal);
}

/* ---- City switcher bar (below header) ------------------------------- */
.city-switcher {
    background: var(--ar-navy);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.city-switcher-inner {
    max-width: 72rem;
    margin: 0 auto;
    padding: 0.6rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.6rem;
    font-size: 0.8rem;
}

.city-switcher-label {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
    margin-right: 0.15rem;
}

.city-switcher a {
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.city-switcher a:hover {
    color: #fff;
    border-color: var(--ar-teal-light);
    background: rgba(20, 184, 166, 0.12);
}

.city-switcher a.is-active {
    background: var(--ar-teal);
    border-color: var(--ar-teal);
    color: #fff;
    font-weight: 600;
}

/* ---- Keyword / "popular searches" chip cloud ------------------------ */
.kw-section {
    background: var(--ar-surface);
    border: 1px solid #eef2f6;
    border-radius: 1.25rem;
    padding: 1.75rem 1.5rem;
}

.kw-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.kw-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.2;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.kw-chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 999px;
    background: var(--ar-teal);
    flex-shrink: 0;
}

.kw-chip:hover {
    border-color: var(--ar-teal);
    color: var(--ar-teal-dark);
    background: #f0fdfa;
}

/* ---- Compact service list item (used for full 12-service grids) ----- */
.svc-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .svc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .svc-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

.svc-tile {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: 1rem;
    padding: 1.1rem 1.15rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.svc-tile:hover {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    border-color: rgba(13, 148, 136, 0.25);
}

.svc-tile-icon {
    flex-shrink: 0;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: rgba(13, 148, 136, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ar-teal);
}

.svc-tile h4 {
    font-weight: 700;
    color: var(--ar-navy);
    font-size: 0.98rem;
    margin: 0 0 0.25rem;
}

.svc-tile p {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

/* ---- Surgery / operating-theatre gallery ----------------------------- */
.or-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
    margin-top: 3rem;
}

@media (min-width: 640px) {
    .or-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .or-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 1.1rem;
    }
}

.or-gallery-item {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: 1rem;
    overflow: hidden;
    cursor: zoom-in;
    background: #0a1f3d;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.or-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.or-gallery-item:hover img {
    transform: scale(1.06);
}

.or-gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 31, 61, 0.55), transparent 45%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.or-gallery-item:hover::after {
    opacity: 1;
}

.or-gallery-zoom {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--ar-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translateY(4px);
    transition: all 0.25s ease;
}

.or-gallery-item:hover .or-gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

/* ---- Lightbox --------------------------------------------------------- */
.or-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(5, 13, 26, 0.92);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 4rem 1.25rem 2rem;
}

.or-lightbox.is-open {
    display: flex;
}

.or-lightbox img {
    max-width: min(90vw, 900px);
    max-height: 82vh;
    border-radius: 0.75rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.or-lightbox-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s ease;
}

.or-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.or-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 0;
    right: 0;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
}

/* ---- Other-locations mini cards (footer / cross-links) ---------------- */
.other-locations {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

@media (min-width: 640px) {
    .other-locations {
        grid-template-columns: repeat(4, 1fr);
    }
}

.other-locations a {
    display: block;
    text-align: center;
    padding: 0.9rem 0.5rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s ease;
}

.other-locations a:hover {
    border-color: var(--ar-teal);
    background: rgba(13, 148, 136, 0.12);
    color: #fff;
    transform: translateY(-2px);
}

.other-locations a span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    color: #8695ab;
    margin-top: 0.2rem;
}

/* ---- Footer visibility improvements ----------------------------------- */
footer.bg-\[\#050d1a\] {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

footer.bg-\[\#050d1a\] h4 {
    letter-spacing: 0.03em;
    position: relative;
    padding-bottom: 0.6rem;
}

footer.bg-\[\#050d1a\] h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2rem;
    height: 2px;
    background: var(--ar-teal);
    border-radius: 999px;
}

footer.bg-\[\#050d1a\] p.text-slate-400,
footer.bg-\[\#050d1a\] .text-slate-400 {
    color: #c3cede;
}

footer.bg-\[\#050d1a\] .text-slate-500 {
    color: #98a6ba;
}

footer.bg-\[\#050d1a\] a.text-slate-400 {
    color: #c3cede;
}

footer.bg-\[\#050d1a\] a.text-slate-400:hover {
    color: #fff;
}

footer.bg-\[\#050d1a\] strong.text-white {
    letter-spacing: 0.01em;
}
