/* ===========================================================================
   home/css/locations.css
   ---------------------------------------------------------------------------
   Supplement to home/css/theme.css for the generated location pages in
   /quran-classes/.

   theme.css already provides the whole shell: .site-header, .site-logo,
   .main-nav, .page-hero, .section, .section-header, .section-title,
   .section-subtitle, .card-grid, .feature-card, .feature-icon, .feature-link,
   .pricing-grid, .pricing-card, .cta-section, .site-footer, .footer-grid,
   .footer-section, .footer-social, .footer-bottom, .cosmic-bg,
   .reading-progress and the .all-pages-* dropdown.

   This file adds ONLY the components theme.css does not have, in the same
   visual language and using the same custom properties. It must be loaded
   AFTER theme.css — several rules here intentionally override theme.css at
   equal specificity.

   Requires theme.css. It is NOT a standalone theme: 15 of the custom
   properties used below (--gold, --star, --sky-blue, --text-muted,
   --text-dim, --radius-*, --space-*, --transition-normal, --font-display)
   are defined there and nowhere else.
   =========================================================================== */

/* ------------------------------------------------------------ breadcrumbs */

.crumbs {
    position: relative;
    z-index: 2;
    padding: var(--space-sm) var(--space-md);
    background: rgba(13, 6, 40, 0.55);
    border-bottom: 1px solid rgba(245, 185, 66, 0.14);
}

.crumbs ol {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 13px;
}

.crumbs li {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-dim);
}

.crumbs a {
    color: var(--gold-soft);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--transition-normal);
}

.crumbs a:hover {
    border-bottom-color: var(--gold-soft);
}

.crumb-sep {
    color: rgba(255, 217, 122, 0.45);
}

/* ------------------------------------------------------------------ hero */

/* theme.css has no .page-hero .kicker rule — it styles .hero .kicker only.
   Without this the kicker inherits `.page-hero p { margin: 0 auto }` and sits
   flush against the h1. */
.page-hero .kicker {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold-soft);
    opacity: 0.9;
    margin: 0 auto 10px;
}

/* Location H1s ("Online Quran Classes in Tower Hamlets, London") are much
   longer than the two-word H1s on the inner pages, so reduce theme.css's
   clamp(32px, 5vw, 52px) to keep them to two lines on a phone. */
.page-hero h1 {
    font-size: clamp(26px, 3.8vw, 44px);
    line-height: 1.15;
}

.page-hero .hero-buttons {
    margin-top: var(--space-lg);
}

/* --------------------------------------------------------------- prose */

.prose {
    max-width: 880px;
    margin: 0 auto;
}

.prose h3 {
    font-family: var(--font-display);
    font-size: 18px;
    color: var(--gold-soft);
    margin: var(--space-md) 0 var(--space-xs);
}

.prose h3:first-child {
    margin-top: 0;
}

.prose p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

/* Fact tiles ------------------------------------------------------------- */

.local-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
}

.fact {
    background: rgba(245, 185, 66, 0.07);
    border: 1px solid rgba(245, 185, 66, 0.22);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.fact-label {
    font-family: var(--font-display);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
}

.fact-value {
    font-family: var(--font-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--star);
    line-height: 1.2;
}

.fact-note {
    font-size: 14px;
    color: var(--text-dim);
    line-height: 1.55;
}

/* Landmark list ---------------------------------------------------------- */

.landmark-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.landmark-list li {
    background: rgba(255, 255, 255, 0.045);
    border-left: 3px solid rgba(245, 185, 66, 0.5);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    padding: 12px 18px;
    margin-bottom: 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-muted);
}

.landmark-list strong {
    color: var(--gold-soft);
    font-weight: 700;
}

/* FAQ -------------------------------------------------------------------- */

.faq-section {
    max-width: 880px;
    margin: 0 auto;
}

.faq-section details {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 22px;
    margin-bottom: 10px;
    transition: border-color var(--transition-normal);
}

.faq-section details[open] {
    border-color: rgba(245, 185, 66, 0.4);
}

.faq-section summary {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 16px;
    color: var(--gold-soft);
    cursor: pointer;
    line-height: 1.5;
    list-style: none;
}

.faq-section summary::-webkit-details-marker {
    display: none;
}

.faq-section summary::after {
    content: '+';
    float: right;
    color: var(--gold);
    margin-left: 12px;
}

.faq-section details[open] summary::after {
    content: '\2212';
}

.faq-section details p {
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.75;
    color: var(--text-muted);
}

/* Area / city link cards -------------------------------------------------- */

.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-sm);
}

.area-card {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 16px 18px;
    text-decoration: none;
    transition: all var(--transition-normal);
}

.area-card:hover {
    transform: translateY(-3px);
    border-color: rgba(245, 185, 66, 0.45);
    background: rgba(245, 185, 66, 0.08);
}

.area-card-name {
    font-family: var(--font-display);
    color: var(--gold-soft);
    font-weight: 700;
    font-size: 16px;
    line-height: 1.3;
}

.area-card-meta {
    color: var(--text-dim);
    font-size: 13px;
    line-height: 1.4;
}

.area-card-all {
    border-style: dashed;
    border-color: rgba(111, 201, 255, 0.4);
}

.area-card-all .area-card-name {
    color: var(--sky-blue);
}

/* Hub grid ---------------------------------------------------------------- */

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--space-md);
}

.hub-city {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
}

.hub-city h3 {
    font-family: var(--font-display);
    font-size: 17px;
    margin-bottom: var(--space-sm);
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(245, 185, 66, 0.18);
}

.hub-city h3 a {
    color: var(--gold-soft);
    text-decoration: none;
}

.hub-city h3 a:hover {
    color: var(--star);
}

.hub-city ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hub-city li {
    margin-bottom: 7px;
}

.hub-city li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 15px;
}

.hub-city li a:hover {
    color: var(--sky-blue);
}

/* ------------------------------------------------------------------ pricing */

/* theme.css has no featured-card treatment. Give the recommended package a
   gold ring so the eye lands on it first. */
.pricing-card-featured {
    border-color: rgba(245, 185, 66, 0.55);
    box-shadow: 0 0 40px rgba(245, 185, 66, 0.14);
}

/* theme.css's .pricing-price is a block <p>; the "/month" span needs to sit
   inside the same line box as the number rather than below it. */
.pricing-card .pricing-period {
    display: inline;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-dim);
    margin-left: 2px;
}

/* ------------------------------------------------------------ anchor jumps */

/* The header is position:sticky, so a #packages jump would otherwise land
   with the section title hidden underneath it. */
.section[id] {
    scroll-margin-top: 100px;
}

/* ------------------------------------------------------------ responsive */

@media (max-width: 768px) {
    .page-hero h1 {
        font-size: clamp(24px, 6.4vw, 32px);
    }

    .page-hero .hero-buttons,
    .cta-section .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .page-hero .hero-buttons .btn,
    .cta-section .hero-buttons .btn {
        width: 100%;
    }

    .crumbs ol {
        font-size: 12px;
    }

    .local-grid,
    .hub-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .area-grid {
        grid-template-columns: 1fr;
    }

    .fact-value {
        font-size: 22px;
    }
}

@media print {
    .crumbs,
    .cta-section,
    .site-header,
    .site-footer,
    .cosmic-bg,
    .reading-progress,
    .all-pages-wrapper {
        display: none;
    }

    .in-view {
        opacity: 1 !important;
        transform: none !important;
    }
}
