﻿/* ============================================================
   Westpark Meadows Apartments — shared stylesheet
   Modern, responsive, offline-friendly (system font stack only)
   ============================================================ */

:root {
  --c-primary: #24486e;
  --c-primary-dark: #16304d;
  --c-accent: #6f8f3f;
  --c-accent-dark: #58712f;
  --c-ink: #243342;
  --c-muted: #5b6b7a;
  --c-bg: #f5f7fa;
  --c-card: #ffffff;
  --c-border: #dce4ec;
  --c-hero: #16304d;
  --shadow: 0 2px 10px rgba(22, 48, 77, .08);
  --radius: 10px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; }

/* ---------- layout ---------- */
.container {
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

main.container { padding-block: 2rem 3.5rem; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--c-primary-dark);
  color: #fff;
  padding: .6rem 1rem;
  z-index: 100;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- header ---------- */
.site-header {
  background: #fff;
  border-bottom: 3px solid var(--c-accent);
  box-shadow: var(--shadow);
  position: relative;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--c-primary-dark);
  padding-block: .5rem;
}
.brand img { width: 52px; height: 50px; border-radius: 6px; }
.brand-name { display: block; font-weight: 700; font-size: 1.15rem; line-height: 1.2; }
.brand-sub { display: block; font-size: .78rem; color: var(--c-muted); font-weight: 500; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: .15rem;
}

.site-nav a {
  display: block;
  padding: .55rem .8rem;
  text-decoration: none;
  color: var(--c-ink);
  font-weight: 600;
  font-size: .95rem;
  border-radius: 6px;
}
.site-nav a:hover { background: #eaf1f8; color: var(--c-primary-dark); }
.site-nav a[aria-current="page"] { background: var(--c-primary); color: #fff; }
.site-nav .nav-cta {
  background: var(--c-accent);
  color: #fff;
}
.site-nav .nav-cta:hover { background: var(--c-accent-dark); color: #fff; }

.nav-toggle {
  display: none;
  border: 1px solid var(--c-border);
  background: #fff;
  color: var(--c-primary-dark);
  font: inherit;
  font-weight: 700;
  padding: .5rem .9rem;
  border-radius: 6px;
  cursor: pointer;
}

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    width: 100%;
    border-top: 1px solid var(--c-border);
    padding-block: .5rem;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; }
  .site-nav a { padding: .65rem .5rem; }
}

/* ---------- hero (home) ---------- */
.hero {
  background: linear-gradient(135deg, var(--c-hero) 0%, #2b567e 100%);
  color: #fff;
  padding-block: 3rem;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2.5rem;
  align-items: center;
}
.hero h1 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.5rem); margin: 0 0 .75rem; line-height: 1.2; }
.hero p.lead { font-size: 1.1rem; color: #d9e4f0; margin: 0 0 1.5rem; }
.hero .hero-photo img {
  border-radius: var(--radius);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
  display: block;
}
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
}

/* ---------- typography ---------- */
h1, h2, h3 { color: var(--c-primary-dark); line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin: 0 0 1rem; }
h2 { font-size: 1.45rem; margin: 2rem 0 .9rem; }
h3 { font-size: 1.12rem; margin: 1.2rem 0 .5rem; }
p { margin: 0 0 1rem; }

.section-intro { color: var(--c-muted); max-width: 46rem; }

/* ---------- breadcrumbs ---------- */
.breadcrumb {
  font-size: .85rem;
  color: var(--c-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .35rem; color: #a8b4c0; }
.breadcrumb a { color: var(--c-primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- cards & grids ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.card h3 { margin: 0; font-size: 1.05rem; color: var(--c-primary-dark); }
.card p { margin: 0; font-size: .93rem; color: var(--c-muted); }
.card .card-meta { font-size: .88rem; color: var(--c-accent-dark); font-weight: 600; }
.card a { color: var(--c-primary); font-weight: 600; text-decoration: none; }
.card a:hover { text-decoration: underline; }

.plan-card { text-align: center; }
.plan-card .plan-img { background: #fff; padding: .75rem; display: flex; justify-content: center; }
.plan-card .plan-link { margin-top: auto; }

/* ---------- feature list ---------- */
.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: .4rem 1.5rem;
}
.feature-list li {
  padding-left: 1.6rem;
  position: relative;
  margin-bottom: .35rem;
}
.feature-list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--c-accent-dark);
  font-weight: 700;
}

/* ---------- key facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}
.fact {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--radius);
  padding: .9rem 1rem;
  text-align: center;
}
.fact .fact-num { font-size: 1.25rem; font-weight: 700; color: #fff; }
.fact .fact-label { font-size: .82rem; color: #c8d6e4; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.rates {
  width: 100%;
  border-collapse: collapse;
  background: var(--c-card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  font-size: .95rem;
}
table.rates th, table.rates td {
  padding: .75rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--c-border);
}
table.rates thead th { background: var(--c-primary); color: #fff; font-weight: 600; }
table.rates tbody tr:nth-child(even) { background: #f2f6fa; }
table.rates tbody tr:hover { background: #e9f1f8; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: .7rem 1.4rem;
  border-radius: 8px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: .98rem;
}
.btn-primary { background: var(--c-accent); color: #fff; }
.btn-primary:hover { background: var(--c-accent-dark); }
.btn-secondary { background: var(--c-primary); color: #fff; }
.btn-secondary:hover { background: var(--c-primary-dark); }
.btn-outline { background: #fff; color: var(--c-primary-dark); border-color: var(--c-primary); }
.btn-outline:hover { background: #eaf1f8; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0; }

/* ---------- notices ---------- */
.notice {
  background: #fff8e6;
  border: 1px solid #ecd9a0;
  border-left: 4px solid #d4a72c;
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .93rem;
  margin: 1rem 0;
}
.notice p { margin: 0; }

.info-note {
  background: #eef5ee;
  border: 1px solid #cfe0cf;
  border-left: 4px solid var(--c-accent);
  border-radius: 8px;
  padding: .8rem 1rem;
  font-size: .93rem;
}

/* ---------- FAQ ---------- */
details.faq-item {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: 8px;
  margin-bottom: .75rem;
  box-shadow: var(--shadow);
}
details.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--c-primary-dark);
  padding: .9rem 1.1rem;
  list-style: none;
  position: relative;
  padding-right: 2.4rem;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 1.1rem;
  top: .8rem;
  font-size: 1.2rem;
  color: var(--c-accent-dark);
}
details.faq-item[open] summary::after { content: "\2212"; }
details.faq-item .faq-body { padding: 0 1.1rem 1rem; }

/* ---------- forms ---------- */
.form-card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  max-width: 640px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .9rem 1.2rem;
}
.form-field { display: flex; flex-direction: column; gap: .3rem; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-weight: 600; font-size: .92rem; }
.form-field .req { color: #b02a2a; font-size: .85rem; font-weight: 600; }
.form-field input, .form-field select, .form-field textarea {
  font: inherit;
  padding: .55rem .7rem;
  border: 1px solid var(--c-border);
  border-radius: 6px;
  background: #fff;
  color: var(--c-ink);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid var(--c-primary);
  outline-offset: 1px;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- print application (form.html) ---------- */
.print-doc { background: #fff; }
.print-doc .app-line {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
}
@media print {
  .site-header, .site-footer, .breadcrumb, .btn-row, .no-print { display: none !important; }
  body { background: #fff; }
  .print-sheet { border: none; box-shadow: none; padding: 0; }
}

.print-sheet {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  max-width: 860px;
  margin-inline: auto;
}
.print-sheet ol { padding-left: 1.6rem; }
.print-sheet ol > li { margin-bottom: 1.6rem; }
.print-sheet .fill { letter-spacing: .35px; word-break: break-all; }

/* ---------- media figure ---------- */
figure.photo { margin: 0 0 1.25rem; }
figure.photo img { border-radius: var(--radius); box-shadow: var(--shadow); display: block; }
figure.photo figcaption { font-size: .85rem; color: var(--c-muted); margin-top: .45rem; }

.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: start;
}
@media (max-width: 640px) { .photo-pair { grid-template-columns: 1fr; } }

/* floor plan image */
.plan-figure { text-align: center; margin: 0; }
.plan-figure img { background: #fff; border: 1px solid var(--c-border); border-radius: 8px; padding: .6rem; }

/* spec table on plan pages */
.spec-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.spec-table th, .spec-table td { border-bottom: 1px solid var(--c-border); padding: .55rem .8rem; text-align: left; }
.spec-table th { color: var(--c-primary-dark); }

/* plan picker */
.plan-picker ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: .5rem; }
.plan-picker a {
  display: block;
  padding: .6rem .8rem;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 8px;
  text-decoration: none;
  color: var(--c-primary);
  font-weight: 600;
  font-size: .92rem;
}
.plan-picker a:hover { background: #eaf1f8; }
.plan-picker a[aria-current="page"] { background: var(--c-primary); color: #fff; }

/* ---------- contact band ---------- */
.contact-band {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  margin-top: 2.5rem;
}
.contact-band h2 { margin-top: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { margin-bottom: .3rem; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--c-primary-dark);
  color: #c9d6e2;
  padding-block: 2.2rem 1.5rem;
  margin-top: 3rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 2rem;
}
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; gap: 1.2rem; } }
.site-footer h2 { color: #fff; font-size: 1rem; margin: 0 0 .6rem; }
.site-footer p { margin: 0 0 .5rem; font-size: .9rem; }
.site-footer a { color: #e6eef5; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; columns: 2; }
.footer-nav li { margin-bottom: .35rem; font-size: .9rem; }
.footer-legal {
  border-top: 1px solid rgba(255,255,255,.15);
  margin-top: 1.6rem;
  padding-top: 1rem;
  font-size: .82rem;
  text-align: center;
}

/* ---------- resource guide (resources.html) ---------- */
.resource-intro { color: var(--c-muted); max-width: 46rem; }
.resource-group + .resource-group { margin-top: 2.5rem; }
.resource-group h3 {
  font-size: 1.15rem;
  margin: 0 0 .4rem;
  color: var(--c-primary-dark);
}
.resource-group > p + h3 { margin-top: 1.2rem; }
.resource-list {
  list-style: none;
  margin: .6rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.1rem;
}
.resource-card {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.15rem 1.2rem 1.3rem;
}
.resource-card h4 {
  margin: 0;
  font-size: 1.02rem;
  color: var(--c-primary-dark);
  line-height: 1.3;
}
.resource-card p { margin: 0; font-size: .92rem; color: var(--c-muted); }
.resource-card .rc-note {
  margin-top: auto;
  font-size: .82rem;
  color: var(--c-accent-dark);
  font-weight: 600;
}
.resource-card .rc-link {
  margin-top: .4rem;
  font-size: .92rem;
  font-weight: 700;
  color: var(--c-primary);
  text-decoration: none;
}
.resource-card .rc-link:hover { text-decoration: underline; }

/* ---------- friendly-guide callout ---------- */
.friend-guide {
  background: #f0f6fb;
  border: 1px solid #cfe0ee;
  border-left: 4px solid var(--c-primary);
  border-radius: 8px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.friend-guide h3 { margin-top: 0; }
.friend-guide p { margin: 0 0 .75rem; }

/* ---------- sidebar resource module (home) ---------- */
.res-mod {
  background: #f4f0e4;
  border: 1px solid #e5d9b8;
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.res-mod h3 { margin-top: 0; }
.res-mod .res-mod-intro { margin-bottom: .9rem; }
.res-mod ul { list-style: none; margin: 0; padding: 0; }
.res-mod li {
  padding: .6rem 0;
  padding-left: 1.4rem;
  position: relative;
  border-bottom: 1px dotted #d8caa0;
}
.res-mod li:last-child { border-bottom: none; }
.res-mod li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: .6rem;
  color: var(--c-accent-dark);
  font-weight: 700;
}
.res-mod a { color: var(--c-primary-dark); font-weight: 600; text-decoration: none; }
.res-mod a:hover { text-decoration: underline; }
.res-mod .res-mod-more { display: inline-block; margin-top: .4rem; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } }
.small { font-size: .88rem; color: var(--c-muted); }

a { color: var(--c-primary); }
a:hover { color: var(--c-primary-dark); }
