/* ==========================================================================
   Majestic Renovations — shared interior page stylesheet
   Design tokens mirror the homepage exactly (Cormorant Garamond / Outfit,
   gold #B8922A, warm neutral ground).
   ========================================================================== */

:root {
  --white: #FFFFFF;
  --off-white: #F9F7F4;
  --warm-gray: #F2EFE9;
  --mid-gray: #E4E0D8;
  --stone: #B8B0A2;
  --charcoal: #2C2C2C;
  --dark: #1A1A1A;
  --black: #111111;
  --gold: #B8922A;
  --gold-light: #D4AB48;
  --gold-pale: #EDD98A;
  --text-dark: #1A1A1A;
  --text-mid: #5A5650;
  --text-light: #8A857E;
  --font-display: 'Cormorant Garamond', serif;
  --font-body: 'Outfit', sans-serif;
  --nav-h: 100px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--warm-gray); }
::-webkit-scrollbar-thumb { background: var(--gold); }

/* ---------- NAV ---------- */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: var(--nav-h); background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  display: flex; align-items: center; padding: 0 48px;
  transition: border-color 0.3s, box-shadow 0.3s;
}
#navbar.scrolled { border-color: var(--mid-gray); box-shadow: 0 2px 24px rgba(0,0,0,0.06); }
.nav-logo img { height: 44px; width: auto; max-width: 160px; object-fit: contain; object-position: left center; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0 auto; }
.nav-links a { font-size: 11px; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-mid); transition: color 0.2s; }
.nav-links a:hover { color: var(--text-dark); }
.nav-links a.is-current { color: var(--gold); }
.nav-right { display: flex; align-items: center; gap: 20px; }
.nav-phone { font-size: 13px; font-weight: 500; color: var(--text-dark); letter-spacing: 0.04em; }
.nav-cta { background: var(--charcoal); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 12px 28px; transition: background 0.25s; white-space: nowrap; }
.nav-cta:hover { background: var(--black); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { display: block; width: 22px; height: 1.5px; background: var(--text-dark); }

/* ---------- MOBILE MENU ---------- */
.mobile-overlay { display: none; position: fixed; inset: 0; z-index: 199; background: var(--white); flex-direction: column; align-items: center; justify-content: center; gap: 28px; overflow-y: auto; padding: 80px 24px; }
.mobile-overlay.open { display: flex; }
.mobile-overlay a { font-family: var(--font-display); font-size: 30px; font-weight: 400; color: var(--text-dark); }
.mobile-overlay a:hover { color: var(--gold); }
.mobile-close { position: absolute; top: 28px; right: 36px; font-size: 24px; cursor: pointer; background: none; border: none; color: var(--text-light); }
.mobile-phone { font-size: 16px; font-weight: 500; color: var(--gold); margin-top: 8px; }

/* ---------- SHARED PRIMITIVES ---------- */
.section-pad { padding: 96px 80px; }
.wrap { max-width: 1180px; margin: 0 auto; }
.wrap-narrow { max-width: 880px; margin: 0 auto; }
.eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 32px; height: 1px; background: var(--gold); }
.eyebrow.centered { justify-content: center; }
.eyebrow.centered::before { display: none; }
.section-h2 { font-family: var(--font-display); font-size: clamp(26px, 5vw, 46px); font-weight: 300; line-height: 1.15; color: var(--text-dark); }
.section-h2 em { font-style: italic; }
.section-sub { font-size: 15px; line-height: 1.85; color: var(--text-mid); font-weight: 300; }

.btn-gold { display: inline-block; background: var(--gold); color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 17px 42px; transition: background 0.25s; }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline-dark { display: inline-block; background: transparent; color: var(--text-dark); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; padding: 16px 40px; border: 1px solid var(--charcoal); transition: background 0.25s, color 0.25s; }
.btn-outline-dark:hover { background: var(--charcoal); color: var(--white); }
.btn-light { display: inline-block; background: var(--white); color: var(--text-dark); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 16px 36px; transition: background 0.25s; }
.btn-light:hover { background: var(--off-white); }
.btn-outline-light { display: inline-block; background: transparent; color: var(--white); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; padding: 16px 36px; border: 1px solid rgba(255,255,255,0.5); transition: border-color 0.25s; }
.btn-outline-light:hover { border-color: var(--white); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- PAGE HEADER ---------- */
.page-header {
  padding: calc(var(--nav-h) + 76px) 80px 76px;
  background: var(--off-white);
  border-bottom: 1px solid var(--mid-gray);
  position: relative;
}
.page-header.with-image { background: var(--dark); border-bottom: none; }
.page-header.with-image .ph-bg { position: absolute; inset: 0; overflow: hidden; }
.page-header.with-image .ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.page-header.with-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17,17,17,0.55) 0%, rgba(17,17,17,0.78) 100%); }
.page-header.with-image .ph-inner { position: relative; z-index: 2; }
.page-header.with-image h1, .page-header.with-image .ph-lede { color: var(--white); }
.page-header.with-image .breadcrumb, .page-header.with-image .breadcrumb a { color: rgba(255,255,255,0.62); }
.page-header.with-image .breadcrumb a:hover { color: var(--gold-pale); }
.page-header.with-image .eyebrow { color: var(--gold-pale); }
.page-header.with-image .eyebrow::before { background: var(--gold-pale); }

.ph-inner { max-width: 1180px; margin: 0 auto; }
.breadcrumb { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 22px; }
.breadcrumb a { color: var(--text-mid); transition: color 0.2s; }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--text-light); }
.page-header h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(32px, 6vw, 60px); line-height: 1.1;
  color: var(--text-dark); max-width: 17ch;
}
.page-header h1 em { font-style: italic; }
.ph-lede { margin-top: 20px; max-width: 62ch; font-size: 16px; line-height: 1.85; font-weight: 300; color: var(--text-mid); }
.ph-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- PROSE / INTRO ---------- */
.sec { padding: 92px 80px; }
.sec.alt { background: var(--off-white); }
.sec.dark { background: var(--dark); }
.sec.dark .section-h2, .sec.dark p { color: var(--white); }
.sec-head { max-width: 780px; }
.sec-head.centered { margin: 0 auto; text-align: center; }
.sec-head .section-h2 { margin-bottom: 18px; }

.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; max-width: 1180px; margin: 0 auto; }
.split.reverse { direction: rtl; }
.split.reverse > * { direction: ltr; }
.split img { width: 100%; height: 100%; max-height: 520px; object-fit: cover; }
.prose p { font-size: 15.5px; line-height: 1.9; color: var(--text-mid); font-weight: 300; margin-bottom: 17px; }
.prose p:last-child { margin-bottom: 0; }
.prose strong { font-weight: 600; color: var(--text-dark); }
.prose em { font-style: italic; }
.prose a { color: var(--gold); font-weight: 500; border-bottom: 1px solid rgba(184,146,42,0.3); transition: border-color 0.2s; }
.prose a:hover { border-color: var(--gold); }
.prose h3 { font-family: var(--font-display); font-size: 27px; font-weight: 400; margin: 34px 0 14px; color: var(--text-dark); }
.prose ul { margin: 0 0 18px 20px; }
.prose li { font-size: 15.5px; line-height: 1.85; color: var(--text-mid); font-weight: 300; margin-bottom: 9px; }

/* pull-quote / key callout */
.callout {
  background: var(--white); border: 1px solid var(--mid-gray);
  border-left: 3px solid var(--gold);
  padding: 30px 34px; margin: 32px 0; max-width: 900px;
}
.sec.alt .callout { background: var(--white); }
.callout p { font-size: 15.5px; line-height: 1.85; color: var(--text-mid); font-weight: 300; margin-bottom: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout-label { font-size: 10px; font-weight: 600; letter-spacing: 0.26em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }

/* ---------- CARD GRID ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; max-width: 1180px; margin: 44px auto 0; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--white); border: 1px solid var(--mid-gray);
  padding: 32px 30px; transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.sec.alt .card { background: var(--white); }
.card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: 0 12px 34px rgba(0,0,0,0.05); }
.card-num { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 14px; display: block; }
.card h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; line-height: 1.25; margin-bottom: 12px; color: var(--text-dark); }
.card p { font-size: 14.5px; line-height: 1.8; color: var(--text-mid); font-weight: 300; }

/* ---------- PROCESS STEPS ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; max-width: 1180px; margin: 46px auto 0; border-top: 1px solid var(--mid-gray); border-left: 1px solid var(--mid-gray); }
.step { padding: 34px 32px; border-right: 1px solid var(--mid-gray); border-bottom: 1px solid var(--mid-gray); background: var(--white); }
.step .num { font-family: var(--font-display); font-size: 40px; font-weight: 300; color: var(--gold-pale); line-height: 1; margin-bottom: 14px; }
.step h3 { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; color: var(--text-dark); }
.step p { font-size: 14.5px; line-height: 1.8; color: var(--text-mid); font-weight: 300; }

/* ---------- COST TABLE ---------- */
.table-wrap { max-width: 1180px; margin: 40px auto 0; overflow-x: auto; border: 1px solid var(--mid-gray); background: var(--white); }
table.costs { width: 100%; border-collapse: collapse; min-width: 660px; }
table.costs thead th {
  background: var(--charcoal); color: var(--white);
  font-size: 10px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 15px 18px; text-align: left;
}
table.costs td { padding: 15px 18px; border-bottom: 1px solid var(--mid-gray); font-size: 14.5px; color: var(--text-mid); font-weight: 300; line-height: 1.7; vertical-align: top; }
table.costs tbody tr:last-child td { border-bottom: none; }
table.costs td.item { font-weight: 500; color: var(--text-dark); }
table.costs td.price { color: var(--gold); font-weight: 600; white-space: nowrap; }
.table-note { max-width: 1180px; margin: 18px auto 0; font-size: 13px; line-height: 1.8; color: var(--text-light); font-weight: 300; }
.table-note a { color: var(--gold); font-weight: 500; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 880px; margin: 42px auto 0; border-top: 1px solid var(--mid-gray); }
.faq-item { border-bottom: 1px solid var(--mid-gray); }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; position: relative;
  font-size: 16px; font-weight: 500; color: var(--text-dark); line-height: 1.5;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  font-size: 22px; font-weight: 300; color: var(--gold); transition: transform 0.25s;
}
.faq-item[open] summary::after { content: '\2212'; }
.faq-item summary:hover { color: var(--gold); }
.faq-body { padding: 0 44px 26px 0; }
.faq-body p { font-size: 15px; line-height: 1.9; color: var(--text-mid); font-weight: 300; margin-bottom: 14px; }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body a { color: var(--gold); font-weight: 500; }

/* ---------- LINK GRIDS (internal linking) ---------- */
.link-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 1180px; margin: 40px auto 0; }
.link-tile {
  display: block; background: var(--white); border: 1px solid var(--mid-gray);
  padding: 22px 24px; transition: border-color 0.25s, background 0.25s;
}
.link-tile:hover { border-color: var(--gold); background: var(--off-white); }
.link-tile .lt-name { font-size: 15px; font-weight: 500; color: var(--text-dark); display: block; margin-bottom: 6px; line-height: 1.4; }
.link-tile .lt-arrow { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.inline-links { max-width: 1180px; margin: 30px auto 0; font-size: 14px; line-height: 2; color: var(--text-mid); font-weight: 300; text-align: center; }
.inline-links a { color: var(--gold); font-weight: 500; }

/* area pills */
.pills { display: flex; flex-wrap: wrap; gap: 9px; max-width: 1180px; margin: 30px auto 0; align-items: center; justify-content: center; }
.pill { font-size: 12px; letter-spacing: 0.05em; color: var(--text-mid); border: 1px solid var(--mid-gray); background: var(--white); padding: 8px 16px; border-radius: 100px; transition: border-color 0.2s, color 0.2s; }
a.pill:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- GALLERY STRIP ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 1180px; margin: 44px auto 0; }
.gallery figure { position: relative; overflow: hidden; aspect-ratio: 4/3; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gallery figure:hover img { transform: scale(1.05); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 18px 14px;
  background: linear-gradient(180deg, transparent, rgba(17,17,17,0.82));
  color: var(--white); font-size: 12px; letter-spacing: 0.04em; line-height: 1.5;
}

/* ---------- CTA BAND ---------- */
.cta-band {
  background: var(--dark); padding: 88px 80px; text-align: center;
}
.cta-band h2 { font-family: var(--font-display); font-weight: 300; font-size: clamp(28px, 5vw, 46px); color: var(--white); line-height: 1.15; margin-bottom: 16px; }
.cta-band h2 em { font-style: italic; color: var(--gold-pale); }
.cta-band p { font-size: 15px; line-height: 1.8; color: rgba(255,255,255,0.6); font-weight: 300; max-width: 60ch; margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.cta-phone { font-size: 15px; font-weight: 500; color: var(--gold-pale); letter-spacing: 0.04em; padding: 16px 8px; }
.cta-phone:hover { color: var(--white); }

/* ---------- TRUST STRIP ---------- */
.trust-strip {
  display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap;
  padding: 18px 80px; background: var(--warm-gray); border-bottom: 1px solid var(--mid-gray);
}
.trust-strip span { font-size: 11px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-mid); }
.trust-strip span::before { content: '\2713'; color: var(--gold); margin-right: 8px; font-weight: 600; }

/* ---------- FOOTER ---------- */
footer { background: var(--black); }
.footer-top { padding: 60px 80px 44px; display: flex; flex-direction: column; align-items: center; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-logo img { height: 84px; width: auto; max-width: 240px; object-fit: contain; filter: invert(1); mix-blend-mode: screen; }
.footer-lic { font-size: 11px; color: rgba(255,255,255,0.35); letter-spacing: 0.1em; }
.footer-serving { font-size: 12px; color: rgba(255,255,255,0.4); text-align: center; line-height: 1.7; max-width: 70ch; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 46px 80px; border-bottom: 1px solid rgba(255,255,255,0.07); }
.footer-col { padding: 0 30px; }
.footer-col:not(:last-child) { border-right: 1px solid rgba(255,255,255,0.07); }
.footer-col-h { font-size: 10px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.6); margin-bottom: 20px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { font-size: 12px; color: rgba(255,255,255,0.4); transition: color 0.2s; line-height: 1.5; }
.footer-col ul li a:hover { color: var(--gold-light); }
.footer-contact-line { font-size: 12px; color: rgba(255,255,255,0.4); margin-bottom: 8px; line-height: 1.6; }
.footer-contact-line a { color: rgba(255,255,255,0.4); }
.footer-contact-line a:hover { color: var(--gold-light); }
.footer-nap { padding: 34px 80px; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: center; }
.footer-nap h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; color: var(--white); margin-bottom: 10px; }
.footer-nap address, .footer-nap p { font-style: normal; font-size: 12.5px; color: rgba(255,255,255,0.42); line-height: 1.9; }
.footer-nap a { color: rgba(255,255,255,0.42); }
.footer-nap a:hover { color: var(--gold-light); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 20px 80px; gap: 16px; flex-wrap: wrap; }
.footer-copy, .footer-credit { font-size: 11px; color: rgba(255,255,255,0.28); }
.footer-credit a { color: rgba(255,255,255,0.4); }
.footer-credit a:hover { color: var(--gold-light); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .sec, .section-pad { padding: 76px 40px; }
  .page-header { padding: calc(var(--nav-h) + 56px) 40px 56px; }
  .cta-band { padding: 72px 40px; }
  .cards, .link-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); padding: 40px; }
  .footer-col:nth-child(2) { border-right: none; }
  .footer-col { padding: 0 24px 24px; }
  .trust-strip { padding: 16px 40px; gap: 28px; }
  .footer-top, .footer-nap, .footer-bottom { padding-left: 40px; padding-right: 40px; }
}
@media (max-width: 900px) {
  .nav-links, .nav-phone, .nav-cta { display: none; }
  .hamburger { display: flex; margin-left: auto; }
  #navbar { padding: 0 24px; justify-content: space-between; }
  .split { grid-template-columns: 1fr; gap: 34px; }
  .split.reverse { direction: ltr; }
  .split img { max-height: 380px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 84px; }
  .sec, .section-pad { padding: 60px 24px; }
  .page-header { padding: calc(var(--nav-h) + 44px) 24px 44px; }
  .page-header h1 { max-width: none; }
  .cta-band { padding: 64px 24px; }
  .cards, .link-grid, .steps, .cards.two { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .nav-logo img { height: 46px; max-width: 140px; }
  .trust-strip { padding: 14px 24px; gap: 14px; flex-direction: column; align-items: flex-start; }
  .footer-grid { grid-template-columns: 1fr; padding: 32px 24px; }
  .footer-col { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07); padding: 0 0 22px; margin-bottom: 22px; }
  .footer-col:last-child { border-bottom: none; margin-bottom: 0; }
  .footer-top, .footer-nap, .footer-bottom { padding-left: 24px; padding-right: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .callout { padding: 24px 22px; }
  .faq-item summary { font-size: 15px; padding-right: 36px; }
}

/* ==========================================================================
   GUIDE PAGES
   The answer box is deliberately the first thing on the page and reads as a
   complete answer on its own — that is what an AI assistant lifts and quotes.
   ========================================================================== */
.answer-box {
  background: var(--warm-gray);
  border-left: 3px solid var(--gold);
  padding: 30px 34px;
  max-width: 780px;
}
.answer-label {
  font-size: 10px; font-weight: 600; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 12px;
}
.answer-text {
  font-size: 18px; line-height: 1.7; font-weight: 300; color: var(--text-dark);
}
.answer-text strong { font-weight: 600; }
.guide-meta {
  margin-top: 18px; font-size: 12px; letter-spacing: 0.08em;
  color: var(--text-light);
}
h2.guide-q {
  font-family: var(--font-display); font-size: clamp(23px, 3.6vw, 32px);
  font-weight: 400; line-height: 1.25; color: var(--text-dark);
  margin: 46px 0 16px; scroll-margin-top: 140px;
}
.wrap-narrow.prose > h2.guide-q:first-child { margin-top: 0; }
.guide-toc {
  background: var(--white); border: 1px solid var(--mid-gray);
  padding: 26px 30px; margin: 0 0 34px;
}
.guide-toc p {
  font-size: 10px; font-weight: 600; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.guide-toc ol { margin: 0 0 0 18px; }
.guide-toc li { font-size: 14.5px; line-height: 1.9; color: var(--text-mid); }
.guide-toc a { color: var(--text-mid); }
.guide-toc a:hover { color: var(--gold); }

@media (max-width: 640px) {
  .answer-box { padding: 24px 22px; }
  .answer-text { font-size: 16.5px; }
}
