/* ==========================================================================
   Badger Property Management — Shared Styles
   Palette: dark forest/olive green (brand continuity with existing logo),
   warm cream, gold accent. Fraunces for headings, Inter for body.
   ========================================================================== */

:root {
  --bg: #F7F3EA;
  --surface: #FFFFFF;
  --surface-alt: #EFE7D8;
  --primary: #4A4F3B;        /* olive green — lightened from logo's dark olive so it reads green, not black, in large fills */
  --primary-dark: #23261C;
  --accent: #B35900;          /* rustic burnt orange */
  --accent-soft: #E8C6A0;
  --text: #26241E;
  --text-muted: #6B6459;
  --border: #E3D9C4;
  --radius: 14px;
  --shadow: 0 12px 32px -16px rgba(30, 25, 15, 0.28);
  --heading-font: 'Fraunces', Georgia, serif;
  --body-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width: 1180px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--body-font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--heading-font); color: var(--primary-dark); line-height: 1.15; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  font-family: var(--body-font);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { box-shadow: 0 8px 20px -8px rgba(184,134,59,0.55); }
.btn-outline { background: transparent; border: 1.5px solid var(--border); color: var(--primary-dark); }
.btn-outline-light { background: transparent; border: 1.5px solid rgba(255,255,255,0.45); color: #fff; }
.btn-light { background: #fff; color: var(--primary-dark); }

/* ---------- Header / Nav ---------- */
header.site {
  background: var(--primary);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}
header.site .logo-img {
  background-image: url('/site/mtw/assets/logo-light.svg');
  background-size: 197.6px 116px;
  background-position: 0 0;
}
.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 20px;
}
header.site .container {
  max-width: 1340px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.logo-img {
  width: 197px;
  height: 116px;
  display: block;
  background-image: url('/site/mtw/assets/logo.webp');
  background-repeat: no-repeat;
  background-size: 219.17px 136.45px;
  background-position: -10.7px -3.09px;
}
footer.site .logo-img {
  width: 197.6px;
  height: 116px;
  background-image: url('/site/mtw/assets/logo-light.svg');
  background-size: 197.6px 116px;
  background-position: 0 0;
}
nav.links {
  display: flex;
  gap: 26px;
  font-size: 14.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
}
nav.links a:hover, nav.links a.active { color: var(--accent-soft); }
.header-cta { display: flex; gap: 14px; align-items: center; }
.portal-link {
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  white-space: nowrap;
  padding: 9px 14px;
  border-radius: 7px;
  border: 1.5px solid rgba(255,255,255,0.32);
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.portal-link:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.6); color: var(--accent-soft); }
/* Owner Portal above Pay Rent/HOA Dues (Cory, C0054 2026-09-09) */
.portal-links { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; line-height: 1.2; }
.portal-links .portal-link { padding: 6px 12px; }
.nav-toggle { display: none; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero {
  background: var(--primary);
  color: #fff;
  padding: 56px 0;
}
.page-hero .eyebrow { color: var(--accent-soft); }
.page-hero h1 { color: #fff; font-size: 40px; font-weight: 600; }
.page-hero p { color: rgba(255,255,255,0.78); max-width: 560px; margin-top: 10px; font-size: 16px; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-head { max-width: 620px; margin: 0 auto 40px; text-align: center; }
.kicker {
  color: var(--accent);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: .8px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: 30px; font-weight: 600; margin-bottom: 10px; }
.section-head p { color: var(--text-muted); font-size: 15px; }
.alt-bg { background: var(--surface-alt); }
.dark-bg { background: var(--primary); color: #fff; }
.dark-bg h2, .dark-bg h3 { color: #fff; }
.dark-bg p { color: rgba(255,255,255,0.78); }

/* ---------- Cards ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

/* ---------- Icon list (benefit lists) ---------- */
.icon-list { display: flex; flex-direction: column; gap: 20px; }
.icon-list-item { display: flex; gap: 14px; align-items: flex-start; }
.icon-badge {
  width: 46px; height: 46px; flex-shrink: 0;
  border-radius: 50%;
  background: transparent;
  border: 1.5px solid var(--accent-soft);
  color: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
}
.icon-list-item h4 { font-size: 15.5px; margin-bottom: 3px; }
.icon-list-item p { font-size: 13.5px; }

/* ---------- Footer ---------- */
footer.site {
  background: var(--primary);
  color: rgba(255,255,255,0.75);
  padding: 54px 0 24px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-desc { margin-top: 12px; max-width: 250px; color: rgba(255,255,255,0.6); }
.footer-col h4 { color: #fff; font-size: 12.5px; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.65); margin-bottom: 9px; }
.footer-col a:hover { color: #fff; }
.group-note {
  margin-top: 14px; padding: 12px 14px;
  background: rgba(255,255,255,0.06);
  border-radius: 10px; font-size: 12.5px; color: rgba(255,255,255,0.7);
}
.group-note a { color: var(--accent-soft); font-weight: 600; }
.footer-bottom {
  padding-top: 20px;
  display: flex; justify-content: space-between;
  font-size: 12.5px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap; gap: 10px;
}

/* ---------- Framed photo (offset color block behind image) ---------- */
.photo-frame {
  position: relative;
}
.photo-frame::before {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  background: var(--accent);
  border-radius: var(--radius);
  z-index: 0;
}
.photo-frame.frame-flip::before {
  inset: -18px 18px 18px -18px;
  background: var(--primary);
}
.photo-frame img {
  position: relative;
  z-index: 1;
  display: block;
}

/* ---------- Placeholder photo blocks (until real photos are supplied) ---------- */
.ph {
  background: repeating-linear-gradient(45deg, rgba(57,61,50,0.07), rgba(57,61,50,0.07) 12px, rgba(57,61,50,0.03) 12px, rgba(57,61,50,0.03) 24px);
  border: 1px dashed var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12.5px; font-weight: 600;
  text-align: center; padding: 10px; border-radius: var(--radius);
}

/* ---------- Mobile nav toggle ---------- */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 34px;
  height: 34px;
  padding: 0;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
header.site.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
header.site.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
header.site.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-row { flex-wrap: wrap; }
  nav.links, .header-cta { display: none; }
  .nav-toggle { display: flex; }

  header.site.nav-open nav.links {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
    order: 3;
    padding: 18px 0 6px;
  }
  header.site.nav-open nav.links a { padding: 8px 0; }
  header.site.nav-open .header-cta {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    order: 4;
    gap: 10px;
    padding-bottom: 18px;
  }
  header.site.nav-open .portal-links { align-items: stretch; width: 100%; gap: 10px; }
  header.site.nav-open .portal-link,
  header.site.nav-open .header-cta .btn {
    justify-content: center;
    width: 100%;
  }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-hero h1 { font-size: 30px; }

  [style*="display:grid"] { grid-template-columns: 1fr !important; }
  [style*="grid-column"] { grid-column: auto !important; }
}

/* ---------- Before/After slider ---------- */
.ba-slider {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}
.ba-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}
.ba-slider .ba-after { z-index: 1; }
.ba-slider .ba-before { z-index: 2; clip-path: inset(0 50% 0 0); }
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 3;
  pointer-events: none;
}
.ba-handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 0 8px rgba(0,0,0,0.35);
}
.ba-handle-grip {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  color: var(--primary);
}
