/* =========================================================
   MaintMan — shared styles (header, footer, buttons, tokens)
   "Enhancing Homes. Exceptional Results."
   ========================================================= */

/* ----- Design tokens ----- */
:root {
  --ink: #16110f;            /* warm near-black */
  --footer-black: #0f0c0a;
  --dark-surface: #211c19;   /* contact cards */
  --dark-surface-alt: #241f1b; /* image tile backing */
  --page: #f6f3ee;           /* default page bg */
  --reviews-bg: #efe9e1;
  --white: #ffffff;
  --brand-red: #cf2027;      /* primary accent */
  --bright-red: #ff5a5f;     /* accent on dark */
  --red-tint-light: rgba(207, 32, 39, 0.08);
  --red-tint-dark: rgba(207, 32, 39, 0.16);
  --wa-green: #25d366;
  --wa-text: #0a2e17;
  --star-gold: #ffb400;
  --muted: #6b6258;

  --font-display: "Spectral", Georgia, serif;
  --font-sans: "Manrope", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

/* ----- Reset / base ----- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

::selection {
  background: var(--brand-red);
  color: #fff;
}

/* ----- Animations ----- */
@keyframes mm-rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes mm-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ----- Layout helpers ----- */
.mm-container {
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.mm-section {
  padding: 108px 38px;
  scroll-margin-top: 144px; /* clears the compact (scrolled) header for in-page links */
}

/* ----- Shared typography ----- */
.mm-eyebrow {
  color: var(--brand-red);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.mm-eyebrow--bright {
  color: var(--bright-red);
}

.mm-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--ink);
}

.mm-h2--light {
  color: #fff;
}

/* =========================================================
   Header
   ========================================================= */
.mm-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 40px;
  background: rgba(246, 243, 238, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 17, 15, 0.09);
  transition: padding 0.3s ease;
}

/* Compact state once the page is scrolled (toggled by JS) */
.mm-header.scrolled {
  padding: 10px 40px;
}

.mm-logo {
  display: flex;
  align-items: center;
}

.mm-logo img {
  height: 200px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

.mm-header.scrolled .mm-logo img {
  height: 110px;
}

.mm-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.mm-nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.mm-nav a:hover {
  color: var(--brand-red);
}

.mm-nav a.is-active {
  color: var(--brand-red);
  font-weight: 700;
}

.mm-cta {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 24px;
  border-radius: 999px;
  box-shadow: 0 8px 22px rgba(207, 32, 39, 0.28);
}

.mm-cta i {
  font-size: 12px;
}

/* Hamburger (mobile only) */
.mm-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(22, 17, 15, 0.16);
  background: #fff;
  border-radius: 12px;
  cursor: pointer;
  color: var(--ink);
  font-size: 18px;
}

/* Mobile menu panel */
.mm-mobile-panel {
  position: fixed;
  top: 88px;
  left: 12px;
  right: 12px;
  z-index: 49;
  display: none;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  border: 1px solid rgba(22, 17, 15, 0.1);
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 24px 60px rgba(15, 12, 10, 0.22);
}

.mm-mobile-panel.is-open {
  display: flex;
}

.mm-mobile-panel a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 17px;
  padding: 6px 0;
}

.mm-mobile-panel a.is-active {
  color: var(--brand-red);
  font-weight: 700;
}

.mm-mobile-quote {
  text-align: center;
  background: var(--brand-red) !important;
  color: #fff !important;
  font-weight: 700;
  font-size: 16px !important;
  padding: 14px !important;
  border-radius: 12px;
  margin-top: 8px;
}

/* =========================================================
   Buttons
   ========================================================= */
.mm-btn-red {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 28px;
  border-radius: 999px;
  box-shadow: 0 14px 34px rgba(207, 32, 39, 0.4);
  border: none;
  cursor: pointer;
}

.mm-btn-ghost {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 16px 26px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.32);
}

.mm-btn-whatsapp {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: var(--wa-green);
  color: var(--wa-text);
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
}

.mm-btn-whatsapp i {
  font-size: 19px;
}

.mm-btn-phone {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 26px;
  border-radius: 999px;
}

.mm-btn-phone i {
  font-size: 14px;
}

/* =========================================================
   Footer
   ========================================================= */
.mm-footer {
  background: var(--footer-black);
  padding: 48px 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.mm-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.mm-footer img {
  height: 42px;
  width: auto;
}

.mm-footer p {
  color: rgba(245, 240, 235, 0.45);
  font-size: 13.5px;
  margin: 0;
  font-weight: 500;
}

/* =========================================================
   Responsive — header / shared
   ========================================================= */
@media (max-width: 880px) {
  .mm-nav {
    display: none;
  }

  .mm-menu-btn {
    display: inline-flex;
  }

  /* Phones: keep one compact height (no shrink-on-scroll) so the logo never overflows */
  .mm-header,
  .mm-header.scrolled {
    padding: 12px 22px;
  }

  .mm-logo img,
  .mm-header.scrolled .mm-logo img {
    height: 64px;
  }

  .mm-section {
    padding: 72px 22px;
    scroll-margin-top: 100px;
  }
}
