/* ==========================================================================
   Wanas Home - Dedicated Custom Pages Styles (FAQ, About, Contact, Policies)
   ========================================================================== */

:root {
    --wh-p-brown: #6B3D2E;
    --wh-p-brown-hover: #512D23;
    --wh-p-ink: #2E231E;
    --wh-p-muted: #7B6B63;
    --wh-p-sand: #FAF8F5;
    --wh-p-beige: #F5EADC;
    --wh-p-line: #E8DED4;
    --wh-p-navy: #23253F;
    --wh-p-radius: 18px;
}

.wh-page-wrapper {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 20px 80px;
    direction: rtl;
    text-align: right;
    font-family: "Cairo", Tahoma, Arial, sans-serif;
    color: var(--wh-p-ink);
}

.wh-page-wrapper.wh-ltr {
    direction: ltr;
    text-align: left;
}

/* Page Hero Section */
.wh-page-hero {
    background: linear-gradient(135deg, #FAF8F5 0%, #F5EADC 100%);
    border: 1px solid var(--wh-p-line);
    border-radius: var(--wh-p-radius);
    padding: 45px 35px;
    text-align: center;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}

.wh-page-hero .wh-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #dec7b0;
    color: var(--wh-p-brown);
    font-size: 12px;
    font-weight: 800;
    padding: 6px 16px;
    border-radius: 999px;
    margin-bottom: 16px;
}

.wh-page-hero h1 {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    color: var(--wh-p-ink);
    margin: 0 0 14px;
    line-height: 1.35;
}

.wh-page-hero h1 span {
    color: var(--wh-p-brown);
}

.wh-page-hero p {
    font-size: clamp(14px, 1.8vw, 16px);
    color: var(--wh-p-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.85;
}

/* Content Container Cards */
.wh-card {
    background: #ffffff;
    border: 1px solid var(--wh-p-line);
    border-radius: var(--wh-p-radius);
    padding: 32px 30px;
    margin-bottom: 25px;
    box-shadow: 0 4px 20px rgba(107, 61, 46, 0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.wh-card:hover {
    box-shadow: 0 10px 30px rgba(107, 61, 46, 0.08);
}

/* Grids */
.wh-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.wh-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.wh-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

/* Feature/Value Item */
.wh-feature-item {
    background: #ffffff;
    border: 1px solid var(--wh-p-line);
    border-radius: 16px;
    padding: 26px 22px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.wh-feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #F5EADC;
    color: var(--wh-p-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
}

.wh-feature-icon svg {
    width: 26px;
    height: 26px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
}

.wh-feature-item h3 {
    font-size: 17px;
    font-weight: 800;
    color: var(--wh-p-ink);
    margin: 0;
}

.wh-feature-item p {
    font-size: 13px;
    color: var(--wh-p-muted);
    line-height: 1.7;
    margin: 0;
}

/* Accordion (for FAQ) */
.wh-accordion-group {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wh-accordion-item {
    border: 1px solid var(--wh-p-line);
    border-radius: 14px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.wh-accordion-item[open] {
    border-color: var(--wh-p-brown);
    box-shadow: 0 4px 18px rgba(107, 61, 46, 0.08);
}

.wh-accordion-trigger {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 800;
    color: var(--wh-p-ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    user-select: none;
    transition: background 0.2s;
}

.wh-accordion-trigger::-webkit-details-marker {
    display: none;
}

.wh-accordion-trigger:hover {
    background: #FAF8F5;
}

.wh-accordion-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #F5EADC;
    color: var(--wh-p-brown);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.25s ease, background 0.2s;
}

.wh-accordion-item[open] .wh-accordion-icon {
    transform: rotate(180deg);
    background: var(--wh-p-brown);
    color: #ffffff;
}

.wh-accordion-content {
    padding: 0 24px 22px;
    font-size: 14px;
    color: #554841;
    line-height: 1.85;
    border-top: 1px dashed var(--wh-p-line);
    padding-top: 18px;
}

/* Contact Cards & Channels */
.wh-contact-card {
    background: #ffffff;
    border: 1px solid var(--wh-p-line);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 16px;
    position: relative;
    overflow: hidden;
}

.wh-contact-header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wh-contact-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wh-contact-icon-box.whatsapp {
    background: #E8F9EE;
    color: #25D366;
}

.wh-contact-icon-box.email {
    background: #EBF3FF;
    color: #1A73E8;
}

.wh-contact-icon-box.hours {
    background: #F5EADC;
    color: var(--wh-p-brown);
}

.wh-contact-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 13px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.wh-contact-btn.whatsapp {
    background: #25D366;
    color: #ffffff !important;
}

.wh-contact-btn.whatsapp:hover {
    background: #1EBE5D;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(37, 211, 102, 0.3);
}

.wh-contact-btn.email {
    background: var(--wh-p-navy);
    color: #ffffff !important;
}

.wh-contact-btn.email:hover {
    background: #181A2E;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(35, 37, 63, 0.3);
}

/* Policy & Legal Formatting */
.wh-policy-section {
    margin-bottom: 28px;
}

.wh-policy-section h2 {
    font-size: 19px;
    font-weight: 800;
    color: var(--wh-p-ink);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.wh-policy-section h2::before {
    content: "";
    width: 10px;
    height: 10px;
    background: var(--wh-p-brown);
    border-radius: 50%;
    display: inline-block;
}

.wh-policy-section p {
    font-size: 14px;
    line-height: 1.9;
    color: #554841;
    margin-bottom: 12px;
}

.wh-policy-section ul {
    margin: 8px 0 16px;
    padding-inline-start: 22px;
}

.wh-policy-section ul li {
    font-size: 14px;
    line-height: 1.85;
    color: #554841;
    margin-bottom: 6px;
}

.wh-callout-box {
    background: #FAF8F5;
    border-inline-start: 4px solid var(--wh-p-brown);
    border-radius: 0 12px 12px 0;
    padding: 18px 22px;
    margin: 20px 0;
    font-size: 14px;
    line-height: 1.8;
    color: var(--wh-p-ink);
}

.wh-ltr .wh-callout-box {
    border-inline-start: 4px solid var(--wh-p-navy);
    border-radius: 0 12px 12px 0;
}

/* Footer Bottom Policy Navigation Bar */
.wh-footer-policy-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 18px 24px;
    padding: 18px 10px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 25px;
}

.wh-footer-policy-links a {
    color: #6B3D2E;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wh-footer-policy-links a:hover {
    color: #181A2E;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .wh-grid-3, .wh-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .wh-page-wrapper {
        padding: 20px 14px 60px;
    }
    .wh-page-hero {
        padding: 30px 18px;
        margin-bottom: 25px;
    }
    .wh-card {
        padding: 22px 18px;
    }
    .wh-grid-2, .wh-grid-3, .wh-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .wh-accordion-trigger {
        padding: 16px 18px;
        font-size: 14px;
    }
    .wh-accordion-content {
        padding: 0 18px 18px;
        font-size: 13px;
    }
    .wh-footer-policy-links {
        gap: 12px 16px;
        font-size: 12px;
    }
}

