/* ============================================================
   main.css — The Patient Agent
   Global variables, reset, typography, layout
   ============================================================ */

/* --- Google Fonts are loaded in <head> of each HTML page --- */

:root {
  /* Colors */
  --navy:        #061028;
  --navy-mid:    #0a0f1e;
  --navy-light:  #0d1830;
  --gold:        #c9a84c;
  --gold-light:  #f5d78e;
  --white:       #ffffff;
  --off-white:   #f8f6f0;
  --text-dark:   #1a1a2e;
  --text-muted:  rgba(255, 255, 255, 0.55);
  --gold-border: rgba(201, 168, 76, 0.25);

  /* Typography */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Lato', 'Helvetica Neue', Arial, sans-serif;

  /* Layout */
  --max-width:       1200px;
  --section-padding: 5rem 1.5rem;
  --border-radius:   8px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-med:  0.4s ease;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--white);
  background-color: var(--navy);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--gold-light);
}

ul {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--white);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p {
  font-family: var(--font-body);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
}

.text-dark p {
  color: var(--text-dark);
}

.text-dark h1,
.text-dark h2,
.text-dark h3,
.text-dark h4 {
  color: var(--text-dark);
}

/* ---- Layout Helpers ---- */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-padding);
}

.section-navy    { background-color: var(--navy); }
.section-mid     { background-color: var(--navy-mid); }
.section-light   { background-color: var(--navy-light); }
.section-offwhite {
  background-color: var(--off-white);
  color: var(--text-dark);
}
.section-offwhite h1,
.section-offwhite h2,
.section-offwhite h3,
.section-offwhite h4 {
  color: var(--text-dark);
}
.section-offwhite p {
  color: var(--text-dark);
  opacity: 0.85;
}

/* ---- Accent / Label ---- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: block;
}

.section-label {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

/* ---- Gold Rule ---- */
.gold-rule {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  border: none;
  margin: 1.25rem 0;
}

.gold-rule.centered {
  margin-left: auto;
  margin-right: auto;
}

/* ---- Section Heading Block ---- */
.section-heading {
  text-align: center;
  margin-bottom: 3rem;
}

.section-heading h2 {
  margin-bottom: 0.75rem;
}

.section-heading p {
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ---- Gold top border bar ---- */
.gold-top-bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light), var(--gold));
  position: absolute;
  top: 0;
  left: 0;
}

/* ---- Blockquote ---- */
blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  background: rgba(201, 168, 76, 0.05);
  border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

blockquote p {
  font-style: italic;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
}

blockquote cite {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-style: normal;
  font-weight: 700;
}

/* ---- Utility ---- */
.text-gold    { color: var(--gold); }
.text-gold-lt { color: var(--gold-light); }
.text-white   { color: var(--white); }
.text-muted   { color: var(--text-muted); }
.text-center  { text-align: center; }
.mt-1  { margin-top: 0.5rem; }
.mt-2  { margin-top: 1rem; }
.mt-3  { margin-top: 1.5rem; }
.mt-4  { margin-top: 2rem; }
.mb-1  { margin-bottom: 0.5rem; }
.mb-2  { margin-bottom: 1rem; }
.mb-3  { margin-bottom: 1.5rem; }
.mb-4  { margin-bottom: 2rem; }

/* ---- Responsive grid helpers ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

@media (max-width: 900px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- Long-form prose ---- */
.prose {
  max-width: 720px;
  margin: 0 auto;
}

.prose p {
  margin-bottom: 1.25rem;
}

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

/* ---- Comparison Table ---- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
}

.comparison-table th {
  background: var(--navy-light);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.25rem;
  text-align: left;
  border-bottom: 1px solid var(--gold-border);
}

.comparison-table td {
  padding: 0.9rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  vertical-align: top;
}

.comparison-table tr:last-child td {
  border-bottom: none;
}

.comparison-table td:first-child {
  color: var(--text-muted);
  font-style: italic;
}

/* ---- Credentials list ---- */
.credentials-list {
  list-style: none;
  padding: 0;
}

.credentials-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--gold-border);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.credentials-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  flex-shrink: 0;
}

.credentials-list li:last-child {
  border-bottom: none;
}
