/* ==========================================================================
   365Build Technologies - site styles
   Mobile-first, dependency-free. Replaces Bootstrap 3 + readymixerp.css.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
    --blue: #0065c8;
    --blue-dark: #004c96;
    --blue-deep: #204f7e;
    --blue-light: #0099ff;
    --navy: #336699;
    --sky: #66b4cc;
    --green: #009900;
    --green-light: #33cc00;

    --ink: #1d2b39;
    --body: #4a5b6b;
    --muted: #6c7c8c;
    --line: #dde5ec;
    --surface: #ffffff;
    --surface-soft: #f4f7fa;
    --surface-tint: #eaf2fa;

    --font-brand: "TrebuchetMSRegular", "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
    --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;

    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(20, 45, 70, .08), 0 2px 8px rgba(20, 45, 70, .06);
    --shadow-md: 0 4px 12px rgba(20, 45, 70, .10), 0 12px 28px rgba(20, 45, 70, .10);
    --shadow-lg: 0 10px 24px rgba(20, 45, 70, .12), 0 24px 60px rgba(20, 45, 70, .14);

    --gutter: 20px;
    --wrap: 1120px;
    --header-h: 74px;
    --section-y: clamp(48px, 7vw, 86px);
}

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

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--surface);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; border: 0; display: block; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-brand);
    color: var(--ink);
    line-height: 1.2;
    margin: 0 0 .5em;
    font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1rem + .7vw, 1.5rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--blue-dark); text-decoration: underline; }

ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li { margin-bottom: .35em; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

:focus-visible {
    outline: 3px solid var(--blue-light);
    outline-offset: 2px;
    border-radius: 4px;
}

.skip-link {
    position: absolute;
    left: 12px;
    top: -60px;
    z-index: 200;
    background: var(--blue);
    color: #fff;
    padding: 10px 16px;
    border-radius: 0 0 var(--radius) var(--radius);
    transition: top .2s ease;
}
.skip-link:focus { top: 0; color: #fff; text-decoration: none; }

.wrap {
    width: min(var(--wrap), 100% - (var(--gutter) * 2));
    margin-inline: auto;
}

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 46px;
    padding: .65rem 1.4rem;
    border: 0;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease, color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(to bottom, var(--blue-light), var(--blue));
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn-green {
    background: linear-gradient(to bottom, var(--green-light), var(--green));
    color: #fff;
    box-shadow: var(--shadow-sm);
}
.btn-green:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn-ghost {
    background: transparent;
    color: #fff;
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.btn-outline {
    background: #fff;
    color: var(--blue);
    box-shadow: inset 0 0 0 1px var(--line), var(--shadow-sm);
}
.btn-outline:hover { color: var(--blue-dark); box-shadow: inset 0 0 0 1px var(--blue), var(--shadow-md); }

.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    backdrop-filter: saturate(160%) blur(10px);
    box-shadow: 0 1px 0 var(--line), 0 6px 18px rgba(20, 45, 70, .06);
}

.accent-bar {
    height: 5px;
    background: linear-gradient(to right, var(--blue-deep), var(--blue), var(--sky), var(--blue));
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--header-h);
    padding: 8px 0;
}

.brand { display: inline-flex; align-items: center; }
.brand img { height: 52px; width: auto; }
.brand:focus-visible { outline-offset: 4px; }

.header-right {
    display: flex;
    align-items: center;
    gap: clamp(.75rem, 2vw, 1.75rem);
}

.primary-nav ul {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.primary-nav li { margin: 0; }

.primary-nav a {
    display: block;
    padding: .55rem .85rem;
    border-radius: 8px;
    font-family: var(--font-brand);
    font-size: 1.02rem;
    color: var(--ink);
    white-space: nowrap;
    transition: background-color .15s ease, color .15s ease;
}
.primary-nav a:hover { background: var(--surface-tint); color: var(--blue-dark); text-decoration: none; }
.primary-nav a.is-active { background: var(--blue); color: #fff; }

.header-cta { display: flex; align-items: center; gap: .75rem; }

.phone-link {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    font-family: var(--font-brand);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    white-space: nowrap;
}
.phone-link::before {
    content: "";
    width: 22px;
    height: 22px;
    flex: none;
    background: url("../img/Phone.png") center/contain no-repeat;
}
.phone-link:hover { color: var(--blue); text-decoration: none; }

.nav-toggle {
    display: none;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    cursor: pointer;
}
.nav-toggle .bar {
    display: block;
    width: 22px;
    height: 2px;
    margin: 4px auto;
    background: var(--ink);
    border-radius: 2px;
    transition: transform .2s ease, opacity .2s ease;
}
.site-header.is-open .nav-toggle .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle .bar:nth-child(2) { opacity: 0; }
.site-header.is-open .nav-toggle .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
    .nav-toggle { display: block; }

    .header-inner { position: relative; }

    .header-right {
        position: absolute;
        left: calc(var(--gutter) * -1);
        right: calc(var(--gutter) * -1);
        top: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: .5rem;
        padding: 0 var(--gutter);
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-md);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        transition: max-height .25s ease, padding .25s ease, visibility .25s;
    }
    .site-header.is-open .header-right {
        max-height: 75vh;
        overflow-y: auto;
        visibility: visible;
        padding: 12px var(--gutter) 20px;
    }

    .primary-nav ul { flex-direction: column; align-items: stretch; gap: 2px; }
    .primary-nav a { padding: .85rem 1rem; font-size: 1.1rem; }

    .header-cta {
        flex-direction: column;
        align-items: stretch;
        gap: .6rem;
        padding-top: .6rem;
        border-top: 1px solid var(--line);
    }
    .phone-link { justify-content: center; min-height: 46px; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    color: #fff;
    background: linear-gradient(115deg, rgba(4, 34, 62, .92) 0%, rgba(6, 60, 108, .8) 45%, rgba(8, 80, 140, .62) 100%),
                url("../img/banner-background.jpg") center/cover no-repeat;
}

.hero-inner {
    display: grid;
    gap: clamp(1.5rem, 4vw, 3rem);
    align-items: center;
    padding: clamp(40px, 7vw, 76px) 0;
}

.hero h1 { color: #fff; text-shadow: 0 2px 12px rgba(0, 0, 0, .35); margin-bottom: .35em; }

.eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: .3rem .8rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .16);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3);
    font-size: .82rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.hero .lede {
    font-size: clamp(1rem, .95rem + .35vw, 1.2rem);
    line-height: 1.7;
    color: rgba(255, 255, 255, .92);
    max-width: 46ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin-top: 1.75rem;
}

.hero-art { display: none; }
.hero-art img { margin-inline: auto; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, .45)); }

@media (min-width: 860px) {
    .hero-inner { grid-template-columns: 1.05fr 1fr; }
    .hero-art { display: block; }
}

/* Stats band */
.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1px;
    background: var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    background: var(--surface-soft);
    padding: clamp(18px, 3vw, 28px) 16px;
    text-align: center;
}
.stat .num {
    font-family: var(--font-brand);
    font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.4rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--blue);
}
.stat .lbl {
    font-size: .86rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---------- Sections ---------- */
.section { padding: var(--section-y) 0; }
.section-soft { background: var(--surface-soft); }
.section-tint { background: linear-gradient(180deg, var(--surface-tint), var(--surface)); }

.section-head {
    max-width: 46rem;
    margin: 0 auto clamp(28px, 4vw, 48px);
    text-align: center;
}
.section-head p { color: var(--muted); font-size: 1.05rem; }

.kicker {
    display: block;
    margin-bottom: .5rem;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.accent { color: var(--blue); }

/* ---------- Cards grid ---------- */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
    gap: clamp(16px, 2.4vw, 28px);
}

.card {
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 3vw, 32px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #c7d8e8; }

.card-icon {
    width: 84px;
    height: 84px;
    margin-bottom: 1rem;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.card h3 { margin-bottom: .4rem; }
.card p { color: var(--body); flex: 1 1 auto; }
.card .card-link {
    margin-top: 1.25rem;
    font-weight: 600;
    align-self: flex-start;
}
.card .card-link::after { content: " \2192"; transition: margin .15s ease; }
.card .card-link:hover::after { margin-left: .2rem; }

.icon-plant { background-image: url("../img/icon-plant.png"); }
.icon-invoice { background-image: url("../img/icon-invoice.png"); }
.icon-vat { background-image: url("../img/icon-vat.png"); }
.icon-inventory { background-image: url("../img/icon-inventory.png"); }
.icon-finance { background-image: url("../img/icon-finance.png"); }
.icon-scheduling { background-image: url("../img/icon-scheduling.png"); }
.icon-fleet { background-image: url("../img/icon-fleet.png"); }
.icon-stores { background-image: url("../img/icon-stores.png"); }

/* ---------- Testimonials ---------- */
.testimonial-layout {
    display: grid;
    gap: clamp(24px, 4vw, 48px);
    align-items: center;
}
@media (min-width: 900px) {
    .testimonial-layout { grid-template-columns: 1fr 1fr; }
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.logo-grid li { margin: 0; }
.logo-grid img {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    filter: grayscale(1);
    opacity: .8;
    transition: filter .2s ease, opacity .2s ease, transform .2s ease;
}
.logo-grid img:hover { filter: none; opacity: 1; transform: translateY(-2px); }

.carousel { position: relative; }

.slide {
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: clamp(22px, 3.5vw, 34px);
    margin: 0;
}
.slide.is-active { display: block; animation: fade-in .35s ease both; }

@keyframes fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.slide blockquote {
    margin: 0 0 1.25rem;
    padding-left: 46px;
    min-height: 40px;
    font-style: italic;
    font-size: 1.02rem;
    background: url("../img/quote.png") left top no-repeat;
    background-size: 32px auto;
}
.slide .name {
    font-family: var(--font-brand);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--blue);
}
.slide .desig { font-size: .92rem; font-style: italic; color: var(--muted); }

.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: 1.25rem;
}
.carousel-btn {
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #fff;
    color: var(--blue);
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: background-color .15s ease, color .15s ease;
}
.carousel-btn:hover { background: var(--blue); color: #fff; }

.dots { display: flex; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.dots li { margin: 0; }
.dot {
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: grid;
    place-items: center;
}
.dot::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #b9c8d6;
    transition: background-color .2s ease, transform .2s ease;
}
.dot[aria-selected="true"]::before { background: var(--blue); transform: scale(1.35); }

/* ---------- CTA band ---------- */
.cta-band {
    background: linear-gradient(135deg, var(--blue-deep), var(--blue));
    color: #fff;
    text-align: center;
    padding: clamp(40px, 6vw, 68px) 0;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .9); max-width: 52ch; margin-inline: auto; }
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    margin-top: 1.75rem;
}

/* ---------- Page head (inner pages) ---------- */
.page-head {
    color: #fff;
    background: linear-gradient(110deg, rgba(4, 34, 62, .88), rgba(8, 80, 140, .58)),
                url("../img/banner-bg-inner.jpg") center/cover no-repeat;
    padding: clamp(36px, 6vw, 64px) 0;
}
.page-head h1 { color: #fff; margin-bottom: .3em; }
.page-head p { color: rgba(255, 255, 255, .92); max-width: 60ch; font-size: 1.05rem; }

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
    font-size: .88rem;
    color: rgba(255, 255, 255, .78);
}
.breadcrumb li { margin: 0; }
.breadcrumb a { color: rgba(255, 255, 255, .92); }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .6; }

/* ---------- Feature blocks (features page) ---------- */
.feature-block {
    display: grid;
    gap: clamp(14px, 2.5vw, 28px);
    padding: clamp(22px, 3vw, 34px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: clamp(18px, 2.5vw, 28px);
}
@media (min-width: 720px) {
    .feature-block { grid-template-columns: 110px 1fr; align-items: start; }
}
.feature-block .card-icon { width: 92px; height: 92px; margin-bottom: 0; }
.feature-block h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.75rem); margin-bottom: .6rem; }
.feature-block ul { padding-left: 1.1em; margin-bottom: 0; }
.feature-block li::marker { color: var(--blue); }
.feature-block li { line-height: 1.6; }

.takeaway {
    display: block;
    margin-top: 1rem;
    padding: .8rem 1rem;
    background: var(--surface-tint);
    border-left: 3px solid var(--blue);
    border-radius: 0 8px 8px 0;
    font-size: .95rem;
}
.takeaway strong { color: var(--blue-dark); }

/* ---------- Prose / generic content ---------- */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose h2:first-child { margin-top: 0; }

.split { display: grid; gap: clamp(24px, 4vw, 44px); }
@media (min-width: 880px) {
    .split { grid-template-columns: 1.6fr 1fr; align-items: start; }
    .split-even { grid-template-columns: 1fr 1fr; }
}

.panel {
    padding: clamp(20px, 3vw, 30px);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}
.panel h2, .panel h3 { margin-top: 0; }

.sticky-panel { position: sticky; top: calc(var(--header-h) + 16px); }
@media (max-width: 879px) { .sticky-panel { position: static; } }

/* People (about page) */
.people {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: clamp(16px, 2.4vw, 24px);
    margin-top: 1.5rem;
}
.person-card .role {
    display: block;
    color: var(--blue);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}
.person-card h3 { margin-bottom: .5rem; }
.person-card .profile-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    font-weight: 600;
    word-break: break-word;
}
.person-card .profile-link::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background: url("../img/icon-linkedin.png") center/contain no-repeat;
}

/* Client list (clients page) */
.client-region { margin-bottom: clamp(22px, 3vw, 34px); }
.client-region h3 {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .6rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--surface-tint);
}
.client-region h3 .count {
    font-family: var(--font-body);
    font-size: .78rem;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}
.client-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 10px;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}
.client-list li {
    margin: 0;
    padding: .8rem 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}
.client-list li .place { display: block; font-size: .85rem; color: var(--muted); }

/* ---------- Contact page ---------- */
.office-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: clamp(16px, 2.4vw, 24px);
    margin-bottom: clamp(22px, 3vw, 32px);
}
.office h3 { margin-bottom: .75rem; }
.office address { font-style: normal; color: var(--body); margin-bottom: .9rem; }
.contact-line {
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    margin-bottom: .4rem;
    font-size: .95rem;
}
.contact-line::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-top: .28rem;
    flex: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.contact-line.phone::before { background-image: url("../img/contact-phone.png"); }
.contact-line.email::before { background-image: url("../img/contact-email.png"); }
.contact-line.map::before { background-image: url("../img/contact-map.png"); }
.contact-line a { word-break: break-word; }

.map-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .9rem;
}
.map-tab {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: .5rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    color: var(--body);
    font-family: inherit;
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.map-tab:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
a.map-tab { color: var(--body); }
.map-tab[aria-selected="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }

.map-frame {
    position: relative;
    aspect-ratio: 16 / 11;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: var(--surface-tint);
}
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (min-width: 720px) { .map-frame { aspect-ratio: 16 / 8; } }

/* ---------- Forms ---------- */
.field { margin-bottom: 1rem; }
.field label {
    display: block;
    margin-bottom: .3rem;
    font-family: var(--font-brand);
    font-size: .92rem;
    font-weight: 700;
    color: var(--ink);
}
.field .hint { font-size: .82rem; color: var(--muted); font-weight: 400; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
textarea,
select {
    width: 100%;
    min-height: 46px;
    padding: .6rem .8rem;
    font-family: inherit;
    font-size: 1rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid #c9d6e2;
    border-radius: 8px;
    transition: border-color .15s ease, box-shadow .15s ease;
    -webkit-appearance: none;
    appearance: none;
}
textarea { min-height: 130px; resize: vertical; line-height: 1.55; }

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(0, 101, 200, .18);
}
input::placeholder, textarea::placeholder { color: #93a4b4; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status {
    margin-top: .9rem;
    padding: .7rem .9rem;
    border-radius: 8px;
    font-size: .95rem;
    display: none;
}
.form-status.is-visible { display: block; }
.form-status.ok { background: #e7f6ea; color: #1b6b2c; border: 1px solid #b9e2c2; }
.form-status.err { background: #fdecec; color: #8f2323; border: 1px solid #f3c2c2; }

/* ---------- Login ---------- */
.login-page {
    display: grid;
    place-items: center;
    padding: clamp(30px, 6vw, 60px) var(--gutter);
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, rgba(4, 34, 62, .93), rgba(8, 80, 140, .72)),
                url("../img/banner-background.jpg") center/cover no-repeat;
}
.login-card {
    width: min(420px, 100%);
    background: #fff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: clamp(24px, 4vw, 36px);
}
.login-head { text-align: center; margin-bottom: 1.5rem; }
.login-head img { height: 64px; width: auto; margin: 0 auto .75rem; }
.login-head p { color: var(--muted); }
.login-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    margin-bottom: 1.25rem;
    font-size: .92rem;
}
.checkbox { display: inline-flex; align-items: center; gap: .45rem; font-size: .95rem; }
.checkbox input { width: 18px; height: 18px; min-height: 0; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .9);
    padding: clamp(36px, 5vw, 56px) 0 clamp(24px, 3vw, 36px);
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: clamp(24px, 3.5vw, 40px);
}
.site-footer h4 {
    color: #fff;
    font-size: 1.05rem;
    letter-spacing: .02em;
    margin-bottom: .9rem;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.site-footer a { color: #bfe1f5; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 68px; width: auto; margin-bottom: 1rem; }
.footer-brand p { font-size: .92rem; color: rgba(255, 255, 255, .78); max-width: 32ch; }

.social li a {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 32px;
}
.social li a::before {
    content: "";
    width: 16px;
    height: 16px;
    flex: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.social .linkedin a::before { background-image: url("../img/icon-linkedin.png"); }
.social .facebook a::before { background-image: url("../img/icon-facebook.png"); }
.social .twitter a::before { background-image: url("../img/icon-twitter.png"); }

.footer-form label { color: #fff; }
.footer-form input[type="text"],
.footer-form input[type="email"],
.footer-form input[type="tel"] {
    background: rgba(255, 255, 255, .96);
    border-color: rgba(255, 255, 255, .4);
}
.footer-form .field { margin-bottom: .6rem; }

.copy-bar {
    background: var(--blue-deep);
    color: rgba(255, 255, 255, .78);
    font-size: .86rem;
    padding: 14px 0;
}
.copy-inner {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    align-items: center;
    justify-content: space-between;
}
.copy-bar a { color: #9fd4f2; }

/* ---------- Back to top ---------- */
.to-top {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    box-shadow: var(--shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--blue-dark); }

/* ---------- Reveal on scroll (only when JS can undo it) ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Motion / print ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .js .reveal { opacity: 1; transform: none; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
}

@media print {
    .site-header, .to-top, .cta-band, .carousel-controls, .map-frame { display: none !important; }
    body { color: #000; }
    .js .reveal { opacity: 1; transform: none; }
    a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; }
}
