/* yardimsg.com — shared styles for Yardi SMS program disclosure pages */

:root {
  --ink: #1a2332;
  --ink-soft: #46526b;
  --ink-faint: #6b7690;
  --accent: #0d5c8c;
  --accent-dark: #0a4a71;
  --surface: #ffffff;
  --surface-alt: #f4f6f9;
  --border: #dde3ec;
  --radius: 10px;
  --max-width: 860px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

/* Header */
.site-header {
  background: var(--ink);
  color: #fff;
  padding: 0.9rem 1.25rem;
}
.site-header .inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.site-header .wordmark {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  text-decoration: none;
}
.site-header .program {
  font-size: 0.95rem;
  color: #b8c4d6;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--surface-alt), var(--surface));
  border-bottom: 1px solid var(--border);
  padding: 3rem 1.25rem 2.5rem;
}
.hero .inner { max-width: var(--max-width); margin: 0 auto; }
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: 2rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.hero p.lede {
  margin: 0;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46em;
}

/* Main content */
main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}
main h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
}
main h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.1rem;
}
main p { margin: 0 0 1rem; }
main ul, main ol { margin: 0 0 1rem; padding-left: 1.5rem; }
main li { margin-bottom: 0.4rem; }
main a { color: var(--accent); }
main a:hover { color: var(--accent-dark); }

.muted { color: var(--ink-faint); }
.small { font-size: 0.9rem; }

/* Callout / disclosure boxes */
.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
}
.callout p:last-child { margin-bottom: 0; }

.disclosure {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.disclosure p:last-child { margin-bottom: 0; }

/* Sample SMS bubbles */
.sms-samples { margin: 1.25rem 0; }
.sms-bubble {
  background: #e8f0f7;
  border: 1px solid #cdddeb;
  border-radius: 14px;
  border-top-left-radius: 4px;
  padding: 0.8rem 1.05rem;
  margin: 0 0 0.75rem;
  max-width: 34em;
  font-size: 0.95rem;
  color: #24384d;
  font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* Keyword table */
table.keywords {
  border-collapse: collapse;
  width: 100%;
  margin: 1.25rem 0;
  font-size: 0.95rem;
}
table.keywords th, table.keywords td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.9rem;
  text-align: left;
  vertical-align: top;
}
table.keywords th {
  background: var(--surface-alt);
  font-weight: 600;
  white-space: nowrap;
}
table.keywords code {
  font-weight: 700;
  font-family: "SF Mono", SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

/* Program cards (root index) */
.programs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin: 1.5rem 0;
}
.program-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  background: var(--surface);
  display: flex;
  flex-direction: column;
}
.program-card h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.program-card p { flex: 1; color: var(--ink-soft); font-size: 0.98rem; }
.program-card .links { margin-top: 0.75rem; font-size: 0.95rem; }
.program-card .links a { margin-right: 1rem; white-space: nowrap; }

/* Contact block */
.contact-block {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.25rem 0;
}
.contact-block p { margin: 0.15rem 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
  padding: 2rem 1.25rem 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-faint);
}
.site-footer .inner { max-width: var(--max-width); margin: 0 auto; }
.site-footer a { color: var(--ink-soft); }
.site-footer p { margin: 0.3rem 0; }
.site-footer .footer-links { margin-bottom: 0.75rem; }
.site-footer .footer-links a { margin-right: 1.25rem; }

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 2rem 1.25rem 1.75rem; }
  .hero h1 { font-size: 1.55rem; }
}

/* Opt-in enrollment form */
.optin-form {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.5rem 1.25rem;
  margin: 1.25rem 0;
  max-width: 34em;
}
.optin-form label {
  display: block;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0.9rem 0 0.3rem;
}
.optin-form input[type="text"],
.optin-form input[type="email"],
.optin-form input[type="tel"] {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
}
.optin-form input:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.optin-form .consent {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 1.1rem 0 0;
}
.optin-form .consent input[type="checkbox"] {
  margin-top: 0.3rem;
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.optin-form .consent label {
  font-weight: 400;
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.optin-form .fine {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0.9rem 0;
}
.optin-form button {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background: var(--accent);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
.optin-form button:hover { background: var(--accent-dark); }
.optin-confirm {
  background: #eaf6ee;
  border: 1px solid #bfe3cb;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  margin: 1.25rem 0;
  max-width: 34em;
  color: #1e5631;
}
