/* ==========================================================================
   Family's Pizzas Antioquia — Variables globales
   ========================================================================== */

:root {
    /* Colores de marca */
    --pw-red: #FF4400;
    --pw-red-dark: #AD0202;
    --pw-yellow: #FFD000;
    --pw-cream: #FFF8F2;

    /* Colores de interfaz */
    --pw-dark: #241A17;
    --pw-text: #3A2925;
    --pw-muted: #796A64;
    --pw-white: #FFFFFF;

    /* Bordes y sombras */
    --pw-border: rgba(143, 14, 14, 0.12);
    --pw-shadow:
        0 24px 70px
        rgba(143, 14, 14, 0.14);

    /* Radios */
    --pw-radius-xl: 34px;
    --pw-radius-lg: 24px;
    --pw-radius-md: 16px;

    /* Ancho máximo */
    --pw-container: 1180px;

    /* Tipografía de encabezados */
    --pw-font-heading:
        "Poppins",
        "Arial Black",
        sans-serif;

    /* Tipografía de interfaz y lectura */
    --pw-font-body:
        "Manrope",
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

/* ==========================================================================
   Normalización
   ========================================================================== */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    color: var(--pw-text);

    background:
        radial-gradient(
            circle at top left,
            rgba(255, 179, 0, 0.14),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #FFFDFB 0%,
            var(--pw-cream) 46%,
            #FFFFFF 100%
        );

    font-family: var(--pw-font-body);

    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg,
video,
canvas {
    max-width: 100%;
    display: block;
}

figure {
    margin: 0;
}

/* ==========================================================================
   Sistema tipográfico
   ========================================================================== */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    font-family: var(--pw-font-heading);
    font-optical-sizing: auto;
    text-wrap: balance;
}

h1,
h2 {
    line-height: 1.1;
    letter-spacing: -0.03em;
}

h1 {
    font-weight: 800;
}

h2 {
    font-weight: 700;
}

h3,
h4,
h5,
h6 {
    font-weight: 600;
}

p {
    text-wrap: pretty;
}

strong,
b {
    font-weight: 800;
}

/* ==========================================================================
   Contenedor global
   ========================================================================== */

.pw-container {
    width: min(
        100% - 32px,
        var(--pw-container)
    );
    margin-inline: auto;
}

/* ==========================================================================
   Encabezados compartidos de secciones
   ========================================================================== */

.pw-section-heading {
    max-width: 680px;
    margin-bottom: 34px;
}

.pw-section-heading h2 {
    margin: 0;
    color: var(--pw-dark);
    font-size: clamp(2rem, 4vw, 3.6rem);
}

.pw-section-heading p {
    margin: 16px 0 0;
    color: var(--pw-muted);
    line-height: 1.7;
}

/* ==========================================================================
   Selección de texto
   ========================================================================== */

::selection {
    color: var(--pw-white);
    background: var(--pw-red);
}

/* ==========================================================================
   Barra de desplazamiento
   ========================================================================== */

@supports selector(::-webkit-scrollbar) {
    ::-webkit-scrollbar {
        width: 11px;
        height: 11px;
    }

    ::-webkit-scrollbar-track {
        background: var(--pw-cream);
    }

    ::-webkit-scrollbar-thumb {
        border: 3px solid var(--pw-cream);
        border-radius: 999px;
        background: var(--pw-red);
    }

    ::-webkit-scrollbar-thumb:hover {
        background: var(--pw-red-dark);
    }
}