/* ============================================================
   CONTACT PAGE — DEDICATED STYLESHEET
   All NEW selectors use `cp-` prefix to avoid site-wide conflicts.
   The page heavily REUSES existing classes from style.css:
     .contact-info-row, .contact-info-item, .contact-info-icon,
     .contact-grid, .contact-map-wrapper, .contact-form-card,
     .form-input, .form-textarea, .btn-primary, .btn-secondary,
     .contact-social-section, .contact-social-link, etc.
============================================================ */

.cp-page { padding-top: 0; }


/* ============================================================
   PAGE HERO / BANNER (matches About + Departments + Blogs)
============================================================ */
.cp-hero {
    position: relative;
    padding: 200px 0 90px;
    background:
        linear-gradient(135deg,
            rgba(20, 68, 42, 0.92) 0%,
            rgba(13, 115, 119, 0.88) 60%,
            rgba(20, 68, 42, 0.94) 100%),
        radial-gradient(ellipse at top left, rgba(200, 147, 58, 0.25) 0%, transparent 55%),
        radial-gradient(ellipse at bottom right, rgba(232, 185, 106, 0.18) 0%, transparent 55%),
        var(--green-deep);
    overflow: hidden;
    isolation: isolate;
}

.cp-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(45deg,
            transparent 0,
            transparent 38px,
            rgba(200, 147, 58, 0.06) 38px,
            rgba(200, 147, 58, 0.06) 40px);
    pointer-events: none;
    z-index: -1;
}

.cp-hero::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 147, 58, 0.18) 0%, transparent 70%);
    pointer-events: none;
    z-index: -1;
}

.cp-hero-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.cp-hero-arabic {
    font-family: 'Scheherazade New', 'Amiri', serif;
    direction: rtl;
    font-size: 1.7rem;
    color: var(--gold-light);
    margin-bottom: 14px;
    display: inline-block;
    animation: fadeUp 0.7s ease both;
}

.cp-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--gold-light);
    margin-bottom: 18px;
}

.cp-hero-eyebrow span {
    display: inline-block;
    width: 38px;
    height: 1px;
    background: var(--gold-light);
}

.cp-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.1rem, 5vw, 3.6rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 18px;
    color: var(--white);
}

.cp-hero-title em {
    font-style: italic;
    color: var(--gold-light);
}

.cp-hero-sub {
    max-width: 720px;
    margin: 0 auto 26px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.85);
}

.cp-breadcrumb {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 22px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(232, 185, 106, 0.35);
    border-radius: 50px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cp-breadcrumb a,
.cp-breadcrumb span {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    transition: color 0.3s ease;
}

.cp-breadcrumb a:hover { color: var(--gold-light); }
.cp-breadcrumb .crumb-sep { color: var(--gold-light); font-size: 0.7rem; }
.cp-breadcrumb .crumb-current { color: var(--gold-light); }

.cp-hero-wave {
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    line-height: 0;
    z-index: 3;
}

.cp-hero-wave svg {
    display: block;
    width: 100%;
    height: 60px;
}


/* ============================================================
   SECTION SHELL (re-usable inner padding wrapper)
============================================================ */
.cp-section {
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cp-section.alt-bg { background: var(--parchment); }

.cp-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 4%;
    position: relative;
    z-index: 2;
}

.cp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 14px;
}

.cp-eyebrow span {
    display: inline-block;
    width: 34px;
    height: 1px;
    background: var(--gold);
}

.cp-section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(1.8rem, 3.2vw, 2.4rem);
    font-weight: 700;
    color: var(--green-deep);
    line-height: 1.2;
    margin-bottom: 12px;
}

.cp-section-title em {
    font-style: italic;
    color: var(--primary-teal);
}

.cp-rule {
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-light));
    border-radius: 2px;
    margin-bottom: 22px;
}

.cp-section-sub {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-mid);
    max-width: 700px;
}

.cp-section-head {
    text-align: center;
    margin-bottom: 40px;
}

.cp-section-head .cp-rule { margin: 0 auto 22px; }
.cp-section-head .cp-section-sub { margin: 0 auto; }


/* ============================================================
   QUICK INFO STRIP (4 large pills — phone, email, hours, location)
============================================================ */
.cp-quick-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.cp-quick-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 26px 22px;
    text-align: center;
    transition: all 0.4s ease;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px -18px rgba(20, 68, 42, 0.25);
}

.cp-quick-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-teal), var(--gold));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.5s ease;
}

.cp-quick-card:hover {
    transform: translateY(-6px);
    border-color: rgba(200, 147, 58, 0.5);
    box-shadow: 0 18px 36px -22px rgba(20, 68, 42, 0.4);
}

.cp-quick-card:hover::before { transform: scaleX(1); }

.cp-quick-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1), rgba(200, 147, 58, 0.1));
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 14px;
    transition: all 0.4s ease;
}

.cp-quick-card:hover .cp-quick-icon {
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
    transform: rotate(-6deg) scale(1.05);
}

.cp-quick-label {
    font-size: 0.72rem;
    color: var(--text-soft);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 6px;
}

.cp-quick-value {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--green-deep);
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}

.cp-quick-value small {
    display: block;
    font-family: 'Roboto', sans-serif;
    font-size: 0.78rem;
    color: var(--text-mid);
    font-weight: 500;
    margin-top: 2px;
}


/* ============================================================
   MAP + FORM HEIGHT OVERRIDES (page-scoped — homepage untouched)
   The homepage pins both to 420px which crops the Send button.
   On the dedicated contact page we have room to breathe.
============================================================ */
.cp-page .contact-map-wrapper {
    height: 620px;
}

.cp-page .contact-form-card {
    height: auto;
    min-height: 620px;
    padding: 26px 24px 24px;
    display: flex;
    flex-direction: column;
}

.cp-page .contact-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.cp-page .form-textarea {
    min-height: 130px;
    max-height: none;
}

.cp-page .form-submit {
    margin-top: 8px;
    align-self: flex-start;
}

@media (max-width: 991px) {
    .cp-page .contact-map-wrapper {
        height: 420px;
    }

    .cp-page .contact-form-card {
        min-height: auto;
        padding: 22px 20px 20px;
    }

    .cp-page .form-submit {
        width: 100%;
        justify-content: center;
    }
}


/* ============================================================
   LEADER / ADMINISTRATION CONTACT CARD (unified — one block)
============================================================ */
.cp-leader-wrap {
    max-width: 1100px;
    margin: 0 auto;
}

.cp-leader-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 340px 1fr;
    box-shadow:
        0 24px 60px -28px rgba(20, 68, 42, 0.35),
        0 0 0 1px rgba(200, 147, 58, 0.1);
    position: relative;
}

.cp-leader-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--primary-teal), var(--gold));
    z-index: 2;
}

/* Left column — portrait + name */
.cp-leader-portrait-col {
    background:
        linear-gradient(160deg, var(--green-deep) 0%, var(--primary-teal-dark) 100%);
    padding: 40px 26px 30px;
    color: var(--white);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cp-leader-portrait-col::after {
    content: "﷽";
    position: absolute;
    top: 14px;
    right: 18px;
    font-family: 'Scheherazade New', 'Amiri', serif;
    font-size: 3.5rem;
    color: rgba(200, 147, 58, 0.1);
    pointer-events: none;
    line-height: 1;
}

.cp-leader-portrait {
    position: relative;
    width: 170px;
    height: 170px;
    margin: 0 auto 18px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid var(--gold);
    box-shadow:
        0 14px 32px -10px rgba(0, 0, 0, 0.4),
        0 0 0 6px rgba(200, 147, 58, 0.15);
}

.cp-leader-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cp-leader-portrait-ph {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-teal), var(--green-deep));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-light);
    font-size: 4rem;
}

.cp-leader-tag {
    display: inline-block;
    font-size: 0.66rem;
    color: var(--gold-light);
    letter-spacing: 0.2em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 8px;
}

.cp-leader-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    color: var(--white);
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 6px;
}

.cp-leader-org {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.5;
}

/* Right column — contact channels */
.cp-leader-info-col {
    padding: 36px 36px 32px;
    display: flex;
    flex-direction: column;
}

.cp-leader-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}

.cp-leader-info-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: var(--cream);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.35s ease;
    cursor: pointer;
}

.cp-leader-info-item:hover {
    border-color: rgba(200, 147, 58, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 14px 24px -16px rgba(20, 68, 42, 0.3);
    background: var(--white);
}

.cp-leader-info-wide {
    grid-column: span 2;
}

.cp-leader-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: linear-gradient(135deg, rgba(13, 115, 119, 0.1), rgba(200, 147, 58, 0.1));
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.35s ease;
}

.cp-leader-info-item:hover .cp-leader-info-icon {
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
}

.cp-leader-info-text {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
    min-width: 0;
}

.cp-leader-info-label {
    font-size: 0.7rem;
    color: var(--text-soft);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 4px;
}

.cp-leader-info-value {
    font-family: 'Playfair Display', serif;
    font-size: 0.98rem;
    color: var(--green-deep);
    font-weight: 700;
    word-break: break-word;
}

.cp-leader-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 22px;
    border-top: 1px dashed var(--border);
}


/* ============================================================
   QUICK-ACTION STRIP (WhatsApp / Call / Email / Visit)
============================================================ */
.cp-actions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.cp-action-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 28px 22px 24px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 10px 26px -22px rgba(20, 68, 42, 0.3);
}

.cp-action-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px -22px rgba(20, 68, 42, 0.45);
    color: inherit;
}

.cp-action-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.65rem;
    color: var(--white);
    margin-bottom: 14px;
    transition: all 0.4s ease;
    box-shadow: 0 14px 24px -10px rgba(0, 0, 0, 0.18);
}

.cp-action-card.act-wa .cp-action-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.cp-action-card.act-call .cp-action-icon { background: linear-gradient(135deg, var(--primary-teal), var(--green-mid)); }
.cp-action-card.act-mail .cp-action-icon { background: linear-gradient(135deg, var(--gold), #b07f2c); color: var(--green-deep); }
.cp-action-card.act-visit .cp-action-icon { background: linear-gradient(135deg, var(--green-deep), #0a1e10); }

.cp-action-card:hover .cp-action-icon {
    transform: scale(1.08) rotate(-4deg);
}

.cp-action-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.05rem;
    color: var(--green-deep);
    font-weight: 700;
    margin-bottom: 4px;
}

.cp-action-desc {
    font-size: 0.82rem;
    color: var(--text-mid);
    line-height: 1.55;
    margin-bottom: 12px;
    flex: 1;
}

.cp-action-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--primary-teal);
    letter-spacing: 0.05em;
    transition: gap 0.3s ease;
}

.cp-action-card:hover .cp-action-meta { gap: 11px; }

.cp-action-meta i { font-size: 0.7rem; }


/* ============================================================
   FAQ ACCORDION
============================================================ */
.cp-faq-wrap {
    max-width: 880px;
    margin: 0 auto;
}

.cp-faq-item {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px -16px rgba(20, 68, 42, 0.2);
}

.cp-faq-item:hover {
    border-color: rgba(200, 147, 58, 0.35);
}

.cp-faq-item.open {
    border-color: var(--gold);
    box-shadow: 0 12px 28px -18px rgba(200, 147, 58, 0.4);
}

.cp-faq-q {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 18px 22px;
    background: transparent;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: 'Playfair Display', serif;
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--green-deep);
    transition: color 0.3s ease;
}

.cp-faq-q:hover { color: var(--primary-teal); }

.cp-faq-q-num {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-teal), var(--green-mid));
    color: var(--white);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Roboto', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
}

.cp-faq-q-text { flex: 1; }

.cp-faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream);
    color: var(--primary-teal);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    transition: all 0.4s ease;
}

.cp-faq-item.open .cp-faq-toggle {
    background: var(--gold);
    color: var(--white);
    transform: rotate(180deg);
}

.cp-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease, padding 0.4s ease;
}

.cp-faq-item.open .cp-faq-a {
    max-height: 500px;
}

.cp-faq-a-inner {
    padding: 0 22px 20px 68px;
    font-size: 0.94rem;
    color: var(--text-mid);
    line-height: 1.8;
    border-top: 1px dashed var(--border);
    padding-top: 16px;
    margin-top: 0;
}


/* ============================================================
   ANIMATION HELPERS
============================================================ */
.cp-anim {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.cp-anim.cp-visible {
    opacity: 1;
    transform: translateY(0);
}

.cp-anim-d1 { transition-delay: 0.1s; }
.cp-anim-d2 { transition-delay: 0.2s; }
.cp-anim-d3 { transition-delay: 0.3s; }
.cp-anim-d4 { transition-delay: 0.4s; }


/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 1100px) {
    .cp-quick-row { grid-template-columns: repeat(2, 1fr); }
    .cp-actions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
    .cp-leader-card {
        grid-template-columns: 1fr;
    }

    .cp-leader-portrait-col {
        padding: 32px 22px 26px;
    }

    .cp-leader-portrait {
        width: 150px;
        height: 150px;
    }

    .cp-leader-info-col {
        padding: 28px 24px 26px;
    }
}

@media (max-width: 768px) {
    .cp-hero { padding: 110px 0 70px; }
    .cp-hero-arabic { font-size: 1.4rem; }
    .cp-section { padding: 60px 0; }

    .cp-faq-q {
        padding: 14px 16px;
        font-size: 0.94rem;
    }

    .cp-faq-a-inner {
        padding: 14px 16px 18px 56px;
        font-size: 0.88rem;
    }
}

@media (max-width: 576px) {
    .cp-hero { padding: 100px 0 60px; }
    .cp-section { padding: 50px 0; }
    .cp-inner { padding: 0 5%; }

    .cp-quick-row { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }
    .cp-actions-grid { grid-template-columns: 1fr; max-width: 380px; margin: 0 auto; }

    .cp-leader-info-grid {
        grid-template-columns: 1fr;
    }

    .cp-leader-info-wide {
        grid-column: span 1;
    }

    .cp-leader-cta-row .btn-primary,
    .cp-leader-cta-row .btn-secondary {
        width: 100%;
        justify-content: center;
    }

    .cp-faq-q-num { width: 28px; height: 28px; font-size: 0.78rem; }
    .cp-faq-toggle { width: 28px; height: 28px; font-size: 0.78rem; }
    .cp-faq-a-inner { padding-left: 50px; }
}