/* ==========================================================================
   M&M Units LLC — mmunits.com
   Palette and type from MM_Units_Brand_Kit_3 / MM_Units_Brand_Guide.pdf (V1)
     Navy #14283F · Blue #5B8DB8 · Blue Light #8FC1E3 · Gold Accent #C9A15A
   Logo files are used as-is per the brand guide — never recolored or skewed.
   ========================================================================== */

:root {
  /* Brand — exact values from the brand guide */
  --navy:       #14283F;
  --blue:       #5B8DB8;
  --blue-light: #8FC1E3;
  --gold:       #C9A15A;

  /* Derived UI tokens */
  --navy-deep: #0D1926;
  --page:      #F4F7FA;
  --surface:   #FFFFFF;
  --ink:       #14283F;
  --ink-muted: #55677D;
  --rule:      #DCE5EE;
  --link:      #2F5A7E;   /* darkened blue — 6:1 on white, unlike raw #5B8DB8 */
  --focus:     #5B8DB8;

  --wrap:   68rem;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 40, 63, .06), 0 10px 28px rgba(20, 40, 63, .08);

  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --page:      #0D1926;
    --surface:   #14283F;
    --ink:       #EAF1F8;
    --ink-muted: #A9BED2;
    --rule:      #24405C;
    --link:      #8FC1E3;
    --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 28px rgba(0, 0, 0, .4);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.62;
  color: var(--ink);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.18; margin: 0 0 .5em; letter-spacing: -.015em; }
p { margin: 0 0 1em; }
img, svg { max-width: 100%; }

a { color: var(--link); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.skip { position: absolute; left: -9999px; }
.skip:focus {
  left: 1rem; top: 1rem; z-index: 100;
  background: var(--surface); color: var(--ink);
  padding: .75rem 1rem; border-radius: 8px; box-shadow: var(--shadow);
}

/* --- Header --------------------------------------------------------------- */

.site-header {
  background: var(--navy);
  border-bottom: 1px solid rgba(143, 193, 227, .16);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
  flex-wrap: wrap;
}

.logo-link { display: inline-flex; line-height: 0; }
.logo-mark { height: 44px; width: auto; }

.area {
  margin: 0;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--blue-light);
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  background: var(--navy);
  color: #fff;
  padding-block: clamp(3rem, 9vw, 6rem);
  position: relative;
  overflow: hidden;
}

/* Soft roofline echo of the logo glyph, kept well behind the text. */
.hero::after {
  content: "";
  position: absolute;
  right: -6rem; bottom: -8rem;
  width: 26rem; height: 26rem;
  background: radial-gradient(circle at 50% 50%, rgba(91, 141, 184, .22), transparent 68%);
  pointer-events: none;
}

.hero .wrap { position: relative; z-index: 1; }

.hero h1 {
  font-weight: 800;
  font-size: clamp(2rem, 5.2vw, 3.15rem);
  max-width: 21ch;
  margin-bottom: .55em;
}

.hero h1 .accent { color: var(--blue-light); }

.lede {
  font-size: clamp(1.02rem, 2.1vw, 1.18rem);
  color: #C3D5E6;
  max-width: 56ch;
  margin-bottom: 2rem;
}

.cta-row { display: flex; flex-wrap: wrap; gap: .85rem; margin-bottom: 1.1rem; }

.cta-note {
  font-size: .9rem;
  color: #8FA6BC;
  max-width: 54ch;
  margin: 0;
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: .85rem 1.7rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .12s ease, background-color .12s ease, border-color .12s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Gold on navy text — 6.2:1. Reads on both the navy hero and white sections. */
.btn-primary { background: var(--gold); color: var(--navy); }
.btn-primary:hover { background: #D7B276; }

.btn-ghost {
  background: transparent;
  color: #DCE9F4;
  border-color: rgba(220, 233, 244, .34);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(220, 233, 244, .6);
}

.btn-block { width: 100%; }

/* --- Residents ------------------------------------------------------------ */

.residents { padding-block: clamp(3rem, 8vw, 5rem); }

.residents h2, .contact h2 {
  font-weight: 800;
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  color: var(--ink);
}

.section-lede { color: var(--ink-muted); max-width: 54ch; margin-bottom: 2.25rem; }

.cards {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--blue);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.4rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-num {
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .16em;
  color: var(--gold);
  margin-bottom: .7rem;
}

.card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.card p { color: var(--ink-muted); font-size: .95rem; flex: 1; }

.card-link {
  font-weight: 700;
  font-size: .95rem;
  text-decoration: none;
  align-self: flex-start;
}
.card-link:hover { text-decoration: underline; }
.card-link::after { content: " \2192"; }

.emergency {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.6rem;
}
.emergency-icon { width: 2.4rem; height: 2.4rem; flex: none; margin-top: .15rem; }
.emergency h3 { font-size: 1.05rem; }
.emergency p { font-size: .95rem; color: var(--ink-muted); margin-bottom: .6em; }
.emergency p:last-child { margin-bottom: 0; }
.emergency strong { color: var(--ink); }

@media (max-width: 32rem) {
  .emergency-icon { display: none; }
}

/* --- Contact -------------------------------------------------------------- */

.contact {
  background: var(--surface);
  border-top: 1px solid var(--rule);
  padding-block: clamp(3rem, 8vw, 5rem);
}

.contact-inner { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .contact-inner { grid-template-columns: 1fr 1fr; gap: 4rem; }
}

.contact-copy p { color: var(--ink-muted); max-width: 44ch; }

.contact-direct {
  list-style: none;
  margin: 1.5rem 0 .9rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.contact-direct li {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: .55rem;
}

/* "Text only" qualifier — must read as a constraint, not decoration. */
.tag {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  background: var(--gold);
  border-radius: 999px;
  padding: .18rem .55rem;
  white-space: nowrap;
}

.contact-note {
  font-size: .88rem;
  color: var(--ink-muted);
  max-width: 42ch;
}
.contact-direct a {
  font-size: 1.15rem;
  font-weight: 700;
  text-decoration: none;
}
.contact-direct a:hover { text-decoration: underline; }

.contact-aside {
  font-size: .88rem;
  border-top: 1px solid var(--rule);
  padding-top: 1rem;
  margin-top: 1.5rem;
}

.field { margin-bottom: 1.1rem; }

.field label {
  display: block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: .4rem;
}

.field input, .field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--page);
  border: 1px solid var(--rule);
  border-radius: 10px;
  padding: .7rem .85rem;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--blue); }

/* Netlify honeypot — hidden from humans, visible to bots. */
.hp { position: absolute; left: -9999px; }

/* --- Footer --------------------------------------------------------------- */

.site-footer {
  background: var(--navy-deep);
  color: #8FA6BC;
  padding-block: 2.4rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 2rem;
  font-size: .88rem;
}
.footer-inner p { margin: 0; }

.footer-brand { display: inline-flex; align-items: center; gap: .6rem; }
.footer-house { width: 1.6rem; height: 1.6rem; flex: none; }
.footer-name { font-weight: 800; color: #fff; font-size: 1rem; letter-spacing: -.01em; }

.eho { display: inline-flex; align-items: center; gap: .45rem; }
.eho-mark { width: 1.15rem; height: 1.15rem; flex: none; }

.footer-legal { margin-left: auto; }

@media (max-width: 40rem) {
  .footer-legal { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
  .btn:hover { transform: none; }
}
