/* ============================================================
   Respeno LLC — static pages stylesheet
   ============================================================
   Pages: index.html, sms-consent.html, privacy.html, terms.html
   Brand: gilt monogram + serif wordmark, antique gold on cream,
          EB Garamond display + Inter UI
   ============================================================ */

:root {
  /* Brand palette — locked from Respeno brand kit */
  --ink: #1A1612;
  --ink-soft: #2B2419;
  --gold: #A8864B;
  --gold-deep: #8A6A33;
  --gold-light: #D4B97A;
  --cream: #F4EEE3;
  --cream-2: #EBE3D2;
  --muted: #6F6453;
  --line: rgba(26, 22, 18, 0.14);
  --line-soft: rgba(26, 22, 18, 0.08);

  /* Type stacks */
  --display: 'EB Garamond', Georgia, 'Times New Roman', serif;
  --ui: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--cream);
  background-image:
    radial-gradient(ellipse at top left, rgba(168, 134, 75, 0.04), transparent 50%),
    radial-gradient(ellipse at bottom right, rgba(168, 134, 75, 0.03), transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   LAYOUT
   ============================================================ */

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.container--wide {
  max-width: 1080px;
}

@media (min-width: 768px) {
  .container {
    padding: 80px 40px 112px;
  }
}

/* ============================================================
   HEADER (legal pages)
   ============================================================ */

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 32px;
  margin-bottom: 64px;
  border-bottom: 1px solid var(--line);
}

.site-header__logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-header__logo img {
  height: 44px;
  width: auto;
  display: block;
}

.site-header__nav {
  display: none;
  gap: 28px;
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

@media (min-width: 640px) {
  .site-header__nav {
    display: flex;
  }
}

.site-header__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-header__nav a:hover {
  color: var(--gold-deep);
}

.site-header__nav a.is-active {
  color: var(--ink);
}

/* ============================================================
   PAGE HEADER (title section on legal pages)
   ============================================================ */

.page-header {
  margin-bottom: 56px;
}

.page-eyebrow {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.page-title {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 16px;
}

@media (min-width: 768px) {
  .page-title {
    font-size: 56px;
  }
}

.page-meta {
  font-family: var(--ui);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Diamond divider — matches brand card */
.diamond-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 40px 0;
  color: var(--gold);
}

.diamond-divider::before,
.diamond-divider::after {
  content: '';
  flex: 0 0 60px;
  height: 1px;
  background: var(--gold);
  opacity: 0.5;
}

.diamond-divider__mark {
  margin: 0 16px;
  font-size: 10px;
  letter-spacing: 0.1em;
}

/* ============================================================
   CONTENT TYPOGRAPHY
   ============================================================ */

.content h2 {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-top: 56px;
  margin-bottom: 20px;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  font-family: var(--ui);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 32px;
  margin-bottom: 12px;
}

.content p {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 18px;
}

.content strong {
  color: var(--ink);
  font-weight: 600;
}

.content em {
  font-style: italic;
}

.content a {
  color: var(--gold-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  transition: text-decoration-thickness 100ms ease;
}

.content a:hover {
  text-decoration-thickness: 2px;
}

.content ul,
.content ol {
  margin-left: 24px;
  margin-bottom: 20px;
  padding-left: 8px;
}

.content li {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.75;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.content li::marker {
  color: var(--gold);
}

.content hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

/* Section number badge for legal pages */
.section-num {
  display: inline-block;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-right: 12px;
}

/* Ensure trailing space character on section badges renders even if HTML drops it */
.section-num::after {
  content: "\00a0";
}

/* Callout box for important info */
.callout {
  background: rgba(168, 134, 75, 0.08);
  border-left: 3px solid var(--gold);
  padding: 24px 28px;
  margin: 32px 0;
  border-radius: 4px;
}

.callout p {
  margin-bottom: 12px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--gold-deep);
}

/* Definition list (used in SMS consent page) */
.def-list {
  margin: 24px 0;
}

.def-list dt {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-top: 24px;
  margin-bottom: 6px;
}

.def-list dd {
  font-family: var(--ui);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer {
  margin-top: 96px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}

.site-footer__grid {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 32px;
}

@media (min-width: 640px) {
  .site-footer__grid {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 64px;
  }
}

.site-footer__entity {
  font-style: normal;
  font-family: var(--ui);
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
}

.site-footer__entity strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

.site-footer__links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--ui);
  font-size: 13px;
}

.site-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 150ms ease;
}

.site-footer__links a:hover {
  color: var(--gold-deep);
}

.site-footer__copyright {
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */

.home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.home__inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 24px;
}

.home__monogram {
  margin-bottom: 48px;
}

.home__monogram img {
  width: 120px;
  height: 120px;
  display: block;
}

@media (min-width: 768px) {
  .home__monogram img {
    width: 160px;
    height: 160px;
  }
}

.home__wordmark {
  margin-bottom: 12px;
}

.home__wordmark img {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .home__wordmark img {
    height: 72px;
  }
}

.home__tagline {
  font-family: var(--ui);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.home__description {
  font-family: var(--display);
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 560px;
  margin: 0 auto 48px;
}

@media (min-width: 768px) {
  .home__description {
    font-size: 26px;
  }
}

.home__status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  background: rgba(168, 134, 75, 0.1);
  border: 1px solid rgba(168, 134, 75, 0.3);
  border-radius: 999px;
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 48px;
}

.home__status::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.home__contact {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}

.home__contact a {
  color: var(--gold-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid currentColor;
}

.home__contact a:hover {
  color: var(--ink);
}

.home__footer {
  padding: 32px 24px;
  text-align: center;
  font-family: var(--ui);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px solid var(--line);
}

.home__footer a {
  color: var(--muted);
  text-decoration: none;
  margin: 0 12px;
}

.home__footer a:hover {
  color: var(--gold-deep);
}

/* ============================================================
   TABLE OF CONTENTS (legal pages)
   ============================================================ */

.toc {
  background: var(--cream-2);
  padding: 28px 32px;
  border-radius: 6px;
  margin-bottom: 56px;
  border: 1px solid var(--line-soft);
}

.toc__title {
  font-family: var(--ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: var(--gold-deep);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.toc__list {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 1;
}

@media (min-width: 640px) {
  .toc__list {
    column-count: 2;
    column-gap: 32px;
  }
}

.toc__list li {
  margin: 0 0 8px 0;
  break-inside: avoid;
}

.toc__list a {
  font-family: var(--ui);
  font-size: 14px;
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.5;
  display: block;
  padding: 4px 0;
}

.toc__list a:hover {
  color: var(--gold-deep);
}

.toc__list a::before {
  content: '§ ';
  color: var(--gold);
  font-family: var(--display);
}
