/* ==========================================================================
   Prostate Health Guide — base styles (mobile-first)
   ========================================================================== */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f4f9fa;
  --color-bg-accent: #eef7f4;
  --color-text: #1f2b2e;
  --color-text-muted: #55666c;
  --color-primary: #2f6f8f;
  --color-primary-dark: #234f65;
  --color-accent: #3f8f7d;
  --color-border: #e0e8ea;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 6px 24px rgba(31, 62, 74, 0.08);
  --max-width: 1120px;
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: var(--color-primary);
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3 {
  line-height: 1.25;
  margin: 0 0 16px;
  color: var(--color-text);
}

h1 { font-size: 1.9rem; font-weight: 700; }
h2 { font-size: 1.5rem; font-weight: 700; }
h3 { font-size: 1.1rem; font-weight: 600; }

p { margin: 0 0 16px; color: var(--color-text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.section {
  padding: 56px 0;
}

.section--alt {
  background: var(--color-bg-alt);
}

.section-head {
  max-width: 720px;
  margin: 0 0 32px;
}

.section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}

.site-header .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  flex-shrink: 0;
}

.header-nav {
  display: none;
}

/* Hero ---------------------------------------------------------------------*/

.hero {
  padding: 40px 0 48px;
}

.hero .container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-copy h1 {
  font-size: 2rem;
}

.hero-copy .lede {
  font-size: 1.05rem;
  max-width: 60ch;
}

.hero-fineprint {
  margin-top: 20px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

.hero-media {
  order: -1;
}

.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Two-column media/text sections (why-matters, when-to-speak) --------------*/

.why-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.why-grid .section-head {
  max-width: none;
  margin: 0;
}

.why-media {
  order: -1;
}

.why-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

/* Feature / awareness cards ------------------------------------------------*/

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-bg-accent);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  flex-shrink: 0;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin-bottom: 0;
  font-size: 0.96rem;
}

/* Callout / when-to-speak ---------------------------------------------------*/

.callout {
  background: var(--color-bg-accent);
  border: 1px solid #d9ece5;
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

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

.callout-note {
  font-size: 0.88rem;
  color: var(--color-text-muted);
  border-top: 1px solid #d9ece5;
  padding-top: 14px;
  margin-top: 14px;
}

/* Trust / compliance section -------------------------------------------------*/

.trust-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.trust-box h2 {
  font-size: 1.1rem;
}

.trust-box p {
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.trust-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 0.88rem;
}

/* Footer ----------------------------------------------------------------------*/

.site-footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 0.85rem;
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--color-primary);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  max-width: 70ch;
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Simple legal page layout ------------------------------------------------- */

.legal-main {
  padding: 48px 0 64px;
}

.legal-main .container {
  max-width: 760px;
}

.legal-main h1 {
  font-size: 1.7rem;
}

.legal-main h2 {
  font-size: 1.15rem;
  margin-top: 32px;
}

.legal-main p, .legal-main li {
  color: var(--color-text-muted);
  font-size: 0.96rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 32px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  font-size: 0.9rem;
  text-decoration: none;
}

/* Utility ------------------------------------------------------------------- */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 8px;
  top: -48px;
  background: var(--color-primary);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 8px;
}

/* ==========================================================================
   Breakpoints
   ========================================================================== */

@media (min-width: 640px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 768px) {
  h1 { font-size: 2.3rem; }
  .hero-copy h1 { font-size: 2.5rem; }
  .section { padding: 72px 0; }
  .header-nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 0.92rem;
  }
  .header-nav a {
    color: var(--color-text);
    text-decoration: none;
    font-weight: 500;
  }
  .header-nav a:hover {
    color: var(--color-primary);
  }
  .brand {
    font-size: 1.05rem;
  }
}

@media (min-width: 1024px) {
  .hero .container {
    flex-direction: row;
    align-items: center;
  }
  .hero-copy {
    flex: 1 1 50%;
  }
  .hero-media {
    flex: 1 1 45%;
    order: 0;
  }
  .why-grid {
    flex-direction: row;
    align-items: center;
    gap: 48px;
  }
  .why-grid > .section-head {
    flex: 1 1 50%;
  }
  .why-media {
    flex: 1 1 45%;
    order: 0;
  }
  .why-grid--reverse {
    flex-direction: row-reverse;
  }
  .card-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 1280px) {
  .hero-copy h1 { font-size: 2.75rem; }
}
