/*
 * Arizona Occul - UI polish layer (loaded after all other theme CSS).
 * Touch targets, readable small text, keyboard focus and reduced motion.
 * Only adds to the existing design; nothing here changes colours or layout.
 */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

img,
video {
    max-width: 100%;
}

/* Keyboard focus: visible gold ring (mouse clicks are unaffected) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #c6a253;
    outline-offset: 3px;
    border-radius: 4px;
}

/* Comfortable tap targets on touch screens (44px guideline) */
@media (max-width: 900px) {
    .ref-col-links li {
        margin-bottom: 0;
    }

    .ref-col-links a,
    .ref-bottom-links a,
    .ref-contact-row a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    .ref-bottom-links {
        display: flex;
        flex-wrap: wrap;
        gap: 4px 18px;
    }

    /* Bottom app-style nav: larger labels, easy to hit */
    .mobile-bottom-nav .mob-nav-item {
        min-height: 48px;
    }

    .mobile-bottom-nav .mob-nav-item span {
        font-size: 12px;
        line-height: 1.2;
    }

    /* Form fields: 16px stops iOS from zooming the page on focus */
    input[type="text"],
    input[type="email"],
    input[type="tel"],
    input[type="password"],
    input[type="number"],
    input[type="search"],
    select,
    textarea {
        font-size: 16px;
    }
}

/* Respect "reduce motion" system setting (spinning wheel, sparkles, fades) */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Second pass: remaining small links and tiny labels found on mobile */
@media (max-width: 900px) {
    .ref-cbreadcrumb a,
    .ref-cbreadcrumbs a,
    .ref-sbreadcrumbs a,
    .astro-breadcrumb a,
    .astro-offer-link,
    .amazon-link-forgot,
    .amazon-footer-links a,
    .amazon-terms-note a {
        display: inline-block;
        padding-top: 11px;
        padding-bottom: 11px;
        min-height: 44px;
        box-sizing: border-box;
    }

    .mobile-bottom-nav .mob-nav-item span {
        font-size: 12px !important;
    }

    .ref-card-dur,
    .ref-step-label,
    .ref-step-tag,
    .ref-sum-label,
    .astro-badge-text,
    .ref-strust-pill,
    .amazon-copyright,
    .amazon-auth-brand-sub,
    .amazon-terms-note,
    .amazon-terms-note a {
        font-size: 12px !important;
    }
}

/* -------------------------------------------------------------
   Contrast fixes: leftover white / light-amber text from the old
   dark palette that was unreadable on the current light cards.
   ------------------------------------------------------------- */

/* "View Product" button was white text on a white card (invisible) */
.ref-prod-btn {
    color: #2d5244;
    background: #ffffff;
    border-color: #a58841;
}

.ref-prod-btn:hover,
.ref-prod-btn:focus-visible {
    background: #be9e4d;
    color: #2b4f41;
    border-color: #be9e4d;
}

/* White text on a white button / summary line */
.ref-btn-google-contact {
    color: #2d5244;
}

.ref-sum-total-line {
    color: #2d5244;
}

/* Amber (#c4943c) is only 2.1:1 on white; use a darker amber for text */
.ref-prod-price,
.ref-quote-mark,
.ref-step-number,
.ref-card-fee,
.ref-sum-grand-total,
.ref-sum-rating,
.astro-offer-link,
.astro-step-num,
.ref-btn-filter-price {
    color: #b45309;
}

/* White on WhatsApp green was 2:1; slightly deeper green reaches 5:1 */
.ref-btn-chat-wa {
    background: #0f7d41;
}

.ref-btn-chat-wa:hover {
    background: #0b6a37;
}

/* How-it-works: stop the dashed connectors from squeezing the step text */
@media (min-width: 901px) {
    .ref-steps-track {
        gap: 12px;
    }

    .ref-step-node {
        min-width: 0;
    }

    .ref-step-connector {
        flex: 0 0 36px;
        margin: 0;
    }
}

/* Contact FAQ questions were white on white; consultation rating needs darker amber */
.ref-qh-question,
.ref-qh-question span {
    color: #2d5244;
}

.ref-sum-rating,
.ref-sum-astro-info .ref-sum-rating,
.ref-sum-rating i {
    color: #b45309;
}

/* =============================================================
   VISUAL POLISH: motion, depth and finishing touches.
   Brand palette only (deep green + gold). Motion is switched off
   automatically for visitors who prefer reduced motion.
   ============================================================= */

html {
    scrollbar-color: #be9e4d #edf3f0;
    scrollbar-width: thin;
}

::selection {
    background: #be9e4d;
    color: #1f3a2f;
}

/* Header: gets a soft frosted-glass depth once the page is scrolled */
.site-header.az-scrolled {
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 6px 28px rgba(21, 47, 36, 0.16);
}

/* Scroll reveal (class added by arizona-polish.js only to content below the fold) */
.az-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
}

.az-reveal.az-in {
    opacity: 1;
    transform: none;
}

/* Cards: lift, gold edge and deeper shadow on hover (mouse devices only) */
@media (hover: hover) and (pointer: fine) {
    .ref-service-card,
    .ref-product-card,
    .ref-testi-card {
        transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
    }

    .ref-service-card:hover,
    .ref-product-card:hover,
    .ref-testi-card:hover {
        transform: translateY(-8px);
        border-color: #be9e4d;
        box-shadow: 0 22px 45px rgba(21, 47, 36, 0.18), 0 0 0 1px rgba(190, 158, 77, 0.35);
    }
}

/* Testimonials: gold accent edge on top of each card */
.ref-testi-card {
    box-shadow: inset 0 3px 0 #be9e4d, 0 10px 30px rgba(21, 47, 36, 0.07);
}

/* Gold buttons: confident hover lift and a light sweep */
.ref-btn-gold-solid {
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ref-btn-gold-solid::after {
    content: "";
    position: absolute;
    top: 0;
    left: -80%;
    width: 50%;
    height: 100%;
    background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .ref-btn-gold-solid:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 32px rgba(196, 148, 60, 0.55);
    }

    .ref-btn-gold-solid:hover::after {
        left: 130%;
    }

    .ref-btn-gold-outline:hover {
        transform: translateY(-2px);
    }
}

/* Footer: soft gold line separating it from the page */
.site-footer {
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, transparent, #be9e4d 30%, #c4943c 50%, #be9e4d 70%, transparent) 1;
}

/* Carousel arrows and back-to-top get a gentle press feel */
.ref-carousel-arrow {
    transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.ref-carousel-arrow:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 18px rgba(190, 158, 77, 0.35);
}

@media (prefers-reduced-motion: reduce) {
    .az-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ref-btn-gold-solid::after {
        display: none;
    }
}

/* -------------------------------------------------------------
   Header cart icon with item count
   ------------------------------------------------------------- */
.ref-cart-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #2d5244;
    font-size: 1.15rem;
    text-decoration: none;
    transition: background-color 0.25s ease, transform 0.25s ease;
}

.ref-cart-link:hover {
    background: rgba(190, 158, 77, 0.18);
    transform: translateY(-1px);
}

.ref-cart-count {
    position: absolute;
    top: 2px;
    right: 0;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border-radius: 9999px;
    background: #b45309;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    line-height: 19px;
    text-align: center;
    box-sizing: border-box;
}

.ref-cart-count.is-empty {
    display: none;
}

/* Order-received (thank you) page in the theme look */
.woocommerce-order-received .woocommerce-order,
.woocommerce-order-received .woocommerce-thankyou-order-received {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.woocommerce-thankyou-order-received {
    padding: 18px 22px;
    margin: 28px auto 18px;
    background: #f1f8f5;
    border: 1.5px solid #c2dbd0;
    border-left: 5px solid #be9e4d;
    border-radius: 12px;
    color: #2d5244;
    font-weight: 600;
}

ul.woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 0 auto 28px;
    padding: 0;
    max-width: 860px;
}

ul.woocommerce-order-overview li {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #d4e7de;
    border-radius: 12px;
    color: #24342d;
    font-size: 0.85rem;
    box-shadow: 0 6px 20px rgba(21, 47, 36, 0.06);
}

ul.woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    color: #2d5244;
    font-size: 1rem;
}

/* -------------------------------------------------------------
   Policy pages (Privacy, Refund & Returns, Shipping & Delivery)
   ------------------------------------------------------------- */
.az-policy-section {
    padding: 56px 0 80px;
    background: #edf3f0;
}

.az-policy-card {
    max-width: 860px;
    margin: 0 auto;
    padding: 40px 44px;
    background: #ffffff;
    border: 1px solid #d4e7de;
    border-top: 4px solid #be9e4d;
    border-radius: 16px;
    box-shadow: 0 14px 40px rgba(21, 47, 36, 0.08);
    color: #24342d;
    line-height: 1.8;
    font-size: 1rem;
}

.az-policy-card h2 {
    margin: 34px 0 12px;
    font-family: var(--ref-font-heading, 'Cinzel', serif);
    font-size: 1.35rem;
    color: #2d5244;
}

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

.az-policy-card p,
.az-policy-card li {
    color: #24342d;
}

.az-policy-card ul {
    margin: 0 0 16px 22px;
    padding: 0;
}

.az-policy-card a {
    color: #2d5244;
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: #be9e4d;
    text-underline-offset: 3px;
}

@media (max-width: 640px) {
    .az-policy-card {
        padding: 26px 20px;
    }
}
