/**
 * Custom Hero Section Widget - Base Styles
 *
 * This file contains the foundational layout and structural styles for the widget.
 * Dynamic styles (colors, typography, spacing, etc.) are applied by Elementor's
 * controls on top of these base rules.
 */

/* Main container for the entire widget */
.elementor-widget-hero-section .hero-container {
    font-family: 'Inter', sans-serif;
    text-align: center;
}

/* ---------- HEADER ---------- */

/* The main header wrapper. It's a relative container for the overlay and content. */
.elementor-widget-hero-section .hero-header {
    position: relative;
    background-size: cover;
    background-position: center;
}

/* The overlay layer. It sits on top of the background and below the content. */
.elementor-widget-hero-section .hero-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none; /* Allows clicks to go through to elements behind it if needed */
}

/* The content wrapper inside the header. Padding is applied here to prevent layout breaks. */
.elementor-widget-hero-section .hero-header-content {
    position: relative; /* Sits on top of the overlay */
    z-index: 1;
}

/* Main title (H1) */
.elementor-widget-hero-section .hero-header h1 {
    font-size: clamp(2rem, 5vw, 3rem); /* Responsive font size */
    margin-top: 0;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

/* Subtitle (P) */
.elementor-widget-hero-section .hero-header p {
    font-size: 1.2rem;
    margin-top: 0;
    margin-bottom: 20px;
    opacity: 0.9;
}

/* Wrapper for the badges */
.elementor-widget-hero-section .badges-wrapper {
    margin-top: 20px;
}

/* Individual badge style */
.elementor-widget-hero-section .badge {
    display: inline-block;
    font-size: 0.9rem;
    margin: 5px;
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}


/* ---------- QUICK INFO ---------- */

/* The grid container for the quick info boxes */
.elementor-widget-hero-section .quick-info {
    /* **FIX**: Added position and z-index to ensure this section overlaps the header */
    position: relative;
    z-index: 2;

    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 40px;
    display: grid;
    /* Creates a responsive grid that wraps automatically */
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 20px;
    padding: 0 20px;
}

/* Individual info box item */
.elementor-widget-hero-section .quick-info-item {
    border-top: 4px solid; /* The color is applied by the "Accent Color" control */
    transition: all 0.3s ease; /* Smooth transition for hover effects */
}

/* The large number/text inside the info box */
.elementor-widget-hero-section .quick-info-item .number {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 5px;
}

/* The smaller label text inside the info box */
.elementor-widget-hero-section .quick-info-item .label {
    font-size: 0.9rem;
    opacity: 0.8;
}