/*
Theme Name: ApexITGenius
Theme URI: https://apexitgenius.com/
Author: ApexITGenius
Description: A clear, modern site for local IT support and managed services.
Version: 1.0.0
Text Domain: apexit-genius
*/

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
    --ink: #173438;
    --ink-soft: #355255;
    --muted: #617274;
    --paper: #fbfcf9;
    --white: #ffffff;
    --mist: #eef3ef;
    --line: #d9e2dc;
    --lime: #d8ef75;
    --lime-deep: #bfd95c;
    --coral: #e98765;
    --blue-wash: #e0eeee;
    --font-body: 'DM Sans', sans-serif;
    --font-display: 'Space Grotesk', sans-serif;
    --content: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; }
.shell { width: min(var(--content), calc(100% - 48px)); margin-inline: auto; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 12px 16px; background: var(--lime); color: var(--ink); }
.skip-link:focus { top: 16px; }

.topbar { background: var(--ink); color: #f5f8f4; font-size: 12px; }
.topbar-inner { min-height: 38px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.topbar a { text-decoration: none; color: var(--lime); }
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; text-decoration: none; }
.brand-mark { width: 42px; height: 42px; position: relative; display: grid; place-items: center; background: var(--lime); clip-path: polygon(50% 0, 100% 88%, 0 88%); }
.brand-mark::before { content: ''; width: 19px; height: 17px; position: absolute; top: 13px; left: 12px; background: var(--ink); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.brand-mark::after { content: ''; width: 7px; height: 7px; position: absolute; left: 18px; top: 24px; background: var(--lime); }
.brand-name { display: grid; line-height: 1; }
.brand-name strong { font: 700 19px/1 var(--font-display); }
.brand-name small { margin-top: 5px; color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: 0; }
.primary-nav { display: flex; align-items: center; }
.primary-nav ul { display: flex; align-items: center; justify-content: flex-end; gap: 25px; list-style: none; padding: 0; margin: 0; }
.primary-nav a { text-decoration: none; font-size: 13px; font-weight: 600; }
.primary-nav a:hover, .primary-nav .current-menu-item > a { color: #486217; }
.primary-nav .menu-item:last-child a { display: inline-flex; padding: 11px 17px; border: 1px solid var(--ink); border-radius: 3px; }
.primary-nav .menu-item:last-child a:hover { background: var(--ink); color: var(--white); }

h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--font-display); font-weight: 600; line-height: 1.08; }
h1 { max-width: 700px; font-size: 64px; }
h2 { font-size: 48px; }
h3 { font-size: 22px; }
p { margin: 0 0 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; color: #526c1b; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 21px; height: 2px; background: var(--coral); }
.lede { max-width: 590px; margin-top: 21px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.section { padding: 96px 0; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading p { max-width: 570px; margin-top: 18px; color: var(--muted); font-size: 17px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 50px; padding: 12px 18px; border: 1px solid transparent; border-radius: 3px; text-decoration: none; font-size: 14px; font-weight: 700; transition: background-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: var(--lime-deep); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #24464b; }
.button-line { border-color: var(--line); background: var(--white); }
.button-line:hover { border-color: var(--ink); }
.button-arrow { font-size: 18px; line-height: 1; }

.hero { padding: 65px 0 82px; overflow: hidden; background-color: var(--paper); background-image: linear-gradient(rgba(23,52,56,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,52,56,.035) 1px, transparent 1px); background-size: 36px 36px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 60px; }
.hero-copy { padding: 22px 0; }
.hero h1 { margin-top: 19px; }
.hero h1 em { color: #718c28; font-style: normal; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 9px 21px; margin-top: 32px; color: var(--muted); font-size: 12px; font-weight: 600; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--coral); }
.hero-visual { min-height: 480px; position: relative; padding: 0 15px 22px 0; }
.hero-visual::before { content: ''; position: absolute; inset: 26px 0 0 34px; border: 1px solid #a7b8ad; }
.hero-photo { position: relative; z-index: 1; width: 100%; height: 450px; object-fit: cover; object-position: 50% 44%; }
.hero-caption { position: absolute; z-index: 2; right: 0; bottom: 0; width: min(270px, 72%); padding: 17px 19px; background: var(--lime); color: var(--ink); font: 600 14px/1.35 var(--font-display); }
.hero-caption span { display: block; margin-bottom: 5px; color: #526c1b; font: 700 9px/1.3 var(--font-body); text-transform: uppercase; }

.trust-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); }
.trust-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.trust-label { color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; }
.trust-item { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.trust-item::before { content: ''; width: 8px; height: 8px; border: 2px solid var(--coral); border-radius: 50%; }

.service-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.service-card { min-height: 225px; display: flex; flex-direction: column; padding: 21px; border: 1px solid var(--line); background: var(--white); text-decoration: none; transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease; }
.service-card:hover { transform: translateY(-4px); border-color: #9cad99; box-shadow: 0 12px 24px rgba(23,52,56,.08); }
.card-index { margin-bottom: auto; color: #708328; font: 700 11px/1 var(--font-display); }
.service-card h3 { margin: 27px 0 10px; font-size: 19px; }
.service-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.service-card .card-arrow { margin-top: 16px; color: #708328; font-size: 18px; }

.audience-section { background: var(--ink); color: #e9f0eb; }
.audience-section h2, .audience-section h3 { color: var(--white); }
.audience-section .eyebrow { color: var(--lime); }
.audience-section .section-heading p { color: #b7c6c2; }
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #496164; border: 1px solid #496164; }
.audience-card { min-height: 220px; padding: 26px; background: var(--ink); }
.audience-card .card-index { color: var(--lime); }
.audience-card h3 { margin: 30px 0 12px; }
.audience-card p { margin: 0; color: #bdcbc6; font-size: 14px; }

.process-section { background: var(--mist); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.process-card { padding-top: 19px; border-top: 2px solid #a9bd81; }
.process-number { display: block; margin-bottom: 29px; color: #647d22; font: 600 13px/1 var(--font-display); }
.process-card h3 { margin-bottom: 12px; }
.process-card p { max-width: 330px; margin: 0; color: var(--muted); font-size: 14px; }

.coverage-grid { display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 65px; }
.coverage-art { min-height: 300px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 26px; background-color: var(--blue-wash); background-image: repeating-radial-gradient(ellipse at 30% 40%, transparent 0 15px, rgba(43,91,91,.13) 16px 17px, transparent 18px 30px); }
.coverage-art::before, .coverage-art::after { content: ''; position: absolute; width: 12px; height: 12px; border: 3px solid var(--coral); border-radius: 50%; background: var(--paper); }
.coverage-art::before { left: 36%; top: 33%; }
.coverage-art::after { right: 26%; top: 50%; }
.coverage-art span { position: relative; z-index: 1; width: fit-content; margin-top: 8px; padding: 7px 10px; background: var(--paper); font-size: 11px; font-weight: 700; }
.coverage-copy h2 { margin: 14px 0 18px; }
.coverage-copy p { color: var(--muted); }

.cta-band { padding: 62px 0; background: var(--lime); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 36px; }
.cta-inner h2 { max-width: 650px; font-size: 42px; }
.cta-inner p { margin: 12px 0 0; color: #435520; }
.cta-inner .button { flex: 0 0 auto; }

.page-intro { padding: 78px 0 50px; background-color: var(--mist); background-image: linear-gradient(rgba(23,52,56,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(23,52,56,.035) 1px, transparent 1px); background-size: 36px 36px; }
.page-intro h1 { max-width: 850px; margin-top: 16px; font-size: 58px; }
.page-intro p { max-width: 690px; margin-top: 20px; color: var(--muted); font-size: 18px; }
.page-body { padding: 56px 0 92px; }
.page-body > * { max-width: var(--content); margin-inline: auto; }
.page-body > .wp-block-html { width: min(var(--content), calc(100% - 48px)); }
.page-body .page-section { padding: 36px 0; }
.page-body .page-section + .page-section { border-top: 1px solid var(--line); }
.page-body .page-section h2 { margin-bottom: 17px; font-size: 32px; }
.page-body .page-section h3 { margin: 22px 0 8px; }
.page-body .page-section p { max-width: 790px; color: var(--muted); }
.page-body .page-service-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.page-body .page-service { padding: 22px; border: 1px solid var(--line); background: var(--white); }
.page-body .page-service h3 { margin: 0 0 9px; }
.page-body .page-service p { margin: 0; font-size: 14px; }
.page-body .page-action { padding: 22px; background: var(--mist); }
.page-body .page-action p { margin-bottom: 14px; }

.site-footer { padding: 52px 0 23px; background: #10282b; color: #d8e3df; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 40px; padding-bottom: 38px; }
.footer-brand .brand-name strong { color: var(--white); }
.footer-brand .brand-name small { color: #acbfba; }
.footer-brand p { max-width: 300px; margin-top: 18px; color: #acbfba; font-size: 13px; }
.footer-heading { margin-bottom: 15px; color: var(--lime); font: 700 11px/1.2 var(--font-body); text-transform: uppercase; }
.footer-links { display: grid; gap: 9px; }
.footer-links a { width: fit-content; color: #e4ece8; font-size: 13px; text-decoration: none; }
.footer-links a:hover { color: var(--lime); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-top: 18px; border-top: 1px solid #345054; color: #9eb2ad; font-size: 11px; }
.footer-bottom p { margin: 0; }

@media (max-width: 980px) {
    h1 { font-size: 58px; }
    h2 { font-size: 42px; }
    .primary-nav ul { gap: 15px; }
    .primary-nav a { font-size: 12px; }
    .hero-grid { gap: 34px; }
    .hero-visual { min-height: 410px; }
    .hero-photo { height: 380px; }
    .service-grid { grid-template-columns: repeat(3, 1fr); }
    .service-card { min-height: 205px; }
    .trust-inner { justify-content: flex-start; flex-wrap: wrap; padding-block: 17px; }
    .trust-label { width: 100%; }
}
@media (max-width: 760px) {
    .shell { width: min(var(--content), calc(100% - 36px)); }
    .topbar-inner { min-height: 36px; font-size: 10px; }
    .header-inner { min-height: auto; flex-wrap: wrap; gap: 16px; padding: 16px 0 13px; }
    .brand-mark { width: 37px; height: 37px; }
    .brand-mark::before { top: 11px; left: 10px; }
    .brand-mark::after { left: 16px; top: 22px; }
    .brand-name strong { font-size: 17px; }
    .primary-nav { width: 100%; overflow: visible; }
    .primary-nav ul { width: 100%; flex-wrap: wrap; justify-content: flex-start; gap: 8px 15px; }
    .primary-nav a { white-space: normal; }
    .primary-nav .menu-item:last-child a { padding: 8px 12px; }
    h1 { font-size: 42px; }
    h2 { font-size: 36px; }
    .section { padding: 68px 0; }
    .hero { padding: 52px 0 57px; }
    .hero-grid { grid-template-columns: 1fr; gap: 35px; }
    .hero-copy { padding: 0; }
    .hero .lede { font-size: 16px; }
    .hero-visual { min-height: 330px; margin-left: 8px; }
    .hero-photo { height: 310px; }
    .hero-visual::before { inset: 18px 0 0 20px; }
    .hero-caption { padding: 13px 15px; }
    .trust-inner { gap: 10px 18px; }
    .trust-item { font-size: 12px; }
    .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
    .service-card { min-height: 210px; padding: 16px; }
    .service-card h3 { font-size: 17px; }
    .audience-grid, .process-grid { grid-template-columns: 1fr; }
    .audience-card { min-height: 175px; }
    .audience-card h3 { margin-top: 22px; }
    .process-grid { gap: 25px; }
    .process-number { margin-bottom: 19px; }
    .coverage-grid { grid-template-columns: 1fr; gap: 32px; }
    .coverage-art { min-height: 250px; }
    .cta-band { padding: 47px 0; }
    .cta-inner { align-items: flex-start; flex-direction: column; gap: 21px; }
    .cta-inner h2 { font-size: 34px; }
    .page-intro { padding: 58px 0 40px; }
    .page-intro h1 { font-size: 43px; }
    .page-intro p { font-size: 16px; }
    .page-body { padding: 35px 0 62px; }
    .page-body > .wp-block-html { width: min(var(--content), calc(100% - 36px)); }
    .page-body .page-service-list { grid-template-columns: 1fr; }
    .page-body .page-section { padding: 26px 0; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 22px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 420px) {
    .topbar-inner { gap: 8px; }
    .topbar-inner span { max-width: 190px; line-height: 1.25; }
    .topbar-inner a { white-space: nowrap; font-size: 9px; }
    .service-grid { grid-template-columns: 1fr; }
    .service-card { min-height: 170px; }
    .button-row .button { width: 100%; }
    .trust-inner { display: grid; grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-brand { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; }
}
