/*
 * City / governorate marketing articles - Aqar Ingoal
 *
 * Everything is scoped under .aqar-article (or .aqar-* blocks that only exist
 * on these pages) so nothing leaks into the rest of the theme. Colors come from
 * the theme's own --primary-color / --hover-color variables, set in
 * layouts/base.blade.php, so the pages follow the brand automatically.
 *
 * Written with logical properties (inline-start/end) because the site runs RTL.
 */

.aqar-article {
    --aqar-gold: var(--primary-color, #fbb700);
    --aqar-navy: var(--hover-color, #063a5d);
    --aqar-navy-soft: rgba(6, 58, 93, 0.06);
    --aqar-ink: #161e2d;
    --aqar-muted: #5c6a7e;
    --aqar-line: #e6e9ef;
    --aqar-radius: 16px;
    --aqar-shadow: 0 4px 24px rgba(6, 58, 93, 0.08);
    color: var(--aqar-ink);
    font-size: 17px;
    line-height: 1.9;
}

.aqar-article :is(h2, h3, h4) {
    color: var(--aqar-navy);
    font-weight: 700;
    line-height: 1.4;
}

.aqar-article h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-block: 0 20px;
}

.aqar-article h3 {
    font-size: clamp(19px, 2vw, 23px);
    margin-block: 0 12px;
}

.aqar-article p {
    margin-block-end: 18px;
}

.aqar-section {
    margin-block-end: 56px;
}

.aqar-section__head {
    margin-block-end: 28px;
}

.aqar-section__head p {
    color: var(--aqar-muted);
    margin-block-end: 0;
}

/* Gold rule under section titles - the one repeated brand flourish. */
.aqar-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--aqar-gold);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-block-end: 10px;
    text-transform: uppercase;
}

.aqar-eyebrow::before {
    background: var(--aqar-gold);
    block-size: 3px;
    border-radius: 2px;
    content: '';
    inline-size: 28px;
}

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

.aqar-hero {
    background: var(--aqar-navy);
    inline-size: 100%;
    overflow: hidden;
    position: relative;
}

.aqar-hero__media {
    inset: 0;
    position: absolute;
}

.aqar-hero__media img {
    block-size: 100%;
    inline-size: 100%;
    object-fit: cover;
}

.aqar-hero__media::after {
    background: linear-gradient(
        180deg,
        rgba(6, 58, 93, 0.55) 0%,
        rgba(6, 58, 93, 0.82) 55%,
        rgba(6, 58, 93, 0.95) 100%
    );
    content: '';
    inset: 0;
    position: absolute;
}

.aqar-hero__inner {
    padding-block: clamp(56px, 9vw, 104px);
    position: relative;
    z-index: 2;
}

.aqar-hero__badge {
    align-items: center;
    background: rgba(251, 183, 0, 0.15);
    border: 1px solid rgba(251, 183, 0, 0.45);
    border-radius: 999px;
    color: var(--aqar-gold);
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 8px;
    margin-block-end: 20px;
    padding: 8px 18px;
}

.aqar-hero__badge .aqar-dot {
    background: var(--aqar-gold);
    block-size: 8px;
    border-radius: 50%;
    display: inline-block;
    inline-size: 8px;
}

.aqar-hero h1 {
    color: #fff;
    font-size: clamp(28px, 4.6vw, 52px);
    font-weight: 800;
    line-height: 1.3;
    margin-block-end: 18px;
    max-inline-size: 20ch;
}

.aqar-hero__lead {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(16px, 1.6vw, 19px);
    line-height: 1.85;
    margin-block-end: 32px;
    max-inline-size: 62ch;
}

/* ----------------------------------------------------------------- cta -- */

.aqar-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.aqar-btn {
    align-items: center;
    border: 2px solid transparent;
    border-radius: 12px;
    display: inline-flex;
    font-size: 17px;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    padding: 15px 28px;
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.aqar-btn:hover {
    text-decoration: none;
    transform: translateY(-2px);
}

.aqar-btn svg {
    block-size: 21px;
    flex: none;
    inline-size: 21px;
}

.aqar-btn--call {
    background: var(--aqar-gold);
    box-shadow: 0 6px 20px rgba(251, 183, 0, 0.35);
    color: #14213d;
}

.aqar-btn--call:hover {
    background: #ffc721;
    color: #14213d;
}

.aqar-btn--wa {
    background: #25d366;
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.32);
    color: #fff;
}

.aqar-btn--wa:hover {
    background: #1fbe5a;
    color: #fff;
}

.aqar-btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
}

.aqar-btn--ghost:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.aqar-btn--outline {
    background: #fff;
    border-color: var(--aqar-navy);
    color: var(--aqar-navy);
}

.aqar-btn--outline:hover {
    background: var(--aqar-navy);
    color: #fff;
}

/* ---------------------------------------------------------- trust bar -- */

.aqar-stats {
    background: #fff;
    border: 1px solid var(--aqar-line);
    border-radius: var(--aqar-radius);
    box-shadow: var(--aqar-shadow);
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    margin-block-start: -46px;
    overflow: hidden;
    position: relative;
    z-index: 3;
}

.aqar-stat {
    background: #fff;
    outline: 1px solid var(--aqar-line);
    padding: 24px 18px;
    text-align: center;
}

.aqar-stat__value {
    color: var(--aqar-navy);
    display: block;
    font-size: clamp(22px, 2.6vw, 30px);
    font-weight: 800;
    line-height: 1.25;
}

.aqar-stat__label {
    color: var(--aqar-muted);
    display: block;
    font-size: 14px;
    margin-block-start: 4px;
}

/* ------------------------------------------------------- answer-first -- */

/*
 * The quotable paragraph. Kept high on the page and visually distinct because
 * it is what featured snippets and AI answer engines lift.
 */
.aqar-answer {
    background: linear-gradient(135deg, rgba(251, 183, 0, 0.1), rgba(251, 183, 0, 0.02));
    border-inline-start: 5px solid var(--aqar-gold);
    border-radius: 12px;
    font-size: clamp(17px, 1.8vw, 20px);
    font-weight: 600;
    line-height: 1.85;
    margin-block: 0 40px;
    padding: 26px 30px;
}

.aqar-answer p:last-child {
    margin-block-end: 0;
}

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

.aqar-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.aqar-card {
    background: #fff;
    border: 1px solid var(--aqar-line);
    border-radius: var(--aqar-radius);
    padding: 26px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.aqar-card:hover {
    border-color: rgba(251, 183, 0, 0.6);
    box-shadow: var(--aqar-shadow);
    transform: translateY(-3px);
}

.aqar-card h3 {
    margin-block-end: 8px;
}

.aqar-card p {
    color: var(--aqar-muted);
    font-size: 16px;
    margin-block-end: 0;
}

.aqar-card__icon {
    align-items: center;
    background: rgba(251, 183, 0, 0.14);
    border-radius: 12px;
    block-size: 46px;
    color: var(--aqar-navy);
    display: inline-flex;
    font-size: 22px;
    inline-size: 46px;
    justify-content: center;
    margin-block-end: 16px;
}

/* Numbered list for landmarks - the number doubles as the visual anchor. */
.aqar-landmark {
    border-block-end: 1px solid var(--aqar-line);
    display: flex;
    gap: 20px;
    padding-block: 22px;
}

.aqar-landmark:last-child {
    border-block-end: 0;
}

.aqar-landmark__num {
    align-items: center;
    background: var(--aqar-navy);
    border-radius: 12px;
    block-size: 44px;
    color: var(--aqar-gold);
    display: flex;
    flex: none;
    font-size: 18px;
    font-weight: 800;
    inline-size: 44px;
    justify-content: center;
}

.aqar-landmark__body h3 {
    margin-block-end: 6px;
}

.aqar-landmark__body p {
    color: var(--aqar-muted);
    margin-block-end: 0;
}

/* -------------------------------------------------------------- chips -- */

.aqar-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.aqar-chip {
    background: var(--aqar-navy-soft);
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--aqar-navy);
    display: inline-block;
    font-size: 15px;
    font-weight: 600;
    padding: 9px 18px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

a.aqar-chip:hover {
    background: rgba(251, 183, 0, 0.16);
    border-color: var(--aqar-gold);
    color: var(--aqar-navy);
    text-decoration: none;
}

/* ---------------------------------------------------------- cta band -- */

.aqar-cta-band {
    background: var(--aqar-navy);
    border-radius: 20px;
    margin-block: 56px;
    overflow: hidden;
    padding: clamp(32px, 5vw, 52px);
    position: relative;
}

/* Soft gold glow, keeps the band from reading as a flat navy rectangle. */
.aqar-cta-band::after {
    background: radial-gradient(circle, rgba(251, 183, 0, 0.22) 0%, transparent 70%);
    block-size: 420px;
    content: '';
    inline-size: 420px;
    inset-block-start: -160px;
    inset-inline-end: -120px;
    position: absolute;
}

.aqar-cta-band__inner {
    position: relative;
    z-index: 2;
}

.aqar-cta-band h2 {
    color: #fff;
    margin-block-end: 12px;
}

.aqar-cta-band p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 17px;
    margin-block-end: 26px;
    max-inline-size: 60ch;
}

.aqar-cta-band__phone {
    color: var(--aqar-gold);
    direction: ltr;
    display: inline-block;
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: 0.02em;
    margin-block-end: 22px;
    text-decoration: none;
    unicode-bidi: isolate;
}

.aqar-cta-band__phone:hover {
    color: #ffc721;
    text-decoration: none;
}

/* ---------------------------------------------------------------- faq -- */

.aqar-faq {
    display: grid;
    gap: 12px;
}

.aqar-faq details {
    background: #fff;
    border: 1px solid var(--aqar-line);
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.aqar-faq details[open] {
    border-color: rgba(251, 183, 0, 0.7);
}

.aqar-faq summary {
    align-items: center;
    color: var(--aqar-navy);
    cursor: pointer;
    display: flex;
    font-size: 17px;
    font-weight: 700;
    gap: 14px;
    justify-content: space-between;
    line-height: 1.6;
    list-style: none;
    padding: 20px 24px;
}

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

.aqar-faq summary::after {
    color: var(--aqar-gold);
    content: '+';
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.2s ease;
}

.aqar-faq details[open] summary::after {
    transform: rotate(45deg);
}

.aqar-faq__answer {
    color: var(--aqar-muted);
    padding: 0 24px 22px;
}

.aqar-faq__answer p:last-child {
    margin-block-end: 0;
}

/* ------------------------------------------------------- sticky / fab -- */

/*
 * Mobile sticky bar. Hidden on desktop, where the inline CTAs and the floating
 * button are already reachable without it.
 */
.aqar-sticky {
    background: #fff;
    border-block-start: 1px solid var(--aqar-line);
    box-shadow: 0 -4px 20px rgba(6, 58, 93, 0.12);
    display: none;
    gap: 10px;
    inset-block-end: 0;
    inset-inline: 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    position: fixed;
    z-index: 1030;
}

.aqar-sticky .aqar-btn {
    flex: 1;
    font-size: 16px;
    padding: 13px 12px;
}

.aqar-whatsapp-fab {
    align-items: center;
    background: #25d366;
    block-size: 56px;
    border-radius: 50%;
    box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
    color: #fff;
    display: flex;
    inline-size: 56px;
    inset-block-end: 24px;
    inset-inline-start: 24px;
    justify-content: center;
    position: fixed;
    transition: transform 0.2s ease;
    z-index: 1029;
}

.aqar-whatsapp-fab:hover {
    color: #fff;
    transform: scale(1.08);
}

.aqar-whatsapp-fab svg {
    block-size: 30px;
    inline-size: 30px;
}

/* ------------------------------------------------------------ listing -- */

.aqar-properties {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.aqar-empty {
    background: var(--aqar-navy-soft);
    border-radius: var(--aqar-radius);
    color: var(--aqar-muted);
    padding: 34px;
    text-align: center;
}

/* ---------------------------------------------------------------- toc -- */

.aqar-index-group {
    margin-block-end: 44px;
}

.aqar-index-group h2 {
    align-items: center;
    border-block-end: 2px solid var(--aqar-line);
    display: flex;
    gap: 12px;
    margin-block-end: 20px;
    padding-block-end: 12px;
}

.aqar-index-group h2 .aqar-count {
    background: rgba(251, 183, 0, 0.18);
    border-radius: 999px;
    color: var(--aqar-navy);
    font-size: 15px;
    font-weight: 700;
    padding: 3px 12px;
}

.aqar-index-list {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    list-style: none;
    margin: 0;
    padding: 0;
}

.aqar-index-link {
    align-items: center;
    background: #fff;
    border: 1px solid var(--aqar-line);
    border-radius: 10px;
    color: var(--aqar-navy);
    display: flex;
    font-weight: 600;
    gap: 10px;
    justify-content: space-between;
    padding: 13px 18px;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.aqar-index-link:hover {
    border-color: var(--aqar-gold);
    box-shadow: var(--aqar-shadow);
    color: var(--aqar-navy);
    text-decoration: none;
}

.aqar-index-link small {
    color: var(--aqar-muted);
    font-weight: 500;
}

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

@media (max-width: 991px) {
    .aqar-stats {
        grid-template-columns: repeat(2, 1fr);
        margin-block-start: -32px;
    }
}

@media (max-width: 767px) {
    .aqar-article {
        font-size: 16px;
    }

    .aqar-stats {
        margin-block-start: 24px;
    }

    .aqar-hero__inner {
        padding-block: 48px;
    }

    .aqar-cta-row .aqar-btn {
        flex: 1 1 100%;
    }

    .aqar-sticky {
        display: flex;
    }

    /* Keep the sticky bar from covering the end of the article. */
    .aqar-article {
        padding-block-end: 84px;
    }

    .aqar-whatsapp-fab {
        inset-block-end: 88px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .aqar-article *,
    .aqar-whatsapp-fab {
        transition: none !important;
    }

    .aqar-btn:hover,
    .aqar-card:hover,
    .aqar-whatsapp-fab:hover {
        transform: none;
    }
}

@media print {
    .aqar-sticky,
    .aqar-whatsapp-fab {
        display: none;
    }
}
