/* =====================================================================
   DIMCO, Inc. - shared site styles
   Used by every page. Edit here to change the header, menus, footer,
   colors, buttons and base typography site-wide. Styles that belong
   to a single page stay in that page's own <style> block.
   ===================================================================== */


/* ---------- Design tokens & base elements ---------- */

:root {
    --blue:#1478d4;
    --blue-bright:#1f8df2;
    --blue-dark:#0d63b4;
    --navy:#0d2238;
    --navy-dark:#071a2d;
    --charcoal:#17202a;
    --slate:#647385;
    --light:#f5f8fb;
    --white:#ffffff;
    --border:#dfe6ed;
    --max:1240px;
    --navy-light:#102d49;
    --light-blue:#eaf4fc;
}

* {
    box-sizing:border-box;
}

html {
    scroll-behavior:smooth;
}

body {
    margin:0;
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--charcoal);
    background:#fff;
    line-height:1.6;
}

img {
    display:block;
    max-width:100%;
}

a {
    color:inherit;
    text-decoration:none;
}

button,
a {
    -webkit-tap-highlight-color:transparent;
}

.container {
    width:min(calc(100% - 40px),var(--max));
    margin:0 auto;
}

.eyebrow {
    margin:0 0 9px;
    color:var(--blue);
    font-size:.78rem;
    font-weight:800;
    letter-spacing:.18em;
    text-transform:uppercase;
}

h1,
h2,
h3 {
    margin-top:0;
    color:var(--navy);
    line-height:1.06;
}

h2 {
    font-size:clamp(2rem,3.6vw,3rem);
    letter-spacing:-.035em;
}

h3 {
    font-size:1.25rem;
}

p {
    margin-top:0;
}

.btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    padding:0 22px;
    border:2px solid transparent;
    border-radius:5px;
    font-size:.9rem;
    font-weight:800;
    transition:.2s ease;
}

.btn-primary {
    background:var(--blue);
    color:#fff;
}

.btn-primary:hover {
    background:var(--blue-dark);
    transform:translateY(-1px);
}

.btn-outline {
    border-color:rgba(255,255,255,.82);
    color:#fff;
}

.btn-outline:hover {
    background:#fff;
    color:var(--navy);
}


/* ---------- Header & desktop navigation ---------- */

.site-header {
    position:sticky;
    top:0;
    z-index:1000;
    background:rgba(255,255,255,.985);
    border-bottom:1px solid var(--border);
    box-shadow:0 2px 9px rgba(13,34,56,.045);
}

.nav-wrap {
    height:96px;
    display:flex;
    align-items:center;
    gap:24px;
    position:relative;
}

.brand {
    display:flex;
    align-items:center;
    gap:14px;
    flex:0 0 auto;
    position:relative;
    z-index:5;
}

.logo-circle {
    width:116px;
    height:116px;
    flex:0 0 116px;
    margin-top:8px;
    margin-bottom:-28px;
    overflow:hidden;
    border-radius:50%;
    clip-path:circle(49.2% at 50% 50%);
    background:#000;
}

.logo-circle img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.brand-text {
    min-width:245px;
}

.brand-name {
    display:block;
    color:var(--navy);
    font-size:1.85rem;
    font-weight:900;
    letter-spacing:-.025em;
    line-height:1;
}

.brand-tagline {
    display:block;
    margin-top:7px;
    color:var(--charcoal);
    font-size:.72rem;
    font-weight:800;
    white-space:nowrap;
}

.brand-logo {
    display:block;
    flex:0 0 auto;
}

.brand-logo .logo-circle {
    display:block;
}

.brand-home {
    display:block;
}

.brand-contact {
    display:flex;
    align-items:center;
    gap:8px;
    margin-top:7px;
    font-size:.74rem;
    font-weight:600;
    white-space:nowrap;
}

.brand-contact a {
    color:var(--slate);
    transition:color .2s ease;
}

.brand-contact a:hover,
.brand-contact a:focus-visible {
    color:var(--blue);
    text-decoration:underline;
}

.brand-sep {
    color:#c3ced9;
}

.header-right {
    margin-left:auto;
    display:flex;
    align-items:center;
    gap:20px;
    padding-top:18px;
    position:relative;
}

.header-note {
    position:absolute;
    top:-7px;
    right:0;
    color:var(--slate);
    font-size:.72rem;
    font-weight:600;
    white-space:nowrap;
}

.desktop-nav {
    display:flex;
    align-items:center;
    gap:21px;
    color:var(--navy);
    font-size:.84rem;
    font-weight:750;
    white-space:nowrap;
}

.desktop-nav > a,
.nav-drop-trigger {
    position:relative;
    display:inline-flex;
    align-items:center;
    gap:5px;
    padding:8px 0;
    transition:color .15s ease;
}

.desktop-nav > a:hover,
.nav-drop-trigger:hover {
    color:var(--blue);
}

.desktop-nav > a.active,
.nav-drop-trigger.active {
    color:var(--blue);
}

.desktop-nav > a.active::after,
.nav-drop-trigger.active::after {
    content:"";
    position:absolute;
    left:0;
    right:0;
    bottom:-6px;
    height:3px;
    background:var(--blue);
}

.nav-dropdown {
    position:relative;
    display:flex;
    align-items:center;
}

.nav-chevron {
    font-size:.65rem;
    transition:transform .18s ease;
}

.nav-dropdown-menu {
    position:absolute;
    left:-20px;
    top:100%;
    width:250px;
    padding:8px 0;
    background:#fff;
    border:1px solid var(--border);
    border-top:3px solid var(--blue);
    border-radius:0 0 7px 7px;
    box-shadow:0 14px 30px rgba(13,34,56,.14);
    opacity:0;
    visibility:hidden;
    pointer-events:none;
    transform:translateY(8px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
    z-index:1200;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity:1;
    visibility:visible;
    pointer-events:auto;
    transform:translateY(0);
}

.nav-dropdown:hover .nav-chevron,
.nav-dropdown:focus-within .nav-chevron {
    transform:rotate(180deg);
}

.nav-dropdown-menu a {
    display:block;
    padding:12px 18px;
    color:var(--navy);
    font-size:.86rem;
    font-weight:700;
    white-space:normal;
}

.nav-dropdown-menu a:hover {
    color:var(--blue);
    background:#f3f8fd;
}

.nav-dropdown-menu a.current-service {
    background:#f1f7fd;
    color:var(--blue);
}

.site-header .quote-top {
    min-height:44px;
    padding:0 20px;
    white-space:nowrap;
}


/* ---------- Mobile navigation ---------- */

.mobile-toggle {
    display:none;
    margin-left:auto;
    border:0;
    background:transparent;
    color:var(--navy);
    font-size:1.7rem;
    cursor:pointer;
}

.mobile-menu {
    display:none;
    padding:10px 20px 22px;
    background:#fff;
    border-top:1px solid var(--border);
}

.mobile-menu.open {
    display:block;
}

.mobile-menu > a {
    display:block;
    padding:12px 0;
    font-weight:700;
    border-bottom:1px solid var(--border);
}

.mobile-services {
    border-bottom:1px solid var(--border);
}

.mobile-services-toggle {
    width:100%;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:12px 0;
    border:0;
    background:transparent;
    color:var(--navy);
    font:inherit;
    font-weight:700;
    cursor:pointer;
}

.mobile-services-icon {
    color:var(--blue);
    font-size:1.15rem;
    font-weight:800;
}

.mobile-services-submenu {
    display:none;
    padding:0 0 8px 14px;
}

.mobile-services-submenu.open {
    display:block;
}

.mobile-services-submenu a {
    display:block;
    padding:9px 0;
    color:var(--slate);
    font-size:.9rem;
    font-weight:650;
}


/* ---------- Footer ---------- */

footer {
    padding-top:56px;
    background:#081b2e;
    color:#fff;
}

.footer-grid {
    display:grid;
    grid-template-columns:1.35fr 1fr 1fr 1fr;
    gap:55px;
    align-items:center;
    padding-bottom:45px;
}

.footer-logo-wrap {
    display:flex;
    align-items:center;
    justify-content:flex-start;
}

.footer-logo {
    display:block;
    width:260px;
    height:260px;
    flex:0 0 260px;
    overflow:hidden;
    border-radius:50%;
    clip-path:circle(49.2% at 50% 50%);
    background:#000;
}

.footer-logo img {
    width:100%;
    height:100%;
    object-fit:cover;
}

.footer-col h4 {
    margin:0 0 14px;
    color:#8dcbff;
    font-size:.82rem;
    letter-spacing:.08em;
    text-transform:uppercase;
}

.footer-col a,
.footer-col p {
    display:block;
    margin:7px 0;
    color:rgba(255,255,255,.7);
    font-size:.86rem;
}

.footer-office {
    margin:0 0 16px;
}

.footer-office-name {
    display:block;
    margin-bottom:3px;
    color:#fff;
    font-size:.86rem;
    font-weight:700;
}

.footer-col .footer-address {
    margin:0;
    line-height:1.55;
}

.footer-col a:hover {
    color:#fff;
}

.footer-bottom {
    padding:18px 0;
    border-top:1px solid rgba(255,255,255,.12);
    color:rgba(255,255,255,.55);
    font-size:.78rem;
}

.footer-bottom-flex {
    display:flex;
    justify-content:space-between;
    gap:20px;
    flex-wrap:wrap;
}

/* ---------- Detail lists in feature sections ---------- */

.feature-points {
    margin:22px 0 0;
    padding:0;
    list-style:none;
    display:grid;
    gap:10px;
}

.feature-points li {
    position:relative;
    padding-left:20px;
    color:var(--charcoal);
    line-height:1.5;
}

.feature-points li::before {
    content:"";
    position:absolute;
    left:0;
    top:.6em;
    width:7px;
    height:7px;
    border-radius:50%;
    background:var(--blue);
}


/* ---------- Responsive: (max-width:1120px) ---------- */

@media(max-width:1120px) {
    .header-right {
        display:none;
    }

    .mobile-toggle {
        display:block;
    }

    .logo-circle {
        width:82px;
        height:82px;
        flex-basis:82px;
        margin-bottom:-12px;
    }

    .brand-name {
        font-size:1.45rem;
    }

    .footer-grid {
        grid-template-columns:1fr 1fr;
        align-items:start;
    }

    .footer-logo {
        width:190px;
        height:190px;
        flex-basis:190px;
    }
}


/* ---------- Responsive: (max-width:720px) ---------- */

@media(max-width:720px) {
    html {
        scroll-padding-top:88px;
    }

    .container {
        width:min(calc(100% - 28px),var(--max));
    }

    .nav-wrap {
        height:72px;
    }

    .logo-circle {
        width:64px;
        height:64px;
        flex-basis:64px;
        margin-top:3px;
        margin-bottom:-8px;
    }

    .brand-name {
        font-size:1.15rem;
    }

    .brand-tagline {
        display:none;
    }

    .footer-grid {
        grid-template-columns:1fr;
        gap:34px;
    }

    .footer-logo-wrap {
        justify-content:center;
    }

    .footer-logo {
        width:190px;
        height:190px;
        flex-basis:190px;
    }

    .brand-text {
        min-width:0;
    }

    .mobile-toggle {
        flex:0 0 auto;
    }
}


/* ---------- Header phone & email on small screens ---------- */

@media(max-width:720px) {
    .brand-contact {
        margin-top:4px;
        font-size:.72rem;
    }
}

@media(max-width:420px) {
    .brand-contact {
        flex-direction:column;
        align-items:flex-start;
        gap:0;
        margin-top:2px;
    }

    .brand-contact a {
        padding:2px 0;
    }

    .brand-sep {
        display:none;
    }
}


/* ---------- Stacked layouts (tablet & phone): text first, then its picture ---------- */

@media(max-width:1120px) {
    .feature .feature-image,
    .history-grid .history-visual {
        order:2;
    }
}

@media(max-width:720px) {
    .careers-grid .careers-image {
        order:2;
    }
}


/* =========================================================
   WEBSITE FORMS (Contact and Careers)
   ========================================================= */

.form-submit {
    min-width:180px;
    cursor:pointer;
}

.form-submit:disabled {
    opacity:.7;
    cursor:wait;
    transform:none;
}

.form-status {
    margin-top:26px;
    padding:16px 20px;
    border-radius:5px;
    font-size:.9rem;
    font-weight:600;
}

.form-status.success {
    background:#e9f6ee;
    border-left:4px solid #2f9a5a;
    color:#1d5e37;
}

.form-status.error {
    background:#fdeeee;
    border-left:4px solid #c94141;
    color:#8a2323;
}

/* Hidden spam trap: people never see or fill this field. */
.form-trap {
    position:absolute;
    left:-10000px;
    width:1px;
    height:1px;
    overflow:hidden;
}
