/* ============ Ace Home Solutions — Base ============ */
:root {
  --navy: #032040;
  --navy-2: #052748;
  --navy-deep: #021631;
  --navy-line: #15375f;
  --orange: #b94100;
  --orange-2: #913200;
  --orange-soft: #FFE8D6;
  --ink: #032040;
  --text: #1a2a44;
  --muted: #5a6a82;
  --line: #e5e8ee;
  --bg: #ffffff;
  --bg-tint: #f4efed;
  --bg-soft: #f4f6fa;
  --shadow-sm: 0 1px 2px rgba(15, 42, 82, 0.06), 0 2px 6px rgba(15, 42, 82, 0.04);
  --shadow-md: 0 4px 14px rgba(15, 42, 82, 0.08), 0 12px 28px rgba(15, 42, 82, 0.05);
  --shadow-lg: 0 14px 40px rgba(15, 42, 82, 0.18);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --container: 1280px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-size: 16px;
  line-height: 1.55;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.08;
  font-weight: 700;
  text-wrap: balance;
}

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

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn:active { transform: translateY(1px); }
.btn:disabled,
.btn-text:disabled {
  opacity: .65;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 6px 14px rgba(185, 65, 0, 0.28);
}
.btn-primary:hover {
  background: var(--orange-2);
  box-shadow: 0 10px 22px rgba(185, 65, 0, 0.34);
}
.btn-ghost {
  background: #fff;
  color: var(--navy);
  border-color: #d6dbe5;
}
.btn-ghost:hover {
  border-color: var(--navy);
}
.btn-dark {
  background: #fff;
  color: var(--navy);
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ============ Header ============ */
.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.hdr.scrolled {
  box-shadow: 0 4px 14px rgba(15, 42, 82, 0.06);
  border-color: var(--line);
}
.hdr-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 56px; width: auto; max-width: 280px; object-fit: contain; }

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-link {
  position: relative;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
  border-radius: 6px;
}
.nav-link:hover { color: var(--orange); }
.nav-link.active::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
}
.nav-link .caret { margin-left: 4px; transition: transform .2s ease; display: inline-block; }
.nav-link.open .caret { transform: rotate(180deg); }

.dropdown-wrap { position: relative; }
.dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: -10px;
  min-width: 260px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  padding: 10px;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .15s ease, transform .15s ease;
}
.dropdown.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}
.dropdown a:hover { background: var(--bg-tint); color: var(--orange); }
.dropdown a .ico { color: var(--orange); display: inline-flex; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.menu-toggle:hover { border-color: var(--navy); }

/* ============ Sections ============ */
section { padding: 60px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 800;
}
.section-head .eyebrow { margin-bottom: 10px; }
.eyebrow {
  display: inline-block;
  color: var(--orange);
  font-weight: 700;
  letter-spacing: 0.16em;
  font-size: 12px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

/* ============ Footer ============ */
.ftr {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 48px 0 0;
}
.ftr-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.3fr;
  gap: 32px;
  padding-bottom: 36px;
}
.ftr .brand img { height: 56px; max-width: 240px; }
.ftr .brand img.ftr-logo-color { filter: none; }
.ftr-col h5 {
  color: #fff;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin: 0 0 18px;
}
.ftr-col a, .ftr-col li, .ftr-col p {
  font-size: 14px;
  line-height: 1.9;
  color: rgba(255,255,255,0.72);
}
.ftr-col a:hover { color: var(--orange); }
.ftr-col ul { list-style: none; padding: 0; margin: 0; }
.ftr-contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}
.ftr-contact .ico { color: var(--orange); flex-shrink: 0; margin-top: 4px; }
.ftr-cta p { margin: 0 0 16px; }
.socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s ease, border-color .2s ease;
}
.socials a:hover { background: var(--orange); border-color: var(--orange); }
.ftr-tagline { margin: 12px 0 0; font-size: 13px; color: rgba(255,255,255,0.6); max-width: 240px; }

.ftr-bot {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,0.55);
}
.ftr-bot a:hover { color: var(--orange); }

/* ============ Quote Modal ============ */
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 40, 0.55);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.modal-back.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: 16px;
  max-width: 580px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .25s ease;
}
.modal-back.open .modal { transform: translateY(0); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 24px 28px 12px;
}
.modal-head h3 { font-size: 24px; font-weight: 800; margin-bottom: 6px; }
.modal-head p { color: var(--muted); margin: 0; font-size: 14px; }
.modal-close {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  flex-shrink: 0;
}
.modal-close:hover { background: var(--bg-tint); }
.steps {
  display: flex;
  gap: 6px;
  padding: 0 28px 16px;
}
.steps .step {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: var(--line);
  transition: background .25s ease;
}
.steps .step.done { background: var(--orange); }
.modal-body { padding: 8px 28px 28px; }
.modal-body label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.modal-body input, .modal-body textarea, .modal-body select {
  width: 100%;
  padding: 13px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.modal-body input:focus, .modal-body textarea:focus, .modal-body select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(238,107,42,0.15);
}
.modal-body .err { color: #cc4040; font-size: 13px; margin-top: 6px; }
.modal-body .row { margin-bottom: 18px; }
.modal-body .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-body .pill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.modal-body .pill {
  padding: 14px 10px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: border-color .15s ease, background .15s ease, color .15s ease;
}
.modal-body .pill .ico { color: var(--orange); }
.modal-body .pill:hover { border-color: var(--orange); }
.modal-body .pill.active {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.modal-foot {
  padding: 16px 28px 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.modal-foot .err { flex: 1 0 100%; color: #cc4040; font-size: 13px; }
.modal-foot .btn-text {
  background: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 0;
}
.modal-foot .btn-text:hover { color: var(--navy); }

.success {
  padding: 36px 28px 32px;
  text-align: center;
}
.success .ok {
  width: 64px; height: 64px;
  margin: 0 auto 18px;
  background: var(--orange-soft);
  color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.success h3 { font-size: 24px; margin-bottom: 8px; }
.success p { color: var(--muted); margin: 0 0 20px; }

/* ============ Lightbox ============ */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(10,20,40,0.88);
  display: flex;
  align-items: center; justify-content: center;
  z-index: 110;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox .lb-img {
  width: min(900px, 90vw);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
}
.lightbox .lb-img .ph { width: 100%; height: 100%; }
.lightbox .lb-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0,0,0,0.6));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
}
.lightbox .lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px; height: 48px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(8px);
}
.lightbox .lb-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox .lb-prev { left: 24px; }
.lightbox .lb-next { right: 24px; }
.lightbox .lb-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}

/* ============ Mobile ============ */
.mobile-menu {
  position: fixed;
  top: 0; right: 0;
  bottom: 0;
  width: min(340px, 90vw);
  background: #fff;
  z-index: 90;
  transform: translateX(100%);
  transition: transform .25s ease;
  box-shadow: var(--shadow-lg);
  padding: 80px 24px 24px;
  overflow: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 1px solid var(--line);
}
.mobile-menu a:hover { color: var(--orange); }
.mobile-menu .btn { margin-top: 18px; width: 100%; justify-content: center; }

.mobile-back {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.mobile-back.open { opacity: 1; pointer-events: auto; }

/* ============ Inner pages — shared ============ */
.inner-page { padding-top: 80px; }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 72px 0 56px;
  text-align: center;
}
.page-hero .eyebrow { color: #fffefd; }
.page-hero h1 { margin: 8px 0 0; color: #fff; font-size: clamp(28px, 5vw, 48px); }
.page-hero .lede {
  color: rgba(255,255,255,.75);
  max-width: 640px;
  margin: 16px auto 0;
  font-size: 1.1rem;
  line-height: 1.7;
}
.page-hero .hero-cta { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.breadcrumb-bar {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  padding: 10px 0;
  font-size: .85rem;
  color: var(--muted);
}
.breadcrumb-bar a { color: var(--navy); text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--orange); }
.breadcrumb-bar span { margin: 0 6px; }

.page-section { padding: 72px 0; }
.page-section.alt { background: var(--bg-soft); }
.page-section .section-head { margin-bottom: 40px; }

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.content-grid img { width: 100%; border-radius: 12px; }

.feature-list { list-style: none; padding: 0; margin: 24px 0 0; }
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list .ico { color: var(--orange); flex-shrink: 0; margin-top: 2px; }
.feature-list strong { display: block; color: var(--navy); margin-bottom: 2px; }
.feature-list p { margin: 0; color: var(--muted); font-size: .95rem; }

.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
.process-step {
  text-align: center;
  padding: 32px 20px;
  background: #fff;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
}
.process-step .step-num {
  width: 48px;
  height: 48px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.process-step h4 { margin: 0 0 8px; color: var(--navy); font-size: 1rem; }
.process-step p { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.6; }

.faq-list { margin-top: 40px; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  padding: 20px 0;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 1.4rem; color: var(--orange); flex-shrink: 0; }
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding: 0 0 20px; color: var(--muted); line-height: 1.75; margin: 0; }

.cta-band {
  background: var(--orange);
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; margin: 0 0 16px; }
.cta-band p { color: rgba(255,255,255,.85); margin: 0 0 32px; font-size: 1.1rem; }
.cta-band .btn-white {
  background: #fff;
  color: var(--orange);
  border: none;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: opacity .15s;
}
.cta-band .btn-white:hover { opacity: .9; }

/* ============ Placeholder paintings ============ */
.ph {
  background-color: #dde1ea;
  background-image: linear-gradient(135deg, rgba(255,255,255,0.5) 25%, transparent 25%, transparent 50%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0.5) 75%, transparent 75%, transparent);
  background-size: 16px 16px;
  position: relative;
}
.ph[data-tone="floor"] { background-color: #c69874; background-image: repeating-linear-gradient(90deg, rgba(0,0,0,0.06) 0 2px, transparent 2px 22px), linear-gradient(180deg, #d4a883 0%, #a87a52 100%); background-size: auto, auto; }
.ph[data-tone="paint"] { background-color: #8aa9c9; background-image: linear-gradient(180deg, #b6c8d9 0%, #6e8fb0 100%); }
.ph[data-tone="kitchen"] { background-color: #e8e4dd; background-image: linear-gradient(180deg, #f2efe9 0%, #d6cfc4 100%); }
.ph[data-tone="window"] { background-color: #cfe1d8; background-image: linear-gradient(180deg, #e6efe9 0%, #a7c3b6 100%); }
.ph[data-tone="door"] { background-color: #2a4a78; background-image: linear-gradient(180deg, #3a5d8f 0%, #1b3358 100%); }
.ph[data-tone="bath"] { background-color: #d8d2c4; background-image: linear-gradient(180deg, #e3ddce 0%, #b8b0a0 100%); }
.ph[data-tone="ext"] { background-color: #5b4a3a; background-image: linear-gradient(180deg, #7a6452 0%, #3a2d22 100%); }
.ph .ph-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ============ Responsive — shared ============ */
@media (max-width: 1100px) {
  .ftr-grid { grid-template-columns: 1fr 1fr 1fr; }
  .ftr-cta { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .content-grid { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 820px) {
  .nav, .header-cta { display: none; }
  .menu-toggle { display: flex; }
  .ftr-grid { grid-template-columns: 1fr 1fr; }
  .ftr-cta { grid-column: 1 / -1; }
  section { padding: 60px 0; }
}
@media (max-width: 600px) {
  .process-steps { grid-template-columns: 1fr 1fr; }
  .modal-body .pill-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .container { padding: 0 20px; }
  .ftr-grid { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .process-steps { grid-template-columns: 1fr; }
}
