/*
Theme Name: Michael Williams - Bricks Child
Theme URI: https://michaelwilliamshomes.com
Description: Child theme for the Michael Williams real estate site. Built on Bricks. Holds design tokens, reusable utility classes, and Google Fonts. Structural layout is built in the Bricks editor; styling lives here.
Author: Michael Williams
Template: bricks
Version: 1.0.0
Text Domain: mw-bricks-child
*/

/* =====================================================
   DESIGN TOKENS  (quiet DC luxury aesthetic)
   Reference these as var(--mw-*) anywhere in Bricks.
   ===================================================== */
:root {
  /* Color */
  --mw-bg:          #f7f6f3;  /* warm off-white page background */
  --mw-ink:         #1f2421;  /* near-black primary text */
  --mw-ink-soft:    #555c56;  /* muted secondary text */
  --mw-line:        #d9d6cf;  /* hairline borders */
  --mw-accent:      #5a6b5d;  /* muted slate-green */
  --mw-accent-deep: #3f4d42;  /* deep green for buttons/hover */
  --mw-card:        #fffefb;  /* card surfaces */

  /* Type scale */
  --mw-font-display: 'Cormorant Garamond', Georgia, serif;
  --mw-font-body:    'Inter', -apple-system, system-ui, sans-serif;

  --mw-h1: clamp(2.2rem, 5vw, 3.4rem);
  --mw-h2: clamp(1.6rem, 3.5vw, 2.4rem);
  --mw-h3: 1.4rem;
  --mw-body: 1rem;
  --mw-small: 0.8rem;
  --mw-eyebrow: 0.72rem;

  /* Spacing rhythm */
  --mw-space-section: clamp(40px, 6vw, 84px);
  --mw-maxwidth: 1180px;
  --mw-maxwidth-narrow: 640px;

  /* Motion */
  --mw-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* =====================================================
   BASE TYPOGRAPHY
   ===================================================== */
body {
  background: var(--mw-bg);
  color: var(--mw-ink);
  font-family: var(--mw-font-body);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--mw-font-display);
  font-weight: 500;
  line-height: 1.1;
  color: var(--mw-ink);
}

h1 { font-size: var(--mw-h1); }
h2 { font-size: var(--mw-h2); }
h3 { font-size: var(--mw-h3); }

/* =====================================================
   REUSABLE UTILITY CLASSES
   Add these class names to elements in the Bricks editor.
   ===================================================== */

/* Eyebrow label — small uppercase accent text above headings */
.mw-eyebrow {
  font-family: var(--mw-font-body);
  font-size: var(--mw-eyebrow);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--mw-accent);
  font-weight: 500;
}

/* Italic serif tagline */
.mw-tagline {
  font-family: var(--mw-font-display);
  font-style: italic;
  font-size: 1.3rem;
  color: var(--mw-ink-soft);
  font-weight: 400;
}

/* Short accent rule / divider */
.mw-rule {
  width: 40px;
  height: 1px;
  background: var(--mw-accent);
  opacity: 0.6;
  border: 0;
}

/* Primary button */
.mw-btn {
  display: inline-block;
  background: var(--mw-accent-deep);
  color: #fff;
  border: 1px solid var(--mw-accent-deep);
  border-radius: 2px;
  padding: 15px 30px;
  font-family: var(--mw-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease);
}
.mw-btn:hover { background: var(--mw-accent); border-color: var(--mw-accent); }

/* Secondary / outline button */
.mw-btn-outline {
  background: transparent;
  color: var(--mw-ink);
  border: 1px solid var(--mw-line);
}
.mw-btn-outline:hover {
  background: transparent;
  border-color: var(--mw-accent);
  color: var(--mw-accent-deep);
}

/* Card surface */
.mw-card {
  background: var(--mw-card);
  border: 1px solid var(--mw-line);
  border-radius: 3px;
  padding: 34px;
  transition: border-color 0.25s var(--mw-ease), transform 0.25s var(--mw-ease), box-shadow 0.25s var(--mw-ease);
}
.mw-card:hover {
  border-color: var(--mw-accent);
  transform: translateY(-2px);
  box-shadow: 0 1px 40px rgba(31, 36, 33, 0.06);
}

/* Neighborhood grid card — image-forward */
.mw-hood-card {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 3px;
  text-decoration: none;
  aspect-ratio: 4 / 5;
}
.mw-hood-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--mw-ease);
}
.mw-hood-card:hover img { transform: scale(1.05); }
.mw-hood-card .mw-hood-label {
  position: absolute;
  left: 0; bottom: 0; right: 0;
  padding: 20px;
  color: #fff;
  font-family: var(--mw-font-display);
  font-size: 1.4rem;
  background: linear-gradient(to top, rgba(31,36,33,0.7), transparent);
}

/* Section width helpers */
.mw-narrow { max-width: var(--mw-maxwidth-narrow); margin-left: auto; margin-right: auto; }

/* Scroll-reveal (pair with the JS in functions.php) */
.mw-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s var(--mw-ease), transform 0.7s var(--mw-ease);
}
.mw-reveal.mw-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .mw-reveal { opacity: 1; transform: none; transition: none; }
}

/* =====================================================
   HERO LAYOUT
   Drop .mw-hero on the hero Container. Children stack,
   center, and space themselves — no per-element tuning.
   ===================================================== */
.mw-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 22px;
  max-width: var(--mw-maxwidth-narrow);
  margin-left: auto;
  margin-right: auto;
  /* Hero runs a touch tighter than the section rhythm so it doesn't read
     tall/empty above the fold, while still feeling airy. */
  padding-block: clamp(28px, 4.5vw, 60px);
}

/* Circular headshot at the top of the hero */
.mw-hero-portrait,
.mw-hero img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--mw-line);
}

/* Tighten the gap between H1 and the elements hugging it */
.mw-hero h1 { margin: 0; }
.mw-hero .mw-eyebrow { margin-bottom: -8px; }

/* Hero bio — slightly larger, softer, constrained measure.
   Bricks outputs basic-text as a <div>, so target that too (minus the
   eyebrow/tagline which carry their own classes). */
.mw-hero p,
.mw-hero .brxe-text-basic:not(.mw-eyebrow):not(.mw-tagline) {
  color: var(--mw-ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 32em;
  margin: 0;
}

/* Button row */
.mw-btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}

/* =====================================================
   SECTION WRAPPERS + NEIGHBORHOODS GRID
   ===================================================== */

/* Wide, centered content wrapper with section rhythm */
.mw-wrap {
  max-width: var(--mw-maxwidth);
  margin: 0 auto;
  padding-inline: 24px;
  padding-block: var(--mw-space-section);
}

/* Centered heading block (eyebrow + H2 + optional intro) */
.mw-section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-bottom: 32px;
  width: 100%;
}
.mw-section-head h2 { margin: 0; }

/* 3-up neighborhood grid, single column on mobile.
   width:100% is required because Bricks containers are centered flex,
   which would otherwise collapse the grid to its (absolutely-positioned)
   content width. */
.mw-hood-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  width: 100%;
}
@media (max-width: 820px) {
  .mw-hood-grid { grid-template-columns: 1fr; }
}

/* Muted placeholder tint on hood cards until real photos are added.
   A real <img> inside the card sits above this and covers it. */
.mw-hood-card {
  background: linear-gradient(150deg, var(--mw-accent) 0%, var(--mw-accent-deep) 100%);
}

/* About-teaser paragraph — soft, comfortable measure */
.mw-about-text {
  color: var(--mw-ink-soft);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =====================================================
   LEAD-CAPTURE CARD
   Container classes: mw-card mw-narrow mw-reveal mw-lead
   ===================================================== */
.mw-lead {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.mw-lead h2 { margin: 0; }

/* Small print consent line under the form */
.mw-form-consent {
  font-size: var(--mw-small);
  color: var(--mw-ink-soft);
  max-width: 34em;
}

/* Temporary placeholder where the WiseAgent embed will go */
.mw-form-slot {
  width: 100%;
  border: 1px dashed var(--mw-line);
  border-radius: 3px;
  padding: 38px 24px;
  color: var(--mw-ink-soft);
  font-style: italic;
}

/* =====================================================
   FORM STYLING  (matches WiseAgent embedded form)
   Wrap your WiseAgent form in an element with class .mw-form-wrap
   ===================================================== */
/* Form sits left-aligned even inside a centered card */
.mw-form-wrap { text-align: left; }

/* Field labels — small, quiet, above each input */
.mw-form-wrap label {
  display: block;
  font-size: var(--mw-small);
  letter-spacing: 0.03em;
  color: var(--mw-ink-soft);
  font-weight: 500;
  margin-bottom: 6px;
}

/* Text-like fields (exclude checkbox/radio/submit) */
.mw-form-wrap input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
.mw-form-wrap textarea,
.mw-form-wrap select {
  width: 100%;
  background: var(--mw-bg);
  border: 1px solid var(--mw-line);
  border-radius: 2px;
  padding: 13px 15px;
  font-family: var(--mw-font-body);
  font-size: 0.92rem;
  color: var(--mw-ink);
  text-align: left;
  margin-bottom: 16px;
}
.mw-form-wrap input:focus,
.mw-form-wrap textarea:focus,
.mw-form-wrap select:focus {
  outline: none;
  border-color: var(--mw-accent);
}

/* Consent checkbox row */
.mw-form-wrap input[type="checkbox"] { margin-right: 8px; }

/* Submit button — match the primary .mw-btn look */
.mw-form-wrap input[type="submit"],
.mw-form-wrap button[type="submit"] {
  display: inline-block;
  background: var(--mw-accent-deep);
  color: #fff;
  border: 1px solid var(--mw-accent-deep);
  border-radius: 2px;
  padding: 15px 34px;
  font-family: var(--mw-font-body);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s var(--mw-ease), border-color 0.25s var(--mw-ease);
}
.mw-form-wrap input[type="submit"]:hover,
.mw-form-wrap button[type="submit"]:hover {
  background: var(--mw-accent);
  border-color: var(--mw-accent);
}

/* =====================================================
   FLOATING "GET IN TOUCH" CTA
   Persistent pill button (output in functions.php) that
   jumps to the contact form and hides once the form is
   on screen.
   ===================================================== */
.mw-float-cta {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 900;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--mw-accent-deep);
  color: #fff;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--mw-font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 6px 24px rgba(31, 36, 33, 0.18);
  transition: background 0.25s var(--mw-ease),
              transform 0.25s var(--mw-ease),
              opacity 0.35s var(--mw-ease);
}
.mw-float-cta:hover {
  background: var(--mw-accent);
  color: #fff;
  transform: translateY(-2px);
}
/* .is-hidden set by JS when the form is in view */
.mw-float-cta.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
}
@media (max-width: 520px) {
  .mw-float-cta { bottom: 16px; right: 16px; padding: 12px 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .mw-float-cta { transition: opacity 0.2s linear; }
}

/* =====================================================
   SITE NAV HEADER (sticky)
   ===================================================== */
.mw-nav {
  position: sticky;
  top: 0;
  z-index: 800;
  background: rgba(247, 246, 243, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--mw-line);
}
.mw-nav-inner {
  max-width: var(--mw-maxwidth);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.mw-nav-brand {
  font-family: var(--mw-font-display);
  font-size: 1.25rem;
  color: var(--mw-ink);
  text-decoration: none;
}
.mw-nav-links { display: flex; gap: 26px; }
.mw-nav-links a {
  font-family: var(--mw-font-body);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mw-ink-soft);
  text-decoration: none;
  transition: color 0.2s var(--mw-ease);
}
.mw-nav-links a:hover { color: var(--mw-accent-deep); }
@media (max-width: 520px) {
  .mw-nav-inner { padding: 12px 18px; }
  .mw-nav-brand { font-size: 1.1rem; }
  .mw-nav-links { gap: 16px; }
  .mw-nav-links a { font-size: 0.72rem; letter-spacing: 0.05em; }
}

/* =====================================================
   COMPLIANCE FOOTER (site-wide)
   ===================================================== */
.mw-footer {
  background: var(--mw-accent-deep);
  color: rgba(255, 255, 255, 0.85);
  padding: 44px 24px;
  font-size: 0.82rem;
  line-height: 1.7;
}
.mw-footer-inner {
  max-width: var(--mw-maxwidth);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
}
.mw-footer-name {
  display: block;
  font-family: var(--mw-font-display);
  font-size: 1.2rem;
  color: #fff;
}
.mw-footer-broker { color: rgba(255, 255, 255, 0.75); }
.mw-footer-lic { margin: 0; color: rgba(255, 255, 255, 0.7); }
.mw-footer-lic .mw-fill { color: rgba(255, 255, 255, 0.55); }
.mw-footer-eho {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.mw-footer-eho .mw-eho-mark { flex: none; }
/* EHO mark: solid white house with the equals sign knocked out in the footer green */
.mw-eho-house { fill: #fff; }
.mw-eho-eq { fill: var(--mw-accent-deep); }

/* Marks row (EHO + NAR REALTOR block) */
.mw-footer-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
}
.mw-nar-mark { flex: none; display: block; border-radius: 3px; }

/* Social icons */
.mw-footer-social { display: flex; gap: 16px; justify-content: center; }
.mw-social-link {
  color: rgba(255, 255, 255, 0.8);
  display: inline-flex;
  transition: color 0.2s var(--mw-ease), transform 0.2s var(--mw-ease);
}
.mw-social-link:hover { color: #fff; transform: translateY(-1px); }
.mw-footer-voucher {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  max-width: 52em;
}
.mw-footer-legal { margin: 0; font-size: 0.75rem; color: rgba(255, 255, 255, 0.6); }
.mw-footer-legal a { color: rgba(255, 255, 255, 0.85); text-decoration: underline; }
