/* ==========================================================================
   AC TOTAL SOLUTIONS — style.css
   Classic 2010s business theme: sharp corners, 1px borders, navy + blue.
   Edit the colors in :root below to re-skin the whole site.
   ========================================================================== */

/* ==========================================================================
   1. VARIABLES & BASE
   ========================================================================== */
:root {
    --navy:        #1b2942;   /* headings, dark elements */
    --navy-dark:   #131f33;   /* footer background */
    --accent:      #0d5eff;   /* matches the blue in the logo */
    --accent-dark: #0647cc;   /* button borders, hover text */
    --accent-lite: #3b7bff;   /* gradient top, icons on dark bg */
    --text:        #555555;   /* body copy */
    --border:      #dfe3e8;   /* 1px borders on cards, boxes */
    --bg-light:    #f4f6f9;   /* alternating section background */
    --error:       #d9534f;   /* form validation errors */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth; /* fallback if JS is disabled */
}

body {
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.7;
    color: var(--text);
    background: #ffffff;
}

h1, h2, h3, h4 {
    color: var(--navy);
    line-height: 1.3;
}

img {
    max-width: 100%;
}

/* ==========================================================================
   2. LAYOUT HELPERS
   ========================================================================== */
.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 90px 0;
    scroll-margin-top: 80px; /* keep anchors clear of the sticky header */
}

.section-header {
    text-align: center;
    margin-bottom: 56px;
}

.section-header h2 {
    font-size: 28px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2.5px;
}

/* small accent bar under section titles */
.section-header h2::after {
    content: "";
    display: block;
    width: 60px;
    height: 3px;
    background: var(--accent);
    margin: 16px auto 0;
}

.section-header p {
    max-width: 620px;
    margin: 18px auto 0;
    color: #777777;
    font-size: 16px;
}

/* left-aligned variant (used in About) */
.section-header.left {
    text-align: left;
    margin-bottom: 28px;
}

.section-header.left h2::after {
    margin: 16px 0 0;
}

/* ==========================================================================
   3. BUTTONS
   ========================================================================== */
.btn {
    display: inline-block;
    padding: 14px 34px;
    font-family: inherit;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: #ffffff;
    background-image: linear-gradient(to bottom, var(--accent-lite), var(--accent));
    border: 1px solid var(--accent-dark);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

/* inverted colors on hover */
.btn:hover {
    background-image: none;
    background-color: #ffffff;
    color: var(--accent);
    border-color: var(--accent-dark);
}

.btn-submit i {
    margin-right: 8px;
}

/* ==========================================================================
   4. STICKY HEADER & NAVIGATION
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 74px;
    position: relative;
}

.logo-link {
    display: flex;
    align-items: center;
}

.logo {
    height: 34px;
    width: auto;
    display: block;
}

.site-nav ul {
    display: flex;
    gap: 34px;
    list-style: none;
}

.site-nav a {
    display: block;
    padding: 10px 0 8px;
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-decoration: none;
    color: var(--navy);
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.site-nav a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

/* hamburger — hidden on desktop, shown in the mobile media query */
.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    background: none;
    border: 1px solid var(--border);
    color: var(--navy);
    font-size: 20px;
    cursor: pointer;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.nav-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ==========================================================================
   5. PARALLAX SECTIONS (shared by hero + counter band)
   The .parallax-bg layer is taller than its section and gets moved with
   transform from script.js. On failure or below 900px it just sits still.
   ========================================================================== */
.parallax-section {
    position: relative;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    left: 0;
    right: 0;
    top: -35%;
    height: 170%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    will-change: transform;
    z-index: 1;
}

/* dark semi-transparent overlay so text stays readable on the photos */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 18, 32, 0.68);
    z-index: 2;
}

.overlay-dark {
    background: rgba(9, 17, 30, 0.78);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */

/* HERO BACKGROUND IMAGE: dark server room aisle (Unsplash).
   Swap the url() for your own file (e.g. url("img/hero.jpg")) or a Vecteezy
   stock download. If the URL ever dies, the navy background-color below
   still renders, so the hero never looks broken. */
.hero-bg {
    background-color: #1b2942;
    background-image: url("https://images.unsplash.com/photo-1558494949-ef010cbdcc31?auto=format&fit=crop&w=1920&q=60");
}

.hero {
    display: flex;
    align-items: center;
    min-height: 620px;
    text-align: center;
}

.hero-content {
    position: relative;
    z-index: 3;
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-kicker {
    font-size: 13px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent-lite);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: 46px;
    font-weight: bold;
    color: #ffffff;
    max-width: 820px;
    margin: 0 auto 20px;
}

.hero-sub {
    font-size: 18px;
    color: #d7dde6;
    max-width: 640px;
    margin: 0 auto 34px;
}

/* ==========================================================================
   7. SERVICES
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.service-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 44px 30px;
    text-align: center;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* lift + switch to accent on hover */
.service-card:hover {
    transform: translateY(-6px);
    border-color: var(--accent);
    box-shadow: 0 10px 20px rgba(16, 42, 90, 0.12);
}

/* icon in a bordered square above the title */
.service-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6cdd6;
    color: var(--navy);
    font-size: 28px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.service-card:hover .service-icon {
    color: var(--accent);
    border-color: var(--accent);
}

.service-card h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 14px;
}

.service-card p {
    color: #666666;
}

/* ==========================================================================
   8. COUNTER BAND
   ========================================================================== */

/* COUNTER BAND BACKGROUND IMAGE: dark abstract globe/network (Unsplash).
   Swap the url() for your own file or a Vecteezy stock download. If the URL
   ever dies, the dark background-color below still renders. */
.band-bg {
    background-color: #0f1c2e;
    background-image: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?auto=format&fit=crop&w=1920&q=60");
}

.counter-band {
    padding: 70px 0;
}

.counter-grid {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.counter {
    text-align: center;
    color: #ffffff;
}

.counter > i {
    font-size: 30px;
    color: var(--accent-lite);
}

.counter-value {
    font-size: 42px;
    font-weight: bold;
    margin: 12px 0 4px;
}

.counter-label {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: #aebacd;
}

/* ==========================================================================
   9. ABOUT
   ========================================================================== */
.about {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.about-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 56px;
    align-items: center;
}

.about-text p {
    margin-bottom: 18px;
}

.checklist {
    list-style: none;
    margin-top: 8px;
}

.checklist li {
    padding: 6px 0;
    color: #555555;
}

.checklist i {
    color: var(--accent);
    margin-right: 12px;
}

/* white "photo frame" box with 1px border around the image */
.about-image-box {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
}

/* navy placeholder block behind the img — this is what stays visible
   if the Unsplash image above ever fails to load */
.about-img-holder {
    background: #1b2942;
    min-height: 300px;
}

.about-img-holder img {
    display: block;
    width: 100%;
    height: auto;
}

/* ==========================================================================
   10. PROCESS (How We Work)
   ========================================================================== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.process-step {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 36px 22px;
    text-align: center;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.process-step:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 16px rgba(16, 42, 90, 0.1);
}

/* bordered icon square with a small accent number badge in the corner */
.process-icon {
    position: relative;
    width: 72px;
    height: 72px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #c6cdd6;
    color: var(--navy);
    font-size: 26px;
    transition: color 0.25s ease, border-color 0.25s ease;
}

.process-step:hover .process-icon {
    color: var(--accent);
    border-color: var(--accent);
}

.step-number {
    position: absolute;
    top: -11px;
    right: -11px;
    width: 24px;
    height: 24px;
    background: var(--accent);
    border: 1px solid var(--accent-dark);
    color: #ffffff;
    font-size: 12px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
}

.process-step h3 {
    font-size: 15px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 12px;
}

.process-step p {
    font-size: 14px;
    color: #666666;
}

/* ==========================================================================
   11. TESTIMONIALS
   ========================================================================== */
.testimonials {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

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

.testimonial-card {
    background: #ffffff;
    border: 1px solid var(--border);
    padding: 34px 28px;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.testimonial-card:hover {
    border-color: var(--accent);
    box-shadow: 0 8px 16px rgba(16, 42, 90, 0.1);
}

.testimonial-card > i {
    font-size: 22px;
    color: var(--accent);
}

.testimonial-text {
    font-style: italic;
    color: #666666;
    margin: 14px 0 20px;
}

.testimonial-author strong {
    display: block;
    color: var(--navy);
    font-size: 14px;
}

.testimonial-role {
    font-size: 13px;
    color: #999999;
}

/* ==========================================================================
   12. CTA STRIP
   ========================================================================== */
.cta-strip {
    background: var(--navy);
    padding: 56px 0;
}

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

.cta-text h2 {
    color: #ffffff;
    font-size: 26px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

.cta-text p {
    color: #aebacd;
    font-size: 15px;
}

.cta-strip .btn {
    flex-shrink: 0;
}

/* ==========================================================================
   13. CONTACT & FORM
   ========================================================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 50px;
    align-items: start;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.form-field {
    margin-bottom: 22px;
}

.form-field label {
    display: block;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.5px;
    color: var(--navy);
    margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 15px;
    color: #333333;
    background: #ffffff;
    border: 1px solid #ccd2da;
    transition: border-color 0.2s ease;
    resize: vertical;
}

/* accent border on focus */
.form-field input:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--accent);
}

/* inline validation errors */
.field-error {
    display: none;
    font-size: 12px;
    color: var(--error);
    margin-top: 6px;
}

.form-field.has-error input,
.form-field.has-error textarea {
    border-color: var(--error);
}

.form-field.has-error .field-error {
    display: block;
}

/* success box shown instead of the form (2012-era green) */
.form-success {
    border: 1px solid #d6e9c6;
    background: #dff0d8;
    padding: 44px 30px;
    text-align: center;
}

.form-success i {
    font-size: 44px;
    color: #5cb85c;
}

.form-success h3 {
    font-size: 20px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #3c763d;
    margin: 16px 0 8px;
}

.form-success p {
    color: #3c763d;
}

/* contact details box next to the form */
.contact-info {
    background: var(--bg-light);
    border: 1px solid var(--border);
    padding: 34px;
}

.contact-info h3 {
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 26px;
}

.info-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.info-item:last-child {
    margin-bottom: 0;
}

.info-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-size: 17px;
}

.info-item h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.info-item p {
    font-size: 14px;
    color: #666666;
}

/* ==========================================================================
   14. FOOTER — widget columns + bottom bar
   ========================================================================== */
.site-footer {
    background: var(--navy-dark);
    border-top: 3px solid var(--accent);
    padding: 56px 0 28px;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.2fr 0.9fr 1.1fr 1fr;
    gap: 40px;
}

.footer-widget h4 {
    color: #ffffff;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

/* small accent bar under widget titles */
.footer-widget h4::after {
    content: "";
    display: block;
    width: 30px;
    height: 2px;
    background: var(--accent);
    margin-top: 10px;
}

.footer-widget p {
    font-size: 13px;
    line-height: 1.8;
    color: #8fa0b8;
}

.footer-widget ul {
    list-style: none;
}

.footer-widget li {
    padding: 4px 0;
}

.footer-widget ul a {
    color: #8fa0b8;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-widget ul a:hover {
    color: #ffffff;
}

.footer-email {
    margin-bottom: 18px;
}

.footer-email i {
    color: var(--accent-lite);
    margin-right: 10px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #9fb0c3;
    font-size: 15px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.footer-social a:hover {
    color: #ffffff;
    border-color: var(--accent);
    background: var(--accent);
}

.footer-bottom {
    margin-top: 44px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-links a {
    color: #8fa0b8;
    font-size: 13px;
    text-decoration: none;
    margin-left: 24px;
    transition: color 0.2s ease;
}

.footer-links a:first-child {
    margin-left: 0;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-copy {
    font-size: 13px;
    color: #6c7d95;
}

/* ==========================================================================
   15. SCROLL REVEAL (classes are applied from script.js)
   ========================================================================== */
.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: none;
}

/* ==========================================================================
   16. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
    .hero {
        min-height: 520px;
    }

    .hero h1 {
        font-size: 38px;
    }
}

@media (max-width: 860px) {
    .section {
        padding: 64px 0;
    }

    .section-header h2 {
        font-size: 24px;
    }

    /* nav collapses into hamburger menu */
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
    }

    body.nav-open .site-nav {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        border-top: 1px solid #eef1f4;
    }

    .site-nav a {
        padding: 15px 20px;
        border-bottom: none;
        text-align: center;
    }

    .site-nav a:hover {
        background: #f6f8fb;
    }

    /* columns stack */
    .services-grid,
    .about-grid,
    .contact-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .counter-grid,
    .process-grid,
    .footer-top {
        grid-template-columns: repeat(2, 1fr);
    }

    .counter-grid {
        gap: 40px;
    }

    .about-grid {
        gap: 36px;
    }

    /* CTA strip stacks and centers */
    .cta-inner {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 30px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .counter-grid,
    .process-grid,
    .footer-top {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .footer-links a {
        margin: 0 10px;
    }
}
