/* ============================================================
   Apple Pay page — page-apple-pay.php
   Loaded only on /apple-pay/ (inc/enqueue.php).
   Banner (title + breadcrumb): page-banner.css
   ============================================================ */

/* GeneratePress lays .site-content out as a flex row; make this page full width
   whether it is used via its slug (page-{slug}.php) or chosen as a template. */
.site-content:has(> .ozg-ap-page),
.page-template-page-apple-pay .site-content {
    display: block !important;
}

.ozg-ap-page {
    flex: 1 1 100%;
    width: 100%;
    background: var(--oz-white);
}

/* ── Shared bits ─────────────────────────────────────────────── */
.ozg-ap-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--oz-primary);
}

.ozg-ap-title {
    margin: 0 0 18px !important;
    font-family: var(--font-heading);
    font-size: clamp(34px, 4.2vw, 54px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--oz-black);
}

.ozg-ap-title span {
    color: var(--oz-primary);
}

.ozg-ap-page p {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    color: #4B5563;
}

.ozg-ap-section {
    padding: 72px 0;
}

.ozg-ap-section--tint {
    background: linear-gradient(120deg, #F4F9FC 0%, #E8F3FA 100%);
}

.ozg-ap-head {
    max-width: 720px;
    margin: 0 auto 40px;
    text-align: center;
}

/* Buttons */
.ozg-ap-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.ozg-ap-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 52px;
    padding: 0 26px;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.ozg-ap-btn svg {
    transition: transform 0.2s ease;
}

.ozg-ap-btn:hover svg {
    transform: translateX(3px);
}

.ozg-ap-btn--primary {
    background: var(--oz-primary);
    color: var(--oz-white) !important;
}

.ozg-ap-btn--primary:hover {
    background: var(--oz-primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(5, 153, 215, 0.28);
}

.ozg-ap-btn--ghost {
    border: 1.5px solid #D4D7DC;
    color: var(--oz-black) !important;
    background: var(--oz-white);
}

.ozg-ap-btn--ghost:hover {
    border-color: var(--oz-primary);
    color: var(--oz-primary) !important;
}

.ozg-ap-btn--light {
    flex-shrink: 0;
    background: var(--oz-white);
    color: var(--oz-black) !important;
}

.ozg-ap-btn--light:hover {
    background: var(--oz-primary);
    color: var(--oz-white) !important;
}

/* Inline links (e.g. Return and Refund Policies) */
.ozg-ap-page p a {
    color: var(--oz-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ozg-ap-page p a:hover {
    color: var(--oz-primary-hover);
}

/* ── Intro ───────────────────────────────────────────────────── */
.ozg-ap-intro {
    padding: 72px 0;
}

.ozg-ap-intro__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 56px;
    align-items: center;
}

.ozg-ap-intro__text p {
    margin: 0 0 14px;
}

.ozg-ap-intro__media {
    position: relative;
    margin: 0;
}

.ozg-ap-intro__img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(21, 25, 29, 0.16);
}

.ozg-ap-intro__badge {
    position: absolute;
    left: 20px;
    bottom: 20px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--oz-black);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(21, 25, 29, 0.14);
    backdrop-filter: blur(6px);
}

.ozg-ap-intro__badge svg {
    color: var(--oz-primary);
}

/* ── Benefits ────────────────────────────────────────────────── */
.ozg-ap-benefits {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ozg-ap-benefit {
    margin: 0 !important;
    padding: 28px 24px;
    border: 1px solid #ECEDEF;
    border-radius: 20px;
    background: var(--oz-white);
    box-shadow: 0 2px 10px rgba(21, 25, 29, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ozg-ap-benefit:hover {
    transform: translateY(-3px);
    border-color: rgba(5, 153, 215, 0.35);
    box-shadow: 0 14px 30px rgba(21, 25, 29, 0.10);
}

.ozg-ap-benefit__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: 14px;
    background: var(--oz-primary-tint);
    color: var(--oz-primary);
}

.ozg-ap-benefit h3,
.ozg-ap-step h3 {
    margin: 0 0 8px !important;
    font-family: var(--font-heading);
    font-size: 21px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    color: var(--oz-black);
}

.ozg-ap-benefit p,
.ozg-ap-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
}

/* ── How it works ────────────────────────────────────────────── */
.ozg-ap-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    counter-reset: none;
}

.ozg-ap-step {
    position: relative;
    margin: 0 !important;
    padding: 30px 26px 28px;
    border-radius: 20px;
    background: var(--oz-white);
    box-shadow: 0 6px 20px rgba(21, 25, 29, 0.06);
}

.ozg-ap-step__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 16px;
    border-radius: 50%;
    background: var(--oz-primary);
    color: var(--oz-white);
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(5, 153, 215, 0.3);
}

/* ── Regular shoppers ────────────────────────────────────────── */
.ozg-ap-feature {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.ozg-ap-feature__text p {
    margin: 0 0 14px;
}

.ozg-ap-checklist {
    display: grid;
    gap: 12px;
    margin: 0 !important;
    padding: 28px !important;
    list-style: none !important;
    border-radius: 20px;
    background: var(--oz-black);
    box-shadow: 0 20px 50px rgba(21, 25, 29, 0.18);
}

.ozg-ap-checklist li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 !important;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    color: var(--oz-white);
}

.ozg-ap-checklist li::before {
    content: '';
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--oz-primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* ── FAQ accordion ───────────────────────────────────────────── */
.ozg-ap-faq {
    display: grid;
    gap: 12px;
    max-width: 860px;
    margin: 0 auto;
}

.ozg-ap-faq__item {
    border: 1px solid #E1EDF5;
    border-radius: 16px;
    background: var(--oz-white);
    overflow: hidden;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.ozg-ap-faq__item.is-open {
    border-color: rgba(5, 153, 215, 0.35);
    box-shadow: 0 10px 26px rgba(21, 25, 29, 0.08);
}

.ozg-ap-faq__q {
    margin: 0 !important;
}

.ozg-ap-faq__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 20px 22px;
    border: 0;
    background: none;
    color: var(--oz-black);
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    cursor: pointer;
}

/* Override GeneratePress button hover/focus/active (dark grey background) */
.ozg-ap-faq__toggle:hover,
.ozg-ap-faq__toggle:focus,
.ozg-ap-faq__toggle:active,
.ozg-ap-faq__item.is-open .ozg-ap-faq__toggle {
    background: none !important;
    color: var(--oz-primary) !important;
}

.ozg-ap-faq__toggle:focus-visible {
    outline: 2px solid var(--oz-primary);
    outline-offset: -2px;
}

.ozg-ap-faq__chevron {
    flex-shrink: 0;
    color: var(--oz-primary);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ozg-ap-faq__item.is-open .ozg-ap-faq__chevron {
    transform: rotate(180deg);
}

/* Answers are only collapsible once the script has run (no-JS: all visible) */
.ozg-ap-faq__a {
    display: grid;
    grid-template-rows: 1fr;
}

.ozg-ap-faq.is-ready .ozg-ap-faq__a {
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ozg-ap-faq.is-ready .ozg-ap-faq__item.is-open .ozg-ap-faq__a {
    grid-template-rows: 1fr;
}

.ozg-ap-faq__inner {
    min-height: 0;
    overflow: hidden;
}

/* Lists / extra paragraphs typed in the FAQ editor */
.ozg-ap-faq__inner p + p {
    padding-top: 0;
}

.ozg-ap-faq__inner ul,
.ozg-ap-faq__inner ol {
    margin: 0 22px 20px 40px;
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.7;
    color: #4B5563;
}

.ozg-ap-faq__inner a {
    color: var(--oz-primary);
    font-weight: 600;
}

.ozg-ap-faq__inner p {
    margin: 0;
    padding: 6px 22px 22px;
    font-size: 15px;
}

/* ── CTA + other methods ─────────────────────────────────────── */
.ozg-ap-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 40px 44px;
    border-radius: 24px;
    background:
        radial-gradient(420px 260px at 100% 0%, rgba(5, 153, 215, 0.28), transparent 70%),
        linear-gradient(135deg, var(--oz-black) 0%, var(--oz-dark) 100%);
    box-shadow: 0 24px 60px rgba(21, 25, 29, 0.18);
}

.ozg-ap-cta__title {
    margin: 0 0 6px !important;
    font-family: var(--font-heading);
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    text-transform: uppercase;
    color: var(--oz-white);
}

.ozg-ap-cta p {
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.72);
}

.ozg-ap-methods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.ozg-ap-methods li {
    margin: 0 !important;
}

.ozg-ap-methods a {
    display: inline-flex;
    padding: 8px 16px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    color: var(--oz-white) !important;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.ozg-ap-methods a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.5);
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .ozg-ap-benefits {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ozg-ap-steps {
        grid-template-columns: 1fr;
        max-width: 640px;
        margin: 0 auto !important;
    }

}

@media (max-width: 900px) {
    .ozg-ap-intro__grid,
    .ozg-ap-feature {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .ozg-ap-intro__media {
        order: -1;
    }

    .ozg-ap-cta {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 640px) {
    .ozg-ap-intro,
    .ozg-ap-section {
        padding: 48px 0;
    }

    .ozg-ap-benefits {
        grid-template-columns: 1fr;
    }

    .ozg-ap-head {
        margin-bottom: 28px;
    }

    .ozg-ap-intro__img {
        border-radius: 18px;
    }

    .ozg-ap-intro__badge {
        left: 12px;
        bottom: 12px;
        font-size: 13px;
    }

    .ozg-ap-actions .ozg-ap-btn {
        flex: 1 1 100%;
    }

    .ozg-ap-faq__toggle {
        padding: 18px;
        font-size: 16px;
    }

    .ozg-ap-faq__inner p {
        padding: 6px 18px 20px;
    }

    .ozg-ap-cta {
        padding: 28px 22px;
        border-radius: 18px;
    }
}
