/* ==========================================================================
   Stryppd — shared stylesheet
   Brand: clarity, authenticity, trust. Stripped of noise.
   Color scheme: Black, White, Brick Red
   ========================================================================== */

:root {
  --color-bg: #f5f5f5;
  --color-bg-alt: #efefef;
  --color-surface: #ffffff;
  --color-text: #1a1a1a;
  --color-text-muted: #555555;
  --color-border: #d9d9d9;
  --color-accent: #963B1D;      /* brick red/brown — trust, bold */
  --color-accent-dark: #6d2817;
  --color-accent-soft: #f4e8e3;
  --color-warn: #963B1D;

  --font-head: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --maxw: 1120px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; color: var(--color-text-muted); }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
}
.btn-primary:hover { background: var(--color-accent-dark); }
.btn-outline {
  background: transparent;
  border-color: var(--color-text);
  color: var(--color-text);
}
.btn-outline:hover { background: var(--color-text); color: #fff; }
.btn-outline.on-dark { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-outline.on-dark:hover { background: #fff; color: var(--color-accent-dark); }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 12px; top: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(245, 245, 245, 0.92);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid var(--color-border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--color-text);
  letter-spacing: -0.02em;
}
.logo span { color: var(--color-accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.nav-links a:hover,
.nav-links a[aria-current="page"] {
  border-bottom-color: var(--color-accent);
  color: var(--color-accent-dark);
}
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  margin: 5px 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 780px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--color-border);
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid var(--color-border); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-cta .btn { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--color-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { margin-bottom: 20px; }
.hero-lead { font-size: 1.15rem; max-width: 46ch; }
.hero-actions { display: flex; gap: 16px; margin-top: 28px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-trust div { font-size: 0.85rem; color: var(--color-text-muted); }
.hero-trust strong { display: block; font-family: var(--font-head); font-size: 1.6rem; color: var(--color-text); }

.hero-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
}
.hero-panel h3 { margin-bottom: 16px; }
.label-list { list-style: none; margin: 0; padding: 0; }
.label-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed var(--color-border);
  font-size: 0.92rem;
}
.label-list li:last-child { border-bottom: none; }
.tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 100px;
  white-space: nowrap;
  height: fit-content;
}
.tag-flag { background: #f4e8e3; color: var(--color-accent); }
.tag-clear { background: var(--color-accent-soft); color: var(--color-accent-dark); }

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

/* ---------- Section ---------- */
.section { padding: 80px 0; }
.section-alt { background: var(--color-bg-alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Steps / How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
}
.step-number {
  font-family: var(--font-head);
  font-size: 2rem;
  color: var(--color-accent);
  margin-bottom: 12px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Category cards ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(26,26,26,0.08); }
.card-media {
  height: 150px;
  background: linear-gradient(135deg, var(--color-accent-soft), var(--color-bg-alt));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--color-accent);
}
.card-body { padding: 22px; }
.card-body h3 { margin-bottom: 8px; }
.card-body p { margin-bottom: 0; font-size: 0.95rem; }
@media (max-width: 860px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Values grid (About) ---------- */
.values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.value-item { padding: 8px 0; }
.value-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 700;
  margin-bottom: 14px;
}
@media (max-width: 860px) { .values { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ---------- Split layout ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  min-height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-head);
  color: var(--color-accent);
  font-size: 1.1rem;
  text-align: center;
  padding: 24px;
}

/* ---------- Timeline (About) ---------- */
.timeline { border-left: 2px solid var(--color-border); padding-left: 28px; margin-left: 6px; }
.timeline-item { position: relative; padding-bottom: 36px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -33px;
  top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 3px solid var(--color-bg);
}
.timeline-item h3 { margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}
.stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 2.4rem;
  color: var(--color-accent-dark);
}
.stat span { font-size: 0.9rem; color: var(--color-text-muted); }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Newsletter ---------- */
.newsletter {
  background: #1a1a1a;
  color: #fff;
  border-radius: 12px;
  padding: 52px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}
.newsletter h2, .newsletter p { color: #fff; }
.newsletter p { color: rgba(255,255,255,0.78); }
.newsletter-form { display: flex; gap: 10px; }
.newsletter-form input[type="email"] {
  flex: 1;
  padding: 13px 16px;
  border-radius: var(--radius);
  border: none;
  font-size: 0.95rem;
  font-family: var(--font-body);
}
.newsletter-note { font-size: 0.78rem; color: rgba(255,255,255,0.6); margin-top: 10px; }
@media (max-width: 780px) {
  .newsletter { grid-template-columns: 1fr; padding: 36px 24px; }
  .newsletter-form { flex-direction: column; }
}

/* ---------- Blog ---------- */
.blog-filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.filter-pill {
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: default;
  color: var(--color-text-muted);
}
.filter-pill.active { background: var(--color-accent); color: #fff; border-color: var(--color-accent); }

.empty-state {
  border: 1.5px dashed var(--color-border);
  border-radius: 10px;
  padding: 64px 32px;
  text-align: center;
  background: var(--color-surface);
}
.empty-state .eyebrow { margin-bottom: 18px; }
.empty-state h3 { margin-bottom: 10px; }
.empty-state p { max-width: 46ch; margin-left: auto; margin-right: auto; }

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.topic-card {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 22px;
  background: var(--color-surface);
}
.topic-card .eyebrow { margin-bottom: 10px; }
@media (max-width: 860px) { .topic-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-family: var(--font-head);
  font-size: 1.05rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--color-accent);
  transition: transform 0.15s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin-top: 12px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  padding: 90px 0;
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.cta-banner h2 { max-width: 640px; margin-left: auto; margin-right: auto; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: #1a1a1a;
  color: #cfcbc0;
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-brand .logo { color: #fff; }
.footer-brand p { color: #8f8b80; margin-top: 14px; max-width: 32ch; }
.footer-col h4 {
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { text-decoration: none; color: #cfcbc0; font-size: 0.92rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.82rem;
  color: #8f8b80;
}
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- About hero (page header) ---------- */
.page-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--color-border);
}
.page-header .eyebrow { margin-bottom: 14px; }
.page-header p { max-width: 60ch; font-size: 1.05rem; }

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

/* ---------- Email Popup ---------- */
.email-popup {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
}

.email-popup.is-visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

.popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(26, 26, 26, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.popup-content {
  position: relative;
  background: var(--color-surface);
  border-radius: 12px;
  padding: 48px 40px;
  max-width: 420px;
  width: 90%;
  box-shadow: 0 20px 60px rgba(26, 26, 26, 0.2);
  animation: popupSlideIn 0.3s ease;
}

@keyframes popupSlideIn {
  from {
    transform: scale(0.95) translateY(20px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 28px;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease;
}

.popup-close:hover {
  color: var(--color-text);
}

.popup-header {
  margin-bottom: 24px;
  text-align: center;
}

.popup-header h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.popup-header p {
  font-size: 0.95rem;
  margin-bottom: 0;
}

.popup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
}

.popup-form input {
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.popup-form input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.popup-form button {
  width: 100%;
}

.popup-disclaimer {
  font-size: 0.78rem;
  text-align: center;
  color: var(--color-text-muted);
  margin: 0;
}

.popup-disclaimer a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 600;
}

.popup-disclaimer a:hover {
  text-decoration: underline;
}

@media (max-width: 560px) {
  .popup-content {
    padding: 32px 24px;
    border-radius: 8px;
  }
  .popup-header h3 {
    font-size: 1.2rem;
  }
}

/* ---------- Blog Post Page ---------- */
.blog-post-header {
  padding: 64px 0 48px;
  border-bottom: 1px solid var(--color-border);
}

.blog-post-header h1 {
  margin-bottom: 24px;
  max-width: 900px;
}

.blog-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

.blog-meta span { display: flex; align-items: center; }
.blog-meta strong { color: var(--color-text); font-weight: 600; }

.blog-post-content {
  padding: 80px 0;
}

.blog-article {
  max-width: 760px;
  margin: 0 auto;
}

.blog-article p {
  line-height: 1.8;
  margin-bottom: 1.6em;
  font-size: 1rem;
  color: var(--color-text-muted);
}

.blog-article h2 {
  margin-top: 2.4em;
  margin-bottom: 1em;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
}

.blog-article h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.blog-article h3 {
  margin-top: 1.8em;
  margin-bottom: 0.8em;
  color: var(--color-text);
}

.blog-article a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.blog-article a:hover {
  text-decoration: underline;
}

.blog-post-footer {
  margin-top: 80px;
  padding-top: 40px;
  border-top: 1px solid var(--color-border);
}

.blog-cta {
  background: var(--color-bg-alt);
  border-radius: 8px;
  padding: 32px;
  margin-bottom: 40px;
}

.blog-cta h3 {
  margin-top: 0;
}

.blog-cta a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.related-posts {
  margin-top: 40px;
}

.related-posts h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-text);
}

.related-posts ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.related-posts li {
  margin-bottom: 10px;
}

.related-posts a {
  color: var(--color-accent);
  text-decoration: none;
  font-weight: 500;
}

.related-posts a:hover {
  text-decoration: underline;
}

/* ---------- Blog Post List (on blog.html) ---------- */
.blog-posts-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 48px;
}

.blog-post-item {
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 32px;
  background: var(--color-surface);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.blog-post-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 26, 26, 0.08);
}

.blog-post-item .eyebrow {
  display: inline-block;
  margin-bottom: 10px;
}

.blog-post-item h3 {
  margin-bottom: 12px;
  color: var(--color-text);
}

.blog-post-item .blog-post-excerpt {
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.6;
}

.blog-post-item .blog-post-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

@media (max-width: 860px) {
  .blog-post-header { padding: 48px 0 36px; }
  .blog-article { max-width: 100%; }
}
