/* =========================================================
   APF Solutions Website
   Clean, simple, responsive layout
   ========================================================= */

:root {
    --apf-blue: #0a56d9;
    --apf-blue-dark: #073f9f;
    --text: #25282d;
    --muted: #66707a;
    --line: #dfe3e8;
    --soft: #f5f7f9;
    --white: #ffffff;
    --max-width: 1180px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.6;
}

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

a {
    color: inherit;
}

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

.narrow {
    max-width: 820px;
}

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand img {
    width: 215px;
    height: auto;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.site-nav a {
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .02em;
    padding: 10px 0;
    position: relative;
}

.site-nav a:not(.client-login)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 100%;
    bottom: 2px;
    height: 2px;
    background: var(--apf-blue);
    transition: right .2s ease;
}

.site-nav a:hover::after,
.site-nav a.active::after {
    right: 0;
}

.client-login {
    background: var(--apf-blue-dark);
    color: var(--white);
    padding: 11px 18px !important;
    border-radius: 4px;
}

.nav-toggle {
    display: none;
    border: 0;
    background: transparent;
    padding: 6px;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 28px;
    height: 3px;
    background: var(--text);
    margin: 5px 0;
}

.hero {
    min-height: calc(100vh - 92px);
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(circle at 15% 0%, rgba(10,86,217,.04), transparent 34%),
        var(--white);
}

.hero-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: center;
    padding: 70px 0 30px;
}

.eyebrow {
    margin: 0 0 16px;
    color: #525961;
    text-transform: uppercase;
    letter-spacing: .22em;
    font-size: 14px;
    font-weight: 700;
}

h1, h2, h3 {
    line-height: 1.18;
}

.hero h1,
.page-hero h1 {
    color: var(--apf-blue-dark);
    text-transform: uppercase;
    margin: 0 0 24px;
}

.hero h1 {
    font-size: clamp(42px, 5vw, 68px);
    letter-spacing: -.025em;
}

.page-hero h1 {
    font-size: clamp(34px, 4vw, 52px);
}

.lead {
    font-size: 19px;
    color: #3f454c;
    max-width: 720px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.button {
    display: inline-block;
    border: 2px solid var(--apf-blue-dark);
    border-radius: 4px;
    padding: 12px 24px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
}

.button.primary {
    background: var(--apf-blue-dark);
    color: var(--white);
}

.button.secondary {
    background: var(--white);
    color: var(--apf-blue-dark);
}

.services-card {
    border-left: 1px solid var(--line);
    padding-left: 34px;
}

.service-item {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 20px;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}

.service-item:last-child {
    border-bottom: 0;
}

.service-icon {
    width: 48px;
    height: 48px;
    border: 2px solid #454b52;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 23px;
}

.service-item h2 {
    margin: 0 0 7px;
    color: var(--apf-blue-dark);
    text-transform: uppercase;
    font-size: 16px;
}

.service-item p {
    margin: 0;
    color: var(--muted);
}

.skyline-wrap {
    width: 100%;
    overflow: hidden;
    margin-top: -10px;
}

.skyline-wrap img {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    object-position: center bottom;
}

.page-hero {
    padding: 80px 0 55px;
    background: var(--soft);
    border-bottom: 1px solid var(--line);
}

.content-section {
    padding: 70px 0;
}

.content-grid {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 70px;
    align-items: start;
}

.content-section h2 {
    margin-top: 0;
    color: var(--apf-blue-dark);
    font-size: 30px;
}

.simple-panel {
    background: var(--soft);
    border-left: 4px solid var(--apf-blue);
    padding: 28px 30px;
}

.simple-panel h3 {
    margin-top: 0;
}

.simple-panel ul {
    margin: 0;
    padding-left: 20px;
}

.skyline-strip {
    height: 220px;
    overflow: hidden;
    border-top: 1px solid var(--line);
}

.skyline-strip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
}

.contact-layout {
    display: grid;
    grid-template-columns: .7fr 1.3fr;
    gap: 70px;
    align-items: start;
}

.contact-form {
    display: grid;
    gap: 22px;
}

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

label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

input,
textarea {
    width: 100%;
    border: 1px solid #cfd5dc;
    border-radius: 4px;
    padding: 12px 13px;
    font: inherit;
    background: var(--white);
}

input:focus,
textarea:focus {
    outline: 2px solid rgba(10,86,217,.2);
    border-color: var(--apf-blue);
}

textarea {
    resize: vertical;
}

.form-status {
    padding: 13px 15px;
    border-radius: 4px;
}

.form-status.success {
    background: #edf8ef;
    border: 1px solid #b8dec1;
}

.form-status.error {
    background: #fff2f2;
    border: 1px solid #e4bcbc;
}

.honeypot {
    position: absolute !important;
    left: -9999px !important;
}

.site-footer {
    background: #20242a;
    color: #dfe4ea;
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 22px;
}

.footer-links a {
    text-decoration: none;
}

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

    .site-nav {
        display: none;
        position: absolute;
        top: 92px;
        left: 0;
        right: 0;
        background: var(--white);
        border-bottom: 1px solid var(--line);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .site-nav.open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
    }

    .client-login {
        text-align: center;
        margin-top: 6px;
    }

    .hero-grid,
    .content-grid,
    .contact-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .services-card {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 10px;
    }

    .hero-grid {
        padding-top: 50px;
    }
}

@media (max-width: 620px) {
    .container {
        width: min(calc(100% - 28px), var(--max-width));
    }

    .header-inner {
        min-height: 78px;
    }

    .brand img {
        width: 170px;
    }

    .site-nav {
        top: 78px;
    }

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

    .lead {
        font-size: 17px;
    }

    .hero-actions,
    .footer-inner,
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .skyline-strip {
        height: 160px;
    }
}


/* =========================================================
   Current approval refinements
   ========================================================= */

.home-tagline {
    margin: 0 0 24px;
    max-width: 720px;
    color: #3f454c;
    font-size: clamp(19px, 2vw, 27px);
    line-height: 1.35;
    font-weight: 600;
    letter-spacing: .01em;
}

.contact-intro a {
    color: var(--apf-blue-dark);
    text-decoration: none;
}

.map-section {
    padding: 0 0 70px;
}

.map-section h2 {
    color: var(--apf-blue-dark);
    font-size: 30px;
}

.map-section iframe {
    display: block;
    border-radius: 4px;
}
