/* ==========================================================================
   DALAS PLUMBING — Shared design system (theme tokens + base + components)
   Aesthetic: industrial / utilitarian / trustworthy local trade.
   Type: Barlow Condensed (display, signage feel) + Barlow (humanist body).
   Brand: red + blue from the "WD" mark. WhatsApp green for chat CTAs.
   Loaded globally; component CSS consumes these variables.
   ========================================================================== */

:root {
    /* Brand — blues (trust / water) */
    --blue-950: #06243F;
    --blue-900: #082F54;
    --blue-800: #0B3E6F;
    --blue:     #0E5FA4;
    --blue-600: #1474C2;
    --blue-bright: #1E88D2;

    /* Brand — reds (urgency / the "W") */
    --red:      #D11F26;
    --red-dark: #A8141A;

    /* WhatsApp */
    --green:    #25D366;
    --green-dark: #128C7E;

    /* Neutrals */
    --ink:   #0E1726;
    --slate: #3C4A60;
    --muted: #6A7889;
    --line:  #E3EAF2;
    --mist:  #F2F6FB;
    --paper: #FFFFFF;

    /* Type */
    --font-display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
    --font-body: "Barlow", system-ui, -apple-system, sans-serif;

    /* Radius */
    --r-sm: 6px;
    --r: 12px;
    --r-lg: 18px;
    --r-pill: 999px;

    /* Shadows (blue-tinted, like the brand) */
    --shadow-sm: 0 1px 2px rgba(8, 47, 84, .06), 0 2px 8px rgba(8, 47, 84, .06);
    --shadow:    0 12px 34px rgba(8, 47, 84, .12);
    --shadow-lg: 0 28px 64px rgba(8, 47, 84, .20);

    --container: 1240px;
    --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.62;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.03;
    letter-spacing: .005em;
    margin: 0;
    color: var(--ink);
}

a { color: var(--blue); }

/* ----- Layout helpers ----- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: 24px;
}

.eyebrow {
    display: inline-block;
    font-family: var(--font-body);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .2em;
    font-size: .78rem;
    color: var(--red);
}
.eyebrow--light { color: #8EC5FF; }

/* Blueprint grid texture — subtle, on-theme depth for section backgrounds */
.bp-grid {
    background-image:
        linear-gradient(rgba(14, 95, 164, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(14, 95, 164, .05) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55em;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 1rem;
    line-height: 1;
    letter-spacing: .01em;
    padding: .95em 1.6em;
    border-radius: var(--r-pill);
    border: 2px solid transparent;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .2s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--call {
    background: var(--red);
    color: #fff;
    box-shadow: 0 8px 22px rgba(209, 31, 38, .32);
}
.btn--call:hover { background: var(--red-dark); box-shadow: 0 14px 30px rgba(209, 31, 38, .42); }

.btn--wa {
    background: var(--green);
    color: #04361F;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .30);
}
.btn--wa:hover { background: #1ec85d; box-shadow: 0 14px 30px rgba(37, 211, 102, .42); }

.btn--blue { background: var(--blue); color: #fff; box-shadow: 0 8px 22px rgba(14, 95, 164, .30); }
.btn--blue:hover { background: var(--blue-800); }

.btn--ghost { background: transparent; color: var(--blue); border-color: rgba(14, 95, 164, .35); }
.btn--ghost:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.btn--ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn--ghost-light:hover { background: #fff; color: var(--blue-900); border-color: #fff; }

.btn--lg { padding: 1.1em 2em; font-size: 1.08rem; }

/* Accessible focus ring */
a:focus-visible, button:focus-visible, .btn:focus-visible {
    outline: 3px solid var(--blue-bright);
    outline-offset: 2px;
}
