:root {
    color-scheme: light;
}
:root {
    /* Defined system font stack for better performance when using Inter/Roboto */
    --font-sans: "Inter", "Roboto", sans-serif;
    --font-heading: "Roboto", "Inter", sans-serif;
}

/* |---------------------------------------------------------
| PERFORMANCE NOTE: 
| In a production environment, you must REPLACE the commented 
| Font Awesome declarations below with LOCAL WOFF2 files 
| to eliminate external DNS lookups and improve LCP.
|---------------------------------------------------------
*/

/* @font-face for fa-solid-900.woff2 (Self-hosted required for best LCP)
@font-face {
    font-family: "Font Awesome 6 Free";
    font-style: normal;
    font-weight: 900;
    font-display: swap; 
    src: url("/fonts/fa-solid-900.woff2") format("woff2");
}
*/

/* @font-face for fa-brands-400.woff2 (Self-hosted required for best LCP)
@font-face {
    font-family: "Font Awesome 6 Brands";
    font-style: normal;
    font-weight: 400;
    font-display: swap; 
    src: url("/fonts/fa-brands-400.woff2") format("woff2");
}
*/


/* BASE STYLES */

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-style: normal;
    background-color: #ffffff;
    color: #0f172a;
    line-height: 1.5;
    min-height: 100%;
}

.inter-text {
    font-family: var(--font-sans);
    font-optical-sizing: auto;
    font-style: normal;
    font-weight: inherit;
}

.heading-font,
.roboto-text {
    font-family: var(--font-heading);
    font-optical-sizing: auto;
    font-style: normal;
    /* Use font-variation-settings for variable fonts to avoid downloading multiple static weights */
    font-variation-settings: "wdth" 100;
    font-weight: inherit;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font-family: inherit;
    cursor: pointer;
}

/* HEADER STYLES */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.critical-top-bar {
    background: linear-gradient(90deg, #ea580c 0%, #ef4444 100%);
    color: #ffffff;
    font-size: 0.78rem;
}

.critical-top-inner,
.critical-main-bar,
.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.critical-top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 1rem;
}

.critical-badge {
    position: relative;
    display: inline-flex;
    height: 10px;
    width: 10px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.85);
    margin-right: 0.5rem;
}

.critical-main-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    gap: 1rem;
}

.critical-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #0f172a;
    font-weight: 700;
    text-decoration: none;
}

.critical-brand img {
    height: 3.25rem;
    width: 3.25rem;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(15, 23, 42, 0.2));
}

.nav-desktop {
    display: none;
    gap: 1rem;
    align-items: center;
}

.mobile-toggle {
    display: inline-flex;
    align-items: center;
}

.mobile-menu-panel[aria-hidden="true"],
.mobile-menu-panel.hidden {
    display: none;
}

@media (min-width: 1024px) {
    .nav-desktop {
        display: flex;
    }

    .mobile-toggle {
        display: none;
    }
}

/* HERO SECTION STYLES */

.hero-section-critical {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(59, 130, 246, 0.45), rgba(15, 23, 42, 0.95));
    color: #f8fafc;
}

.hero-section-critical::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.65) 0%, rgba(15, 23, 42, 0.25) 55%, rgba(15, 23, 42, 0.8) 100%);
    z-index: 1;
}

.hero-slider {
    position: absolute;
    inset: 0;
    z-index: 0;
    background-size: cover;
    background-position: center;
}

.hero-slider img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-content-critical {
    max-width: 56rem;
}

.hero-heading {
    font-size: clamp(2.5rem, 5vw, 4.25rem);
    font-weight: 800;
    line-height: 1.05;
    margin: 0 0 1.5rem;
    color: #f8fafc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-lead {
    font-size: clamp(1.125rem, 2.5vw, 1.65rem);
    margin-bottom: 2rem;
    color: #e2e8f0;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-actions {
        flex-direction: row;
    }
}

/* BUTTON STYLES */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.8rem;
    border-radius: 0.9rem;
    font-weight: 600;
    font-size: 1.05rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
    color: #f8fafc;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.45);
}

.btn-primary {
    background: #60a5fa;
}

.btn-secondary {
    background: #22c55e;
}

.btn-primary:hover {
    background: #3b82f6;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(59, 130, 246, 0.35);
}

.btn-secondary:hover {
    background: #16a34a;
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(34, 197, 94, 0.35);
}

/* NAVIGATION STYLES */

.primary-nav {
    background-color: #ffffff;
    border-bottom: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.primary-nav .nav-link {
    color: #334155;
}

.primary-nav .nav-link:hover {
    color: #f97316;
}

.primary-nav .nav-link:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, filter 0.2s ease;
}

@media (min-width: 1024px) {
    .nav-cta {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
}

.nav-cta:focus-visible {
    outline: 2px solid rgba(59, 130, 246, 0.45);
    outline-offset: 2px;
}

.nav-cta--whatsapp {
    background-color: #22c55e;
    color: #ffffff;
}

.nav-cta--whatsapp:hover {
    background-color: #16a34a;
}

.nav-cta--whatsapp:focus-visible {
    outline-color: rgba(34, 197, 94, 0.55);
}

.nav-cta--quote {
    background-color: #f97316;
    color: #ffffff;
}

.nav-cta--quote:hover {
    background-color: #c2410c;
}

.nav-cta--quote:focus-visible {
    outline-color: rgba(249, 115, 22, 0.55);
}

.nav-cta--full {
    width: 100%;
}
