/* ===================================================
   MIRANDA'S RENOVATION INC. — SHARED STYLESHEET
   Font: Outfit 300/400/500/600/700/800
   Palette: derived from brand logo blue #3A5D8A
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:       #3A5D8A;
  --blue-dark:  #1C2F4A;
  --blue-light: #E8EFF6;
  --white:      #FFFFFF;
  --off-white:  #F8F6F2;
  --light:      #ECEAE5;
  --text:       #1A1A1A;
  --mid:        #66625F;
  --r:          8px;
  --nav-h:      72px;
  --max-w:      1300px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--white);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }

/* ─── NAV ──────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3.5rem;
  height: var(--nav-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--light);
  transition: box-shadow .3s;
}
.nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,.07); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo img {
  height: 46px;
  width: auto;
}
.nav-logo-text .top {
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--blue-dark);
  line-height: 1.1;
}
.nav-logo-text .sub {
  font-size: .62rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mid);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}
.nav-links a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  letter-spacing: .01em;
  transition: color .2s;
  padding-bottom: 2px;
  border-bottom: 2px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.nav-cta {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-decoration: none;
  padding: .65rem 1.5rem;
  border-radius: var(--r);
  transition: background .2s, transform .15s, box-shadow .2s;
}
.nav-cta:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(58,93,138,.3);
}

/* Nav mobile toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}

/* ─── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  background: var(--off-white);
  padding: calc(var(--nav-h) + 4rem) 3.5rem 4rem;
  border-bottom: 1px solid var(--light);
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}
.page-breadcrumb {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--mid);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.page-breadcrumb a {
  text-decoration: none;
  color: var(--mid);
  transition: color .2s;
}
.page-breadcrumb a:hover { color: var(--blue); }
.page-breadcrumb .sep { opacity: .4; }
.page-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.page-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
}
.page-title {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--blue-dark);
  margin-bottom: .8rem;
}
.page-sub {
  font-size: 1rem;
  font-weight: 300;
  line-height: 1.7;
  color: var(--mid);
  max-width: 55ch;
}

/* ─── SECTION LABELS ──────────────────────────────── */
.sec-label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: .8rem;
}
.sec-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--blue);
  flex-shrink: 0;
}
.sec-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  color: var(--blue-dark);
}
.sec-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
}
.sec-link {
  font-size: .86rem;
  font-weight: 600;
  color: var(--blue);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .4rem;
  transition: gap .2s;
  flex-shrink: 0;
}
.sec-link:hover { gap: .7rem; }

/* ─── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-block;
  font-size: .86rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  padding: .85rem 2rem;
  border-radius: var(--r);
  transition: background .2s, color .2s, transform .15s, box-shadow .2s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}
.btn:active { transform: translateY(0) !important; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(58,93,138,.25);
}
.btn-outline {
  color: var(--blue);
  border: 1.5px solid var(--blue);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
}
.btn-white {
  background: var(--white);
  color: var(--blue-dark);
}
.btn-white:hover {
  background: var(--blue-light);
}
.btn-lg {
  padding: 1rem 2.5rem;
  font-size: .9rem;
}

/* ─── TRUST BAND ──────────────────────────────────── */
.trust-band {
  background: var(--off-white);
  border-top: 1px solid var(--light);
  border-bottom: 1px solid var(--light);
  padding: 1.6rem 3.5rem;
}
.trust-items {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 2rem;
  border-right: 1px solid var(--light);
  font-size: .8rem;
  font-weight: 500;
  color: var(--text);
}
.trust-item:last-child { border-right: none; }
.trust-item svg {
  width: 17px;
  height: 17px;
  color: var(--blue);
  flex-shrink: 0;
}

/* ─── CARDS ───────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--light);
  border-radius: calc(var(--r) * 1.5);
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover {
  border-color: rgba(58,93,138,.2);
  box-shadow: 0 8px 32px rgba(58,93,138,.1);
  transform: translateY(-2px);
}

/* ─── CTA SECTION ─────────────────────────────────── */
.cta-section {
  background: var(--blue);
  padding: 6rem 3.5rem;
  text-align: center;
}
.cta-eyebrow {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.4rem;
}
.cta-eyebrow::before,
.cta-eyebrow::after {
  content: '';
  display: block;
  width: 28px;
  height: 1px;
  background: rgba(255,255,255,.3);
}
.cta-title {
  font-size: clamp(2.4rem, 4.5vw, 4rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 1rem;
}
.cta-sub {
  font-size: .95rem;
  font-weight: 300;
  color: rgba(255,255,255,.65);
  max-width: 50ch;
  margin: 0 auto 2.4rem;
  line-height: 1.7;
}
.cta-phone {
  display: block;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--white);
  text-decoration: none;
  margin-bottom: 2.2rem;
  transition: opacity .2s;
}
.cta-phone:hover { opacity: .8; }
.cta-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--blue-dark);
  padding: 4.5rem 3.5rem 2.5rem;
}
.footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  margin-bottom: 2rem;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}
.f-brand .logo-top {
  font-size: .96rem;
  font-weight: 700;
  letter-spacing: .03em;
  color: var(--white);
  margin-bottom: .2rem;
}
.f-brand .logo-sub {
  font-size: .65rem;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1.2rem;
}
.f-brand p {
  font-size: .84rem;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255,255,255,.45);
  max-width: 32ch;
}
.f-col-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 1rem;
}
.f-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}
.f-col ul a {
  font-size: .84rem;
  font-weight: 400;
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.f-col ul a:hover { color: var(--white); }
.f-contact p,
.f-contact a {
  font-size: .84rem;
  font-weight: 300;
  color: rgba(255,255,255,.55);
  line-height: 1.6;
  text-decoration: none;
  transition: color .2s;
  display: block;
  margin-bottom: .3rem;
}
.f-contact a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
}
.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.22);
  letter-spacing: .02em;
}
.footer-badges {
  display: flex;
  gap: .65rem;
  flex-wrap: wrap;
}
.badge {
  font-size: .63rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.28);
  border: 1px solid rgba(255,255,255,.1);
  padding: .25rem .65rem;
  border-radius: 4px;
}

/* ─── REVEAL ANIMATION ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .1s !important; }
.d2 { transition-delay: .2s !important; }
.d3 { transition-delay: .3s !important; }
.d4 { transition-delay: .4s !important; }
.d5 { transition-delay: .5s !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none !important; }
}

/* ─── UTILITIES ───────────────────────────────────── */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
}
.section {
  padding: 7rem 3.5rem;
}
.section-alt {
  background: var(--off-white);
}
.text-blue { color: var(--blue); }
.text-mid  { color: var(--mid); }
.font-light { font-weight: 300; }

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 1024px) {
  .nav { padding: 0 2rem; }
  .nav-links { gap: 1.8rem; }
  .section { padding: 6rem 2rem; }
  .page-hero { padding: calc(var(--nav-h) + 3rem) 2rem 3rem; }
  .trust-band, footer { padding-left: 2rem; padding-right: 2rem; }
  .cta-section { padding: 5rem 2rem; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    background: var(--white);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--light);
    gap: .5rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }
  .nav-links.open a {
    font-size: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--light) !important;
    border-right: none !important;
  }
  .nav-links.open li:last-child a { border-bottom: none !important; }
  .nav-toggle { display: flex; }
  .sec-top { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--light); width: 100%; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }
  .trust-items { flex-direction: column; }
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 480px) {
  .section { padding: 4.5rem 1.25rem; }
  .page-hero { padding: calc(var(--nav-h) + 2.5rem) 1.25rem 2.5rem; }
  .trust-band, .cta-section, footer { padding-left: 1.25rem; padding-right: 1.25rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-btns { flex-direction: column; align-items: center; }
}
