/* AP Home Renovations LLC — shared styles
   Identity: black #141414 + metallic gold #D4AF37
   Mobile-first, system font stack, no external assets. */

:root {
  --navy: #141414;
  --navy-dark: #000000;
  --navy-light: #2B2B2B;
  --amber: #D4AF37;
  --amber-dark: #B8912A;
  --ink: #202020;
  --muted: #5C5C5C;
  --bg: #FFFFFF;
  --bg-soft: #F5F5F5;
  --line: #DEDEDE;
  --radius: 12px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; }

a { color: var(--navy-light); }

h1, h2, h3 {
  color: var(--navy);
  line-height: 1.2;
  margin: 0 0 .55em;
  font-weight: 800;
  letter-spacing: -.01em;
}
h1 { font-size: 2.15rem; }
h2 { font-size: 1.65rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.section { padding: 56px 0; }
.section.alt { background: var(--bg-soft); }
.section-head { max-width: 720px; margin-bottom: 32px; }
.section-head p { color: var(--muted); margin-bottom: 0; }
.eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .75rem;
  font-weight: 700;
  color: var(--amber-dark);
  margin-bottom: 10px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
  cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-amber {
  background: linear-gradient(135deg, #F1D27A 0%, var(--amber) 55%, var(--amber-dark) 100%);
  color: #000;
  box-shadow: 0 6px 18px rgba(212,175,55,.35);
}
.btn-amber:hover {
  background: linear-gradient(135deg, var(--amber) 0%, var(--amber-dark) 100%);
  color: #000;
  box-shadow: 0 8px 22px rgba(212,175,55,.45);
  transform: translateY(-1px);
}
.btn-outline { border-color: rgba(255,255,255,.65); color: #fff; background: transparent; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-light); }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
}
.header-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  padding-bottom: 12px;
  flex-wrap: wrap;
}
.logo {
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo .mark {
  background: var(--amber);
  color: var(--navy-dark);
  border-radius: 8px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 900;
  flex: none;
}
.logo small {
  display: block;
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #C4C4C4;
}
.main-nav { display: none; }
.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
}
.main-nav a {
  color: #EDEDED;
  text-decoration: none;
  font-weight: 600;
  font-size: .98rem;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--amber); }
.header-call {
  padding: 9px 18px;
  font-size: .95rem;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #E8E8E8;
  padding: 64px 0 72px;
  position: relative;
  overflow: hidden;
}
/* Floating logo backdrop — stays fixed on desktop while content scrolls over it */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("/images/logo.jpg") center 22% / cover no-repeat;
  opacity: .5;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 78%, transparent 99%);
  mask-image: linear-gradient(#000 78%, transparent 99%);
}
@media (min-width: 861px) {
  .hero::before { background-attachment: fixed; }
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 640px; }
.hero h1 .hl { color: var(--amber); }
.hero .lead { font-size: 1.13rem; max-width: 600px; color: #C9C9C9; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero-points {
  list-style: none;
  margin: 30px 0 0;
  padding: 22px 0 0;
  border-top: 1px solid rgba(255,255,255,.18);
  display: grid;
  gap: 10px;
  max-width: 640px;
}
.hero-points li { display: flex; gap: 10px; align-items: baseline; }
.hero-points svg { width: 17px; height: 17px; flex: none; position: relative; top: 3px; }

/* Hero / service imagery (illustrative) */
.hero-media {
  margin-top: 36px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
  position: relative;
  z-index: 1;
}
.hero-media img { width: 100%; height: auto; }
.service-media {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 30px;
}
.service-media img { width: 100%; height: auto; }

/* ---------- Photo slider ---------- */
.slider {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 30px;
  background: #000;
}
.slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  aspect-ratio: 4 / 3;
}
.slider-track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide figcaption {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(0,0,0,.72);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
}
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--amber);
  background: rgba(0,0,0,.65);
  color: var(--amber);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  gap: 7px;
  justify-content: center;
  z-index: 2;
}
.slider-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.85);
  background: rgba(255,255,255,.35);
  padding: 0;
  cursor: pointer;
}
.slider-dots button.active { background: var(--amber); border-color: var(--amber); }
.card .thumb {
  border-radius: 8px;
  overflow: hidden;
  margin: -6px -6px 8px;
}
.card .thumb img { width: 100%; height: auto; }

/* Inner page hero (shorter) */
.page-hero {
  background: linear-gradient(140deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #E8E8E8;
  padding: 48px 0 54px;
}
.page-hero h1 { color: #fff; max-width: 700px; }
.page-hero h1 .hl { color: var(--amber); }
.page-hero .lead { font-size: 1.1rem; max-width: 620px; color: #C9C9C9; margin-bottom: 0; }
.crumbs { font-size: .85rem; margin-bottom: 14px; color: #A8A8A8; }
.crumbs a { color: #C9C9C9; text-decoration: none; }
.crumbs a:hover { color: var(--amber); }

/* ---------- Cards ---------- */
.cards {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.card:hover { border-color: var(--amber); box-shadow: 0 10px 28px rgba(0,0,0,.10); transform: translateY(-2px); }
.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--bg-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 6px;
}
.card .icon svg { width: 27px; height: 27px; }
.card h3 { margin-bottom: 2px; }
.card p { color: var(--muted); margin-bottom: 6px; font-size: .98rem; }
.card .more { color: var(--amber-dark); font-weight: 700; font-size: .95rem; margin-top: auto; }

/* Feature list */
.features {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.feature {
  display: flex;
  gap: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.feature .icon {
  width: 48px; height: 48px; flex: none;
  border-radius: 12px;
  background: var(--navy);
  display: flex; align-items: center; justify-content: center;
}
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 4px; }
.feature p { color: var(--muted); margin: 0; font-size: .98rem; }

/* Task / checklist columns */
.task-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.task-box {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
}
.task-box h3 { display: flex; align-items: center; gap: 10px; }
.task-box h3 svg { width: 22px; height: 22px; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; align-items: baseline; }
.check-list svg { width: 16px; height: 16px; flex: none; position: relative; top: 2px; }

/* Process steps */
.steps {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  counter-reset: step;
}
.step {
  background: var(--navy);
  color: #E8E8E8;
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}
.step .num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--amber);
  color: var(--navy-dark);
  font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 14px;
  font-size: 1.05rem;
}
.step h3 { color: #fff; }
.step p { margin: 0; color: #C9C9C9; font-size: .98rem; }

/* Areas */
.areas-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.areas-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 600;
  color: var(--navy);
  font-size: .95rem;
}
.areas-list li.main { background: var(--navy); color: #fff; border-color: var(--navy); }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 12px;
  padding: 0 22px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--navy);
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--amber-dark);
  flex: none;
}
.faq details[open ] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

/* CTA band */
.cta-band {
  background: var(--navy);
  color: #E8E8E8;
  padding: 52px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #C9C9C9; max-width: 560px; margin: 0 auto 24px; }
.cta-band .hero-actions { justify-content: center; margin-top: 0; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.contact-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-card h3 { margin-bottom: 10px; }
.big-call {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--navy);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 6px 0 4px;
}
.big-call svg { width: 30px; height: 30px; flex: none; }
.contact-meta { color: var(--muted); font-size: .97rem; }
.contact-meta strong { color: var(--ink); }

form.estimate-form { display: grid; gap: 16px; }
.form-status {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--amber);
  border-radius: 8px;
  padding: 14px 18px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 18px;
}
.field label { display: block; font-weight: 700; color: var(--navy); margin-bottom: 6px; font-size: .95rem; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: #fff;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--amber);
  outline-offset: 1px;
  border-color: var(--amber);
}

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
.review-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-stars { color: var(--amber); font-size: 1.1rem; letter-spacing: 3px; }
.review-card .review-text { color: var(--ink); margin: 0; }
.review-meta { color: var(--muted); font-size: .9rem; margin: 0; margin-top: auto; }
.reviews-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
@media (min-width: 640px) {
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Star rating picker (review form) */
.stars-input { display: inline-flex; flex-direction: row-reverse; gap: 6px; }
.stars-input input {
  position: absolute;
  opacity: 0;
  width: auto;
  padding: 0;
  border: 0;
}
.stars-input label {
  display: inline-block;
  margin: 0;
  font-size: 2rem;
  font-weight: 400;
  line-height: 1;
  color: #C9C9C9;
  cursor: pointer;
}
.stars-input input:checked ~ label { color: var(--amber); }
.stars-input label:hover,
.stars-input label:hover ~ label { color: var(--amber); }

/* Two-column prose layout */
.prose-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
}
.prose p { color: var(--ink); }
.prose p.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #B5B5B5;
  padding: 48px 0 28px;
  font-size: .96rem;
}
.footer-grid {
  display: grid;
  gap: 30px;
  grid-template-columns: 1fr;
  margin-bottom: 34px;
}
.site-footer h3 {
  color: #fff;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #B5B5B5; text-decoration: none; }
.site-footer a:hover { color: var(--amber); }
.footer-brand .logo { margin-bottom: 12px; }
.footer-call {
  color: #fff;
  font-weight: 800;
  font-size: 1.22rem;
  text-decoration: none;
}
a.footer-call:hover { color: var(--amber); }
.site-footer .btn { margin-top: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.14);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  justify-content: space-between;
  font-size: .88rem;
  color: #8A8A8A;
}

/* ---------- Breakpoints ---------- */
@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .task-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 860px) {
  .main-nav { display: block; }
  h1 { font-size: 2.7rem; }
  h2 { font-size: 1.95rem; }
  .hero { padding: 84px 0 96px; }
  .section { padding: 76px 0; }
  .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.3fr .9fr .9fr 1.1fr; }
  .prose-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .hero-points { grid-template-columns: repeat(2, 1fr); gap: 12px 28px; }
}
