/* Auto Glass World - global styles (tokens, base, layout) */
/*
 * The design is drawn for a 1240px content column (header-footer and homepage files, Oct 2026).
 * Its sizes are fixed px, so use them as they are. If a later design is drawn at 1920px, scale with:
 *   clamp(MINpx, calc(MINpx + (MAX - MIN) * (100vw - 1280px) / 640), MAXpx)
 * Breakpoints: 1199px (tablet: mobile menu), 991px (footer 2 columns, mobile quick bar), 575px.
 */

/* Fonts: self-hosted latin woff2 (assets/fonts, OFL), no Google Fonts request. Barlow Condensed 700
   and Barlow 400 are preloaded in functions/enqueue.php. */
@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/barlow-300.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/barlow-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/barlow-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/barlow-600.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-700.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "Barlow Condensed";
    font-style: italic;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/barlow-condensed-700-italic.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "IBM Plex Mono";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2");
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Fallbacks sized to match the web fonts (measured against Arial / Courier New), so text does not
   jump when the fonts arrive. */
@font-face {
    font-family: "Barlow Fallback";
    src: local("Arial"), local("Helvetica"), local("Liberation Sans");
    size-adjust: 94.82%;
    ascent-override: 105.46%;
    descent-override: 21.09%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback";
    font-style: normal;
    font-weight: 700;
    src: local("Arial Bold"), local("Arial-BoldMT"), local("Helvetica Bold"), local("Liberation Sans Bold");
    size-adjust: 75.38%;
    ascent-override: 132.66%;
    descent-override: 26.53%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "Barlow Condensed Fallback";
    font-style: italic;
    font-weight: 700;
    src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"), local("Helvetica Bold Oblique"), local("Liberation Sans Bold Italic");
    size-adjust: 73.07%;
    ascent-override: 136.85%;
    descent-override: 27.37%;
    line-gap-override: 0%;
}

@font-face {
    font-family: "IBM Plex Mono Fallback";
    src: local("Courier New"), local("Courier"), local("Liberation Mono");
    size-adjust: 100%;
    ascent-override: 102.5%;
    descent-override: 27.5%;
    line-gap-override: 0%;
}

:root {
    --agw-btn-font: 16px;
    --agw-btn-height: 56px;
    --agw-color-text: #121821;
    --agw-color-bg: #f4f2ec;
    --agw-color-primary: #2650bc;
    --agw-color-primary-dark: #1f43a0;
    --agw-color-heading: #121821;
    --agw-color-muted: #4a5260;
    --agw-color-light: #e9e6de;
    --agw-color-line: #d6d3ca;
    --agw-color-white: #ffffff;
    --agw-color-paper: #f4f2ec;
    --agw-color-navy: #0b1e3d;
    --agw-color-graphite: #0a0f17;
    --agw-color-sky: #a9c6f0;
    --agw-film-muted: rgba(244, 242, 236, 0.74);
    --agw-film-line: rgba(244, 242, 236, 0.22);
    --agw-color-cool: #f5f7fb;       /* bright sections: cool panel / card background */
    --agw-color-cool-line: #d9e0ec;  /* bright sections: borders and dividers */
    --agw-color-pale: #eef3fb;       /* bright sections: pale blue section background */
    --agw-color-ice: #d6e4fb;        /* accents on brand-blue sections */
    --agw-color-hover: var(--agw-color-primary-dark);
    --agw-ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --agw-transition: 0.2s ease;
    --agw-font-heading: "Barlow Condensed", "Barlow Condensed Fallback", Arial, sans-serif;
    --agw-font-body: "Barlow", "Barlow Fallback", Arial, sans-serif;
    --agw-font-mono: "IBM Plex Mono", "IBM Plex Mono Fallback", ui-monospace, Menlo, monospace;
    --agw-gutter: clamp(16px, 4vw, 60px);
    --agw-container: calc(1240px + 2 * var(--agw-gutter));
    /* Type scale for the page sections (Global Modules). Use these, not new sizes. */
    /* One size per element on every section: h1, h2, h3, p, buttons. */
    --agw-fs-h1: clamp(3.25rem, 7.4vw, 7.25rem);     /* page title (h1) on every page: the Hero size from staging */
    --agw-fs-section: clamp(2.5rem, 4.6vw, 4.25rem); /* section title (h2), Barlow Condensed */
    --agw-fs-h3: clamp(1.5rem, 1.1rem + 1.2vw, 2rem); /* every h3 (and step/card titles) */
    --agw-fs-title: var(--agw-fs-h3);
    --agw-fs-card: var(--agw-fs-h3);
    --agw-fs-num: 56px;                              /* numbered point "01" */
    --agw-fs-subtitle: 22px;                         /* bold line under a title (Barlow 600) */
    --agw-fs-quote: 22px;                            /* review text */
    --agw-fs-item: clamp(1.2rem, 1.7vw, 1.5rem);     /* tab / FAQ question */
    --agw-fs-lead: 17px;                             /* every paragraph */
    --agw-fs-text: var(--agw-fs-lead);               /* card text and list items: same as p */
    --agw-fs-note: 13.5px;                           /* small notes */
    --agw-fs-label: 12px;                            /* IBM Plex Mono uppercase labels */
    /* Spacing for the page sections: scales with the screen width (small on phones, roomy on desktop). */
    --agw-space-section: clamp(64px, 9vw, 140px);    /* top and bottom of a section */
    --agw-space-head: clamp(32px, 4.5vw, 64px);      /* section head to its content */
    --agw-space-block: clamp(40px, 6vw, 96px);       /* content to a row of points / steps */
    --agw-gap: clamp(28px, 5vw, 80px);               /* between two columns (rows when stacked) */
    --agw-card-pad: clamp(16px, 3.5vw, 48px);        /* inside a card or panel */
    --agw-label-gap: clamp(16px, 2.2vw, 28px);       /* eyebrow to title */
    --agw-overlap: clamp(16px, 2.4vw, 28px);         /* rounded top that overlaps the section above */
}

/* h1 below 992px (one-column heroes): the Hero size from staging. */
@media (max-width: 991px) {
    :root {
        --agw-fs-h1: clamp(3.1rem, 15.4vw, 4.6rem);
    }
}

/* Phones: narrower side space, so content gets more of the screen (header, footer and every section). */
@media (max-width: 575px) {
    :root {
        --agw-gutter: 12px;
    }
}

/* Large screens (1800px and up, e.g. 1920): a wider content column, less empty space at the sides.
   Header, footer and every section use .container, so they all widen together. */
@media (min-width: 1800px) {
    :root {
        --agw-container: calc(1520px + 2 * var(--agw-gutter));
    }
}

/* Site name in place of a logo until one is uploaded (agw_logo()). */
.agw-logo-text {
    display: block;
    color: var(--agw-color-paper);
    font-family: var(--agw-font-heading);
    font-size: 26px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

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

body {
    margin: 0;
    font-family: var(--agw-font-body);
    line-height: 1.5;
    color: var(--agw-color-text);
    -webkit-font-smoothing: antialiased;
    background: var(--agw-color-bg);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin: 0 0 0.5em;
    font-family: var(--agw-font-heading);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.012em;
    color: var(--agw-color-heading);
}

/* One heading scale for the whole site. Modules don't set heading sizes. */
h1 {
    font-size: var(--agw-fs-h1);
}

h2 {
    font-size: var(--agw-fs-section);
}

h3 {
    font-size: var(--agw-fs-h3);
}

h4 {
    font-size: clamp(20px, calc(20px + 4 * (100vw - 1280px) / 640), 24px);
}

h5 {
    font-size: 20px;
}

h6 {
    font-size: 18px;
}


img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--agw-color-primary);
    text-decoration: none;
    transition: color var(--agw-transition);
}

a:not(.btn):hover,
a:not(.btn):focus-visible {
    color: var(--agw-color-hover);
}

.container {
    width: 100%;
    max-width: var(--agw-container);
    margin-inline: auto;
    padding-inline: var(--agw-gutter);
}

/* Same space above and below every section, so the gap between any two sections is equal. */
.section-padding {
    padding-block: clamp(48px, calc(48px + 32 * (100vw - 1280px) / 640), 80px);
}

@media (max-width: 767px) {
    .section-padding {
        padding-block: 40px;
    }
}

/* Small uppercase label with a short line before it. */
.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    font-family: var(--agw-font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 1px;
    background: currentColor;
}

/* Pill button. Add <span class="btn-disc"> for the round arrow at the end (agw_btn_arrow()). */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: var(--agw-btn-height);
    padding: 0 26px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: var(--agw-btn-font);
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.3s, transform 0.2s var(--agw-ease);
}

.btn:active {
    transform: scale(0.97);
}

.btn:has(.btn-disc) {
    padding: 7px 7px 7px 26px;
}

.btn-disc {
    display: grid;
    flex: none;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    transition: transform 0.35s var(--agw-ease);
}

.btn:hover .btn-disc {
    transform: translateX(3px);
}

.btn-disc svg {
    width: 15px;
    height: 15px;
}

.btn-sm {
    --agw-btn-height: 44px;
}

.btn-sm:has(.btn-disc) {
    padding: 6px 6px 6px 20px;
}

.btn-sm .btn-disc {
    width: 32px;
    height: 32px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
    cursor: not-allowed;
}

/* Blue button, white disc. */
.btn-primary {
    background: var(--agw-color-primary);
    color: var(--agw-color-white);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--agw-color-primary-dark);
    color: var(--agw-color-white);
}

.btn-primary .btn-disc {
    background: var(--agw-color-white);
    color: var(--agw-color-primary);
}

/* Paper button on dark backgrounds, blue disc. */
.btn-light {
    background: var(--agw-color-paper);
    color: var(--agw-color-navy);
}

.btn-light:hover,
.btn-light:focus-visible {
    color: var(--agw-color-navy);
    box-shadow: 0 10px 40px -12px rgba(244, 242, 236, 0.5);
}

.btn-light .btn-disc {
    background: var(--agw-color-primary);
    color: var(--agw-color-white);
}

/* Glass button on dark backgrounds. With a disc, the disc sits on the left (arrow down). */
.btn-ghost {
    --agw-btn-height: 52px;
    border-color: var(--agw-film-line);
    background: rgba(10, 15, 23, 0.45);
    color: var(--agw-color-paper);
    font-weight: 500;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

/* Disc on the left: the same space on both sides, like .btn-line. */
.btn-ghost:has(.btn-disc) {
    padding: 7px 26px;
}

.btn-ghost .btn-disc {
    width: 36px;
    height: 36px;
    border: 1px solid var(--agw-film-line);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(10, 15, 23, 0.7);
    color: var(--agw-color-paper);
}

.btn-ghost:hover .btn-disc {
    transform: translateY(3px);
}

:focus-visible {
    outline: 2px solid var(--agw-color-primary);
    outline-offset: 3px;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

/* Skip link shows when it gets keyboard focus. */
.skip-link:focus {
    top: 8px;
    left: 8px;
    z-index: 1000;
    width: auto;
    height: auto;
    padding: 8px 16px;
    clip: auto;
    background: var(--agw-color-white);
}

/* Homepage sections (Oct 2026 design): big two-line title, section head, text link.
   Used by the Global Modules Services, Explorer, Our approach and Trust. */
.agw-display {
    margin: 0;
    font-size: var(--agw-fs-section);
    line-height: 0.95;
}

/* One Title field per section: <br> for a new line, <em> for the italic line. */
.agw-display {
    text-wrap: balance; /* even lines in narrow columns, no single word left alone */
}

.agw-display em {
    font-style: italic;
}

/* Brand-blue sections: white text, ice-blue accents. */
.is-blue {
    background: var(--agw-color-primary);
    color: var(--agw-color-white);
}

.is-blue :is(h2, h3),
.is-blue strong {
    color: var(--agw-color-white);
}

.is-blue .agw-display em,
.is-blue .eyebrow {
    color: var(--agw-color-ice);
}

.is-blue p {
    color: rgba(255, 255, 255, 0.9);
}

.is-blue :focus-visible {
    outline-color: var(--agw-color-white);
}

/* Light sections: the italic second line is brand blue (two-colour title). */
.is-light .agw-display em {
    color: var(--agw-color-primary);
}

/* Dark sections: the italic line is the light brand blue (brand blue is too dark to read there). */
.is-dark .agw-display em,
.agw-bridge .agw-display em {
    color: var(--agw-color-sky);
}

.agw-sec-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 40px);
    align-items: end;
}

.agw-sec-head .eyebrow {
    margin-bottom: var(--agw-label-gap);
}

.agw-lead {
    margin: 0;
    font-size: var(--agw-fs-lead);
    line-height: 1.53;
}

/* Every paragraph in a section is the same size (low specificity: a class can still set colour etc.). */
main section p {
    font-size: var(--agw-fs-lead);
}

.is-dark {
    background: var(--agw-color-graphite);
    color: var(--agw-color-paper);
}

.is-dark :is(h2, h3) {
    color: var(--agw-color-paper);
}

.is-dark .eyebrow,
.is-dark .agw-sec-head p {
    color: var(--agw-film-muted);
}

.is-dark :focus-visible {
    outline-color: var(--agw-color-sky);
}

.is-light {
    background: var(--agw-color-paper);
    color: var(--agw-color-text);
}

.is-light .eyebrow,
.is-light p {
    color: var(--agw-color-muted);
}

/* Text link with an arrow. */
.txt-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--agw-color-primary);
    font-size: var(--agw-fs-text);
    font-weight: 600;
}

.txt-link svg {
    width: 15px;
    height: 15px;
    transition: transform 0.35s var(--agw-ease);
}

.txt-link:hover svg {
    transform: translateX(3px);
}

.is-dark .txt-link,
.is-dark .txt-link:hover {
    color: var(--agw-color-sky);
}

/* Outline pill with a blue round icon on the left (phone call buttons). */
.btn-line {
    gap: 12px;
    padding: 5px 26px;
    border: 1.5px solid var(--agw-color-navy);
    background: var(--agw-color-white);
    color: var(--agw-color-navy);
}

.btn-line .btn-disc {
    width: 44px;
    height: 44px;
    background: var(--agw-color-primary);
    color: var(--agw-color-white);
}

/* Disc on the left: the same space on both sides (more specific than .btn:has(.btn-disc)). */
.btn-line:has(.btn-disc) {
    padding: 5px 26px;
}

.btn-line:hover,
.btn-line:focus-visible {
    background: var(--agw-color-navy);
    color: var(--agw-color-white);
}

.btn-line:hover .btn-disc {
    transform: none;
}

/* Plus that turns into a minus on the open item (.is-on / [open]). */
.agw-plus {
    position: relative;
    width: 20px;
    height: 20px;
    justify-self: end;
}

.agw-plus::before,
.agw-plus::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 3px;
    left: 3px;
    height: 1.6px;
    background: currentColor;
    transition: transform 0.4s var(--agw-ease);
}

.agw-plus::after {
    transform: rotate(90deg);
}

.is-on .agw-plus::after,
[open] > summary .agw-plus::after {
    transform: rotate(0);
}

/* Fade up on scroll, CSS only (no script). Browsers without scroll timelines show it at once. */
@media (prefers-reduced-motion: no-preference) {
    @supports (animation-timeline: view()) {
        .agw-rv {
            animation: agw-rv-up linear both;
            animation-timeline: view();
            animation-range: entry 0% cover 20%;
        }
    }
}

@keyframes agw-rv-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@keyframes agw-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 991px) {
    .agw-sec-head {
        grid-template-columns: minmax(0, 1fr);
    }
}
