/* Kingdom Construction — navy/gold general-contractor site with a before/after
   project gallery and a community section.
   Palette: deep navy / warm gold / ivory. Type: bold modern sans, tight tracking. */

:root {
  --navy: #152040;
  --navy-2: #1F2E57;
  --gold: #C99A3C;       /* icons, borders, backgrounds paired with navy/ivory text — not small text on light bg */
  --gold-dark: #6B4C1B;   /* safe as small text/links on light backgrounds */
  --ivory: #FAF6EC;
  --ivory-2: #F4EAD2;
  --line: #E3D6B6;
  --font-head: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--ivory);
  line-height: 1.6;
  font-size: 16px;
}
img { max-width: 100%; display: block; }
a { color: var(--gold-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 2px;
}
code { background: var(--ivory-2); padding: 0.1rem 0.35rem; border-radius: 3px; font-size: 0.92em; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 1000;
  background: var(--navy); color: var(--ivory); padding: 0.75rem 1rem;
}
.skip-link:focus { left: 0.5rem; top: 0.5rem; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0 0 0.6rem;
  color: var(--navy);
}
h1 { font-size: clamp(1.8rem, 5.8vw, 2.9rem); }
h2 { font-size: clamp(1.45rem, 4.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
h4 { font-size: 1.02rem; }
p { margin: 0 0 1rem; }

.section-inner { max-width: 1120px; margin: 0 auto; padding: 3rem 1.25rem; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); border-bottom: 3px solid var(--gold);
}
.header-inner {
  max-width: 1120px; margin: 0 auto; padding: 0.6rem 0.85rem;
  display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 0.55rem; text-decoration: none; color: var(--ivory); min-width: 0; }
.brand-text { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; color: var(--ivory); font-size: 0.95rem; }
.brand-text span { font-weight: 400; opacity: 1; color: #CBD3E3; }
.header-actions { display: flex; align-items: center; gap: 0.5rem; }
.tel-btn {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--gold); color: var(--navy); text-decoration: none;
  padding: 0.5rem 0.55rem; border-radius: 4px; font-weight: 700; font-size: 0.8rem;
  white-space: nowrap;
}
.tel-btn .tel-text { display: none; }
@media (min-width: 400px) { .tel-btn .tel-text { display: inline; } }
.tel-btn svg { flex: none; }

.nav-toggle { position: relative; }
.nav-toggle summary {
  list-style: none; cursor: pointer; color: var(--ivory); border: 1px solid var(--ivory);
  border-radius: 4px; padding: 0.5rem 0.7rem; font-weight: 700; font-size: 0.85rem;
}
.nav-toggle summary::-webkit-details-marker { display: none; }
.nav-toggle[open] summary { background: var(--ivory); color: var(--navy); }
.nav-toggle nav {
  position: absolute; right: 0; top: calc(100% + 0.4rem); background: var(--navy);
  border: 1px solid var(--gold); border-radius: 6px; padding: 0.4rem; display: flex;
  flex-direction: column; min-width: 180px; box-shadow: 0 10px 24px rgba(0,0,0,0.35);
}
.nav-toggle nav a {
  color: var(--ivory); text-decoration: none; padding: 0.55rem 0.6rem; border-radius: 4px; font-weight: 600;
}
.nav-toggle nav a:hover, .nav-toggle nav a:focus-visible { background: var(--gold); color: var(--navy); }

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 100%); border-bottom: 1px solid var(--line); }
.hero-inner { padding-top: 2.6rem; padding-bottom: 2.8rem; }
.eyebrow {
  font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.09em;
  font-size: 0.8rem; font-weight: 700; color: var(--gold-dark); margin-bottom: 0.7rem;
}
.hero-tagline { font-size: 1.06rem; max-width: 60ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.3rem; }
.btn {
  display: inline-block; padding: 0.85rem 1.3rem; border-radius: 4px; font-weight: 700;
  text-decoration: none; font-size: 1rem; border: 2px solid var(--navy); font-family: var(--font-body);
}
.btn-primary { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--navy-2); }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--ivory); }

/* ---------- projects ---------- */
.projects { background: var(--ivory); }
.eyebrow-alt { color: var(--gold-dark); }
.section-lede { max-width: 72ch; font-size: 1.02rem; color: #3A3020; }

.grid { display: grid; gap: 1.6rem; }
.grid-projects { grid-template-columns: 1fr; margin-top: 1.8rem; }
@media (min-width: 760px) { .grid-projects { grid-template-columns: 1fr 1fr; } }

.project-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.3rem; }
.project-tag {
  display: inline-block; background: var(--navy); color: var(--ivory); font-weight: 700; font-size: 0.72rem;
  text-transform: uppercase; letter-spacing: 0.05em; padding: 0.2rem 0.55rem; border-radius: 3px; margin-bottom: 0.5rem;
}
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin: 0.6rem 0 0.8rem; }
.ba-pair figure { margin: 0; }
.ba-pair img { border: 1px solid var(--line); border-radius: 4px; }
.ba-pair figcaption {
  text-align: center; font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold-dark); margin-top: 0.3rem;
}
.project-card > p { margin: 0; font-size: 0.94rem; color: #3A3020; }

/* ---------- services ---------- */
.services { background: var(--ivory-2); }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 1.4rem; }
.card-icon { width: 42px; height: 42px; margin-bottom: 0.7rem; }
.card p { margin: 0; color: #3A3020; font-size: 0.96rem; }

/* ---------- community ---------- */
.community { background: var(--navy); color: var(--ivory); }
.community h2 { color: var(--ivory); }
.eyebrow-alt-light { color: #E3C87A; font-family: var(--font-head); text-transform: uppercase; letter-spacing: 0.09em; font-size: 0.8rem; font-weight: 700; margin-bottom: 0.7rem; }
.community-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; margin-top: 1.3rem; }
@media (min-width: 700px) { .community-grid { grid-template-columns: 1fr 1fr; } }
.community-card { border-left: 3px solid var(--gold); padding-left: 1.1rem; }
.community-card h3 { color: var(--ivory); }
.community-card p { margin: 0; color: #CBD3E3; font-size: 0.96rem; }

/* ---------- service area ---------- */
.service-area { background: var(--ivory); }
.maps-link { display: inline-block; margin: 0.2rem 0 0.9rem; font-weight: 700; color: var(--gold-dark); }
.hours { font-weight: 600; color: #3A3020; margin: 0; }

/* ---------- quote form ---------- */
.quote { background: var(--ivory-2); }
.quote-form { max-width: 520px; display: flex; flex-direction: column; gap: 1rem; margin-top: 1.2rem; }
.field { display: flex; flex-direction: column; gap: 0.35rem; }
.field label { font-weight: 700; font-size: 0.92rem; }
.field input, .field textarea {
  font: inherit; padding: 0.7rem 0.8rem; border: 1px solid #C9BB94; border-radius: 5px; background: #fff; color: var(--navy);
}
.form-alt { margin-top: 1rem; font-size: 0.92rem; color: #3A3020; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--ivory); }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 1.6rem; padding-top: 2.4rem; padding-bottom: 2.4rem; }
@media (min-width: 640px) { .footer-inner { grid-template-columns: 1fr 1fr; } }
.footer-inner p { margin: 0 0 0.4rem; color: #CBD3E3; font-size: 0.92rem; }
.footer-brand { font-family: var(--font-head); font-weight: 800; color: var(--ivory); font-size: 1.05rem; }
.footer-inner a { color: #E3C87A; }
.footer-fine { font-size: 0.82rem; color: #9AA4BE; }
.demo { font-size: 12.5px; opacity: .7; margin-top: 10px; }
