/*
 * Photo Ashry — Public Pages CSS
 * Policy / About · FAQ · Contact Us
 */

/* ══════════════════════════════════════
   SHARED HERO (bottom-aligned title)
   ══════════════════════════════════════ */

.page-hero {
    min-height: 220px;
    display: flex;
    align-items: flex-end;
    position: relative;
    overflow: hidden;
    color: #fff;
}

.page-hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.page-hero-breadcrumb {
    display: flex;
    align-items: center;
    gap: .45rem;
    font-size: .8rem;
    opacity: .6;
    margin-bottom: .8rem;
    flex-wrap: wrap;
}

.page-hero-breadcrumb a { color: #fff; text-decoration: none; }

.page-hero-accent {
    display: block;
    width: 40px;
    height: 4px;
    background: var(--pa-orange);
    border-radius: 2px;
    margin-bottom: .75rem;
}

.page-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
}

.page-wave {
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    line-height: 0;
    z-index: 3;
}

.page-wave svg { display: block; }

@media (max-width: 767px) {
    .page-hero { min-height: 180px; }
    .page-hero h1 { font-size: 1.7rem; }
}

/* ══════════════════════════════════════
   POLICY / ABOUT PAGE
   ══════════════════════════════════════ */

.policy-hero {
    background: linear-gradient(135deg, var(--pa-blue) 0%, #0d3a70 55%, #122d50 100%);
    padding-bottom: 2.5rem;
}

.policy-hero::before {
    content: '';
    position: absolute;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 55px solid rgba(255,255,255,.04);
    top: -120px;
    inset-inline-end: -80px;
}

.policy-hero::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(230,121,51,.08);
    bottom: -70px;
    inset-inline-start: 5%;
}

/* Content area */
.policy-body {
    background: #f6f8ff;
    padding: 3rem 0 5rem;
}

.policy-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 6px 40px rgba(0,0,0,.07);
    overflow: hidden;
}

.policy-card-header {
    background: linear-gradient(135deg, rgba(10,44,80,.04), rgba(10,44,80,.02));
    border-bottom: 1px solid rgba(10,44,80,.07);
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.policy-card-header-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--pa-blue);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.policy-card-header-text {
    font-weight: 700;
    color: var(--pa-blue);
    font-size: 1rem;
}

.policy-card-body {
    padding: 2rem 2.5rem;
}

.policy-content {
    line-height: 1.95;
    font-size: 1.02rem;
    color: #444;
}

.policy-content h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--pa-blue);
    margin-top: 2rem;
    margin-bottom: .75rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid rgba(10,44,80,.08);
}

.policy-content h2:first-child { margin-top: 0; }

.policy-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--pa-blue);
    margin-top: 1.5rem;
    margin-bottom: .5rem;
}

.policy-content p { margin-bottom: 1rem; }

.policy-content ul {
    padding-inline-start: 1.4rem;
    margin-bottom: 1rem;
}

.policy-content ul li { margin-bottom: .4rem; }
.policy-content ul li::marker { color: var(--pa-orange); }
.policy-content strong { color: var(--pa-blue); font-weight: 700; }

.policy-empty {
    text-align: center;
    padding: 4rem 2rem;
    color: #bbb;
}

@media (max-width: 767px) {
    .policy-hero { padding-bottom: 2rem; }
    .policy-card-body { padding: 1.5rem; }
}

/* ══════════════════════════════════════
   FAQ PAGE
   ══════════════════════════════════════ */

.faq-hero {
    background: linear-gradient(135deg, var(--pa-blue) 0%, #0d3a70 60%, #1a4a80 100%);
    padding-bottom: 4rem;
}

.faq-hero::before {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    top: -100px;
    inset-inline-end: -80px;
}

.faq-hero::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: rgba(230,121,51,.1);
    bottom: -60px;
    inset-inline-start: 5%;
}

.faq-search-wrap {
    max-width: 500px;
    margin: -28px auto 0;
    position: relative;
    z-index: 10;
}

.faq-search-wrap input {
    border-radius: 50px;
    border: none;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    font-size: 1rem;
    width: 100%;
    padding: .85rem 1.4rem .85rem 3.2rem;
}

[dir="rtl"] .faq-search-wrap input {
    padding: .85rem 3.2rem .85rem 1.4rem;
}

.faq-search-icon {
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    color: #aaa;
    pointer-events: none;
}

[dir="rtl"] .faq-search-icon {
    left: auto;
    right: 18px;
}

.faq-body {
    padding: 4rem 0;
    background: #f8f9ff;
    min-height: 50vh;
}

.faq-count {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    background: rgba(10,44,80,.08);
    color: var(--pa-blue);
    border-radius: 50px;
    padding: .3rem .9rem;
    font-size: .82rem;
    font-weight: 600;
    margin-bottom: 2rem;
}

.faq-item {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,.05);
    margin-bottom: 1rem;
    overflow: hidden;
    transition: box-shadow .2s;
}

.faq-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,.09); }
.faq-item[data-hidden="true"] { display: none; }

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem;
    cursor: pointer;
    gap: 1rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: start;
    color: var(--pa-blue);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.4;
}

.faq-question .faq-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(10,44,80,.06);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .25s ease;
    font-size: .75rem;
    color: var(--pa-blue);
}

.faq-item.open .faq-question { color: var(--pa-orange); }
.faq-item.open .faq-question .faq-icon {
    background: var(--pa-orange);
    color: #fff;
    transform: rotate(180deg);
}

.faq-answer {
    display: none;
    padding: 1rem 1.4rem 1.4rem;
    color: #555;
    line-height: 1.8;
    font-size: .95rem;
    border-top: 1px solid #f0f2f5;
}

.faq-answer.show {
    display: block;
    animation: faqFadeIn .2s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.faq-empty {
    text-align: center;
    padding: 4rem 0;
    color: #aaa;
}

.no-results { display: none; }
.no-results.show { display: block; }

/* ══════════════════════════════════════
   CONTACT US PAGE
   ══════════════════════════════════════ */

.contact-hero {
    background: linear-gradient(135deg, var(--pa-blue) 0%, #0d3a70 55%, #122d50 100%);
    padding-bottom: 3.5rem;
}

.contact-hero::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    border: 60px solid rgba(255,255,255,.03);
    top: -120px;
    inset-inline-end: -100px;
}

.contact-hero::after {
    content: '';
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    background: rgba(230,121,51,.08);
    bottom: -80px;
    inset-inline-start: 8%;
}

.contact-hero-sub {
    font-size: .95rem;
    opacity: .7;
    margin: 0;
    max-width: 480px;
}

/* Main layout */
.contact-main {
    background: #f5f7ff;
    padding: 3rem 0 5rem;
}

/* Form card */
.contact-form-card {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 8px 40px rgba(0,0,0,.07);
    overflow: hidden;
}

.contact-form-header {
    background: linear-gradient(135deg, var(--pa-blue), #0d3a70);
    padding: 1.6rem 2rem;
    color: #fff;
}

.contact-form-header h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .2rem;
}

.contact-form-header p {
    font-size: .85rem;
    opacity: .7;
    margin: 0;
}

.contact-form-body { padding: 2rem; }

/* Input icons */
.contact-input-wrap { position: relative; }

.contact-input-wrap i {
    position: absolute;
    top: 50%;
    color: #bbb;
    pointer-events: none;
    z-index: 5;
    transform: translateY(-50%);
}

[dir="ltr"] .contact-input-wrap i { left: 14px; }
[dir="rtl"] .contact-input-wrap i { right: 14px; }
[dir="ltr"] .contact-input-wrap input,
[dir="ltr"] .contact-input-wrap textarea { padding-left: 40px; }
[dir="rtl"] .contact-input-wrap input,
[dir="rtl"] .contact-input-wrap textarea { padding-right: 40px; }
.contact-input-wrap textarea { resize: vertical; }

/* Captcha */
.captcha-box {
    background: linear-gradient(135deg, #f0f4ff, #f8f5ff);
    border: 2px dashed #c5d3f5;
    border-radius: 12px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.captcha-equation {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--pa-blue);
    font-family: monospace;
    letter-spacing: 2px;
    white-space: nowrap;
}

.captcha-input {
    width: 90px;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 700;
    border-radius: 10px;
    border: 2px solid #c5d3f5;
    padding: .4rem;
}

.captcha-input:focus {
    border-color: var(--pa-blue);
    box-shadow: 0 0 0 3px rgba(10,44,80,.1);
    outline: none;
}

.captcha-label {
    font-size: .8rem;
    color: #888;
    flex-basis: 100%;
    margin-top: .3rem;
}

/* Contact info sidebar */
.contact-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    height: 100%;
}

.contact-info-card {
    background: #fff;
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: transform .2s, box-shadow .2s;
    text-decoration: none;
    color: inherit;
}

.contact-info-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 30px rgba(0,0,0,.11);
    color: inherit;
}

.contact-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.contact-card-icon.phone    { background: rgba(10,44,80,.08);  color: var(--pa-blue); }
.contact-card-icon.whatsapp { background: rgba(37,211,102,.1); color: #25d366; }
.contact-card-icon.facebook { background: rgba(24,119,242,.1); color: #1877f2; }

.contact-card-label {
    font-size: .72rem;
    color: #999;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .15rem;
}

.contact-card-value {
    font-weight: 700;
    color: var(--pa-blue);
    font-size: .9rem;
    word-break: break-all;
}

/* Description box */
.contact-desc-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    overflow: hidden;
    flex: 1;
}

.contact-desc-header {
    background: linear-gradient(135deg, var(--pa-orange), #c45e1a);
    padding: 1.2rem 1.5rem;
    color: #fff;
}

.contact-desc-header h4 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
}

.contact-desc-body {
    padding: 1.4rem 1.5rem;
    color: #555;
    line-height: 1.85;
    font-size: .92rem;
}

/* Success banner */
.contact-success {
    border-radius: 14px;
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    border: 1px solid #a5d6a7;
    padding: 1.2rem 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    color: #2e7d32;
}

@media (max-width: 767px) {
    .contact-hero { padding-bottom: 3rem; }
    .contact-hero h1 { font-size: 1.75rem; }
    .contact-form-body { padding: 1.5rem; }
}
