/* Olde Mill, A Condominium: landing page styles
   Colors and fonts are set once here, in :root. */

/* ---------- Fonts (self-hosted, SIL Open Font License; see assets/fonts/LICENSE.md) ---------- */
@font-face {
  font-family: "Cinzel";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/cinzel-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url("/assets/fonts/cormorant-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/lato-400-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/lato-700-latin.woff2") format("woff2");
}

:root {
  --white: #FFFFFF;
  --ivory: #F7F2EA;
  --brick: #8C4A44;
  --brick-dark: #6E2F2A;
  --brick-light: #D9B8B2;
  --gold: #C9A86A;
  --gold-light: #F3E3C3;
  --ink: #2E2A28;
  --muted: #6B625C;
  --stone: #E9E3DA;
  --hairline: #E4DCD0;

  --font-mark: "Cinzel", "Trajan Pro", Georgia, serif;
  --font-head: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --max: 1100px;
  --gutter: 20px;
  --ease: 150ms ease;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
}

h1, h2 {
  font-family: var(--font-head);
  font-weight: 500;
  line-height: 1.15;
  margin: 0 0 16px;
  color: var(--ink);
}
h1 { font-size: 32px; }
h2 { font-size: 26px; }

p { margin: 0 0 12px; }

a { color: var(--brick); text-underline-offset: 3px; }
a:hover { color: var(--brick-dark); }
a[href^="tel:"] { white-space: nowrap; }

a:focus-visible {
  outline: 2px solid var(--brick-dark);
  outline-offset: 3px;
}

strong { font-weight: 700; }

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

.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 10;
  background: var(--white);
  color: var(--brick-dark);
  padding: 8px 14px;
  border: 1px solid var(--brick);
}
.skip-link:focus { top: 8px; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brick);
  margin: 0 0 10px;
}

.muted { color: var(--muted); }
.small { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 8px 0 0; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--hairline);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 16px var(--gutter) 12px;
  display: grid;
  grid-template-columns: auto auto;
  grid-template-areas:
    "crest crest"
    "left right";
  justify-content: center;
  align-items: center;
  column-gap: 24px;
  row-gap: 12px;
}

.header-nav {
  font-size: 12px;
  letter-spacing: 0.12em;
  white-space: nowrap;
  text-transform: uppercase;
}
.header-nav--left { grid-area: left; }
.header-nav--right { grid-area: right; }

.header-nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color var(--ease);
}
.header-nav a:hover { color: var(--brick); }
.header-nav .dot { color: var(--muted); margin: 0 6px; }

.header-nav a.login-link {
  color: var(--brick);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.header-nav a.login-link:hover { color: var(--brick-dark); }

/* ---------- Crest wordmark ----------
   Drawn after the entrance sign: ivory frame with an overhanging cornice
   and a round arch, brick panel with a domed top and notched corners,
   gold lettering. The shape lives in the <svg> in index.html. */
.crest {
  grid-area: crest;
  justify-self: center;
  display: block;
  line-height: 0;
  text-decoration: none;
}

.crest-svg {
  display: block;
  width: 240px;
  height: auto;
  overflow: visible;
}

.crest-frame { fill: var(--ivory); stroke: var(--gold); stroke-width: 1; }
.crest-panel { fill: var(--brick); }
.crest-wheel { fill: none; stroke: var(--gold-light); stroke-width: 1.4; }
.crest-rule { stroke: var(--gold-light); stroke-width: 1.2; }

.crest-name,
.crest-a,
.crest-sub {
  font-family: var(--font-mark);
  font-weight: 500;
  fill: var(--gold-light);
  text-anchor: middle;
}
.crest-name { font-size: 27px; letter-spacing: 2px; }
.crest-a { font-size: 11px; }
.crest-sub { font-size: 12px; letter-spacing: 4px; }

/* ---------- Hero ---------- */
.hero { position: relative; }

.hero-picture { display: block; }

.hero-media {
  display: block;
  width: 100%;
  height: 260px;
  object-fit: cover;
  object-position: 50% 40%;
  background: var(--stone); /* shows while the photo loads */
}

.hero-panel-wrap {
  position: relative;
}

.hero-panel {
  background: var(--white);
  border-top: 3px solid var(--brick);
  padding: 28px var(--gutter) 36px;
}

.hero-text {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-block;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--brick);
  border-radius: 0;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}

.btn--primary {
  background: var(--brick);
  color: var(--white);
}
.btn--primary:hover {
  background: var(--brick-dark);
  border-color: var(--brick-dark);
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--brick);
}
.btn--secondary:hover {
  color: var(--brick-dark);
  border-color: var(--brick-dark);
  background: var(--ivory);
}

/* ---------- Sections ---------- */
.section { padding: 56px 0; }

.section-head { margin-bottom: 36px; }
.section-head--center { text-align: center; }

.rule {
  display: block;
  width: 48px;
  height: 1px;
  margin: 16px auto 0;
  background: var(--gold);
}

/* ---------- Steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
}

.step {
  padding: 22px 0;
  border-top: 1px solid var(--hairline);
}
.step:first-child { border-top: 0; padding-top: 0; }

.step-num {
  display: block;
  font-family: var(--font-head);
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
  color: var(--brick);
  margin-bottom: 10px;
}

.step p { margin: 0; }

.step-notes {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--hairline);
  font-size: 14px;
  color: var(--muted);
  text-align: center;
}
.step-notes p { margin: 0 0 6px; }

/* ---------- Ivory band: contacts + services ---------- */
.band {
  background: var(--ivory);
  padding: 56px 0;
}

.band-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

/* Emergency callout */
.emergency {
  background: var(--white);
  border: 1px solid var(--brick-light);
  color: var(--brick-dark);
  padding: 18px;
  margin: 8px 0 28px;
}
.emergency p { margin: 0 0 6px; }
.emergency a { color: var(--brick-dark); }

.emergency-number {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  margin: 4px 0 8px !important;
}
.emergency-number a {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 500;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 1px solid var(--brick-light);
}
.emergency-number a:hover { border-bottom-color: var(--brick-dark); }

.press9 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.emergency-911 { margin-top: 10px !important; }

/* Fact sheet rows */
.facts { margin: 0; }

.fact {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
}
.fact:last-child { border-bottom: 1px solid var(--hairline); }

.fact dt {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.label-note { letter-spacing: 0.12em; text-transform: none; font-size: 12px; }

.fact dd { margin: 0; overflow-wrap: anywhere; }

.facts-note { margin: 12px 0 28px; }

/* Resident services rows */
.link-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}

.link-list a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink);
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--ease);
}
.link-list .arrow {
  color: var(--brick);
  font-family: var(--font-body);
  font-size: 18px;
  transition: transform var(--ease);
}
.link-list a:hover { color: var(--brick); }
.link-list a:hover .arrow { transform: translateX(3px); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--brick);
  color: var(--gold-light);
  padding: 48px 0;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

.footer-mark {
  margin: 0;
  font-family: var(--font-mark);
  text-transform: uppercase;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.footer-mark-name {
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.22em;
}
.footer-mark-sub {
  font-size: 10px;
  letter-spacing: 0.24em;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--gold);
}

.footer-text p { margin: 0 0 8px; }
.footer-text p:last-child { margin: 16px 0 0; }
.site-footer a { color: var(--gold-light); }
.site-footer a:hover { color: var(--white); }
.site-footer a:focus-visible { outline-color: var(--gold-light); }

/* ---------- 404 ---------- */
.notfound {
  text-align: center;
  padding: 96px var(--gutter);
}
.notfound .button-row { justify-content: center; }

/* ---------- Tablet (2-column steps) ---------- */
@media (min-width: 640px) {
  :root { --gutter: 32px; }

  .header-nav { font-size: 14px; letter-spacing: 0.16em; }

  .steps { grid-template-columns: 1fr 1fr; }
  .step {
    padding: 8px 28px 24px;
    border-top: 0;
    border-left: 1px solid var(--hairline);
  }
  .step:first-child { padding-top: 8px; }
  .step:nth-child(odd) { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { margin-top: 16px; }

  .emergency { padding: 20px 22px; }
  .emergency-number a { font-size: 36px; }

  .fact {
    grid-template-columns: 170px 1fr;
    gap: 16px;
  }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }

  .header-inner {
    grid-template-columns: 1fr auto 1fr;
    grid-template-areas: "left crest right";
    justify-content: stretch;
    padding: 18px var(--gutter);
  }
  .header-nav--right { justify-self: end; }
  .header-nav { font-size: 15px; letter-spacing: 0.18em; }
  .header-nav .dot { margin: 0 10px; }

  .crest-svg { width: 300px; }

  .hero-media { height: 420px; object-position: 50% 80%; }

  .hero-panel-wrap {
    max-width: var(--max);
    margin: -90px auto 0;
    padding: 0 var(--gutter);
  }
  .hero-panel {
    max-width: 440px;
    padding: 36px 32px 40px;
    box-shadow: 0 6px 24px rgba(46, 42, 40, 0.06);
  }

  .section { padding: 88px 0; }
  .band { padding: 88px 0; }

  .steps { grid-template-columns: repeat(4, 1fr); }
  .step,
  .step:nth-child(odd) {
    border-left: 1px solid var(--hairline);
    padding: 8px 24px 8px;
    margin-top: 0;
  }
  .step:first-child { border-left: 0; padding-left: 0; }
  .step:nth-child(n+3) { margin-top: 0; }

  .band-grid {
    grid-template-columns: 1.15fr 1fr;
    gap: 80px;
    align-items: start;
  }

  .footer-grid {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
  .footer-text { text-align: right; }
}

/* ---------- Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
  }
}
