/*
Theme Name: AA King Construction
Theme URI: https://dapralab.com/
Author: DapraLab
Description: A lightweight, project-first WordPress theme for AA King Construction LLC.
Version: 0.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: aaking-construction
*/

:root {
  --ink: #13201c;
  --ink-soft: #33413c;
  --forest: #173f32;
  --forest-2: #225744;
  --copper: #c9783e;
  --copper-dark: #a85c2a;
  --sand: #f2eadc;
  --paper: #fbfaf7;
  --white: #ffffff;
  --line: #dcd9d1;
  --shadow: 0 18px 50px rgba(18, 32, 28, 0.11);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body.admin-bar .site-header { top: 32px; }

a { color: inherit; }

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

h1, h2, h3 {
  margin: 0 0 0.7em;
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

h1 { font-size: clamp(2.8rem, 7vw, 6rem); }
h2 { font-size: clamp(2.1rem, 4.5vw, 4rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 2rem); }
p { margin: 0 0 1.25rem; }

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

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--white);
  background: var(--forest);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--copper-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
  background: currentColor;
  content: "";
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--copper);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: #dc8b50;
  transform: translateY(-2px);
}

.button--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  background: transparent;
  color: var(--white);
}

.button--ghost:hover,
.button--ghost:focus-visible { background: rgba(255, 255, 255, 0.1); }

.utility-bar {
  padding: 7px 0;
  background: #0e2c23;
  color: rgba(255,255,255,0.78);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.utility-bar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
}

.utility-bar a { text-decoration: none; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 250, 247, 0.94);
  border-bottom: 1px solid rgba(19, 32, 28, 0.1);
  backdrop-filter: blur(14px);
}

.site-header__inner {
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-right: auto;
  color: var(--forest);
  text-decoration: none;
}

.brand__mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--copper);
  color: var(--forest);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand__name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.brand__descriptor {
  display: block;
  color: var(--ink-soft);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.custom-logo-link img { max-height: 54px; width: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-nav a:hover,
.site-nav a:focus-visible { color: var(--copper-dark); }

.header-call { white-space: nowrap; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(84px, 11vw, 150px) 0;
  background:
    linear-gradient(95deg, rgba(13, 43, 34, 0.98) 0%, rgba(19, 63, 50, 0.92) 55%, rgba(19, 63, 50, 0.65) 100%),
    linear-gradient(135deg, #245946, #142b23);
  color: var(--white);
}

.hero::after {
  position: absolute;
  right: -14vw;
  bottom: -58%;
  width: min(62vw, 790px);
  aspect-ratio: 1;
  border: 1px solid rgba(201, 120, 62, 0.36);
  border-radius: 50%;
  box-shadow: 0 0 0 62px rgba(201, 120, 62, 0.05), 0 0 0 124px rgba(201, 120, 62, 0.035);
  content: "";
}

.hero__content { position: relative; z-index: 1; max-width: 900px; }
.hero .eyebrow { color: #e8a777; }
.hero h1 { max-width: 850px; }
.hero__lead { max-width: 690px; color: rgba(255,255,255,0.79); font-size: clamp(1.07rem, 2vw, 1.28rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 34px; }

.proof-strip {
  position: relative;
  z-index: 2;
  margin-top: -36px;
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.proof-item { padding: 27px 30px; border-right: 1px solid var(--line); }
.proof-item:last-child { border: 0; }
.proof-item strong { display: block; color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.28rem; }
.proof-item span { color: var(--ink-soft); font-size: 0.86rem; }

.section { padding: clamp(78px, 10vw, 132px) 0; }
.section--sand { background: var(--sand); }
.section--dark { background: var(--ink); color: var(--white); }
.section__head { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 50px; align-items: end; margin-bottom: 50px; }
.section__head p { max-width: 590px; margin-left: auto; color: var(--ink-soft); }
.section--dark .section__head p { color: rgba(255,255,255,0.68); }

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

.division-card {
  position: relative;
  min-height: 400px;
  padding: 34px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 10px 32px rgba(18, 32, 28, 0.06);
}

.division-card::before {
  display: block;
  width: 48px;
  height: 5px;
  margin-bottom: 80px;
  background: var(--copper);
  content: "";
}

.division-card__number {
  position: absolute;
  top: 23px;
  right: 28px;
  color: #e7e4dc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 4.7rem;
  line-height: 1;
}

.division-card ul { margin: 20px 0 0; padding: 0; list-style: none; color: var(--ink-soft); }
.division-card li { padding: 7px 0; border-bottom: 1px solid #ece9e2; }

.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.14);
}

.audience {
  min-height: 220px;
  padding: 32px;
  background: var(--ink);
}

.audience span { color: var(--copper); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.14em; }
.audience p { color: rgba(255,255,255,0.64); }

.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: process; }
.process-step { counter-increment: process; }
.process-step::before {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--copper);
  border-radius: 50%;
  color: var(--copper-dark);
  content: counter(process, decimal-leading-zero);
  font-size: 0.74rem;
  font-weight: 800;
}
.process-step p { color: var(--ink-soft); }

.project-promise {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0;
  overflow: hidden;
  border-radius: calc(var(--radius) + 4px);
  background: var(--white);
  box-shadow: var(--shadow);
}

.project-promise__visual {
  min-height: 470px;
  background:
    linear-gradient(145deg, rgba(23, 63, 50, 0.06), rgba(23, 63, 50, 0.72)),
    repeating-linear-gradient(135deg, #d8d1c4 0, #d8d1c4 22px, #cfc6b7 22px, #cfc6b7 44px);
}

.project-promise__copy { padding: clamp(38px, 6vw, 72px); }
.project-promise__copy p { color: var(--ink-soft); }
.check-list { margin: 26px 0 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); }
.check-list li::before { position: absolute; left: 0; color: var(--copper-dark); content: "✓"; font-weight: 900; }

.cta-band {
  padding: clamp(55px, 7vw, 84px) 0;
  background: var(--forest);
  color: var(--white);
}

.cta-band__inner { display: flex; align-items: center; gap: 34px; justify-content: space-between; }
.cta-band h2 { max-width: 720px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.5rem); }
.cta-band .button { flex: none; }

.site-main--page { min-height: 60vh; }
.page-hero { padding: 88px 0 52px; background: var(--sand); }
.page-content { width: min(calc(100% - 36px), 820px); margin: 0 auto; padding: 64px 0 100px; }
.page-content > *:first-child { margin-top: 0; }
.page-content a { color: var(--copper-dark); }

.site-footer { padding: 68px 0 24px; background: #0e201a; color: rgba(255,255,255,0.72); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 0.75fr 0.75fr; gap: 50px; }
.site-footer .brand { color: var(--white); }
.site-footer .brand__descriptor { color: rgba(255,255,255,0.58); }
.site-footer h3 { color: var(--white); font-family: inherit; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 7px 0; }
.site-footer a { text-decoration: none; }
.site-footer a:hover,
.site-footer a:focus-visible { color: var(--white); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; margin-top: 50px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); font-size: 0.75rem; }

@media (max-width: 980px) {
  .site-nav { display: none; }
  .section__head,
  .project-promise { grid-template-columns: 1fr; }
  .section__head p { margin-left: 0; }
  .division-grid { grid-template-columns: 1fr; }
  .division-card { min-height: 0; }
  .division-card::before { margin-bottom: 45px; }
  .audience-grid,
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .project-promise__visual { min-height: 330px; }
}

@media (max-width: 680px) {
  body.admin-bar .site-header { top: 46px; }
  .utility-bar__inner { justify-content: center; text-align: center; }
  .utility-bar__inner span:nth-child(2) { display: none; }
  .site-header__inner { min-height: 70px; }
  .header-call { padding: 10px 14px; font-size: 0.73rem; }
  .brand__descriptor { display: none; }
  .hero { padding: 72px 0 100px; }
  .proof-strip__grid,
  .audience-grid,
  .process-grid,
  .footer-grid { grid-template-columns: 1fr; }
  .proof-item { border-right: 0; border-bottom: 1px solid var(--line); }
  .audience { min-height: 0; }
  .section { padding: 72px 0; }
  .cta-band__inner { align-items: flex-start; flex-direction: column; }
  .footer-grid { gap: 32px; }
}

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