/* ═══════════════════════════════════════════════════════════════
   NEWERA GLOBAL BRAND OVERRIDES — Applied site-wide
   Loaded after all page CSS to enforce brand consistency
═══════════════════════════════════════════════════════════════ */

/* ── Font baseline ── */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Tailwind blue → brand teal across all pages ── */
.text-blue-600 {
    color: #018771 !important;
}

.text-blue-700 {
    color: #018771 !important;
}

.border-blue-600 {
    border-color: #018771 !important;
}

.bg-blue-600 {
    background-color: #018771 !important;
}

.bg-blue-700 {
    background-color: #0f6b5e !important;
}

.hover\:bg-blue-700:hover {
    background-color: #0f6b5e !important;
}

.focus\:ring-blue-500:focus {
    --tw-ring-color: rgba(1,135,113,0.4) !important;
}

/* ── Brand focus ring on all inputs ── */
input:focus,
textarea:focus,
select:focus {
    border-color: #018771 !important;
    box-shadow: 0 0 0 3px rgba(1, 135, 113, 0.15) !important;
    outline: none !important;
}

/* ── Header / mobile-menu search inputs: no focus ring (pill handles it) ── */
.header-search input:focus,
.mobile-menu-search input:focus {
    border-color: transparent !important;
    box-shadow: none !important;
    outline: none !important;
}

/* ── Global link color ── */
a:not([class]):not([style]) {
    color: #018771;
}

    a:not([class]):not([style]):hover {
        color: #0f6b5e;
    }

/* ── Teal badge helpers ── */
.badge-teal {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: linear-gradient(135deg, rgba(1,135,113,0.12), rgba(46,219,182,0.12));
    color: #018771;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.25rem 0.65rem;
    border-radius: 50px;
    border: 1px solid rgba(1,135,113,0.2);
}

/* ── Brand button base ── */
.btn-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #018771, #2edbb6);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 4px 14px rgba(1, 135, 113, 0.3);
    text-decoration: none;
}

    .btn-brand:hover {
        background: linear-gradient(135deg, #0f6b5e, #018771);
        box-shadow: 0 6px 20px rgba(1, 135, 113, 0.45);
        transform: translateY(-1px);
        color: white;
    }

    .btn-brand:active {
        transform: translateY(0);
    }

    .btn-brand:disabled {
        background: #d1d5db !important;
        box-shadow: none !important;
        transform: none !important;
        cursor: not-allowed;
    }

/* ── Outlined secondary button ── */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: white;
    color: #018771;
    font-weight: 600;
    border: 2px solid #018771;
    border-radius: 10px;
    padding: 0.625rem 1.5rem;
    cursor: pointer;
    transition: all 0.25s ease;
    text-decoration: none;
}

    .btn-outline:hover {
        background: #f0fdf9;
        box-shadow: 0 4px 12px rgba(1, 135, 113, 0.15);
        color: #018771;
    }

/* ── Toast upgrades ── */
.toast-success {
    border-left: 4px solid #018771 !important;
}

.toast-error {
    border-left: 4px solid #dc2626 !important;
}

/* ── Premium card base ── */
.card-premium {
    background: white;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07), 0 1px 4px rgba(0,0,0,0.04);
}

/* ── Trust strip ── */
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 2rem;
    padding: 1rem;
    background: linear-gradient(90deg, #f0fdf9, #f8fafc);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    margin-top: 1rem;
}

.trust-strip-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
}

    .trust-strip-item i {
        color: #018771;
        font-size: 1rem;
    }

/* ── Page header banner (section titles) ── */
.page-hero {
    background: linear-gradient(135deg, #018771 0%, #0d2e27 60%, #0f172a 100%);
    padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem);
    border-radius: 0 0 24px 24px;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .page-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232edbb6' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

    .page-hero h1 {
        font-size: clamp(1.5rem, 4vw, 2.5rem);
        font-weight: 800;
        margin-bottom: 0.5rem;
        position: relative;
    }

    .page-hero p {
        font-size: clamp(0.875rem, 2vw, 1.0625rem);
        opacity: 0.85;
        position: relative;
    }

/* ── Smooth page entry animation ── */
@keyframes fadeSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-entry {
    animation: fadeSlideUp 0.4s ease both;
}

/* ── Skeleton loader shimmer ── */
@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

.skeleton {
    background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

/* ── Sticky mobile action bar ── */
.mobile-sticky-cta {
    display: none;
}

@media (max-width: 768px) {
    .mobile-sticky-cta {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 900;
        background: white;
        border-top: 1px solid #e5e7eb;
        padding: 0.75rem 1rem;
        gap: 0.75rem;
        box-shadow: 0 -4px 16px rgba(0,0,0,0.1);
    }
}

/* ── Mobile bottom nav ── */
.mobile-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 800;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 -2px 12px rgba(0,0,0,0.08);
    }

        .mobile-bottom-nav a {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 0.2rem;
            padding: 0.6rem 0.25rem;
            font-size: 0.625rem;
            font-weight: 600;
            color: #6b7280;
            text-decoration: none;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            transition: color 0.2s;
        }

            .mobile-bottom-nav a i {
                font-size: 1.1rem;
            }

            .mobile-bottom-nav a.active,
            .mobile-bottom-nav a:hover {
                color: #018771;
            }
    /* Push content above fixed bottom nav */
    main, .main-content {
        padding-bottom: 1rem !important;
    }
}

/* ── Checkout/form page container ── */
.checkout-page-wrap {
    max-width: 700px;
    margin: 0 auto;
    padding: clamp(1rem, 3vw, 2rem) clamp(0.75rem, 2vw, 1.5rem);
}

/* ── Form section card ── */
.form-section-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: clamp(1.25rem, 3vw, 2rem);
    margin-bottom: 1rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.form-section-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #018771;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1.5px solid #e5e7eb;
}

.form-input-styled {
    width: 100%;
    border: 1.5px solid #d1d5db;
    border-radius: 10px;
    padding: 0.6875rem 1rem;
    font-size: 0.9375rem;
    color: #1f2937;
    background: #fafafa;
    transition: all 0.2s ease;
    outline: none;
}

    .form-input-styled:focus {
        border-color: #018771 !important;
        background: white !important;
        box-shadow: 0 0 0 3px rgba(1, 135, 113, 0.12) !important;
    }

.form-label-styled {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER & MOBILE UI FIXES — appended patch
   ────────────────────────────────────────────────────────────────
   1. Footer contact links were rendering teal-on-dark-green because
      the site-wide `a:not([class]):not([style])` override above has
      higher specificity than `.footer-contact-list a` in layout.css.
   2. Footer nav links (#footer-ul a) at 82% off-white opacity read
      as dim on dark backgrounds — bumped to a higher-contrast tone.
   3. The fixed scroll-to-top button overlaps the sticky mobile CTA
      (About page) and the global .mobile-bottom-nav. Hidden on mobile.
═══════════════════════════════════════════════════════════════ */

/* ── 1. Footer contact list: enforce white at high specificity ── */
.site-footer .footer-contact-list a,
.site-footer .footer-contact-list a:link,
.site-footer .footer-contact-list a:visited,
.site-footer .footer-contact-list p,
.site-footer .footer-contact-list i {
    color: #ffffff !important;
}

    .site-footer .footer-contact-list a:hover,
    .site-footer .footer-contact-list a:focus-visible {
        /* Slight teal tint on hover, but stays bright enough on dark green */
        color: #b4f4dd !important;
    }

/* ── 2. Footer nav links: brighter for better contrast ── */
.site-footer #footer-ul a,
.site-footer #footer-ul a:link,
.site-footer #footer-ul a:visited {
    color: rgba(255, 255, 255, 0.92) !important;
}

    .site-footer #footer-ul a:hover,
    .site-footer #footer-ul a:focus-visible {
        color: #2edbb6 !important;
    }

/* Same treatment for the footer tagline so the brand paragraph
   doesn't disappear next to the now-brighter nav links. */
.site-footer .footer-tagline {
    color: rgba(255, 255, 255, 0.82) !important;
}

/* ── 3. Hide the scroll-to-top button on mobile (≤ 767px) ── */
@media (max-width: 768px) {
    #scroll-to-top-btn,
    .scroll-to-top {
        display: none !important;
    }
}

/* ── 4. Trust bar: new structure uses .trust-bar-icon-wrap i and .trust-bar-text ──
   The old .trust-bar-item i / strong overrides are replaced below               */
.trust-bar {
    color: #ffffff !important;
}

.trust-bar-item:hover {
    background: rgba(46, 219, 182, 0.07);
}

/* ── Mobile: 2×2 grid so all 4 items are visible ── */
@media (max-width: 600px) {
    .trust-bar-track {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
    }

    .trust-bar-sep {
        display: none !important;
    }

    /* Grid-position borders */
    .trust-bar-item:nth-child(1) {
        border-bottom: 1px solid rgba(46,219,182,0.13) !important;
        border-right: 1px solid rgba(46,219,182,0.13) !important;
    }

    .trust-bar-item:nth-child(3) {
        border-right: 1px solid rgba(46,219,182,0.13) !important;
    }

    .trust-bar-item:nth-child(2) {
        border-bottom: 1px solid rgba(46,219,182,0.13) !important;
    }
}
