/* =========================================================================
   BinAli Marketing / Content Pages
   About, Services, How-to-Shop, FAQ, Contact, Payment Methods, Guarantee,
   Returns, Shipping, Terms, Privacy, Help, Auth (tabs only — layout lives
   in login.css). Built on the design tokens defined in storefront-theme.css
   (--accent, --ink, --surface, --border, --radius, --shadow, ...).
   ========================================================================= */

:root {
    --gold: #c9962c;
    --gold-light: #fbf3e2;
}

/* ---------- shared page hero (reuses .cart-page-header markup) ---------- */

.page-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--accent-light);
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
}

.page-section {
    padding: 56px 0;
}

.page-section-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--ink);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
}

.page-section-subtitle {
    color: var(--ink-soft);
    max-width: 640px;
    margin: 0 auto 40px;
}

.text-center .page-section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ---------- About: stats + values ---------- */

.stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin: 8px 0 8px;
}

.stat-item {
    text-align: center;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 12px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.stat-item .stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--accent);
    display: block;
}

.stat-item .stat-label {
    font-size: 13px;
    color: var(--ink-faint);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.value-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.value-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.value-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.value-card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 22px;
}

.value-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.value-card p {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0;
}

.about-story-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    box-shadow: var(--shadow-sm);
}

.about-story-panel p {
    color: var(--ink-soft);
    line-height: 1.8;
}

/* ---------- Services ---------- */

.service-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.service-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-light), transparent 60%);
    opacity: 0;
    transition: opacity .25s ease;
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--accent);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card > * {
    position: relative;
}

.service-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: #fff;
    font-size: 20px;
    margin-bottom: 18px;
    box-shadow: 0 8px 20px rgba(79, 70, 229, .28);
}

.service-card h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.service-card p {
    color: var(--ink-soft);
    font-size: 14px;
    margin-bottom: 0;
}

.service-card-badge {
    display: inline-block;
    margin-top: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--gold-light);
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* ---------- How to Shop: step timeline ---------- */

.step-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    position: relative;
}

.step-item {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    position: relative;
}

.step-item-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    box-shadow: 0 6px 16px rgba(79, 70, 229, .3);
}

.step-item-icon {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 12px;
}

.step-item h4 {
    font-weight: 700;
    margin-bottom: 8px;
}

.step-item p {
    color: var(--ink-soft);
    font-size: 13px;
    margin: 0;
}

.step-arrow {
    display: none;
    position: absolute;
    top: 40px;
    right: -20px;
    color: var(--border);
    font-size: 20px;
    z-index: 1;
}

@media (min-width: 992px) {
    .step-item:not(:last-child) .step-arrow {
        display: block;
    }
}

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

.faq-category-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 32px;
}

.faq-category-tabs .nav-link {
    border-radius: 999px;
    padding: 8px 18px;
    font-weight: 600;
    font-size: 14px;
    color: var(--ink-soft);
    background: var(--surface);
    border: 1px solid var(--border);
}

.faq-category-tabs .nav-link.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.faq-accordion .accordion-item {
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    overflow: hidden;
    margin-bottom: 12px;
}

.faq-accordion .accordion-button {
    font-weight: 700;
    color: var(--ink);
    background: var(--paper);
    padding: 18px 20px;
}

.faq-accordion .accordion-button:not(.collapsed) {
    background: var(--accent-light);
    color: var(--accent-dark);
    box-shadow: none;
}

.faq-accordion .accordion-button:focus {
    box-shadow: none;
    border-color: var(--border);
}

.faq-accordion .accordion-body {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.75;
    padding: 4px 20px 20px;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 28px;
    align-items: start;
}

.contact-info-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: var(--shadow-sm);
}

.contact-info-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 22px;
}

.contact-info-item:last-child {
    margin-bottom: 0;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 12px;
    background: var(--accent-light);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.contact-info-item h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 3px;
}

.contact-info-item p, .contact-info-item a {
    color: var(--ink-soft);
    font-size: 14px;
    margin: 0;
    display: block;
}

.contact-map-frame {
    margin-top: 22px;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border);
}

.contact-map-frame iframe {
    width: 100%;
    height: 220px;
    border: 0;
    display: block;
}

.contact-form-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

.form-field-group {
    margin-bottom: 18px;
}

.form-field-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 6px;
}

.form-field-group .form-control,
.form-field-group textarea.form-control {
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    padding: 11px 14px;
}

.form-field-group .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-light);
}

.form-field-error {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-field-group.is-invalid .form-control {
    border-color: #dc2626;
}

.form-field-group.is-invalid .form-field-error {
    display: block;
}

.form-success-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #e9f9ee;
    border: 1px solid #bdeecb;
    color: #15803d;
    border-radius: var(--radius);
    padding: 16px 20px;
    margin-bottom: 20px;
}

/* ---------- Payment methods / trust ---------- */

.payment-method-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 40px;
}

.payment-method-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 16px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
}

.payment-method-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
}

.payment-method-card i {
    font-size: 26px;
    color: var(--accent);
    margin-bottom: 10px;
    display: block;
}

.payment-method-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.payment-method-card p {
    font-size: 12px;
    color: var(--ink-faint);
    margin: 0;
}

.security-assurance-panel {
    background: var(--ink);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.security-assurance-panel i {
    font-size: 40px;
    color: var(--gold);
    flex: none;
}

.security-assurance-panel h4 {
    color: #fff;
    margin-bottom: 6px;
}

.security-assurance-panel p {
    color: rgba(255, 255, 255, .75);
    margin: 0;
    font-size: 14px;
}

/* ---------- Guarantee ---------- */

.guarantee-seal {
    width: 96px;
    height: 96px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: var(--gold-light);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    border: 3px solid var(--gold);
}

.guarantee-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 20px;
}

.eligibility-list li,
.legal-section ul li {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-bottom: 12px;
    color: var(--ink-soft);
    font-size: 14px;
}

.eligibility-list i {
    color: var(--accent);
    margin-top: 3px;
}

.eligibility-list i.icon-close,
.eligibility-list .not-eligible i {
    color: #dc2626;
}

/* ---------- Returns ---------- */

.returns-timeline {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 32px 0 44px;
    position: relative;
}

.returns-timeline::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--border);
    z-index: 0;
}

.returns-timeline-step {
    flex: 1;
    text-align: center;
    position: relative;
    z-index: 1;
}

.returns-timeline-step .step-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    font-weight: 700;
    font-size: 13px;
}

.returns-timeline-step span.label {
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    display: block;
}

.returns-timeline-step small {
    color: var(--ink-faint);
}

.return-form-panel {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
}

/* ---------- Shipping ---------- */

.shipping-table-wrap {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.shipping-table {
    width: 100%;
    border-collapse: collapse;
}

.shipping-table th {
    background: var(--surface);
    text-align: left;
    padding: 14px 20px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--ink-faint);
}

.shipping-table td {
    padding: 16px 20px;
    border-top: 1px solid var(--border);
    color: var(--ink-soft);
    font-size: 14px;
}

.shipping-table td strong {
    color: var(--ink);
}

.shipping-note-card {
    background: var(--accent-light);
    border: 1px solid #d6d3fb;
    border-radius: var(--radius);
    padding: 18px 22px;
    color: var(--accent-dark);
    font-size: 14px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* ---------- Legal pages (Terms / Privacy) with sticky side-nav ---------- */

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 36px;
    align-items: start;
}

.legal-sidenav {
    position: sticky;
    top: 100px;
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
}

.legal-sidenav a {
    display: block;
    padding: 9px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    text-decoration: none;
}

.legal-sidenav a:hover {
    background: var(--surface);
    color: var(--ink);
}

.legal-sidenav a.active {
    background: var(--accent-light);
    color: var(--accent-dark);
}

.legal-content {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px;
    /* Generous bottom padding so a section near the end of the page can still
       scroll all the way to the top of the viewport instead of the click
       target being clamped short by the end of the document. */
    padding-bottom: 60vh;
    box-shadow: var(--shadow-sm);
}

.legal-updated-badge {
    display: inline-block;
    margin-bottom: 24px;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--surface);
    color: var(--ink-faint);
    font-size: 12px;
    font-weight: 600;
}

.legal-section {
    padding-top: 8px;
    margin-bottom: 36px;
    scroll-margin-top: 100px;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-section h3 .legal-section-number {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
}

.legal-section p {
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- Help center ---------- */

.help-search-hero {
    background: linear-gradient(135deg, var(--ink) 0%, #2a2f45 100%);
    border-radius: var(--radius-lg);
    padding: 56px 32px;
    text-align: center;
    color: #fff;
    margin-bottom: 44px;
}

.help-search-hero h1 {
    color: #fff;
    margin-bottom: 8px;
}

.help-search-hero p {
    color: rgba(255, 255, 255, .75);
    margin-bottom: 26px;
}

.help-search-box {
    max-width: 560px;
    margin: 0 auto;
    display: flex;
    background: #fff;
    border-radius: 999px;
    padding: 6px 6px 6px 20px;
    box-shadow: var(--shadow-lg);
}

.help-search-box input {
    border: none;
    flex: 1;
    font-size: 14px;
    outline: none;
    background: transparent;
}

.help-search-box button {
    border-radius: 999px;
    border: none;
    background: var(--accent);
    color: #fff;
    padding: 0 22px;
    font-weight: 700;
    font-size: 13px;
}

.help-topic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 44px;
}

.help-topic-card {
    background: var(--paper);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 18px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    cursor: pointer;
}

.help-topic-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: var(--accent);
}

.help-topic-card i {
    font-size: 24px;
    color: var(--accent);
    margin-bottom: 12px;
    display: block;
}

.help-topic-card h5 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.help-topic-card p {
    font-size: 12px;
    color: var(--ink-faint);
    margin: 0;
}

.help-cta-panel {
    background: var(--accent-light);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.help-cta-panel h4 {
    margin-bottom: 4px;
    color: var(--accent-dark);
}

.help-cta-panel p {
    margin: 0;
    color: var(--ink-soft);
}

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

@media (max-width: 991.98px) {
    .stats-strip { grid-template-columns: repeat(2, 1fr); }
    .value-card-grid,
    .service-card-grid,
    .step-timeline,
    .guarantee-steps,
    .payment-method-grid,
    .help-topic-grid { grid-template-columns: repeat(2, 1fr); }
    .contact-grid { grid-template-columns: 1fr; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-sidenav { position: static; display: flex; overflow-x: auto; gap: 4px; }
    .legal-sidenav a { white-space: nowrap; }
    .returns-timeline { flex-wrap: wrap; }
    .returns-timeline::before { display: none; }
    .returns-timeline-step { flex: 0 0 45%; margin-bottom: 20px; }
}

@media (max-width: 575.98px) {
    .stats-strip,
    .value-card-grid,
    .service-card-grid,
    .step-timeline,
    .guarantee-steps,
    .payment-method-grid,
    .help-topic-grid { grid-template-columns: 1fr; }
    .help-search-hero { padding: 40px 18px; }
    .legal-content, .contact-form-panel, .about-story-panel, .return-form-panel { padding: 22px; }
    .security-assurance-panel { flex-direction: column; text-align: center; }
    .help-cta-panel { flex-direction: column; text-align: center; }
}
