/* Consolata — site-wide visual polish (loads after style.css) */

/* ─── Base & layout ─── */
body:not(.customer-auth-page) {
    background: var(--white);
}

body:not(.has-hero):not(.customer-auth-page) main {
    background: var(--gradient-surface);
    background-attachment: fixed;
}

/* ─── Topbar & header ─── */
.topbar {
    background: linear-gradient(90deg, var(--black) 0%, var(--gray-dark) 100%);
    border-bottom: 3px solid var(--brand);
}

.topbar-contact a:hover {
    color: var(--brand);
}

body:not(.has-hero) .site-header {
    backdrop-filter: blur(12px);
    background: rgba(255, 255, 255, 0.97);
}

.nav-pill {
    background: var(--surface);
}

.nav-link.is-active {
    box-shadow: var(--shadow-brand);
}

.promo-banner {
    font-weight: 700;
    letter-spacing: 0.02em;
}

/* ─── Typography & section labels ─── */
.section-tag,
.page-hero .section-tag,
.page-hero .section-label {
    padding: 0.4rem 0.9rem;
    background: var(--brand-light);
    border: 1px solid rgba(202, 89, 27, 0.22);
    border-radius: 50px;
    color: var(--brand-dark);
}

.section-title-row h2,
.section-header h2 {
    position: relative;
}

.section-title-row.centered h2::after,
.section-header.centered h2::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    margin: 1rem auto 0;
    background: var(--gradient-brand);
    border-radius: 4px;
}

.section {
    padding: var(--section-pad) 0;
}

/* ─── Page heroes (inner pages) ─── */
.page-hero {
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.page-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 100% 0%, rgba(202, 89, 27, 0.2), transparent 55%),
        radial-gradient(ellipse 60% 50% at 0% 100%, rgba(255, 255, 255, 0.06), transparent 50%);
    pointer-events: none;
}

.page-hero .container {
    position: relative;
    z-index: 1;
}

.page-hero-compact {
    padding: clamp(3.5rem, 8vw, 5rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}

/* ─── Featured products strip ─── */
.section-catalog-preview {
    background: linear-gradient(180deg, var(--white) 0%, var(--brand-light) 45%, var(--surface) 100%);
    position: relative;
}

.section-catalog-preview::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ─── Service cards ─── */
.section-services {
    background: var(--surface);
    position: relative;
}

.service-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.service-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card-icon {
    border-radius: 18px;
    box-shadow: var(--shadow-sm);
}

.service-card-link {
    color: var(--brand);
}

.service-card-link:hover {
    color: var(--brand-dark);
}

/* ─── About section ─── */
.section-about {
    background: var(--white);
}

.about-media img {
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.12);
}

.about-media::after {
    content: "";
    position: absolute;
    inset: 1.5rem -1rem -1.5rem 1.5rem;
    border: 2px solid rgba(202, 89, 27, 0.25);
    border-radius: var(--radius-xl);
    pointer-events: none;
    z-index: -1;
}

.about-badge {
    box-shadow: var(--shadow-brand);
}

.check-list li {
    padding: 0.35rem 0;
}

.check-list i {
    color: var(--brand);
}

/* ─── Stats band ─── */
.section-stats {
    background: var(--gradient-dark);
    position: relative;
}

.section-stats::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='%23ffffff' fill-opacity='0.03'%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");
    opacity: 0.5;
    pointer-events: none;
}

.section-stats .container {
    position: relative;
    z-index: 1;
}

.stats-grid {
    gap: 0;
}

.stat-box {
    padding: 1.5rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-box:last-child {
    border-right: none;
}

.stat-box strong {
    font-size: clamp(2.25rem, 4vw, 3rem);
    color: var(--brand);
}

@supports (background-clip: text) or (-webkit-background-clip: text) {
    .stat-box strong {
        background: linear-gradient(135deg, #fff 30%, var(--brand) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
    }
}

/* ─── Vision cards ─── */
.section-vision {
    background: var(--surface);
}

.vision-card {
    border-radius: var(--radius-lg);
    transition: transform var(--transition), box-shadow var(--transition);
}

.vision-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.08);
}

.vision-card-head i {
    box-shadow: var(--shadow-sm);
}

/* ─── CTA panels ─── */
.cta-panel,
.cta-banner {
    position: relative;
    overflow: hidden;
    box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.cta-panel::after,
.cta-banner::after {
    content: "";
    position: absolute;
    top: -50%;
    right: -20%;
    width: 50%;
    height: 200%;
    background: radial-gradient(circle, rgba(202, 89, 27, 0.35) 0%, transparent 70%);
    pointer-events: none;
}

.cta-panel > *,
.cta-banner > * {
    position: relative;
    z-index: 1;
}

/* ─── Generic cards ─── */
.card,
.card-panel {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
}

.card:hover {
    box-shadow: var(--shadow);
}

.card-panel {
    padding: 2rem;
}

/* ─── Product cards & catalog ─── */
.product-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.product-card:hover {
    border-color: rgba(202, 89, 27, 0.3);
}

.product-category {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand);
}

.product-price {
    font-weight: 800;
    color: var(--black);
}

.product-carousel-btn:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: var(--white);
}

.product-carousel-dot {
    background: #d4d2d1;
}

.product-carousel-dot.is-active {
    background: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-muted);
}

.catalog-sidebar {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.catalog-search button {
    background: var(--gradient-brand);
    transition: filter 0.2s ease;
}

.catalog-search button:hover {
    filter: brightness(1.08);
}

.category-filter a.is-active {
    background: var(--brand-light) !important;
    color: var(--brand-dark) !important;
    border-radius: 10px;
}

/* ─── Forms & alerts ─── */
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    box-shadow: var(--ring-brand);
}

.alert {
    border-radius: var(--radius);
}

.alert-success {
    background: #edf9f2;
    border-color: #b8e6cc;
}

/* ─── Footer ─── */
.site-footer {
    background: linear-gradient(180deg, #141414 0%, var(--black) 100%);
    margin-top: 0;
    position: relative;
}

.site-footer::before {
    content: "";
    display: block;
    height: 4px;
    background: linear-gradient(90deg, var(--brand) 0%, var(--gray) 50%, var(--brand) 100%);
}

.footer-col h3 {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.95);
}

.footer-col a:hover {
    color: var(--brand);
}

.footer-newsletter {
    background: linear-gradient(135deg, var(--brand-darker) 0%, var(--black) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-newsletter h3 {
    margin: 0 0 0.35rem;
    font-size: 1.25rem;
    font-weight: 800;
}

.footer-newsletter-form .btn.btn-gold {
    background: var(--white);
    color: var(--brand-dark);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.footer-newsletter-form .btn.btn-gold:hover {
    background: var(--brand-light);
    color: var(--brand-darker);
    transform: translateY(-1px);
}

/* ─── WhatsApp float ─── */
.whatsapp-float {
    box-shadow: 0 8px 28px rgba(37, 211, 102, 0.45);
}

/* ─── Hero ─── */
.hero-fertilys h1 {
    text-shadow: 0 4px 32px rgba(0, 0, 0, 0.35);
}

.hero-rating .stars {
    color: var(--brand);
}

.hero-slider-dot.is-active {
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(202, 89, 27, 0.35);
}

/* ─── Product detail & cart ─── */
.product-detail {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.cart-table-wrap,
.checkout-panel {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ─── Blog & prose ─── */
.blog-card {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    padding: 1.5rem;
    background: var(--white);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.blog-card h2 a {
    color: var(--black);
}

.blog-card h2 a:hover {
    color: var(--brand);
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
    .stat-box {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        padding: 1.25rem 0;
    }

    .stat-box:last-child {
        border-bottom: none;
    }

    .about-media::after {
        display: none;
    }
}

@media (max-width: 640px) {
    .page-hero {
        margin: 0;
        border-radius: 0;
    }
}
