/* ==========================================================================
   AcePark theme – main stylesheet
   Change brand colours here (the whole site follows these tokens).
   ========================================================================== */
:root {
	--ink: #0d1b2a;          /* dark sections, headings */
	--ink-2: #1b2b3d;
	--text: #3a4757;
	--muted: #6b7785;
	--line: #e3e7ec;
	--bg: #ffffff;
	--bg-muted: #f4f6f8;
	--accent: #f2a900;       /* buttons, highlights */
	--accent-ink: #0d1b2a;   /* text on accent */
	--radius: 14px;
	--radius-sm: 8px;
	--shadow: 0 10px 30px rgba(13, 27, 42, .08);
	--wrap: 1200px;
	--gutter: 24px;
	--font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); line-height: 1.6; font-size: 16px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.ap-container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.ap-narrow { max-width: 780px; }
.ap-skip { position: absolute; left: -9999px; }
.ap-skip:focus { left: 16px; top: 16px; z-index: 999; background: #fff; padding: 8px 12px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.ap-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ap-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px; text-decoration: none; border: 2px solid transparent; transition: transform .15s, background .15s, color .15s, border-color .15s; white-space: nowrap; }
.ap-btn:hover { transform: translateY(-1px); }
.ap-btn--primary { background: var(--accent); color: var(--accent-ink); }
.ap-btn--primary:hover { background: #ffbb1f; }
.ap-btn--outline { border-color: currentColor; color: var(--ink); background: transparent; }
.is-dark .ap-btn--outline { color: #fff; }
.ap-btn--sm { padding: 10px 18px; font-size: 14px; }

/* ---------- Header ---------- */
.ap-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ap-header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px rgba(13,27,42,.05); }
.ap-header__bar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.ap-logo { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.ap-logo__img { max-height: 44px; width: auto; }
.ap-logo__text { font-weight: 800; font-size: 22px; color: var(--ink); }
.ap-nav-wrap { display: flex; align-items: center; gap: 28px; }
.ap-header__actions { display: flex; align-items: center; gap: 16px; }
.ap-phone { font-weight: 600; text-decoration: none; color: var(--ink); font-size: 15px; }

.ap-menu, .ap-menu ul { list-style: none; margin: 0; padding: 0; }
.ap-menu { display: flex; gap: 4px; }
.ap-menu > li { position: relative; }
.ap-menu > li > a { display: block; padding: 10px 12px; font-weight: 500; font-size: 15px; text-decoration: none; color: var(--ink); border-radius: var(--radius-sm); }
.ap-menu > li > a:hover, .ap-menu > li.current-menu-item > a, .ap-menu > li.current-menu-ancestor > a { color: #000; background: var(--bg-muted); }
.ap-menu > .menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); opacity: .6; }
.ap-menu a[href="#"] { pointer-events: none; }

/* Dropdown / mega panel */
.ap-menu > li > .sub-menu { position: absolute; top: calc(100% + 8px); left: 50%; transform: translate(-50%, 6px); min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; display: flex; gap: 28px; opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s, visibility .18s; }
.ap-menu > li > .sub-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.ap-menu > li:hover > .sub-menu, .ap-menu > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.ap-menu .sub-menu .sub-menu { display: block; }
.ap-menu .sub-menu > li { min-width: 200px; }
.ap-menu .sub-menu a { display: block; padding: 7px 10px; border-radius: 6px; font-size: 14px; text-decoration: none; color: var(--text); }
.ap-menu .sub-menu a:hover { background: var(--bg-muted); color: var(--ink); }
/* Column headings (level 2 that have children) */
.ap-menu .sub-menu > .menu-item-has-children > a { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.ap-menu .sub-menu > .menu-item-has-children > a[href]:not([href="#"]):hover { color: var(--ink); }
/* Simple dropdown (no grandchildren) stacks vertically */
.ap-menu > li > .sub-menu:not(:has(.sub-menu)) { flex-direction: column; gap: 0; }

.ap-burger { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.ap-burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; transition: transform .2s, opacity .2s; }
.ap-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ap-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ap-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections ---------- */
.ap-section { padding: 96px 0; }
.ap-section.is-muted { background: var(--bg-muted); }
.ap-section.is-dark { background: var(--ink); color: rgba(255,255,255,.78); }
.is-dark h1, .is-dark h2, .is-dark h3, .is-dark .ap-title { color: #fff; }
.ap-head { max-width: 760px; margin-bottom: 48px; }
.ap-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.ap-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 48px; }
.ap-head-row .ap-head { margin-bottom: 0; }
.ap-eyebrow { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--accent); margin-bottom: 14px; }
.is-light .ap-eyebrow, .is-muted .ap-eyebrow { color: #b07a00; }
.ap-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 800; }
.ap-head--hero .ap-title { font-size: clamp(36px, 5.2vw, 64px); }
.ap-intro { font-size: 18px; }
.ap-intro p:last-child { margin-bottom: 0; }

/* Hero */
.ap-hero { padding-top: 72px; }
.ap-hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.ap-hero__grid--solo { grid-template-columns: 1fr; }
.ap-hero .ap-head { margin-bottom: 0; }
.ap-hero__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }

/* Stats */
.ap-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 64px 0 0; border-top: 1px solid var(--line); }
.is-dark .ap-stats { border-color: rgba(255,255,255,.15); }
.ap-stat { padding: 28px 24px 0 0; }
.ap-stat__value { font-size: clamp(30px, 3.4vw, 44px); font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.is-dark .ap-stat__value { color: var(--accent); }
.ap-stat__label { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
.is-dark .ap-stat__label { color: rgba(255,255,255,.65); }
.ap-stats--boxed { border: 0; gap: 16px; margin-top: 48px; }
.ap-stats--boxed .ap-stat { background: var(--bg-muted); border-radius: var(--radius); padding: 28px; }
.is-dark .ap-stats--boxed .ap-stat { background: var(--ink-2); }

/* Grid + cards */
.ap-grid { display: grid; gap: 20px; }
.ap-grid--2 { grid-template-columns: repeat(2, 1fr); }
.ap-grid--3 { grid-template-columns: repeat(3, 1fr); }
.ap-grid--4 { grid-template-columns: repeat(4, 1fr); }
.ap-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; color: var(--text); transition: transform .2s, box-shadow .2s, border-color .2s; }
a.ap-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; }
.is-muted .ap-card { border-color: transparent; }
.is-dark .ap-card { background: var(--ink-2); border-color: rgba(255,255,255,.08); color: rgba(255,255,255,.75); }
.ap-card__img { margin: -28px -28px 22px; width: calc(100% + 56px); max-width: none; aspect-ratio: 16/10; object-fit: cover; border-radius: var(--radius) var(--radius) 0 0; }
.ap-badge { align-self: flex-start; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: #e8f6ee; color: #146c3d; margin-bottom: 16px; }
.ap-card__stat { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1; margin-bottom: 14px; letter-spacing: -.02em; }
.ap-card__title { font-size: 19px; margin-bottom: 8px; }
.ap-card__meta { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.ap-card__text { font-size: 15px; margin-bottom: 0; }
.ap-card__tagline { margin: auto 0 0; padding-top: 18px; font-weight: 600; font-size: 14px; color: var(--ink); }
.is-dark .ap-card__tagline { color: #fff; }

/* Split */
.ap-split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.ap-split--solo { grid-template-columns: 1fr; max-width: 820px; }
.ap-split--img-left .ap-split__media { order: -1; }
.ap-split .ap-head { margin-bottom: 24px; }
.ap-split__img { width: 100%; border-radius: var(--radius); object-fit: cover; }
.ap-flow { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.ap-flow li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; background: var(--bg-muted); border-radius: var(--radius-sm); font-weight: 600; color: var(--ink); font-size: 15px; }
.is-dark .ap-flow li { background: var(--ink-2); color: #fff; }
.ap-flow__arrow { color: var(--accent); }
.ap-points { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.ap-points li { padding-left: 28px; position: relative; }
.ap-points li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: inset 0 0 0 4px #fff; border: 1px solid var(--accent); }
.ap-points strong { color: var(--ink); }
.is-dark .ap-points strong { color: #fff; }

/* Spec cards */
.ap-spec { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; }
.is-dark .ap-spec { background: var(--ink-2); border-color: rgba(255,255,255,.08); }
.ap-spec__img { margin-bottom: 18px; border-radius: var(--radius-sm); }
.ap-spec__label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 6px; }
.ap-spec__title { font-size: 26px; }
.ap-spec__list { margin: 12px 0 0; }
.ap-spec__list div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.is-dark .ap-spec__list div { border-color: rgba(255,255,255,.1); }
.ap-spec__list dt { color: var(--muted); }
.ap-spec__list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: right; }
.is-dark .ap-spec__list dd { color: #fff; }
.ap-spec__note { margin: auto 0 0; padding-top: 16px; font-size: 13px; color: var(--muted); }
.ap-spec__link { margin-top: 14px; font-weight: 600; color: var(--ink); }

/* Comparison table */
.ap-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.ap-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 15px; }
.ap-table caption { caption-side: bottom; padding: 12px; font-size: 13px; color: var(--muted); font-style: italic; }
.ap-table th, .ap-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.ap-table thead th { background: var(--bg-muted); font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.ap-table tbody th { font-weight: 600; color: var(--ink); }
.ap-table .is-hl { background: #fff8e6; font-weight: 600; color: var(--ink); }
.ap-table thead .is-hl { background: var(--accent); color: var(--accent-ink); }
.ap-table tbody tr:last-child > * { border-bottom: 0; }

/* Timeline */
.ap-timeline { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; counter-reset: step; }
.ap-timeline__step { position: relative; padding: 28px 24px 24px; border-top: 3px solid var(--accent); background: #fff; border-radius: 0 0 var(--radius) var(--radius); }
.is-muted .ap-timeline__step { background: #fff; }
.is-dark .ap-timeline__step { background: var(--ink-2); }
.ap-timeline__when { font-size: 13px; font-weight: 700; color: #b07a00; text-transform: uppercase; letter-spacing: .06em; }
.is-dark .ap-timeline__when { color: var(--accent); }
.ap-timeline__title { font-size: 19px; margin: 8px 0 6px; }
.ap-timeline__text { font-size: 14px; margin: 0; }

/* CTA */
.ap-cta { text-align: center; }
.ap-cta .ap-head { margin-bottom: 0; }
.ap-cta .ap-btns { justify-content: center; }

/* FAQ */
.ap-faq { max-width: 860px; display: grid; gap: 12px; }
.ap-faq__item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.ap-faq__item summary { cursor: pointer; padding: 18px 52px 18px 22px; font-weight: 600; color: var(--ink); list-style: none; position: relative; }
.ap-faq__item summary::-webkit-details-marker { display: none; }
.ap-faq__item summary::after { content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%); font-size: 22px; color: var(--muted); }
.ap-faq__item[open] summary::after { content: "–"; }
.ap-faq__a { padding: 0 22px 18px; }

/* Gallery */
.ap-gallery__item { margin: 0; }
.ap-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius-sm); }
.ap-gallery__item figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* Downloads */
.ap-downloads { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ap-downloads__item { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 24px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; }
.ap-downloads__item h3 { font-size: 17px; margin: 0 0 4px; }
.ap-downloads__item p { margin: 0; font-size: 14px; }

/* Contact */
.ap-contact { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.ap-contact--solo { grid-template-columns: 1fr; max-width: 760px; }
.ap-contact__aside { background: var(--bg-muted); border-radius: var(--radius); padding: 32px; }
.is-muted .ap-contact__aside { background: #fff; }
.ap-map { margin-top: 48px; border-radius: var(--radius); overflow: hidden; }
.ap-map iframe { width: 100%; height: 380px; border: 0; display: block; }
.ap-contact__form input:not([type=submit]):not([type=checkbox]):not([type=radio]),
.ap-contact__form select, .ap-contact__form textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font: inherit; background: #fff; }
.ap-contact__form input[type=submit], .ap-contact__form button[type=submit] { background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 14px 28px; font-weight: 600; font-size: 15px; cursor: pointer; }

.ap-contact-list { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 12px; font-size: 15px; }
.ap-contact-list a { text-decoration: none; font-weight: 600; }
.ap-contact-list__addr strong { display: block; font-size: 13px; color: var(--ink); }
.ap-contact-list__addr span { font-size: 14px; }

/* Prose */
.ap-prose { max-width: 760px; }
.ap-prose h2 { font-size: 28px; margin-top: 1.4em; }
.ap-prose h3 { font-size: 21px; margin-top: 1.2em; }
.ap-prose a { color: #b07a00; }
.ap-prose ul, .ap-prose ol { padding-left: 1.3em; }
.ap-post-img { border-radius: var(--radius); margin-bottom: 32px; }
.ap-page-hero { padding: 72px 0; }
.ap-page-hero .ap-head { margin-bottom: 0; }
.ap-card--post .ap-card__meta { margin-bottom: 6px; }
.ap-pagination { margin-top: 40px; }
.ap-pagination .nav-links { display: flex; gap: 8px; }
.ap-pagination .page-numbers { padding: 8px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; }
.ap-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Footer ---------- */
.ap-footer { background: var(--ink); color: rgba(255,255,255,.7); padding: 80px 0 0; font-size: 15px; }
.ap-footer__grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 40px; }
.ap-footer__logo { max-height: 46px; width: auto; margin-bottom: 20px; }
.ap-footer .ap-logo__text { color: #fff; display: block; margin-bottom: 16px; }
.ap-footer__h { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: 18px; }
.ap-footer__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ap-footer a { text-decoration: none; }
.ap-footer a:hover { color: #fff; }
.ap-footer .ap-contact-list__addr strong { color: #fff; }
.ap-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 64px; padding-top: 24px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }
.ap-footer__bottom p { margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
	.ap-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.ap-footer__grid { grid-template-columns: repeat(3, 1fr); }
	.ap-footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
	.ap-burger { display: block; }
	.ap-nav-wrap { position: fixed; inset: 76px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
	.ap-nav-wrap.is-open { transform: none; }
	body.ap-nav-open { overflow: hidden; }
	.ap-menu { flex-direction: column; gap: 0; }
	.ap-menu > li { border-bottom: 1px solid var(--line); }
	.ap-menu > li > a { padding: 16px 4px; font-size: 17px; }
	.ap-menu > li > .sub-menu { position: static; transform: none; opacity: 1; visibility: visible; box-shadow: none; border: 0; padding: 0 0 12px 8px; flex-direction: column; gap: 8px; display: none; min-width: 0; }
	.ap-menu > li.is-expanded > .sub-menu { display: flex; }
	.ap-menu > li:hover > .sub-menu { transform: none; }
	.ap-menu > .menu-item-has-children > a::after { float: right; margin-top: 8px; }
	.ap-menu > li.is-expanded > a::after { transform: rotate(225deg); }
	.ap-header__actions { flex-direction: column; align-items: stretch; margin-top: 24px; }
	.ap-header__actions .ap-btn { width: 100%; }
}

@media (max-width: 860px) {
	.ap-section { padding: 64px 0; }
	.ap-hero__grid, .ap-split, .ap-contact { grid-template-columns: 1fr; gap: 36px; }
	.ap-split--img-left .ap-split__media { order: 0; }
	.ap-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.ap-head { margin-bottom: 32px; }
}

@media (max-width: 600px) {
	:root { --gutter: 16px; }
	.ap-grid--2, .ap-grid--3, .ap-grid--4 { grid-template-columns: 1fr; }
	.ap-footer__grid { grid-template-columns: 1fr 1fr; }
	.ap-downloads__item { flex-direction: column; align-items: flex-start; }
	.ap-stats { grid-template-columns: 1fr 1fr; }
	.ap-btn { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
