/*
 * ALFICONS START SRL — Global Styles
 * Extras din: header.php + footer.php
 * Incarcat pe: TOATE paginile
 * Tema: LIGHT professional (body alb, header/footer/hero dark)
 * Prefix: alf-  |  CSS vars: --alf-
 * ==========================================================================
 */

/* ==========================================================================
   1. ROOT CSS VARIABLES
   ========================================================================== */
:root {
    /* Fundal dark (header, hero, footer, CTA sections) */
    --alf-bg-dark: #0F172A;
    --alf-bg-section-2: #1E293B;
    --alf-bg-card: #334155;

    /* Text */
    --alf-text-primary: #FFFFFF;
    --alf-text-secondary: #64748B;

    /* Accent — Trust Blue */
    --alf-accent: #2563EB;
    --alf-accent-light: #3B82F6;
    --alf-accent-hover: #1E3A5F;
    --alf-accent-wash: #DBEAFE;

    /* Verde — Growth Green */
    --alf-success: #059669;
    --alf-success-wash: #D1FAE5;

    /* Auriu — Prestige */
    --alf-amber: #D97706;
    --alf-amber-wash: #FEF3C7;

    /* Neutri — Suprafete light */
    --alf-white: #FFFFFF;
    --alf-snow: #F8FAFC;
    --alf-mist: #F1F5F9;
    --alf-fog: #E2E8F0;
    --alf-silver: #CBD5E1;

    /* Eroare */
    --alf-error: #DC2626;
    --alf-error-wash: #FEE2E2;

    /* Fonturi */
    --alf-font-display: 'Inter', sans-serif;
    --alf-font-body: 'Inter', sans-serif;
    --alf-font-accent: 'DM Sans', sans-serif;
    --alf-font-serif: 'Lora', serif;

    /* Border-radius */
    --alf-radius-box: 12px;
    --alf-radius-btn: 8px;
    --alf-radius-pill: 9999px;

    /* Shadows */
    --alf-shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
    --alf-shadow-md: 0 4px 12px rgba(15, 23, 42, 0.08);
    --alf-shadow-lg: 0 8px 24px rgba(15, 23, 42, 0.12);

    /* Tranzitii */
    --alf-transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

    /* Border subtil dark sections */
    --alf-border-dark: rgba(59, 130, 246, 0.15);
    --alf-border-dark-active: rgba(59, 130, 246, 0.35);
}

/* ==========================================================================
   2. BASE / RESET
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    background-color: var(--alf-white);
    color: var(--alf-bg-card); /* Graphite #334155 */
    font-family: var(--alf-font-body);
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* R14 — Fixed header clearance: PNRR bar (52px) + header (~72px) */
body {
    padding-top: 124px;
}

a {
    color: var(--alf-accent);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--alf-accent-light);
}

img {
    max-width: 100%;
    height: auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--alf-font-display);
    color: var(--alf-bg-dark);
    line-height: 1.25;
    margin-top: 0;
}

p {
    margin-top: 0;
}

/* ==========================================================================
   3. ASTRA OVERRIDES — Hide default header/footer, fix backgrounds
   ========================================================================== */

/* Hide Astra native header + footer */
.site-header,
#masthead,
.ast-main-header-wrap {
    display: none !important;
}

.site-footer,
#colophon,
.ast-builder-footer-wrap {
    display: none !important;
}

/* R13 — Force transparent backgrounds on Astra wrappers (light theme) */
.site-content,
#primary,
.ast-container,
#content,
.ast-separate-container .ast-article-single,
.ast-separate-container .ast-article-post {
    background-color: transparent !important;
}

/* Remove Astra default padding/margins that interfere */
.ast-separate-container .site-content > .ast-container {
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* R8 — Astra WC CSS resets */
.woocommerce .ast-container,
.woocommerce-page .ast-container {
    float: none !important;
    width: 100% !important;
}

/* Reset list styles globally, re-add where needed */
ul, ol {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* Restore list styles for legal / content pages */
.alf-legal-content ul,
.alf-legal-content ol,
.alf-content-area ul,
.alf-content-area ol,
.entry-content ul,
.entry-content ol {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.5rem 0 1rem 0;
}

.alf-legal-content ol,
.alf-content-area ol,
.entry-content ol {
    list-style: decimal;
}

/* ==========================================================================
   4. PNRR TOP BAR (R24 — fundal ALB obligatoriu)
   ========================================================================== */
.pnrr-top-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 52px;
    background-color: var(--alf-white);
    z-index: 10002;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid var(--alf-fog);
    box-shadow: var(--alf-shadow-sm);
}

.pnrr-banner-link {
    display: inline-block;
}

.pnrr-banner-link img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 36px;
}

/* ==========================================================================
   5. HEADER PRINCIPAL (.alf-custom-header)
   Background: Ink (#0F172A) — fixed, z-index high
   ========================================================================== */
.alf-custom-header {
    position: fixed;
    top: 52px; /* sub PNRR bar */
    left: 0;
    width: 100%;
    z-index: 10001;
    padding: 18px 0;
    background: var(--alf-bg-dark);
    border-bottom: 1px solid var(--alf-border-dark);
    transition: top 0.3s ease, background 0.4s ease, padding 0.4s ease, box-shadow 0.4s ease;
    font-family: var(--alf-font-display);
}

/* Scrolled state — hides PNRR, blur bg */
.alf-custom-header.is-scrolled,
.alf-custom-header.scrolled {
    top: 0;
    background: rgba(15, 23, 42, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 12px 0;
    box-shadow: 0 4px 30px rgba(15, 23, 42, 0.5);
}

.alf-header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* --- Logo --- */
.alf-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--alf-text-primary);
    transition: transform 0.3s ease;
}

.alf-logo:hover {
    transform: translateY(-1px);
    color: var(--alf-text-primary);
}

.alf-logo__icon {
    width: 42px;
    height: 42px;
    border-radius: var(--alf-radius-btn);
    background: linear-gradient(135deg, var(--alf-accent-hover), var(--alf-accent));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--alf-text-primary);
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.alf-logo__icon svg {
    width: 22px;
    height: 22px;
}

.alf-logo__text {
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--alf-text-primary);
}

/* --- Desktop Nav --- */
.alf-nav {
    display: block;
}

.alf-nav__list {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.alf-nav__link {
    text-decoration: none;
    color: var(--alf-silver);
    font-size: 0.95rem;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: var(--alf-radius-btn);
    transition: all 0.3s ease;
    position: relative;
}

.alf-nav__link:hover {
    color: var(--alf-text-primary);
    background: rgba(59, 130, 246, 0.1);
}

.alf-nav__link.active,
.alf-nav__link.current-menu-item {
    color: var(--alf-accent-light);
    background: rgba(59, 130, 246, 0.12);
}

/* --- Header Actions + CTA --- */
.alf-header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.alf-btn-cta {
    background: var(--alf-accent);
    color: var(--alf-text-primary) !important;
    padding: 10px 24px;
    border-radius: var(--alf-radius-btn);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    font-family: var(--alf-font-display);
}

/* R10b — SVG icons inside buttons: override global reset */
.alf-btn-cta svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.alf-btn-cta:hover {
    background: var(--alf-accent-light);
    color: var(--alf-text-primary) !important;
    box-shadow: 0 6px 30px rgba(37, 99, 235, 0.4);
    transform: translateY(-2px);
}

/* --- Burger Menu --- */
.alf-burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 10004;
    position: relative;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.alf-burger span {
    width: 24px;
    height: 2px;
    background: var(--alf-text-primary);
    border-radius: 2px;
    transition: all 0.3s ease;
    display: block;
}

.alf-burger.is-active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.alf-burger.is-active span:nth-child(2) {
    opacity: 0;
}

.alf-burger.is-active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Mobile Overlay --- */
.alf-mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10003;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.alf-mobile-overlay.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: all;
}

.alf-mobile-nav {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 24px;
    transform: translateY(30px);
    transition: transform 0.4s ease;
}

.alf-mobile-overlay.is-open .alf-mobile-nav {
    transform: translateY(0);
}

.alf-mobile-nav a {
    text-decoration: none;
    color: var(--alf-silver);
    font-size: 1.5rem;
    font-weight: 600;
    transition: color 0.3s ease;
    font-family: var(--alf-font-display);
}

.alf-mobile-nav a:hover,
.alf-mobile-nav a.current-menu-item {
    color: var(--alf-accent-light);
}

.alf-mobile-contact {
    margin-top: 40px;
    text-align: center;
    border-top: 1px solid var(--alf-border-dark);
    padding-top: 30px;
    width: 80%;
}

.alf-mobile-contact span {
    display: block;
    font-family: var(--alf-font-accent);
    font-size: 0.8rem;
    color: var(--alf-text-secondary);
    margin-bottom: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* ==========================================================================
   6. HEADER RESPONSIVE (< 921px)
   ========================================================================== */
@media (max-width: 921px) {
    .alf-nav {
        display: none !important;
    }

    .alf-header-actions .alf-btn-cta {
        display: none !important;
    }

    .alf-burger {
        display: flex !important;
    }

    .alf-custom-header {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }

    .alf-header-container {
        padding: 0 16px;
    }

    /* Adjust body padding for mobile */
    body {
        padding-top: 116px;
    }
}

/* ==========================================================================
   7. FOOTER (.alf-custom-footer)
   Background: Ink (#0F172A)
   ========================================================================== */
.alf-custom-footer {
    background-color: var(--alf-bg-dark);
    border-top: 1px solid var(--alf-border-dark);
    padding: 60px 0 30px;
    font-family: var(--alf-font-body);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.alf-custom-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: radial-gradient(ellipse at top, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.alf-footer-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

/* --- Footer Grid (R26 — NO inline grid-template-columns) --- */
.alf-footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 48px;
}

.alf-footer-col {
    display: flex;
    flex-direction: column;
}

.alf-footer-title {
    font-family: var(--alf-font-display);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--alf-text-primary);
    margin: 0 0 20px 0;
    letter-spacing: -0.01em;
}

.alf-footer-desc {
    font-size: 0.9rem;
    color: var(--alf-silver);
    line-height: 1.7;
    margin: 0 0 16px 0;
}

.alf-footer-contact-info p {
    margin: 0 0 6px 0;
    font-size: 0.88rem;
}

.alf-footer-contact-info a {
    color: var(--alf-silver);
    text-decoration: none;
    transition: color 0.3s ease;
}

.alf-footer-contact-info a:hover {
    color: var(--alf-accent-light);
}

.alf-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.alf-footer-links li a {
    color: var(--alf-silver);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.alf-footer-links li a:hover {
    color: var(--alf-accent-light);
}

.alf-footer-address {
    margin-top: 16px;
}

.alf-footer-address p {
    color: var(--alf-text-secondary);
    font-size: 0.85rem;
    line-height: 1.6;
    margin: 0;
}

/* --- Footer separator --- */
.alf-footer-separator {
    border: none;
    height: 1px;
    background: var(--alf-bg-section-2);
    margin: 0 0 32px 0;
}

/* --- PNRR Footer Section --- */
.pnrr-footer {
    width: 100%;
    max-width: 980px;
    margin: 0 auto 28px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--alf-radius-box);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.015) 100%);
    padding: 18px 20px;
}

.pnrr-title {
    margin: 0;
    color: var(--alf-text-primary);
    font-size: 0.88rem;
    line-height: 1.6;
    font-weight: 600;
}

.pnrr-disclaimer {
    margin: 0;
    color: var(--alf-text-secondary);
    font-size: 0.88rem;
    line-height: 1.6;
}

.pnrr-links {
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.pnrr-links a {
    color: var(--alf-accent-light);
    text-decoration: none;
    font-size: 0.8rem;
    font-family: var(--alf-font-accent);
    letter-spacing: 0.6px;
    text-transform: uppercase;
}

.pnrr-links a:hover {
    color: var(--alf-text-primary);
}

/* --- Legal Badges --- */
.legal-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    padding: 10px 14px;
    min-width: 168px;
    min-height: 62px;
    transition: transform 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
    text-decoration: none;
}

/* R7 — NO color filters (brightness/invert) on badge images */
.legal-badge:hover {
    transform: translateY(-2px);
    border-color: var(--alf-border-dark);
    background: rgba(37, 99, 235, 0.06);
}

.stripe-badge-link {
    min-width: 214px;
}

.legal-badge-img {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}

.stripe-badge-img {
    display: block;
    width: auto;
    height: 32px;
    object-fit: contain;
}

.legal-badge-fallback {
    display: none;
    color: var(--alf-text-secondary);
    font-family: var(--alf-font-accent);
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.4;
    padding: 0 6px;
}

.legal-badge-img.is-broken,
.stripe-badge-img.is-broken {
    display: none;
}

.legal-badge-img.is-broken + .legal-badge-fallback,
.stripe-badge-img.is-broken + .legal-badge-fallback {
    display: inline-block;
}

/* --- Footer Bottom / Copyright --- */
.alf-footer-bottom {
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.alf-footer-copy {
    font-size: 0.9rem;
    color: var(--alf-text-secondary);
    margin: 0;
}

.alf-footer-copy strong {
    color: var(--alf-text-primary);
    font-weight: 600;
}

.alf-footer-company-info {
    font-size: 0.85rem;
    color: var(--alf-text-secondary);
    margin: 0;
    font-family: var(--alf-font-accent);
}

/* ==========================================================================
   8. FOOTER RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
    .alf-footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .alf-custom-footer {
        padding: 40px 0 20px;
    }

    .alf-footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
        margin-bottom: 36px;
    }

    .pnrr-footer {
        padding: 16px 14px;
        margin-bottom: 22px;
    }

    .pnrr-links {
        gap: 8px;
    }

    .legal-badges {
        gap: 10px;
        margin-bottom: 22px;
    }

    .legal-badge {
        width: 100%;
        max-width: 280px;
        min-height: 56px;
    }

    .legal-badge-img {
        height: 40px;
    }

    .alf-footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================================================
   9. UTILITY CLASSES
   ========================================================================== */

/* --- Section modifiers --- */
.alf-section-light {
    background-color: var(--alf-white);
    color: var(--alf-bg-card); /* Graphite */
}

.alf-section-light-alt {
    background-color: var(--alf-snow);
    color: var(--alf-bg-card);
}

.alf-section-dark {
    background-color: var(--alf-bg-dark);
    color: var(--alf-text-primary);
}

.alf-section-dark-alt {
    background-color: var(--alf-bg-section-2);
    color: var(--alf-text-primary);
}

/* --- R25: Reveal animation pattern --- */
.alf-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.alf-reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for children */
.alf-reveal-delay-1 { transition-delay: 0.1s; }
.alf-reveal-delay-2 { transition-delay: 0.2s; }
.alf-reveal-delay-3 { transition-delay: 0.3s; }
.alf-reveal-delay-4 { transition-delay: 0.4s; }

/* --- Container utility --- */
.alf-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.alf-container-narrow {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Text utilities --- */
.alf-text-center { text-align: center; }
.alf-text-left { text-align: left; }
.alf-text-right { text-align: right; }

.alf-text-accent { color: var(--alf-accent); }
.alf-text-muted { color: var(--alf-text-secondary); }

/* --- Section label / title / subtitle (shared across all pages) --- */
.alf-section-label {
    font-family: var(--alf-font-accent);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--alf-accent);
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.alf-section-label::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--alf-accent);
    border-radius: 1px;
}

.alf-section-title {
    font-family: var(--alf-font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 16px 0;
    color: var(--alf-bg-dark);
}

.alf-section-title--light {
    color: var(--alf-text-primary);
}

.alf-section-subtitle {
    font-family: var(--alf-font-body);
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--alf-text-secondary);
    max-width: 600px;
    margin: 0;
}

.alf-section-subtitle--light {
    color: var(--alf-silver);
}

/* --- Base button (.alf-btn) — shared across all pages --- */
.alf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--alf-font-display);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    padding: 14px 28px;
    cursor: pointer;
    border: none;
    transition: all 200ms ease-out;
}

.alf-btn:hover {
    transform: translateY(-2px);
}

.alf-btn--primary {
    background: var(--alf-accent);
    color: var(--alf-text-primary) !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
}

.alf-btn--primary:hover {
    background: var(--alf-accent-light);
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.4);
    color: var(--alf-text-primary) !important;
}

.alf-btn--secondary {
    background: transparent;
    color: var(--alf-fog) !important;
    border: 1px solid var(--alf-text-secondary);
}

.alf-btn--secondary:hover {
    border-color: var(--alf-accent-light);
    color: var(--alf-accent-light) !important;
}

.alf-btn--outline {
    background: transparent;
    color: var(--alf-accent) !important;
    border: 2px solid var(--alf-accent);
}

.alf-btn--outline:hover {
    background: var(--alf-accent);
    color: var(--alf-text-primary) !important;
}

.alf-btn--outline-light {
    color: var(--alf-text-primary) !important;
    border-color: var(--alf-text-secondary);
}

.alf-btn--outline-light:hover {
    border-color: var(--alf-accent-light);
    color: var(--alf-accent-light) !important;
    background: transparent;
}

.alf-btn--lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.alf-btn__icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* --- Staggered delay classes (prefix-less aliases used by some pages) --- */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

/* --- Spacing utilities --- */
.alf-section-padding {
    padding: 80px 0;
}

@media (max-width: 768px) {
    .alf-section-padding {
        padding: 48px 0;
    }

    .alf-section-title {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
}

/* ==========================================================================
   10. FORM INPUTS — Global defaults
   R15 — NEVER white bg on dark sections
   R15b — Select: explicit height + line-height + border-radius max 12px
   ========================================================================== */

/* Light section inputs (default) */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
input[type="search"],
textarea {
    font-family: var(--alf-font-body);
    font-size: 0.95rem;
    color: var(--alf-bg-card);
    background: var(--alf-mist);
    border: 1px solid var(--alf-fog);
    border-radius: var(--alf-radius-btn);
    padding: 12px 16px;
    width: 100%;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    outline: none;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="url"]:focus,
input[type="search"]:focus,
textarea:focus {
    border-color: var(--alf-accent);
    box-shadow: 0 0 0 3px var(--alf-accent-wash);
}

/* R15b — Select dropdown */
select {
    font-family: var(--alf-font-body);
    font-size: 0.95rem;
    color: var(--alf-bg-card);
    background: var(--alf-mist);
    border: 1px solid var(--alf-fog);
    border-radius: var(--alf-radius-btn); /* max 12px */
    height: 48px;
    line-height: 48px;
    padding: 0 16px;
    width: 100%;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

select:focus {
    border-color: var(--alf-accent);
    box-shadow: 0 0 0 3px var(--alf-accent-wash);
}

/* R15 — Dark section form inputs: NOT white background */
.alf-section-dark input[type="text"],
.alf-section-dark input[type="email"],
.alf-section-dark input[type="tel"],
.alf-section-dark input[type="password"],
.alf-section-dark input[type="number"],
.alf-section-dark input[type="url"],
.alf-section-dark input[type="search"],
.alf-section-dark textarea,
.alf-section-dark select,
.alf-section-dark-alt input[type="text"],
.alf-section-dark-alt input[type="email"],
.alf-section-dark-alt input[type="tel"],
.alf-section-dark-alt input[type="password"],
.alf-section-dark-alt input[type="number"],
.alf-section-dark-alt input[type="url"],
.alf-section-dark-alt input[type="search"],
.alf-section-dark-alt textarea,
.alf-section-dark-alt select {
    color: var(--alf-text-primary);
    background: var(--alf-bg-section-2);
    border-color: var(--alf-border-dark);
}

.alf-section-dark input::placeholder,
.alf-section-dark textarea::placeholder,
.alf-section-dark-alt input::placeholder,
.alf-section-dark-alt textarea::placeholder {
    color: var(--alf-text-secondary);
}

/* ==========================================================================
   11. WC NOTICES — Dark theme + RO translations (R22)
   ========================================================================== */
.woocommerce-message,
.woocommerce-info {
    background-color: var(--alf-accent-wash) !important;
    border-top-color: var(--alf-accent) !important;
    color: var(--alf-bg-card) !important;
    border-radius: var(--alf-radius-btn);
    padding: 12px 16px !important;
}

.woocommerce-error {
    background-color: var(--alf-error-wash) !important;
    border-top-color: var(--alf-error) !important;
    color: var(--alf-bg-card) !important;
    border-radius: var(--alf-radius-btn);
    padding: 12px 16px !important;
}

.woocommerce-message::before,
.woocommerce-info::before {
    color: var(--alf-accent) !important;
}

.woocommerce-error::before {
    color: var(--alf-error) !important;
}

/* ==========================================================================
   12. BUTTONS — Global patterns
   ========================================================================== */
.alf-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--alf-accent);
    color: var(--alf-text-primary) !important;
    padding: 12px 28px;
    border-radius: var(--alf-radius-btn);
    font-family: var(--alf-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--alf-shadow-sm);
}

.alf-btn-primary:hover {
    background: var(--alf-accent-light);
    color: var(--alf-text-primary) !important;
    transform: translateY(-2px);
    box-shadow: var(--alf-shadow-md);
}

/* R10b — SVG icons in buttons */
.alf-btn-primary svg,
.alf-btn-secondary svg,
.alf-btn-outline svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.alf-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--alf-mist);
    color: var(--alf-bg-card) !important;
    padding: 12px 28px;
    border-radius: var(--alf-radius-btn);
    font-family: var(--alf-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 1px solid var(--alf-fog);
    cursor: pointer;
    transition: all 0.3s ease;
}

.alf-btn-secondary:hover {
    background: var(--alf-fog);
    color: var(--alf-bg-dark) !important;
    transform: translateY(-1px);
}

.alf-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--alf-accent) !important;
    padding: 12px 28px;
    border-radius: var(--alf-radius-btn);
    font-family: var(--alf-font-display);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    border: 2px solid var(--alf-accent);
    cursor: pointer;
    transition: all 0.3s ease;
}

.alf-btn-outline:hover {
    background: var(--alf-accent);
    color: var(--alf-text-primary) !important;
    transform: translateY(-1px);
}

/* ==========================================================================
   13. CARD — Reusable card component
   ========================================================================== */
.alf-card {
    background: var(--alf-white);
    border: 1px solid var(--alf-fog);
    border-radius: var(--alf-radius-box);
    padding: 28px;
    box-shadow: var(--alf-shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

/* ==========================================================================
   14. SCROLLBAR — Custom (optional, light theme)
   ========================================================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--alf-snow);
}

::-webkit-scrollbar-thumb {
    background: var(--alf-silver);
    border-radius: var(--alf-radius-pill);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--alf-text-secondary);
}

/* ==========================================================================
   15. PRINT STYLES
   ========================================================================== */
@media print {
    .alf-custom-header,
    .alf-custom-footer,
    .pnrr-top-bar,
    .alf-mobile-overlay {
        display: none !important;
    }

    body {
        padding-top: 0 !important;
        background: var(--alf-white) !important;
        color: #000 !important;
    }
}
