@import url('brand/colors_and_type.css');

/* ============================================================
   PMHOA Pro V1 — Site Styles
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

/* ---------- Layout primitives ---------- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.container--narrow { max-width: 760px; }
.container--wide   { max-width: 1280px; }

section { position: relative; }

.section--light  { background: var(--pmhoa-paper); }
.section--subtle { background: var(--bg-subtle); }
.section--ink    { background: var(--pmhoa-ink);  color: var(--fg-inverse); }
.section--ink h1,
.section--ink h2,
.section--ink h3,
.section--ink h4 { color: var(--fg-inverse); }

.divider-thin {
  border: 0; height: 1px;
  background: var(--border);
  margin: 0;
}
.section--ink .divider-thin { background: rgba(255,255,255,0.08); }

/* ---------- Eyebrows ---------- */
.eyebrow {
  display: inline-block;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pmhoa-blue);
  margin: 0 0 20px;
}
.eyebrow--light { color: var(--pmhoa-blue-light); }
.eyebrow--muted { color: var(--fg-subtle); }
.eyebrow::before {
  content: ""; display: inline-block;
  width: 16px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin-right: 10px;
  transform: translateY(-2px);
}

/* ---------- Headlines ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(40px, 5.4vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.028em;
  margin: 0;
  text-wrap: balance;
}
.h-section {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.022em;
  margin: 0;
  text-wrap: balance;
}
.h-billboard {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(56px, 11vw, 160px);
  line-height: 0.92;
  letter-spacing: -0.045em;
  margin: 0;
  text-wrap: balance;
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--fg-muted);
  margin: 0;
  max-width: 56ch;
}
.section--ink .lede { color: rgba(255,255,255,0.72); }

.body-prose p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg);
  margin: 0 0 18px;
  max-width: 64ch;
}
.body-prose p:last-child { margin-bottom: 0; }
.section--ink .body-prose p { color: rgba(255,255,255,0.82); }

.pullquote {
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--pmhoa-blue);
  margin: 28px 0 0;
  max-width: 60ch;
  letter-spacing: -0.005em;
  font-weight: 500;
}
.section--ink .pullquote { color: var(--pmhoa-blue-light); }

/* ---------- Buttons / links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  padding: 12px 18px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}
.btn--primary { background: var(--pmhoa-blue); color: white; }
.btn--primary:hover { background: var(--pmhoa-blue-deep); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { background: var(--neutral-100); border-color: var(--border-strong); }
.btn--ghost-light {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.22);
}
.btn--ghost-light:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.42);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--pmhoa-blue);
  font-weight: 600;
  text-decoration: none;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: gap 160ms ease;
}
.text-link:hover { gap: 8px; color: var(--pmhoa-blue-deep); }
.text-link::after { content: "→"; font-weight: 500; }
.section--ink .text-link { color: var(--pmhoa-blue-light); }
.section--ink .text-link:hover { color: white; }

/* ---------- CTA module (form + button) ---------- */
.cta-form {
  display: grid;
  gap: 14px;
  max-width: 480px;
}
.cta-form__input-wrap {
  position: relative;
}
.cta-form__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 8px;
}
.section--ink .cta-form__label { color: rgba(255,255,255,0.6); }
.cta-form__input {
  width: 100%;
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 500;
  padding: 16px 18px;
  height: 56px;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  background: white;
  color: var(--fg);
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.cta-form__input::placeholder { color: var(--neutral-400); font-weight: 400; }
.cta-form__input:focus {
  border-color: var(--pmhoa-blue);
  box-shadow: 0 0 0 3px rgba(18,144,207,0.18);
}
.section--ink .cta-form__input {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.16);
  color: white;
}
.section--ink .cta-form__input::placeholder { color: rgba(255,255,255,0.4); }
.section--ink .cta-form__input:focus {
  background: rgba(255,255,255,0.08);
  border-color: var(--pmhoa-blue-light);
  box-shadow: 0 0 0 3px rgba(136,195,235,0.22);
}

.cta-form__btn {
  display: block;
  width: 100%;
  padding: 14px 22px;
  border: 0; border-radius: 8px;
  background: var(--pmhoa-blue);
  color: white;
  font-family: var(--font-brand);
  cursor: pointer;
  transition: background 140ms ease, transform 80ms ease;
  text-align: center;
  line-height: 1.2;
}
.cta-form__btn:hover { background: var(--pmhoa-blue-deep); }
.cta-form__btn:active { transform: scale(0.995); }
.cta-form__btn-main {
  display: block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
}
.cta-form__btn-sub {
  display: block;
  font-size: 12px;
  font-weight: 500;
  opacity: 0.78;
  letter-spacing: 0.04em;
  margin-top: 4px;
  line-height: 1.2;
}
.cta-form__micro {
  font-size: 13px;
  font-style: italic;
  color: var(--fg-subtle);
  margin: 0;
}
.section--ink .cta-form__micro { color: rgba(255,255,255,0.55); }

.cta-form__success {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 20px;
  background: rgba(31,157,106,0.08);
  border: 1px solid rgba(31,157,106,0.3);
  border-radius: 8px;
  color: var(--success);
  font-weight: 600;
  font-size: 15px;
}
.section--ink .cta-form__success {
  background: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
  color: white;
}
.cta-form__success-icon {
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--success);
  color: white;
  display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  flex: 0 0 24px;
}

/* ---------- Operational table ---------- */
.op-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.op-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}
.op-card__title {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.005em;
}
.op-card__dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--success);
  box-shadow: 0 0 0 3px rgba(31,157,106,0.18);
}
.op-card__meta {
  font-size: 12px;
  color: var(--fg-subtle);
  font-variant-numeric: tabular-nums;
}

/* ---------- Footer link rows ---------- */
.link-row { display: grid; gap: 10px; list-style: none; padding: 0; margin: 0; }

/* ---------- Utility ---------- */
.mono { font-family: var(--font-mono); font-feature-settings: "tnum"; }
.tnum { font-variant-numeric: tabular-nums; }
.no-shrink { flex-shrink: 0; }
.muted { color: var(--fg-muted); }

/* ---------- Section spacing ---------- */
.section-pad {
  padding: clamp(72px, 9vw, 140px) 0;
}
.section-pad--tight {
  padding: clamp(56px, 6vw, 96px) 0;
}
.section-pad--airy {
  padding: clamp(120px, 14vw, 200px) 0;
}

/* ---------- Responsive breakpoint helpers ---------- */
@media (max-width: 960px) {
  .container { padding: 0 24px; }
}

/* Focus visibility */
:focus-visible {
  outline: 2px solid var(--pmhoa-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

@keyframes pmhoaFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pmhoaSlideUp {
  from { opacity: 0; transform: translateY(16px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Nav responsive */
@media (max-width: 1100px) {
  .nav-phone { display: none; }
}
@media (max-width: 900px) {
  .nav-links { display: none !important; }
}

/* Hero stacks when narrow */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr !important; gap: 56px !important; }
}
@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr !important; gap: 48px !important; }
}
