/*
 * Hero Premium Styles
 * Brand-Consistent Design — Mikal Germany Pest Control
 * Green Primary + Amber Accent + Warm Cream
 */

/* Design tokens (--primary/--accent/--surface/--text-*) now live globally in
   style.css so every page has them — see "GLOBAL DESIGN TOKENS" there. */

/* ============================================
   FONT FAMILIES
   ============================================ */
.font-cairo {
    font-family: 'Cairo', sans-serif;
}

.font-body {
    font-family: 'IBM Plex Sans Arabic', sans-serif;
}

/* ============================================
   HERO SECTION BASE
   ============================================ */
.mikal-hero-premium {
    position: relative;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--surface-dark) 0%, var(--surface-dark-alt) 50%, #1a2e1a 100%);
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

/* ============================================
   GRAIN TEXTURE OVERLAY
   ============================================ */
.grain-overlay::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.04;
    pointer-events: none;
    z-index: 1;
}

/* ============================================
   GEOMETRIC PATTERN
   ============================================ */
.geo-pattern {
    background-image:
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(30deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(150deg, var(--primary) 12%, transparent 12.5%, transparent 87%, var(--primary) 87.5%, var(--primary)),
        linear-gradient(60deg, var(--primary-container) 25%, transparent 25.5%, transparent 75%, var(--primary-container) 75%, var(--primary-container)),
        linear-gradient(60deg, var(--primary-container) 25%, transparent 25.5%, transparent 75%, var(--primary-container) 75%, var(--primary-container));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px, 0 0, 40px 70px;
    opacity: 0.12;
}

/* ============================================
   ANIMATED GRADIENT ORBS
   ============================================ */
.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.35;
    animation: float 10s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
    top: -200px;
    left: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
    bottom: -100px;
    right: -50px;
    animation-delay: 3s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--inverse-primary) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    animation-delay: 5s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(20px, -20px) scale(1.03); }
    66% { transform: translate(-15px, 15px) scale(0.97); }
}

/* ============================================
   DIAGONAL LINE DECORATIONS
   ============================================ */
.diagonal-line {
    position: absolute;
    width: 1px;
    height: 200%;
    background: linear-gradient(180deg, transparent, var(--accent), transparent);
    opacity: 0.15;
    transform: rotate(-35deg);
}

/* ============================================
   GREEN BADGE
   ============================================ */
.green-badge {
    background: linear-gradient(135deg, var(--primary-container) 0%, var(--primary) 100%);
    position: relative;
    overflow: hidden;
}

.green-badge::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
}

/* ============================================
   ACCENT LINE
   ============================================ */
.accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-container));
    border-radius: 2px;
}

/* ============================================
   IMAGE GLASS CONTAINER
   ============================================ */
.image-glass {
    position: relative;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
}

.image-glass::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(13, 99, 27, 0.6), transparent 50%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

/* ============================================
   FLOATING CARD
   ============================================ */
.floating-card {
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(10px);
    animation: floatCard 5s ease-in-out infinite;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

/* Button styles (.btn-primary / .btn-outline) relocated to polish.css so they
   remain global now that hero-premium.css loads only on the front page. */

/* ============================================
   STAT ITEMS
   ============================================ */
.stat-item {
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 40px;
    background: linear-gradient(180deg, transparent, var(--primary-container), transparent);
}

.stat-item:last-child::after {
    display: none;
}

/* ============================================
   SCROLL INDICATOR
   ============================================ */
.scroll-indicator {
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: translateY(0) translateX(-50%); opacity: 0.6; }
    50% { transform: translateY(-8px) translateX(-50%); opacity: 1; }
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUp 0.8s ease forwards;
}

.fade-up-delay-1 { animation-delay: 0.1s; }
.fade-up-delay-2 { animation-delay: 0.2s; }
.fade-up-delay-3 { animation-delay: 0.3s; }
.fade-up-delay-4 { animation-delay: 0.4s; }
.fade-up-delay-5 { animation-delay: 0.5s; }

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

.scale-in {
    opacity: 0;
    transform: scale(0.9);
    animation: scaleIn 0.8s ease forwards;
    animation-delay: 0.3s;
}

@keyframes scaleIn {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ============================================
   MATERIAL ICON FILL
   ============================================ */
.material-symbols-outlined.filled {
    font-variation-settings: 'FILL' 1;
}

/* ============================================
   CUSTOM SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--surface-dark);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */
@media (max-width: 1024px) {
    .orb-1 {
        width: 300px;
        height: 300px;
    }

    .orb-2 {
        width: 200px;
        height: 200px;
    }

    .orb-3 {
        display: none;
    }

    .floating-card {
        position: relative !important;
        bottom: auto !important;
        right: auto !important;
        left: auto !important;
        top: auto !important;
        margin-top: 1rem;
    }

    .mikal-hero-premium {
        min-height: auto;
        padding-top: 8rem;
        padding-bottom: 4rem;
    }
}

@media (max-width: 768px) {
    .stat-item::after {
        display: none;
    }

    .diagonal-line {
        display: none;
    }

    .mikal-hero-premium {
        min-height: auto;
    }
}

/* ============================================
   IMAGE CONTAINER FIX
   ============================================ */
.image-glass img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================================
   GRID LAYOUT FIX
   ============================================ */
.mikal-hero-premium .container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

/* ============================================
   HERO SECTION STYLES (moved from inline <style> in hero-redesigned.php)
   ============================================ */
.hero-content-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
    position: relative;
    z-index: 10;
    padding-top: 8rem;
    padding-bottom: 8rem;
}
.hero-grid-responsive {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}
.hero-image-responsive {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
}
.hero-text-responsive {
    order: 1;
}
.hero-image-col-responsive {
    order: 2;
    position: relative;
}
.hero-eyebrow-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: 'Cairo', sans-serif;
}
.hero-accent-line {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--primary-container));
    border-radius: 2px;
    margin-bottom: 1.5rem;
}
.hero-main-heading {
    font-family: 'Cairo', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}
.hero-subheading {
    font-size: 1.125rem;
    color: var(--text-on-dark-muted);
    margin-bottom: 2rem;
    max-width: 36rem;
    line-height: 1.75;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 3rem;
}
.hero-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 1.125rem;
    text-decoration: none;
}
.hero-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}
.hero-trust-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-trust-icon-wrap {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    background: rgba(27, 122, 43, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-trust-number {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: white;
    font-size: 1.125rem;
}
.hero-trust-label {
    color: var(--text-on-dark-muted);
    font-size: 0.875rem;
}
.hero-image-frame {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}
.hero-floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    padding: 1.25rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    z-index: 10;
}
.hero-floating-card--standards {
    bottom: -1.5rem;
    right: -1.5rem;
    max-width: 280px;
}
.hero-floating-card--guarantee {
    top: -1rem;
    left: -1rem;
    background: var(--accent);
    padding: 0.75rem 1.25rem;
    animation-delay: 1s;
}
.hero-scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: rgba(232, 168, 23, 0.6);
}
.hero-scroll-text {
    font-size: 0.875rem;
    font-family: 'Cairo', sans-serif;
}
.hero-scroll-icon {
    font-size: 1.5rem;
}
.hero-bottom-fade {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 8rem;
    background: linear-gradient(to top, var(--surface), transparent);
}
.hero-diagonal-1 {
    right: 25%;
}
.hero-diagonal-2 {
    right: 65%;
}
.hero-pattern-overlay {
    position: absolute;
    inset: 0;
}
.hero-fade-up {
    margin-bottom: 1.5rem;
}
.hero-icon-sm {
    font-size: 1.125rem;
}
.hero-heading-accent {
    display: block;
    color: var(--accent);
}
.hero-trust-icon {
    color: var(--inverse-primary);
}
.hero-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(15, 26, 15, 0.8), transparent, transparent);
}
.hero-card-row {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}
.hero-card-icon-box {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-card-icon-box .material-symbols-outlined {
    color: white;
    font-size: 1.5rem;
}
.hero-card-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}
.hero-card-desc {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.625;
}
.hero-guarantee-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.hero-guarantee-icon {
    color: var(--surface-dark);
    font-size: 1.5rem;
}
.hero-guarantee-title {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--surface-dark);
    font-size: 0.875rem;
}
.hero-guarantee-desc {
    color: rgba(15, 26, 15, 0.7);
    font-size: 0.75rem;
}
@media (min-width: 768px) {
    .stats-grid-responsive {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1024px) {
    .hero-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
    }
    .hero-image-responsive {
        height: 600px;
    }
    .hero-text-responsive {
        order: 2;
    }
    .hero-image-col-responsive {
        order: 1;
    }
}
@media (max-width: 767px) {
    .hero-content-container {
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
    .hero-main-heading {
        font-size: 2.25rem;
    }
    .hero-image-responsive {
        height: 350px;
    }
}

.hero-stats-bar {
    background: #fafafa;
    padding: 3rem 0;
    position: relative;
    border-top: 1px solid rgba(0,0,0,0.05);
    border-bottom: 1px solid rgba(0,0,0,0.05);
    z-index: 20;
}
.hero-stats-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 2rem;
}
.hero-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}
.hero-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-left: 2rem;
    position: relative;
}
.hero-stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.hero-stat-icon .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.5rem;
}
.hero-stat-number {
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.25rem;
}
.hero-stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}
@media (min-width: 768px) {
    .hero-stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
/* ─── Mobile: clean centered stat cards (2×2) ─── */
@media (max-width: 767px) {
    .hero-stats-bar {
        padding: 2.25rem 0;
    }
    .hero-stats-container {
        padding: 0 1.25rem;
    }
    .hero-stats-grid {
        gap: 0.875rem;
    }
    .hero-stat-item {
        flex-direction: column;
        text-align: center;
        gap: 0.6rem;
        padding: 1.25rem 0.75rem;
        background: #ffffff;
        border: 1px solid rgba(10, 92, 24, 0.08);
        border-radius: 1rem;
        box-shadow: 0 2px 12px rgba(15, 26, 15, 0.05);
    }
    .hero-stat-icon {
        width: 3rem;
        height: 3rem;
        border-radius: 0.85rem;
    }
    .hero-stat-icon .material-symbols-outlined {
        font-size: 1.35rem;
    }
    .hero-stat-number {
        font-size: 1.35rem;
        line-height: 1.2;
    }
    .hero-stat-label {
        font-size: 0.8rem;
        line-height: 1.35;
        text-wrap: balance;
    }
}
/* Very small phones: keep the 2×2 grid readable */
@media (max-width: 360px) {
    .hero-stat-item {
        padding: 1rem 0.5rem;
    }
    .hero-stat-label {
        font-size: 0.75rem;
    }
}
