/* ===== Anderson Automation & Controls - main stylesheet ===== */

:root {
    --bg: #080b0f;
    --panel: #10151b;
    --panel2: #151b22;
    --text: #f5f7fa;
    --muted: #a8b0ba;
    --line: rgba(255,255,255,.10);
    --accent: #f5b942;
    --accent2: #ffd875;
    --max: 1180px;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
    text-decoration: none;
}

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

.container {
    width: min(calc(100% - 40px),var(--max));
    margin: auto;
}

.header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 20;
    background: rgba(8,11,15,.78);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid transparent;
    transition: .25s;
}

.header.scrolled {
    border-color: var(--line);
}

.nav {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -.02em;
}

.brand-logo {
    width: 230px;
    height: auto;
    max-height: 46px;
    object-fit: contain;
    object-position: left center;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border: 2px solid var(--accent);
    display: grid;
    place-items: center;
    transform: skew(-8deg);
    font-size: 15px;
}

.brand small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 700;
}

.links {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 14px;
    font-weight: 700;
}

.links a {
    color: #d9dee4;
}

.links a:hover {
    color: var(--accent);
}

.links.open {
    display: flex;
    position: absolute;
    top: 68px;
    left: 14px;
    right: 14px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(8,11,15,.98);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.links.open a {
    padding: 13px 12px;
}

.links.open .nav-cta {
    text-align: center;
    margin-top: 4px;
}

.nav-cta {
    padding: 11px 17px;
    border: 1px solid var(--accent);
    color: var(--accent)!important;
    border-radius: 999px;
}

.menu {
    display: none;
    background: none;
    border: 0;
    color: white;
    font-size: 26px;
}

.hero {
    min-height: 790px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(90deg,rgba(5,7,9,.98) 0%,rgba(5,7,9,.86) 42%,rgba(5,7,9,.42) 100%),url('../images/AAC%20Hero.png') center/cover no-repeat;
}

.hero:after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 180px;
    background: linear-gradient(transparent,var(--bg));
}

.hero-grid {
    position: relative;
    z-index: 2;
    width: 100%;
    padding-top: 90px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--accent);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    font-size: 12px;
}

.eyebrow:before {
    content: "";
    width: 30px;
    height: 2px;
    background: var(--accent);
}

h1 {
    font-size: clamp(48px,7vw,86px);
    line-height: .98;
    letter-spacing: -.055em;
    max-width: 820px;
    margin: 22px 0;
}

.hero p {
    font-size: 19px;
    color: #c8ced6;
    max-width: 660px;
    margin: 0 0 34px;
}

.buttons {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 23px;
    border-radius: 10px;
    font-weight: 800;
    border: 1px solid var(--line);
}

.btn.primary {
    background: var(--accent);
    color: #111;
    border-color: var(--accent);
}

.btn.secondary {
    background: rgba(255,255,255,.04);
}

.btn:hover {
    transform: translateY(-1px);
}

.trust {
    position: relative;
    z-index: 4;
    margin-top: -70px;
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    border: 1px solid var(--line);
    background: rgba(16,21,27,.94);
    border-radius: 18px;
    overflow: hidden;
}

.trust-item {
    padding: 25px 28px;
    border-right: 1px solid var(--line);
}

.trust-item:last-child {
    border-right: 0;
}

.trust-item strong {
    display: block;
    font-size: 16px;
}

.trust-item span {
    color: var(--muted);
    font-size: 13px;
}

.sitewise-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.sitewise-badge {
    width: 100%;
    max-width: 250px;
    height: auto;
    border-radius: 8px;
}

.sitewise-item span {
    font-size: 12px;
}

section {
    padding: 105px 0;
}

.section-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 30px;
    margin-bottom: 45px;
}

.kicker {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
}

.section-head h2 {
    font-size: clamp(34px,5vw,56px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 10px 0 0;
    max-width: 720px;
}

.section-head p {
    max-width: 420px;
    color: var(--muted);
    margin: 0;
}

.services {
    background: #0c1015;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 18px;
}

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: .25s;
}

.card:hover {
    transform: translateY(-5px);
    border-color: rgba(245,185,66,.45);
}

.card-img {
    height: 235px;
    object-fit: cover;
    width: 100%;
    filter: saturate(.78);
}

.card-body {
    padding: 27px;
}

.num {
    font-size: 12px;
    color: var(--accent);
    font-weight: 800;
    letter-spacing: .12em;
}

.card h3 {
    font-size: 25px;
    margin: 10px 0;
}

.card p {
    color: var(--muted);
    margin: 0 0 20px;
}

.arrow {
    color: var(--accent);
    font-weight: 800;
    font-size: 14px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
}

.visual {
    min-height: 500px;
    border-radius: 24px;
    overflow: hidden;
    background: url('../images/About%20US%20Team%20Photo.jpg') center/cover;
    position: relative;
}

.visual:after {
    content: "AAC";
    position: absolute;
    bottom: 25px;
    left: 25px;
    border: 1px solid rgba(255,255,255,.3);
    padding: 9px 13px;
    font-weight: 900;
    letter-spacing: .12em;
    background: rgba(0,0,0,.35);
    backdrop-filter: blur(8px);
}

.copy h2 {
    font-size: clamp(36px,4.5vw,58px);
    line-height: 1.02;
    letter-spacing: -.045em;
    margin: 10px 0 22px;
}

.copy p {
    color: var(--muted);
    font-size: 17px;
}

.checklist {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 15px;
}

.checklist li {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check {
    width: 23px;
    height: 23px;
    border: 1px solid var(--accent);
    color: var(--accent);
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-size: 12px;
    flex: none;
    margin-top: 3px;
}

.band {
    padding: 80px 0;
    background: var(--accent);
    color: #111;
}

.band-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
}

.band h2 {
    font-size: clamp(30px,4vw,48px);
    line-height: 1.05;
    letter-spacing: -.04em;
    margin: 0;
}

.band p {
    margin: 9px 0 0;
    max-width: 650px;
}

.dark-btn {
    background: #111;
    color: #fff;
    border-color: #111;
}

.contact {
    background: #0c1015;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 20px;
}

.contact-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 35px;
}

.contact-card h3 {
    font-size: 27px;
    margin: 0 0 10px;
}

.contact-card p {
    color: var(--muted);
}

.contact-link {
    display: block;
    font-size: 25px;
    font-weight: 800;
    margin-top: 20px;
}

.contact-link:hover {
    color: var(--accent);
}

footer {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.footer-brand {
    color: #fff;
    font-weight: 800;
}

@media(max-width:850px) {
    .links {
        display: none;
    }
    .links.open {
        display: flex;
    }
    .menu {
        display: block;
    }
    .hero {
        min-height: 720px;
    }
    .trust-grid {
        grid-template-columns: 1fr;
    }
    .trust-item {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .trust-item:last-child {
        border-bottom: 0;
    }
    .cards,.split,.contact-grid {
        grid-template-columns: 1fr;
    }
    .visual {
        min-height: 380px;
        order: 2;
    }
    .section-head,.band-inner,.footer-inner {
        display: block;
    }
    .section-head p {
        margin-top: 18px;
    }
    .band .btn {
        margin-top: 25px;
    }
    .nav-cta {
        display: none;
    }
}

@media(max-width:520px) {
    .brand-logo {
        width: 190px;
        max-height: 38px;
    }
    .container {
        width: min(calc(100% - 28px),var(--max));
    }
    .nav {
        height: 68px;
    }
    .hero {
        min-height: 680px;
    }
    .hero-grid {
        padding-top: 60px;
    }
    h1 {
        font-size: 48px;
    }
    .hero p {
        font-size: 16px;
    }
    .buttons .btn {
        width: 100%;
    }
    section {
        padding: 75px 0;
    }
    .card-img {
        height: 205px;
    }
    .contact-link {
        font-size: 21px;
    }
}

