/* ============================================================
   Drop of Clarity — Design System
   Clean, editorial blog aesthetic for advertorial content
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500&family=Inter:wght@400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --font-body: 'Lora', Georgia, serif;
  --font-heading: 'Inter', -apple-system, sans-serif;
  --font-ui: 'Inter', -apple-system, sans-serif;

  --bg-page: #FAFAF8;
  --bg-surface: #FFFFFF;
  --bg-surface-alt: #F5F3EF;
  --bg-footer: #1A1A2E;

  --text-primary: #1A1A2E;
  --text-secondary: #4A4A5A;
  --text-muted: #7A7A8A;
  --text-inverse: #E8ECF1;

  --accent: #2563EB;
  --accent-hover: #1D4ED8;
  --accent-warm: #D97706;
  --accent-warm-hover: #B45309;

  --cta-bg: #D97706;
  --cta-bg-hover: #B45309;
  --cta-text: #FFFFFF;
  --cta-glow: rgba(217, 119, 6, 0.30);

  --border: #E5E3DE;
  --border-light: #F0EDE8;

  --radius: 8px;
  --radius-lg: 12px;

  --max-content: 680px;
  --max-page: 1100px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.8;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); }

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  padding: 0.5rem 1rem;
  background: var(--accent);
  color: #fff;
  z-index: 999;
  font-family: var(--font-ui);
  font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-light);
  padding: 0.9rem 1.5rem;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.92);
}

.nav-wrap {
  max-width: var(--max-page);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.brand span { color: var(--accent-warm); }
.brand:hover { color: var(--text-primary); }

.nav {
  display: flex;
  gap: 1.5rem;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 500;
}
.nav a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--text-primary); }

@media (max-width: 600px) {
  .nav { display: none; }
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */
.wrap {
  max-width: var(--max-page);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
}

.content-narrow {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 3rem 0;
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 1rem;
}

.hero .kicker {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-warm);
  margin-bottom: 0.5rem;
}

.hero p { color: var(--text-secondary); margin-bottom: 1.5rem; }

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

@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 1.7rem; }
  .hero img { order: -1; }
}

/* ============================================================
   HOMEPAGE — CARDS
   ============================================================ */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  padding: 2rem 0 3rem;
}

.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.8rem;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  line-height: 1.3;
}
.card h3 a { color: var(--text-primary); }
.card h3 a:hover { color: var(--accent); }
.card p { font-size: 0.9rem; color: var(--text-secondary); }
.card .meta {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.8rem;
}

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

/* ============================================================
   HOMEPAGE — FEATURE BAND
   ============================================================ */
.feature-band {
  background: var(--bg-surface-alt);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin: 1rem 0 2rem;
}

.feature-band h2 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}
.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-warm);
  font-weight: 700;
}

/* ============================================================
   FAQ
   ============================================================ */
.content h2 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.8rem;
}
.content h3 {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
}
.content p {
  margin-bottom: 1rem;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.button {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.6rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}

.button-primary {
  background: var(--cta-bg);
  color: var(--cta-text);
  box-shadow: 0 2px 8px var(--cta-glow);
}
.button-primary:hover {
  background: var(--cta-bg-hover);
  color: var(--cta-text);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px var(--cta-glow);
}

.button-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border);
}
.button-secondary:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.cta-row { display: flex; gap: 0.8rem; flex-wrap: wrap; }

/* ============================================================
   BRIDGE PAGE — /op/
   ============================================================ */
body.landing-op-page {
  background: #e8eaee;
  color: #2a2a2a;
  letter-spacing: 0;
  line-height: 1.6;
}

/* Minimal top bar */
.op-topbar {
  background: #fff;
  border-bottom: 1px solid #ddd;
  padding: 0.7rem 1.5rem;
  text-align: center;
}
.op-topbar a {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: #555;
  text-decoration: none;
}
.op-topbar span { color: var(--accent-warm); }

/* Shell container */
.op-shell {
  max-width: 960px;
  margin: 2rem auto 3.5rem;
  padding: 1.8rem 2rem 2.2rem;
  border: 1px solid #d8d8d8;
  background: #f7f7f7;
  box-shadow: 0 18px 44px rgba(20, 23, 28, 0.12);
}

/* Heading */
.op-heading {
  text-align: center;
  margin: 0;
  color: #2b2b2b;
  font-family: var(--font-heading);
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.01em;
  line-height: 1.18;
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
}

/* Subhead */
.op-subhead {
  text-align: center;
  color: #c0392b;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  margin: 0.8rem 0 1.5rem;
  line-height: 1.35;
}

/* Two-column grid: image + bullets */
.op-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 1.6rem;
  align-items: start;
}

/* Video thumbnail (clickable) */
.op-thumb {
  position: relative;
  display: block;
  border: 5px solid #101010;
  border-radius: 4px;
  box-shadow: 0 9px 18px rgba(0,0,0,0.18);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}

.op-thumb img {
  display: block;
  width: 100%;
  transition: transform 0.3s ease, filter 0.3s ease;
}

/* Dark overlay */
.op-thumb::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.32);
  z-index: 1;
  transition: background 0.3s ease;
}

/* Play button */
.op-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 80px;
  height: 80px;
  background: rgba(220, 53, 34, 0.92);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s ease, background 0.25s ease;
}

.op-play::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 54%;
  transform: translate(-50%, -50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 16px 0 16px 28px;
  border-color: transparent transparent transparent #fff;
}

/* Hover state */
.op-thumb:hover::before {
  background: rgba(0, 0, 0, 0.18);
}

.op-thumb:hover img {
  transform: scale(1.03);
}

.op-thumb:hover .op-play {
  transform: translate(-50%, -50%) scale(1.12);
  background: rgba(230, 60, 40, 1);
}

/* Copy column */
.op-copy h2 {
  margin: 0 0 0.8rem;
  color: #2d2d2d;
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  font-family: var(--font-heading);
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.2;
}

.op-copy ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.op-copy li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 0.6rem;
  color: #343434;
  font-family: var(--font-body);
  font-size: 0.98rem;
  line-height: 1.5;
}

.op-copy li::before {
  content: "✓";
  color: #1a7a1a;
  font-weight: 900;
  font-size: 1.3rem;
  line-height: 1;
}

/* Big CTA button */
.op-cta {
  display: block;
  width: min(520px, 100%);
  margin: 1.5rem auto 0;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  font-weight: 800;
  color: #fff;
  border-radius: 14px;
  border: 2px solid #c0392b;
  padding: 1rem 1.2rem;
  background: linear-gradient(180deg, #e74c3c 0%, #c0392b 100%);
  box-shadow: 0 7px 16px rgba(192, 57, 43, 0.35);
  transition: all 0.2s ease;
}

.op-cta:hover {
  color: #fff;
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(192, 57, 43, 0.4);
}

/* Footer links */
.op-bottom {
  margin-top: 1.2rem;
  text-align: center;
  color: #5f5f5f;
  font-family: var(--font-ui);
  font-size: 0.82rem;
}

.op-bottom a {
  color: #434343;
  text-decoration-color: #9f9f9f;
}
.op-bottom a:hover {
  color: #111;
}

/* Responsive */
@media (max-width: 768px) {
  .op-grid { grid-template-columns: 1fr; }

  .op-shell {
    margin: 0.8rem auto 1.5rem;
    padding: 1.2rem 1rem 1.5rem;
  }

  .op-cta {
    border-radius: 10px;
    font-size: 1.4rem;
    padding: 0.9rem 1rem;
  }
}

/* ============================================================
   LEGAL / INTERIOR PAGE STYLES
   ============================================================ */
.page-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.2rem;
}

.breadcrumbs {
  font-family: var(--font-ui);
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--accent); }

/* ============================================================
   SITE FOOTER (FULL PAGES)
   ============================================================ */
.site-footer {
  background: var(--bg-footer);
  color: var(--text-inverse);
  padding: 3rem 1.5rem 2rem;
  margin-top: 3rem;
}

.footer-wrap {
  max-width: var(--max-page);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer h3 {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.8rem;
  color: #fff;
}

.site-footer p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.4rem; }
.site-footer li a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  transition: color 0.2s;
}
.site-footer li a:hover { color: #fff; }

.site-footer .meta {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.35);
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}

@media (max-width: 768px) {
  .footer-wrap { grid-template-columns: 1fr; gap: 1.5rem; }
}

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   ACCESSIBILITY
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { transition: none; opacity: 1; transform: none; }
  .op-cta { animation: none; }
  * { transition-duration: 0.01ms !important; }
}
