/* =========================================================
   Dubuque Glass & Aluminum, 2026 Redesign
   Bright · Product-forward · Trade-trustworthy
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
    --ink:        #0F1E2E;
    --ink-2:      #1A2D43;
    --blue:       #1E56A0;
    --blue-dk:    #174277;
    --blue-lt:    #EAF2FB;
    --blue-50:    #F4F8FD;
    --white:      #FFFFFF;
    --off:        #F6F7F9;
    --off-2:      #EEF1F5;
    --line:       #E2E6EC;
    --line-2:     #D4D9E2;
    --accent:     #F59E0B;
    --accent-dk:  #C67C06;
    --text:       #1A2433;
    --muted:      #5B6472;
    --muted-2:    #8691A0;
    --success:    #1F7A4C;
    --error:      #B53737;
    --shadow-sm:  0 1px 2px rgba(15, 30, 46, 0.06);
    --shadow-md:  0 4px 16px rgba(15, 30, 46, 0.08);
    --shadow-lg:  0 18px 48px rgba(15, 30, 46, 0.12);
    --radius:     10px;
    --radius-lg:  16px;

    /* Type */
    --sans: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --serif: "Source Serif 4", Georgia, serif;

    /* Scale */
    --fs-xs:  0.75rem;
    --fs-sm:  0.875rem;
    --fs-base:1rem;
    --fs-md:  1.125rem;
    --fs-lg:  1.375rem;
    --fs-xl:  1.75rem;
    --fs-2xl: 2.5rem;
    --fs-3xl: 3.5rem;
    --fs-4xl: clamp(2.5rem, 5.5vw, 4.75rem);

    /* Rhythm */
    --gutter: 1.5rem;
    --sp-1: 0.5rem;
    --sp-2: 1rem;
    --sp-3: 1.5rem;
    --sp-4: 2.5rem;
    --sp-5: 4rem;
    --sp-6: 6rem;

    --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    font-family: var(--sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--blue); color: var(--white); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-family: var(--sans);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
}
h1 { font-size: var(--fs-4xl); letter-spacing: -0.03em; font-weight: 700; }
h2 { font-size: var(--fs-3xl); letter-spacing: -0.025em; font-weight: 700; }
h3 { font-size: var(--fs-xl); }
h4 { font-size: var(--fs-lg); }
p  { max-width: 64ch; }

.eyebrow {
    font-family: var(--sans);
    font-size: var(--fs-xs);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--blue);
    display: inline-flex;
    align-items: center;
    gap: 0.6em;
}
.eyebrow::before {
    content: "";
    width: 1.5em;
    height: 2px;
    background: var(--accent);
}

.num { font-variant-numeric: tabular-nums; font-weight: 700; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.wrap-wide { width: 100%; max-width: 1560px; margin: 0 auto; padding: 0 var(--gutter); }

.section { padding: var(--sp-6) var(--gutter); }
.section--tight { padding: var(--sp-5) var(--gutter); }
.section--flush { padding: var(--sp-4) var(--gutter); }
.section--tint { background: var(--off); }
.section--blue { background: var(--blue-50); }
.section--ink { background: var(--ink); color: var(--white); }
.section--ink h2 { color: var(--white); }
.section--ink .eyebrow { color: var(--accent); }

/* ---------- Nav ---------- */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 0.85rem var(--gutter);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px) saturate(1.1);
    -webkit-backdrop-filter: blur(12px) saturate(1.1);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 2rem;
}
.nav.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav__brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
    line-height: 1;
}
.nav__brand-logo {
    height: 42px;
    width: auto;
    display: block;
    transition: transform 0.3s var(--ease);
}
.nav__brand:hover .nav__brand-logo { transform: scale(1.03); }
.nav__brand-est {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-left: 0.75rem;
    border-left: 1px solid var(--line);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}
.nav__brand-est strong { color: var(--blue); font-weight: 700; font-size: 0.7rem; }
@media (max-width: 560px) {
    .nav__brand-est { display: none; }
    .nav__brand-logo { height: 36px; }
}

.nav__links {
    display: flex;
    gap: 2rem;
    list-style: none;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
}
.nav__links a {
    position: relative;
    padding: 0.5em 0;
    transition: color 0.2s var(--ease);
}
.nav__links a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s var(--ease);
}
.nav__links a:hover { color: var(--blue); }
.nav__links a:hover::after,
.nav__links a.active::after { transform: scaleX(1); }
.nav__links a.active { color: var(--blue); }

.nav__right {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.nav__phone {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}
.nav__phone-icon {
    display: inline-grid;
    place-items: center;
    width: 28px; height: 28px;
    border-radius: 50%;
    background: var(--blue-lt);
    color: var(--blue);
}
.nav__phone:hover { color: var(--blue); }
.nav__phone:hover .nav__phone-icon { background: var(--blue); color: var(--white); }

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    padding: 0.65rem 1.2rem;
    background: var(--blue);
    color: var(--white);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.nav__cta:hover { background: var(--blue-dk); transform: translateY(-1px); }

.nav__toggle {
    display: none;
    width: 28px; height: 22px;
    position: relative;
}
.nav__toggle span {
    position: absolute;
    left: 0; right: 0;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav__toggle span:nth-child(1) { top: 4px; }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { bottom: 4px; }
.nav.open .nav__toggle span:nth-child(1) { top: 50%; transform: rotate(45deg); }
.nav.open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.open .nav__toggle span:nth-child(3) { bottom: 50%; transform: rotate(-45deg); }

@media (max-width: 960px) {
    .nav { grid-template-columns: auto auto; }
    .nav__links, .nav__cta { display: none; }
    .nav__phone span { display: none; }
    .nav__toggle { display: block; }
    .nav.open .nav__links {
        display: flex;
        position: fixed;
        top: 62px; left: 0; right: 0;
        background: var(--white);
        flex-direction: column;
        gap: 0;
        padding: var(--sp-2) 0 var(--sp-3);
        border-top: 1px solid var(--line);
        border-bottom: 3px solid var(--blue);
        box-shadow: 0 24px 48px rgba(15, 30, 46, 0.18);
        max-height: calc(100vh - 62px);
        overflow-y: auto;
    }
    .nav.open .nav__links a {
        padding: 1.1rem var(--gutter);
        font-size: 1.1rem;
        border-bottom: 1px solid var(--line);
        font-weight: 600;
    }
    .nav.open .nav__links a:last-child { border-bottom: 0; }
    .nav.open .nav__links a::after { display: none; }
}

/* ---------- Trust bar (above nav on tall screens, could be removed) ---------- */
.trustbar {
    background: var(--ink);
    color: var(--white);
    font-size: 0.8rem;
    padding: 0.5rem var(--gutter);
    text-align: center;
    position: relative;
    z-index: 99;
}
.trustbar__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}
.trustbar__items { display: flex; gap: 1.5rem; flex-wrap: wrap; color: rgba(255,255,255,0.85); }
.trustbar__items span { display: inline-flex; align-items: center; gap: 0.4em; }
.trustbar__items svg { opacity: 0.75; }
.trustbar__cta { color: var(--accent); font-weight: 600; white-space: nowrap; }
.trustbar__cta:hover { color: var(--white); }
@media (max-width: 860px) {
    .trustbar__items span:nth-child(n+2) { display: none; }
    .trustbar { font-size: 0.72rem; padding: 0.45rem var(--gutter); }
}
@media (max-width: 420px) {
    .trustbar__items { display: none; }
    .trustbar__inner { justify-content: center; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 8rem var(--gutter) var(--sp-5);
    background: linear-gradient(180deg, var(--blue-50) 0%, var(--white) 100%);
    overflow: hidden;
}
.hero__grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: var(--sp-5);
    align-items: center;
}
.hero__copy .eyebrow { margin-bottom: 1.25rem; }
.hero__copy h1 {
    font-size: var(--fs-4xl);
    line-height: 1.02;
    margin-bottom: 1.25rem;
    letter-spacing: -0.032em;
}
.hero__copy h1 .accent { color: var(--blue); }
.hero__lede {
    font-size: var(--fs-md);
    color: var(--muted);
    margin-bottom: 2rem;
    max-width: 52ch;
    line-height: 1.55;
}
.hero__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}
.hero__trust {
    display: flex;
    gap: var(--sp-3);
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
}
.hero__trust-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.hero__trust-num {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.hero__trust-num .sub { font-size: 1rem; color: var(--muted); font-weight: 600; }
.hero__trust-label {
    font-size: 0.75rem;
    color: var(--muted);
    letter-spacing: 0.02em;
    margin-top: 0.25rem;
}

.hero__media {
    position: relative;
    aspect-ratio: 4 / 5;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--off-2);
}
.hero__media img {
    width: 100%; height: 100%;
    object-fit: cover;
}
.hero__media-badge {
    position: absolute;
    left: 1.25rem; bottom: 1.25rem;
    background: var(--white);
    color: var(--ink);
    padding: 0.85rem 1.1rem;
    border-radius: var(--radius);
    font-size: 0.8rem;
    font-weight: 600;
    box-shadow: var(--shadow-md);
    display: flex;
    align-items: center;
    gap: 0.65rem;
    max-width: 80%;
}
.hero__media-badge .dot {
    width: 8px; height: 8px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(31, 122, 76, 0.15);
}

@media (max-width: 900px) {
    .hero { padding: 6.5rem var(--gutter) var(--sp-4); }
    .hero__grid { grid-template-columns: 1fr; gap: var(--sp-3); }
    .hero__media { aspect-ratio: 4 / 3; order: -1; max-height: 50vh; }
}

/* ---------- Logo strip (since 1961) ---------- */
.proof-strip {
    padding: var(--sp-3) var(--gutter);
    background: var(--white);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.proof-strip__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 2rem;
    font-size: 0.85rem;
    color: var(--muted);
}
.proof-strip__lead {
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.01em;
    font-size: 0.95rem;
}
.proof-strip__badges {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-weight: 600;
}
.proof-strip__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5em;
    color: var(--ink);
}
.proof-strip__badge svg { color: var(--blue); }

/* ---------- Section header ---------- */
.section__head {
    max-width: 1320px;
    margin: 0 auto var(--sp-4);
    display: grid;
    grid-template-columns: 1.3fr 1fr auto;
    gap: var(--sp-4);
    align-items: end;
}
.section__head .eyebrow { margin-bottom: 0.75rem; }
.section__head h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}
.section__head h2 .accent { color: var(--blue); }
.section__head p {
    color: var(--muted);
    font-size: var(--fs-md);
    max-width: 42ch;
    line-height: 1.6;
}
.section__head .section__link {
    align-self: end;
    color: var(--blue);
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
}
.section__head .section__link:hover { color: var(--blue-dk); }
@media (max-width: 860px) {
    .section__head { grid-template-columns: 1fr; gap: var(--sp-2); }
}

/* ---------- Service cards (product catalog grid) ---------- */
.svc-grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-3);
}
.svc {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease);
}
.svc:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--blue);
}
.svc__media {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--off-2);
}
.svc__media img {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s var(--ease);
}
.svc:hover .svc__media img { transform: scale(1.04); }

.svc__body {
    padding: 1.5rem 1.5rem 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    flex: 1;
}
.svc__body h3 {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.svc__body p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.55;
}
.svc__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding-top: 0.25rem;
}
.svc__features li {
    font-size: 0.78rem;
    color: var(--ink);
    background: var(--blue-lt);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
}
.svc__foot {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.svc__link {
    color: var(--blue);
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3em;
}
.svc:hover .svc__link { color: var(--blue-dk); }
.svc__link-arrow { transition: transform 0.3s var(--ease); }
.svc:hover .svc__link-arrow { transform: translateX(4px); }

@media (max-width: 960px) {
    .svc-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
    .svc-grid { grid-template-columns: 1fr; }
}

/* ---------- Stats panel ---------- */
.stats-panel {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.stat {
    padding: 2rem 1.5rem;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.stat:last-child { border-right: 0; }
.stat__num {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--blue);
    line-height: 1;
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
}
.stat__num .sub { font-size: 1.1rem; color: var(--muted); font-weight: 600; margin-left: 0.25rem; }
.stat__label {
    font-size: 0.85rem;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.4;
}
@media (max-width: 700px) {
    .stats-panel { grid-template-columns: repeat(2, 1fr); }
    .stat { border-right: 0; border-bottom: 1px solid var(--line); }
    .stat:nth-child(odd) { border-right: 1px solid var(--line); }
    .stat:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Split feature ---------- */
.split {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
.split__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    aspect-ratio: 4 / 3;
    background: var(--off-2);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.split__copy .eyebrow { margin-bottom: 1rem; }
.split__copy h2 { margin-bottom: 1rem; }
.split__copy p { color: var(--muted); font-size: var(--fs-md); margin-bottom: 1.5rem; line-height: 1.6; }

.checklist { list-style: none; display: grid; gap: 0.75rem; margin-bottom: 2rem; }
.checklist li {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    font-size: 0.98rem;
}
.checklist li::before {
    content: "";
    flex-shrink: 0;
    width: 22px; height: 22px;
    background: var(--blue);
    border-radius: 50%;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>");
    background-size: 14px;
    background-position: center;
    background-repeat: no-repeat;
    margin-top: 2px;
}

@media (max-width: 860px) {
    .split { grid-template-columns: 1fr; gap: var(--sp-3); }
}

/* ---------- Testimonial ---------- */
.testimonial {
    max-width: 1320px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: var(--sp-5) var(--sp-4);
    box-shadow: var(--shadow-md);
    display: grid;
    grid-template-columns: auto 1fr;
    gap: var(--sp-3);
    align-items: start;
}
.testimonial__stars {
    color: var(--accent);
    font-size: 1.25rem;
    margin-bottom: 1rem;
    letter-spacing: 0.1em;
}
.testimonial blockquote {
    font-size: clamp(1.25rem, 2vw, 1.625rem);
    line-height: 1.4;
    color: var(--ink);
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}
.testimonial cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 500;
}
.testimonial cite strong { color: var(--ink); font-weight: 700; }
.testimonial__avatar {
    width: 56px; height: 56px;
    background: var(--blue);
    color: var(--white);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
}
@media (max-width: 640px) {
    .testimonial { padding: var(--sp-4) var(--sp-3); grid-template-columns: 1fr; }
}

/* ---------- Portfolio grid ---------- */
.portfolio-grid {
    max-width: 1560px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: var(--sp-2);
}
.project {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    aspect-ratio: 4 / 3;
    background: var(--off-2);
    display: block;
    transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.project:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.project__img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 1s var(--ease);
}
.project:hover .project__img { transform: scale(1.05); }
.project__gradient {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 50%, rgba(15, 30, 46, 0.85));
    opacity: 0.85;
    transition: opacity 0.4s var(--ease);
}
.project:hover .project__gradient { opacity: 1; }
.project__meta {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: 1.1rem;
    color: var(--white);
    z-index: 2;
}
.project__tag {
    display: inline-flex;
    gap: 0.6em;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.4rem;
}
.project__tag span + span::before { content: "·"; margin-right: 0.6em; opacity: 0.8; }
.project__title {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.project--w6 { grid-column: span 6; }
.project--w4 { grid-column: span 4; }
.project--w8 { grid-column: span 8; aspect-ratio: 16/9; }
.project--w12 { grid-column: span 12; aspect-ratio: 21/9; }

@media (max-width: 960px) {
    .project--w6, .project--w4 { grid-column: span 6; }
    .project--w8 { grid-column: span 12; aspect-ratio: 4/3; }
    .project--w12 { aspect-ratio: 16/9; }
}
@media (max-width: 560px) {
    .project--w6, .project--w4 { grid-column: span 12; }
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.55em;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: 999px;
    transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
    white-space: nowrap;
    font-family: var(--sans);
    cursor: pointer;
    letter-spacing: -0.005em;
    line-height: 1;
}
.btn--primary {
    background: var(--blue);
    color: var(--white);
    border-color: var(--blue);
}
.btn--primary:hover { background: var(--blue-dk); border-color: var(--blue-dk); transform: translateY(-1px); }
.btn--accent {
    background: var(--accent);
    color: var(--ink);
    border-color: var(--accent);
}
.btn--accent:hover { background: var(--accent-dk); border-color: var(--accent-dk); transform: translateY(-1px); color: var(--white); }
.btn--ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-2);
}
.btn--ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn--dark {
    background: var(--ink);
    color: var(--white);
    border-color: var(--ink);
}
.btn--dark:hover { background: var(--blue); border-color: var(--blue); }

.btn__arrow { display: inline-block; transition: transform 0.25s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- CTA band ---------- */
.cta-band {
    background: var(--ink);
    color: var(--white);
    padding: var(--sp-5) var(--gutter);
    position: relative;
    overflow: hidden;
}
.cta-band::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 80% 0%, rgba(30, 86, 160, 0.45), transparent 60%),
        radial-gradient(ellipse at 0% 100%, rgba(245, 158, 11, 0.15), transparent 60%);
    pointer-events: none;
}
.cta-band__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--sp-4);
    align-items: center;
    position: relative;
}
.cta-band h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin-bottom: 0.75rem;
}
.cta-band p {
    color: rgba(255, 255, 255, 0.75);
    font-size: var(--fs-md);
    max-width: 46ch;
}
.cta-band__actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: stretch;
}
.cta-band__actions .btn { justify-content: center; padding: 1.05rem 1.5rem; font-size: 0.95rem; }
.cta-band__phone {
    text-align: center;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.85rem;
}
.cta-band__phone strong { color: var(--white); font-weight: 600; }

@media (max-width: 860px) {
    .cta-band__inner { grid-template-columns: 1fr; }
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.8);
    padding: var(--sp-5) var(--gutter) var(--sp-3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.footer__grid {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: var(--sp-4);
    padding-bottom: var(--sp-4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.footer__brand-logo {
    height: 54px;
    width: auto;
    display: block;
    margin-bottom: 1rem;
    filter: brightness(0) invert(1);
    opacity: 0.92;
}
.footer__brand-sub {
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer__brand p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 32ch;
    line-height: 1.55;
    margin-bottom: 1.25rem;
}
.footer__badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4em;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.footer__col h4 {
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer__col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col a { font-size: 0.9rem; color: rgba(255, 255, 255, 0.78); transition: color 0.2s var(--ease); }
.footer__col a:hover { color: var(--white); }
.footer__col address {
    font-size: 0.9rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.78);
    font-style: normal;
    font-variant-numeric: tabular-nums;
}
.footer__col address a { color: var(--accent); font-weight: 600; }
.footer__col address a:hover { color: var(--white); }

.footer__bottom {
    max-width: 1320px;
    margin: 1.5rem auto 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 960px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Services page ---------- */
.page-hero {
    padding: 8rem var(--gutter) var(--sp-4);
    background: var(--blue-50);
    border-bottom: 1px solid var(--line);
}
.page-hero__inner {
    max-width: 1320px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    align-items: end;
}
.page-hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    line-height: 1.05;
    letter-spacing: -0.028em;
    margin-top: 1rem;
}
.page-hero h1 .accent { color: var(--blue); }
.page-hero p {
    color: var(--muted);
    font-size: var(--fs-md);
    line-height: 1.6;
    max-width: 56ch;
}
@media (max-width: 860px) {
    .page-hero { padding: 6.5rem var(--gutter) var(--sp-3); }
    .page-hero__inner { grid-template-columns: 1fr; gap: var(--sp-2); align-items: start; }
}

.svc-detail {
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--sp-5) 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-4);
    align-items: center;
    border-top: 1px solid var(--line);
}
.svc-detail:first-of-type { border-top: 0; padding-top: var(--sp-4); }
.svc-detail:nth-of-type(even) .svc-detail__media { order: 2; }
.svc-detail__media {
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 4/3;
    background: var(--off-2);
}
.svc-detail__media img { width:100%; height:100%; object-fit:cover; }
.svc-detail__copy .svc-badge {
    display: inline-block;
    background: var(--blue-lt);
    color: var(--blue);
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
}
.svc-detail__copy h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
    letter-spacing: -0.022em;
}
.svc-detail__copy p {
    color: var(--muted);
    font-size: var(--fs-md);
    margin-bottom: 1.25rem;
    line-height: 1.6;
}
.spec-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
    margin-bottom: 1.5rem;
}
.spec-table > div {
    padding: 0.75rem 1rem;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    font-size: 0.88rem;
}
.spec-table dt { font-weight: 700; color: var(--ink); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; }
.spec-table dd { color: var(--muted); }
@media (max-width: 860px) {
    .svc-detail { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-4) 0; }
    .svc-detail:nth-of-type(even) .svc-detail__media { order: 0; }
}

/* ---------- About / Timeline ---------- */
.timeline {
    max-width: 960px;
    margin: 0 auto;
    padding: var(--sp-3) 0;
    position: relative;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 120px;
    top: 0; bottom: 0;
    width: 2px;
    background: var(--line);
}
.milestone {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--sp-3);
    padding: var(--sp-3) 0;
    position: relative;
}
.milestone__year {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--blue);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.02em;
    line-height: 1;
    padding-top: 0.25rem;
    text-align: right;
    padding-right: 2rem;
}
.milestone__body {
    position: relative;
    padding-left: 2rem;
}
.milestone__body::before {
    content: "";
    position: absolute;
    left: -7px; top: 0.4rem;
    width: 16px; height: 16px;
    background: var(--white);
    border: 3px solid var(--blue);
    border-radius: 50%;
    box-shadow: 0 0 0 4px var(--off);
}
.milestone__body h3 { font-size: 1.2rem; margin-bottom: 0.3rem; font-weight: 700; }
.milestone__body p { color: var(--muted); font-size: 0.95rem; line-height: 1.55; }

@media (max-width: 640px) {
    .timeline::before { left: 10px; }
    .milestone { grid-template-columns: 1fr; gap: 0.5rem; }
    .milestone__year { text-align: left; padding-right: 0; padding-left: 2rem; font-size: 1.2rem; }
    .milestone__body { padding-left: 2rem; }
    .milestone__body::before { left: 3px; }
}

/* ---------- Contact page ---------- */
.contact-grid {
    max-width: 1320px;
    margin: 0 auto;
    padding: var(--sp-5) 0;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: var(--sp-4);
}
.contact-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: var(--sp-4);
    box-shadow: var(--shadow-sm);
}
.contact-card h2 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.contact-card > p { color: var(--muted); font-size: 0.95rem; margin-bottom: 2rem; }

.contact-aside {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
}
.contact-block {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem;
}
.contact-block h4 {
    font-size: 0.72rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.contact-block__phone {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--ink);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
    display: block;
    margin-bottom: 0.25rem;
}
.contact-block__phone:hover { color: var(--blue); }
.contact-block small { color: var(--muted); font-size: 0.85rem; }
.contact-block address { font-style: normal; font-size: 0.95rem; line-height: 1.55; color: var(--text); }
.contact-block address a { color: var(--blue); font-weight: 600; }
@media (max-width: 960px) {
    .contact-grid { grid-template-columns: 1fr; gap: var(--sp-3); padding: var(--sp-4) 0; }
}

/* ---------- Form ---------- */
.form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}
.form__row { grid-column: span 2; }
.form__row--half { grid-column: span 1; }
.field { position: relative; }
.field label {
    display: block;
    font-size: 0.82rem;
    color: var(--ink);
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.field label .req { color: var(--error); margin-left: 0.2em; }
.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 0.75rem 0.9rem;
    background: var(--white);
    border: 1.5px solid var(--line);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--sans);
    color: var(--ink);
    outline: none;
    transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.field textarea { resize: vertical; min-height: 6rem; }
.field select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A2433' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>");
    background-position: right 0.75rem center;
    background-size: 18px;
    background-repeat: no-repeat;
    padding-right: 2.5rem;
    cursor: pointer;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(30, 86, 160, 0.12);
}
.form__submit {
    grid-column: span 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.5rem;
    gap: 1rem;
    flex-wrap: wrap;
}
.form__submit .btn { padding: 1rem 1.75rem; font-size: 0.95rem; }
.form__status { font-size: 0.9rem; color: var(--muted); }
.form__status.success { color: var(--success); font-weight: 600; }
.form__status.error { color: var(--error); font-weight: 600; }
@media (max-width: 640px) {
    .form { grid-template-columns: 1fr; }
    .form__row, .form__row--half { grid-column: span 1; }
    .form__submit { grid-column: span 1; }
}

/* ---------- Focus states (WCAG) ---------- */
:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}
.btn:focus-visible, .nav__cta:focus-visible, .svc:focus-visible, .project:focus-visible {
    outline-offset: 4px;
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
    outline: none;
}

/* ---------- Pointer affordance ---------- */
.svc, .project, .testimonial, [role="button"] { cursor: pointer; }

/* Reveal class kept as a JS hook but content is always visible.
   Animations on this site stay tied to hover/focus so nothing breaks if JS fails. */
.reveal { opacity: 1; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        transition-duration: 0.001ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* ---------- Icons (inline SVG sized) ---------- */
.icon { display: inline-block; vertical-align: middle; width: 1em; height: 1em; }
.i-16 { width: 16px; height: 16px; }
.i-20 { width: 20px; height: 20px; }
.i-24 { width: 24px; height: 24px; }
