/* Fast Quality & Service — shared styles */

:root {
    --fq-ink: #0f1012;
    --fq-ink-soft: #1c1e22;
    --fq-steel: #2a2e35;
    --fq-paper: #f6f5f1;
    --fq-sand: #ecebe5;
    --fq-stone: #d9d7cf;
    --fq-yellow: #f5c518;
    --fq-yellow-light: #ffd84a;
    --fq-yellow-dark: #8f6d00;
    --fq-muted: #60636a;
    --fq-line: rgba(15, 16, 18, 0.12);
    --fq-line-light: rgba(255, 255, 255, 0.14);
    --fq-white: #ffffff;

    --fq-display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --fq-sans: "Manrope", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;

    --fq-container: 1240px;
    --fq-gutter: 40px;
    --fq-header-h: 88px;
    --fq-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 72px;
}

html,
body,
button,
input,
select,
textarea {
    font-family: var(--fq-sans);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    background: var(--fq-paper);
    color: var(--fq-ink);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
}

body.fq-nav-open {
    overflow: hidden;
}

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

a {
    color: inherit;
}

::selection {
    background: var(--fq-yellow);
    color: var(--fq-ink);
}

.fq-container {
    width: min(var(--fq-container), calc(100% - var(--fq-gutter)));
    margin: 0 auto;
}

/* ---------- Typography helpers ---------- */

.fq-kicker {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 20px;
    color: var(--fq-ink);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.fq-kicker::before {
    content: "";
    width: 34px;
    height: 3px;
    background: var(--fq-yellow);
}

.fq-kicker--light {
    color: var(--fq-yellow);
}

.fq-display {
    margin: 0;
    font-family: var(--fq-display);
    font-weight: 700;
    font-size: clamp(42px, 6vw, 84px);
    line-height: 0.96;
    letter-spacing: -0.005em;
    text-transform: uppercase;
}

/* on light backgrounds the accent is a highlighter stroke; on dark it is plain yellow */
.fq-display em {
    font-style: normal;
    background: linear-gradient(transparent 64%, var(--fq-yellow) 64%, var(--fq-yellow) 92%, transparent 92%);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.fq-on-dark .fq-display em,
.fq-display.fq-display--light em {
    background: none;
    color: var(--fq-yellow);
}

.fq-lead {
    margin: 0;
    color: var(--fq-muted);
    font-size: clamp(16px, 1.3vw, 19px);
    line-height: 1.75;
}

/* ---------- Buttons ---------- */

.fq-btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 56px;
    padding: 0 30px;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-transform: uppercase;
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.45s var(--fq-ease), border-color 0.45s var(--fq-ease), transform 0.45s var(--fq-ease);
}

.fq-btn::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    transform: translateY(101%);
    transition: transform 0.5s var(--fq-ease);
}

.fq-btn:hover::before {
    transform: translateY(0);
}

.fq-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    transition: transform 0.45s var(--fq-ease);
}

.fq-btn:hover svg {
    transform: translateX(4px);
}

.fq-btn--primary {
    background: var(--fq-yellow);
    color: var(--fq-ink);
}

.fq-btn--primary::before {
    background: var(--fq-white);
}

.fq-btn--ghost {
    border-color: rgba(255, 255, 255, 0.45);
    color: var(--fq-white);
}

.fq-btn--ghost::before {
    background: var(--fq-white);
}

.fq-btn--ghost:hover {
    color: var(--fq-ink);
}

.fq-btn--dark {
    background: var(--fq-ink);
    color: var(--fq-white);
}

.fq-btn--dark::before {
    background: var(--fq-yellow);
}

.fq-btn--dark:hover {
    color: var(--fq-ink);
}

/* ---------- Scroll reveal ---------- */

[data-reveal] {
    opacity: 0;
    transform: translateY(42px);
    transition: opacity 1s var(--fq-ease), transform 1.1s var(--fq-ease);
    transition-delay: var(--fq-delay, 0s);
}

[data-reveal="left"] {
    transform: translateX(-56px);
}

[data-reveal="right"] {
    transform: translateX(56px);
}

[data-reveal="scale"] {
    transform: scale(0.94);
}

/* clip the child, not the observed element: a fully clipped target never intersects */
[data-reveal="mask"] {
    opacity: 1;
    transform: none;
}

[data-reveal="mask"] > * {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 1.4s var(--fq-ease);
    transition-delay: var(--fq-delay, 0s);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

[data-reveal="mask"].is-visible > * {
    clip-path: inset(0 0 0 0);
}

/* line-by-line headline reveal */
.fq-split-line {
    display: block;
    overflow: hidden;
    padding-bottom: 0.06em;
}

.fq-split-line > span {
    display: inline-block;
    transform: translateY(110%);
    transition: transform 1.2s var(--fq-ease);
    transition-delay: var(--fq-delay, 0s);
}

.is-visible .fq-split-line > span,
.fq-split-line.is-visible > span {
    transform: translateY(0);
}

/* ---------- Header ---------- */

.fq-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    color: var(--fq-white);
    transition: top 0.5s var(--fq-ease), background 0.5s var(--fq-ease), box-shadow 0.5s var(--fq-ease), transform 0.5s var(--fq-ease);
}

.fq-header.is-scrolled {
    top: 0;
    background: rgba(15, 16, 18, 0.94);
    box-shadow: 0 1px 0 var(--fq-line-light), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
}

.fq-header.is-hidden {
    transform: translateY(-100%);
}

.fq-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: var(--fq-header-h);
    transition: height 0.4s var(--fq-ease);
}

.fq-header.is-scrolled .fq-header-inner {
    height: 72px;
}

.fq-brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    text-decoration: none;
}

.fq-brand-logo {
    display: grid;
    place-items: center;
    width: 76px;
    height: 66px;
    padding: 4px;
    border-radius: 6px;
    background: #000;
    overflow: hidden;
    transition: width 0.4s var(--fq-ease), height 0.4s var(--fq-ease);
}

.fq-header.is-scrolled .fq-brand-logo {
    width: 62px;
    height: 54px;
}

.fq-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fq-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.fq-brand-name {
    font-family: var(--fq-display);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.fq-brand-name b {
    color: var(--fq-yellow);
    font-weight: 700;
}

.fq-brand-tagline {
    margin-top: 6px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.66;
}

.fq-nav {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: auto;
}

.fq-nav a {
    position: relative;
    padding: 8px 0;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    opacity: 0.86;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.fq-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--fq-yellow);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.5s var(--fq-ease);
}

.fq-nav a:hover,
.fq-nav a.is-active {
    opacity: 1;
}

.fq-nav a:hover::after,
.fq-nav a.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.fq-nav-extra {
    display: none;
}

.fq-header-actions {
    display: flex;
    align-items: center;
    gap: 14px;
}

.fq-header-phone {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--fq-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-decoration: none;
    white-space: nowrap;
}

.fq-header-phone span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--fq-yellow);
    color: var(--fq-ink);
}

.fq-header-phone svg {
    width: 17px;
    height: 17px;
}

.fq-header-cta {
    min-height: 46px;
    padding: 0 22px;
    font-size: 13px;
}

.fq-nav-toggle {
    display: none;
    position: relative;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid currentColor;
    border-radius: 4px;
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.fq-nav-toggle span {
    position: absolute;
    left: 12px;
    right: 12px;
    height: 2px;
    background: currentColor;
    transition: transform 0.4s var(--fq-ease), opacity 0.3s ease;
}

.fq-nav-toggle span:nth-child(1) {
    top: 15px;
}

.fq-nav-toggle span:nth-child(2) {
    top: 21px;
}

.fq-nav-toggle span:nth-child(3) {
    top: 27px;
}

body.fq-nav-open .fq-nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

body.fq-nav-open .fq-nav-toggle span:nth-child(2) {
    opacity: 0;
}

body.fq-nav-open .fq-nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* ---------- Footer ---------- */

.fq-footer {
    position: relative;
    background: var(--fq-ink);
    color: rgba(255, 255, 255, 0.7);
    overflow: hidden;
}

.fq-footer::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 6px;
    background: repeating-linear-gradient(-45deg, var(--fq-yellow) 0 18px, var(--fq-ink) 18px 36px);
}

.fq-footer-mark {
    padding: 80px 0 0;
    font-family: var(--fq-display);
    font-size: clamp(44px, 13vw, 200px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.01em;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.14);
    white-space: nowrap;
    user-select: none;
}

.fq-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr 0.9fr 1.2fr;
    gap: 48px;
    padding: 64px 0 56px;
    border-bottom: 1px solid var(--fq-line-light);
}

.fq-footer-brand .fq-brand {
    color: var(--fq-white);
}

.fq-footer-brand .fq-brand-logo {
    width: 104px;
    height: 92px;
}

.fq-footer-about {
    max-width: 360px;
    margin: 22px 0 0;
    font-size: 14px;
    line-height: 1.8;
}

.fq-footer-social {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    color: var(--fq-white);
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.fq-footer-social:hover {
    color: var(--fq-yellow);
}

.fq-footer-social svg {
    width: 20px;
    height: 20px;
}

.fq-footer-title {
    margin: 0 0 20px;
    color: var(--fq-white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.fq-footer-links {
    display: grid;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 14px;
}

.fq-footer-links a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.fq-footer-links a:hover {
    color: var(--fq-yellow);
}

.fq-footer-contact li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.fq-footer-contact svg {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    margin-top: 3px;
    color: var(--fq-yellow);
}

.fq-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 34px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.fq-footer-bottom a {
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Mobile call bar ---------- */

.fq-callbar {
    display: none;
}

/* ---------- Back to top ---------- */

.fq-to-top {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 900;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 50%;
    background: var(--fq-ink);
    color: var(--fq-white);
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s var(--fq-ease), background 0.3s ease, color 0.3s ease;
}

.fq-to-top.is-visible {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.fq-to-top:hover {
    background: var(--fq-yellow);
    color: var(--fq-ink);
}

.fq-to-top svg {
    position: relative;
    width: 18px;
    height: 18px;
}

.fq-to-top .fq-to-top-ring {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    transform: rotate(-90deg);
}

.fq-to-top-ring circle {
    fill: none;
    stroke: var(--fq-yellow);
    stroke-width: 2;
    stroke-dasharray: 150.8;
    stroke-dashoffset: 150.8;
}

/* ---------- Pop message (shared) ---------- */

.pop_wrapper {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(15, 16, 18, 0.6);
}

.pop_msg_container {
    width: min(420px, 100%);
    border-top: 4px solid var(--fq-yellow);
    border-radius: 8px;
    background: var(--fq-paper);
    overflow: hidden;
}

.pop_container_top,
.pop_container_middle,
.pop_container_bottom {
    padding: 18px 24px;
}

.pop_title {
    font-weight: 800;
}

.pop_container_bottom {
    text-align: right;
}

.pop_button {
    min-height: 40px;
    padding: 0 22px;
    border: 0;
    border-radius: 4px;
    background: var(--fq-ink);
    color: var(--fq-white);
    font-weight: 800;
    cursor: pointer;
}

/* ---------- Responsive ---------- */

@media (max-width: 1180px) {
    .fq-nav {
        gap: 22px;
    }

    .fq-header-phone {
        display: none;
    }
}

@media (max-width: 1000px) {
    .fq-header-cta {
        display: none;
    }
}

@media (max-width: 900px) {
    :root {
        --fq-gutter: 32px;
        --fq-header-h: 76px;
    }

    .fq-nav-toggle {
        display: block;
    }

    .fq-header-actions {
        margin-left: auto;
    }

    .fq-header-phone {
        display: inline-flex;
        font-size: 0;
        gap: 0;
    }

    .fq-nav {
        position: fixed;
        inset: 0;
        z-index: -1;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 4px;
        margin: 0;
        padding: 110px 32px 40px;
        background: var(--fq-ink);
        color: var(--fq-white);
        clip-path: circle(0 at calc(100% - 44px) 38px);
        transition: clip-path 0.8s var(--fq-ease);
    }

    body.fq-nav-open .fq-nav {
        clip-path: circle(150% at calc(100% - 44px) 38px);
    }

    body.fq-nav-open .fq-header {
        top: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .fq-nav a {
        font-family: var(--fq-display);
        font-size: 44px;
        font-weight: 700;
        line-height: 1.1;
        text-transform: uppercase;
        opacity: 0;
        transform: translateY(24px);
        transition: opacity 0.5s ease, transform 0.6s var(--fq-ease), color 0.3s ease;
    }

    .fq-nav a:hover,
    .fq-nav a.is-active {
        color: var(--fq-yellow);
    }

    .fq-nav a::after {
        display: none;
    }

    .fq-nav-extra {
        display: block;
        margin-top: 28px;
        opacity: 0;
        transition: opacity 0.5s ease 0.35s;
    }

    .fq-nav .fq-nav-extra a {
        font-family: var(--fq-sans);
        font-size: 15px;
        line-height: 1.6;
        text-transform: none;
        opacity: 0.7;
        transform: none;
    }

    body.fq-nav-open .fq-nav-extra {
        opacity: 1;
    }

    body.fq-nav-open .fq-nav a {
        opacity: 1;
        transform: none;
    }

    body.fq-nav-open .fq-nav a:nth-child(2) { transition-delay: 0.05s; }
    body.fq-nav-open .fq-nav a:nth-child(3) { transition-delay: 0.1s; }
    body.fq-nav-open .fq-nav a:nth-child(4) { transition-delay: 0.15s; }
    body.fq-nav-open .fq-nav a:nth-child(5) { transition-delay: 0.2s; }
    body.fq-nav-open .fq-nav a:nth-child(6) { transition-delay: 0.25s; }
    body.fq-nav-open .fq-nav a:nth-child(7) { transition-delay: 0.3s; }

    .fq-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .fq-footer-brand {
        grid-column: 1 / -1;
    }

    /* sticky call / quote bar for phones and small tablets */
    .fq-callbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 950;
        display: grid;
        grid-template-columns: 1fr 1fr;
        padding-bottom: env(safe-area-inset-bottom);
        background: var(--fq-ink);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.25);
        transform: translateY(100%);
        transition: transform 0.5s var(--fq-ease);
    }

    .fq-callbar.is-visible {
        transform: none;
    }

    .fq-callbar a {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        min-height: 58px;
        color: var(--fq-white);
        font-size: 14px;
        font-weight: 800;
        letter-spacing: 0.04em;
        text-decoration: none;
        text-transform: uppercase;
    }

    .fq-callbar a + a {
        background: var(--fq-yellow);
        color: var(--fq-ink);
    }

    .fq-callbar svg {
        width: 18px;
        height: 18px;
    }

    .fq-footer-bottom {
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }

    .fq-to-top {
        bottom: calc(76px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 600px) {
    :root {
        --fq-gutter: 32px;
    }

    .fq-header-inner {
        gap: 12px;
    }

    .fq-brand-logo {
        width: 64px;
        height: 56px;
    }

    .fq-header.is-scrolled .fq-brand-logo {
        width: 56px;
        height: 48px;
    }

    .fq-header .fq-brand-copy {
        display: none;
    }

    .fq-header-actions {
        gap: 10px;
    }

    .fq-header-phone span,
    .fq-nav-toggle {
        width: 42px;
        height: 42px;
    }

    .fq-nav a {
        font-size: 38px;
    }

    .fq-footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .fq-footer-bottom {
        flex-direction: column;
        gap: 8px;
    }

    .fq-to-top {
        right: 16px;
        width: 46px;
        height: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    [data-reveal],
    [data-reveal="mask"] > *,
    .fq-split-line > span {
        opacity: 1 !important;
        transform: none !important;
        clip-path: none !important;
        transition: none !important;
    }
}
