/* ================================================================
   KANENSON PI — Shared Design System
   ================================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Crimson Text', Georgia, serif;
  background: #ffffff;
  color: #1a1a1a;
  line-height: 1.7;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: #f5f0f0; }
::-webkit-scrollbar-thumb { background: #740E11; border-radius: 3px; }

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  --red:    #EF3F56;
  --red-accessible: #C8102E;
  --maroon: #740E11;
  --dark:   #4A0709;
  --ink:    #0a0202;
  --warm:   #f9f6f6;
  --white:  #ffffff;
  --gray:   #5a5a5a;
  --border: rgba(116,14,17,0.12);
}

/* ── Typography ────────────────────────────────────────────── */
.label {
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--red);
}
.section-heading {
  font-family: 'Raleway', sans-serif;
  font-weight: 800; color: var(--maroon);
  line-height: 1.08;
}
.red-bar {
  width: 48px; height: 3px;
  background: var(--red);
  margin: 14px 0 28px;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn-pri {
  display: inline-block; text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: var(--red-accessible); color: #fff;
  padding: 13px 30px;
  border: 2px solid var(--red-accessible);
  transition: background 0.25s, border-color 0.25s, transform 0.2s, box-shadow 0.25s;
  cursor: pointer;
}
.btn-pri:hover {
  background: var(--maroon); border-color: var(--maroon);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(116,14,17,0.3);
}
.btn-pri:active { transform: translateY(0); }

.btn-ghost {
  display: inline-block; text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: #fff;
  padding: 13px 30px;
  border: 2px solid rgba(255,255,255,0.55);
  transition: background 0.25s, border-color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.9);
  transform: translateY(-2px);
}

.btn-outline-maroon {
  display: inline-block; text-decoration: none;
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  background: transparent; color: var(--maroon);
  padding: 12px 28px;
  border: 2px solid var(--maroon);
  transition: background 0.25s, color 0.25s, transform 0.2s;
  cursor: pointer;
}
.btn-outline-maroon:hover {
  background: var(--maroon); color: #fff;
  transform: translateY(-2px);
}

/* ── Navigation ────────────────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 24px rgba(116,14,17,0.08);
  transition: box-shadow 0.35s;
}
#navbar.scrolled {
  box-shadow: 0 2px 32px rgba(116,14,17,0.14);
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 32px; height: 70px;
  display: flex; align-items: center; justify-content: flex-start;
}
.nav-logo img { height: 42px; width: auto; display: block; }
.nav-links {
  display: none; align-items: center; gap: 36px;
  list-style: none;
  margin-left: auto; margin-right: 28px;
}
.nav-cta { display: none; }
.nav-links a {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--maroon); text-decoration: none;
  position: relative; transition: color 0.2s;
}
.nav-links a::after {
  content: ''; position: absolute;
  bottom: -4px; left: 0; width: 0; height: 2px;
  background: var(--red); transition: width 0.25s;
}
.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

/* ── Services Dropdown ─────────────────────────────────────── */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: 100%; left: 50%;
  transform: translateX(-50%);
  /* padding-top is a transparent bridge — keeps the hover zone continuous
     so the mouse never exits the parent element while traveling to the panel */
  padding-top: 16px;
  list-style: none; z-index: 200; min-width: 230px;
}
/* Visual panel lives on ::before so it starts after the transparent bridge */
.dropdown-menu::before {
  content: '';
  position: absolute;
  top: 16px; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 3px solid var(--red);
  box-shadow: 0 16px 48px rgba(116,14,17,0.15);
  z-index: -1;
}
.dropdown-menu li a {
  display: block; padding: 10px 20px;
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.07em;
  color: var(--maroon) !important;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
  background: #fff; /* needed so hover fill works above the ::before panel */
}
.dropdown-menu li a:hover {
  background: var(--warm);
  color: var(--red) !important;
}
.dropdown-menu li a::after { display: none !important; }
/* Reset button defaults; styled to look like an inline nav arrow */
.dropdown-toggle {
  background: none; border: none; padding: 0 0 0 2px; margin: 0;
  cursor: pointer; line-height: 1;
  font-family: 'Raleway', sans-serif; font-size: 11px;
  color: var(--ink); transition: color 0.2s;
}
.dropdown-toggle:hover { color: var(--red); }

/* ── Mobile Nav ─────────────────────────────────────────────── */
.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  display: block; background: var(--maroon);
  transition: background 0.2s;
}
.hamburger:hover span { background: var(--red); }
#mob-nav {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(10,2,2,0.98);
  flex-direction: column; align-items: center; justify-content: center; gap: 28px;
}
#mob-nav.open { display: flex; }
.mob-close {
  position: absolute; top: 22px; right: 24px;
  background: none; border: none; cursor: pointer;
  color: #fff; font-size: 28px; line-height: 1;
}
.mob-link, .mob-section {
  font-family: 'Raleway', sans-serif;
  font-size: 22px; font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff; text-decoration: none; transition: color 0.2s;
}
.mob-link:hover, .mob-section:hover { color: var(--red); }
.mob-sub {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 16px;
}
.mob-sub a {
  font-family: 'Raleway', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255,255,255,0.65);
  text-decoration: none; transition: color 0.2s;
}
.mob-sub a:hover { color: var(--red); }

/* ── Page header (interior pages) ─────────────────────────── */
.page-header {
  padding: 140px 32px 80px;
  background: linear-gradient(135deg, var(--ink) 0%, #2d0608 100%);
  position: relative; overflow: hidden;
  text-align: center;
}
.page-header::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(239,63,86,0.07) 0%, transparent 60%);
}
.page-header .label { color: rgba(239,63,86,0.75); }
.page-header h1 {
  font-family: 'Raleway', sans-serif; font-weight: 800;
  font-size: clamp(32px, 5vw, 58px);
  color: #fff; line-height: 1.1;
  position: relative; z-index: 1;
}
.page-header p {
  font-family: 'Crimson Text', serif;
  font-size: clamp(17px, 2vw, 21px);
  color: rgba(255,255,255,0.65); font-style: italic;
  max-width: 600px; margin: 16px auto 0;
  position: relative; z-index: 1;
}

/* ── Trust Strip ────────────────────────────────────────────── */
.trust-strip {
  background: linear-gradient(135deg, var(--maroon) 0%, var(--dark) 100%);
  padding: 64px 32px; position: relative; overflow: hidden;
}
.trust-strip::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
}
.trust-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  position: relative; z-index: 1;
}
.trust-item { text-align: center; }
.trust-icon {
  width: 44px; height: 44px;
  color: var(--red); margin: 0 auto 14px;
}
.trust-item h4 {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 800;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #fff; margin-bottom: 6px;
}
.trust-item p { font-size: 15px; color: rgba(255,255,255,0.58); line-height: 1.6; }

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--ink) 0%, #1c0405 50%, #2b0608 100%);
  padding: 90px 32px; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 60%, rgba(239,63,86,0.07) 0%, transparent 60%);
}
.cta-banner .label { color: rgba(239,63,86,0.75); margin-bottom: 16px; display: block; }
.cta-banner h2 {
  font-family: 'Raleway', sans-serif; font-weight: 900;
  font-size: clamp(32px, 5vw, 58px); color: #fff;
  line-height: 1.08; margin-bottom: 16px; position: relative; z-index: 1;
}
.cta-banner h2 span { color: var(--red); }
.cta-banner p {
  font-family: 'Crimson Text', serif;
  font-size: 20px; color: rgba(255,255,255,0.6);
  font-style: italic; line-height: 1.75; margin-bottom: 36px;
  position: relative; z-index: 1;
}
.cta-banner .btn-pri { position: relative; z-index: 1; }

/* ── Footer ──────────────────────────────────────────────────── */
footer {
  background: var(--ink);
  padding: 52px 32px 28px;
}
.footer-inner { max-width: 1280px; margin: 0 auto; }
.footer-top {
  display: flex; flex-wrap: wrap;
  justify-content: space-between; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer-brand img { height: 38px; width: auto; filter: brightness(10); opacity: 0.65; display: block; margin-bottom: 16px; }
.footer-brand p {
  font-family: 'Crimson Text', serif;
  font-size: 15px; color: rgba(255,255,255,0.4);
  max-width: 260px; font-style: italic; line-height: 1.7;
}
.footer-col h5 {
  font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(255,255,255,0.3); margin-bottom: 16px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li a, .footer-link {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul li a:hover, .footer-link:hover { color: var(--red); }
.footer-contact p {
  font-family: 'Raleway', sans-serif;
  font-size: 13px; color: rgba(255,255,255,0.45);
  line-height: 2;
}
.footer-contact a {
  color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s;
}
.footer-contact a:hover { color: var(--red); }
.footer-bottom {
  padding-top: 20px;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px;
}
.footer-bottom p {
  font-family: 'Raleway', sans-serif;
  font-size: 11px; color: rgba(255,255,255,0.25);
}

/* ── Scroll reveal ──────────────────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.10s; }
.d2 { transition-delay: 0.20s; }
.d3 { transition-delay: 0.30s; }
.d4 { transition-delay: 0.40s; }
.d5 { transition-delay: 0.50s; }

/* ── Service cards ──────────────────────────────────────────── */
.svc-card {
  background: #fff;
  border-top: 3px solid var(--maroon);
  padding: 36px 28px 32px;
  transition: transform 0.3s, box-shadow 0.3s, border-top-color 0.3s;
}
.svc-card:hover {
  transform: translateY(-7px);
  box-shadow: 0 22px 52px rgba(116,14,17,0.14);
  border-top-color: var(--red);
}
.svc-icon { width: 46px; height: 46px; color: var(--maroon); margin-bottom: 18px; transition: color 0.3s; }
.svc-card:hover .svc-icon { color: var(--red); }
.svc-title { font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 700; color: var(--maroon); margin-bottom: 10px; }

/* ── Blog cards ─────────────────────────────────────────────── */
.blog-card {
  background: #fff; display: flex; flex-direction: column;
  position: relative; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 18px 48px rgba(116,14,17,0.12); }
/* Stretch the title link to cover the entire card */
.blog-card h3 a::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
}
.blog-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.blog-card-cat {
  font-family: 'Raleway', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--red);
  margin-bottom: 10px;
}
.blog-card h3 {
  font-family: 'Raleway', sans-serif; font-size: 18px; font-weight: 700;
  color: var(--maroon); line-height: 1.35; margin-bottom: 12px;
  transition: color 0.2s;
}
.blog-card:hover h3 { color: var(--red); }
.blog-card h3 a { text-decoration: none; color: inherit; }
.blog-card p { font-size: 15px; line-height: 1.75; color: #666; flex: 1; }
.blog-card-meta {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border);
}
.blog-card-meta span {
  font-family: 'Raleway', sans-serif; font-size: 11px; color: #767676;
}
.blog-thumb {
  width: 100%; aspect-ratio: 16/9; overflow: hidden;
  background: linear-gradient(135deg, var(--maroon) 0%, var(--dark) 100%);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.blog-thumb svg { width: 48px; height: 48px; opacity: 0.25; color: #fff; }
.blog-thumb-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--maroon), var(--dark));
  opacity: 0.85;
}

/* ── Article / Blog post ────────────────────────────────────── */
.article-body { font-size: 18px; line-height: 1.85; color: #333; }
.article-body h2 { font-family: 'Raleway', sans-serif; font-size: 26px; font-weight: 700; color: var(--maroon); margin: 40px 0 16px; }
.article-body h3 { font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--maroon); margin: 32px 0 12px; }
.article-body h4 { font-family: 'Raleway', sans-serif; font-size: 17px; font-weight: 700; color: var(--dark); margin: 24px 0 10px; }
.article-body p { margin-bottom: 20px; }
.article-body ul, .article-body ol { margin: 16px 0 20px 24px; }
.article-body li { margin-bottom: 8px; }
.article-body strong { font-weight: 600; color: var(--maroon); }
.article-body a { color: var(--red); text-decoration: none; border-bottom: 1px solid rgba(239,63,86,0.3); transition: border-color 0.2s; }
.article-body a:hover { border-color: var(--red); }
.article-body blockquote {
  border-left: 4px solid var(--red); padding: 20px 24px;
  background: var(--warm); margin: 28px 0;
  font-style: italic; font-size: 19px; color: var(--maroon);
}

/* ── Process steps ──────────────────────────────────────────── */
.proc-step { position: relative; }
.step-num {
  font-family: 'Raleway', sans-serif; font-size: 80px; font-weight: 900;
  color: var(--red); opacity: 0.1; line-height: 1;
  position: absolute; top: -18px; left: -10px; z-index: 0; pointer-events: none;
}
.proc-body { position: relative; z-index: 1; }
.proc-body .step-bar { width: 44px; height: 3px; background: var(--red); margin-bottom: 20px; }
.proc-body h3 { font-family: 'Raleway', sans-serif; font-size: 20px; font-weight: 700; color: var(--maroon); margin-bottom: 12px; }
.proc-body p { font-size: 17px; line-height: 1.8; color: var(--gray); }

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border); padding: 20px 0; cursor: pointer;
}
.faq-q {
  font-family: 'Raleway', sans-serif; font-size: 16px; font-weight: 700;
  color: var(--maroon); display: flex; justify-content: space-between; align-items: center;
  gap: 16px; transition: color 0.2s;
  /* button reset */
  background: none; border: none; padding: 0; text-align: left; width: 100%; cursor: pointer;
}
.faq-q:hover { color: var(--red); }
.faq-q:focus-visible { outline: 2px solid var(--red-accessible); outline-offset: 2px; }
.faq-toggle {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--warm); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 16px; color: var(--maroon); transition: background 0.2s;
}
.faq-item.open .faq-toggle { background: var(--red); color: #fff; }
.faq-a {
  display: none; font-size: 16px; line-height: 1.75; color: var(--gray); padding-top: 12px;
}
.faq-item.open .faq-a { display: block; }

/* ── Contact form ─────────────────────────────────────────── */
.fld label {
  display: block; font-family: 'Raleway', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 6px;
}
.fld input, .fld textarea, .fld select {
  width: 100%; font-family: 'Crimson Text', serif;
  font-size: 16px; color: #1a1a1a; background: #fff;
  border: 1px solid #ddd; padding: 12px 15px;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
  border-radius: 0; appearance: none; -webkit-appearance: none;
}
.fld input:focus, .fld textarea:focus, .fld select:focus {
  border-color: var(--red); box-shadow: 0 0 0 3px rgba(239,63,86,0.1);
}

/* ── Sidebar ─────────────────────────────────────────────────── */
.sidebar-card {
  background: var(--warm); padding: 28px;
  margin-bottom: 24px;
}
.sidebar-card h4 {
  font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--maroon); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 2px solid var(--red);
}

/* ── Utilities ──────────────────────────────────────────────── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }
.section-pad { padding: 64px 0; }
.section-pad-sm { padding: 40px 0; }
.bg-warm { background: var(--warm); }
.bg-white { background: #fff; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 32px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-4 { display: grid; grid-template-columns: 1fr; gap: 24px; }
.grid-main-side { display: grid; grid-template-columns: 1fr; gap: 40px; align-items: start; }
.trust-grid { grid-template-columns: 1fr; }
.page-header { padding: 120px 20px 60px; }

/* ── Testimonials ───────────────────────────────────────────── */
.testi-card {
  background: var(--warm); border-left: 4px solid var(--red);
  padding: 30px 28px; transition: box-shadow 0.3s;
}
.testi-card:hover { box-shadow: 0 14px 44px rgba(116,14,17,0.10); }
.big-quote {
  font-family: 'Crimson Text', serif; font-size: 88px; line-height: 0.6;
  color: var(--red); opacity: 0.18; float: left;
  margin-right: 8px; margin-top: 10px;
}
.testi-attr { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--maroon), var(--red));
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700;
}
.testi-name { font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700; color: var(--maroon); }
.testi-loc { font-family: 'Raleway', sans-serif; font-size: 12px; color: #5a5a5a; }

/* ── Responsive (mobile-first — base is mobile, min-width adds desktop) ── */
@media (min-width: 480px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-block; }
  .hamburger { display: none; }
  .grid-2 { grid-template-columns: 1fr 1fr; gap: 48px; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .container { padding: 0 32px; }
  .section-pad { padding: 96px 0; }
  .section-pad-sm { padding: 64px 0; }
  .page-header { padding: 140px 32px 80px; }
}

@media (min-width: 1024px) {
  .grid-main-side { grid-template-columns: 1fr 340px; gap: 56px; }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-top { gap: 40px; }
}

/* ── Accessibility ──────────────────────────────────────────── */

/* Skip nav */
.skip-nav {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  background: var(--maroon); color: #fff;
  padding: 8px 16px;
  font-family: 'Raleway', sans-serif; font-size: 13px; font-weight: 700;
  text-decoration: none; transition: top 0.2s;
}
.skip-nav:focus { top: 8px; }

/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Focus-visible (WCAG SC 2.4.7 — best-practice enhancement) */
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }

/* Non-text contrast fix: input borders #ddd → #888 (SC 1.4.11) */
.fld input, .fld textarea, .fld select {
  border-color: #888;
}

/* Text contrast fix: .label standalone override (NOT touching --red var) */
.label { color: #C4283F; }

/* foot-link: used in index.html footer — must pass 4.5:1 on #0a0202 */
.foot-link {
  font-family: 'Raleway', sans-serif;
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.06em; color: rgba(255,255,255,0.75);
  text-decoration: none; transition: color 0.2s;
}
.foot-link:hover { color: var(--red); }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ── Blog Post Hero Image ──────────────────────────────────── */
.blog-post-hero {
  width: 100%; height: clamp(260px, 40vw, 480px); overflow: hidden;
  background: var(--dark); position: relative;
}
.blog-post-hero img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
}
/* Subtle gradient fade at bottom — blends hero into white article body */
.blog-post-hero::after {
  content: ''; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.18));
  pointer-events: none;
}

/* ── Blog Card Thumbnail ──────────────────────────────────── */
.blog-thumb img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 20%;
  display: block; transition: transform 0.45s ease;
}
.blog-card:hover .blog-thumb img { transform: scale(1.04); }
/* Keep gradient as fallback when no img present */
.blog-thumb:has(img) { background: var(--dark); }
.blog-thumb::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(14,4,5,0.35) 100%);
  pointer-events: none; transition: opacity 0.3s;
}
.blog-card:hover .blog-thumb::after { opacity: 0.6; }
