/* Stonecorner Decision Files — style.css */
/* Design: Cohere-inspired editorial system */

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

:root {
  --primary: #17171c;
  --deep-green: #003c33;
  --canvas: #ffffff;
  --soft-stone: #eeece7;
  --pale-green: #edfce9;
  --hairline: #d9d9dd;
  --border-light: #e5e7eb;
  --card-border: #f2f2f2;
  --ink: #212121;
  --muted: #93939f;
  --slate: #75758a;
  --body-muted: #616161;
  --action-blue: #1863dc;
  --coral: #ff7759;
  --error: #b30000;
  --on-dark: #ffffff;
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 32px;
}

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

body {
  font-family: 'Inter', Arial, ui-sans-serif, system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--action-blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }

/* ========== HEADER ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  height: 72px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo svg { width: 36px; height: 36px; }

.brand-name {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.brand-name span { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: 0.3px; }

.site-nav { display: flex; align-items: center; gap: 8px; }

.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.site-nav a:hover { background: var(--soft-stone); text-decoration: none; color: var(--primary); }
.site-nav a.active { color: var(--primary); font-weight: 600; }

.burger-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: var(--radius-xs);
}

.burger-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  margin: 4px 0;
  transition: transform 0.2s, opacity 0.2s;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0; right: 0;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
  z-index: 99;
  padding: 16px 24px 24px;
}

.mobile-nav.open { display: block; }
.mobile-nav a { display: block; font-size: 16px; font-weight: 500; color: var(--ink); padding: 12px 0; border-bottom: 1px solid var(--card-border); }
.mobile-nav a:last-child { border-bottom: none; }

/* ========== LAYOUT ========== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; margin: 0 auto; padding: 0 24px; }

section { padding: 64px 0; }
section + section { padding-top: 0; }

/* ========== HERO ========== */
.hero {
  padding: 72px 0 64px;
  background: var(--canvas);
  border-bottom: 1px solid var(--hairline);
}

.hero-inner { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.hero-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border: 1px solid var(--coral);
  border-radius: var(--radius-pill);
  padding: 4px 14px;
  margin-bottom: 20px;
}

.hero h1 {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -1.2px;
  color: var(--primary);
  max-width: 700px;
  margin-bottom: 20px;
}

.hero-desc {
  font-size: 18px;
  line-height: 1.55;
  color: var(--body-muted);
  max-width: 540px;
  margin-bottom: 32px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.hero-img-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--soft-stone);
  aspect-ratio: 16/10;
}

.hero-img-card img { width: 100%; height: 100%; object-fit: cover; }

/* ========== SECTION HEADINGS ========== */
.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--coral);
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-title {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-desc { font-size: 17px; line-height: 1.55; color: var(--body-muted); max-width: 560px; }

/* ========== CARDS ========== */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.card {
  background: var(--canvas);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.card:hover { border-color: var(--hairline); box-shadow: 0 2px 12px rgba(0,0,0,.06); }

.card-img { aspect-ratio: 16/9; background: var(--soft-stone); overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.card-body { padding: 20px; }
.card-category { font-size: 11px; font-weight: 500; color: var(--coral); letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-family: 'Space Grotesk', 'Inter', Arial, sans-serif; font-size: 18px; font-weight: 500; color: var(--primary); line-height: 1.3; margin-bottom: 8px; }
.card-meta { font-size: 13px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card-excerpt { font-size: 14px; line-height: 1.55; color: var(--body-muted); margin-top: 10px; }
.card-link { display: inline-block; font-size: 13px; font-weight: 500; color: var(--action-blue); margin-top: 14px; }
.card-link:hover { text-decoration: underline; }

/* ========== DARK BAND ========== */
.dark-band {
  background: var(--deep-green);
  color: var(--on-dark);
  padding: 72px 0;
}

.dark-band .section-label { color: #7ecfc2; }
.dark-band .section-title { color: var(--on-dark); }
.dark-band .section-desc { color: rgba(255,255,255,0.75); }
.dark-band p { color: rgba(255,255,255,0.8); }

/* ========== GALLERY ========== */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; background: var(--soft-stone); }
.gallery-item img { width: 100%; height: 200px; object-fit: cover; }
.gallery-caption { font-size: 12px; color: var(--muted); padding: 8px 10px; background: var(--soft-stone); }

/* ========== ARTICLE PAGE ========== */
.article-header { padding: 48px 0 32px; border-bottom: 1px solid var(--hairline); }
.article-category { font-size: 11px; font-weight: 500; color: var(--coral); letter-spacing: 0.7px; text-transform: uppercase; margin-bottom: 12px; }

.article-title {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.8px;
  color: var(--primary);
  margin-bottom: 16px;
}

.article-summary {
  font-size: 18px;
  line-height: 1.6;
  color: var(--body-muted);
  margin-bottom: 20px;
  max-width: 680px;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--muted);
}

.article-meta strong { color: var(--ink); }

.article-body { padding: 40px 0; }

.article-body h2 {
  font-family: 'Space Grotesk', 'Inter', Arial, sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: var(--primary);
  margin: 40px 0 14px;
  letter-spacing: -0.2px;
}

.article-body h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--primary);
  margin: 28px 0 10px;
}

.article-body p { font-size: 16px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 24px; margin-bottom: 20px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 6px; }

.article-body blockquote {
  border-left: 3px solid var(--hairline);
  padding: 12px 20px;
  margin: 28px 0;
  background: var(--soft-stone);
  border-radius: 0 var(--radius-xs) var(--radius-xs) 0;
  font-size: 17px;
  color: var(--slate);
  line-height: 1.6;
}

.article-img { border-radius: var(--radius-sm); overflow: hidden; margin: 28px 0; }
.article-img img { width: 100%; object-fit: cover; }
.article-img figcaption { font-size: 13px; color: var(--muted); padding: 8px 0 0; }

/* TOC */
.toc {
  background: var(--soft-stone);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.toc h4 { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.toc ol { padding-left: 20px; }
.toc li { font-size: 14px; line-height: 1.6; margin-bottom: 4px; }
.toc a { color: var(--action-blue); }

/* Key Context box */
.key-context {
  background: var(--pale-green);
  border: 1px solid #b8e8c8;
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.key-context h4 { font-size: 13px; font-weight: 600; color: var(--deep-green); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.key-context p { font-size: 15px; line-height: 1.65; color: var(--ink); margin-bottom: 8px; }
.key-context p:last-child { margin-bottom: 0; }

/* Does Not Cover box */
.not-cover {
  background: var(--soft-stone);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
  margin: 28px 0;
}

.not-cover h4 { font-size: 13px; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 10px; }
.not-cover ul { padding-left: 20px; }
.not-cover li { font-size: 14px; line-height: 1.6; color: var(--body-muted); margin-bottom: 4px; }

/* Reading time tag */
.reading-time {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
  background: var(--soft-stone);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
}

/* ========== BREADCRUMB ========== */
.breadcrumb { padding: 16px 0; font-size: 13px; color: var(--muted); }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--action-blue); }
.breadcrumb span { margin: 0 6px; }

/* ========== RELATED ARTICLES ========== */
.related { padding: 48px 0; border-top: 1px solid var(--hairline); }
.related h3 { font-family: 'Space Grotesk', 'Inter', Arial, sans-serif; font-size: 20px; font-weight: 500; color: var(--primary); margin-bottom: 24px; letter-spacing: -0.2px; }

/* ========== STONE BAND (soft-stone background) ========== */
.stone-band { background: var(--soft-stone); }

/* ========== CONTACT FORM ========== */
.contact-form-wrap {
  max-width: 600px;
  margin: 0 auto;
  background: var(--canvas);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  padding: 40px;
}

.form-row { margin-bottom: 20px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  padding: 10px 14px;
  background: var(--canvas);
  transition: border-color 0.15s;
  outline: none;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: #9b60aa;
  box-shadow: 0 0 0 3px rgba(155,96,170,0.1);
}

.form-row textarea { min-height: 130px; resize: vertical; }

.btn-primary {
  display: inline-block;
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark);
  background: var(--primary);
  border: none;
  border-radius: var(--radius-pill);
  padding: 12px 28px;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.1px;
}

.btn-primary:hover { background: #000; text-decoration: none; color: var(--on-dark); }

.form-confirm {
  display: none;
  padding: 16px 20px;
  background: var(--pale-green);
  border: 1px solid #b8e8c8;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--deep-green);
  margin-top: 16px;
}

/* ========== STATIC PAGES ========== */
.static-page { padding: 56px 0 80px; }
.static-page h1 { font-family: 'Space Grotesk', 'Inter', Arial, sans-serif; font-size: clamp(28px, 4vw, 42px); font-weight: 400; color: var(--primary); letter-spacing: -0.6px; margin-bottom: 12px; }
.static-page .page-lead { font-size: 17px; line-height: 1.65; color: var(--body-muted); margin-bottom: 40px; max-width: 640px; }
.static-page h2 { font-family: 'Space Grotesk', 'Inter', Arial, sans-serif; font-size: 22px; font-weight: 500; color: var(--primary); margin: 40px 0 12px; letter-spacing: -0.2px; }
.static-page h3 { font-size: 17px; font-weight: 600; color: var(--primary); margin: 28px 0 10px; }
.static-page p { font-size: 16px; line-height: 1.75; color: var(--ink); margin-bottom: 18px; }
.static-page ul { padding-left: 22px; margin-bottom: 18px; }
.static-page li { font-size: 16px; line-height: 1.7; color: var(--ink); margin-bottom: 5px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--primary);
  color: rgba(255,255,255,0.65);
  padding: 48px 0 32px;
  margin-top: 80px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}

.footer-brand .footer-logo { font-family: 'Space Grotesk', 'Inter', Arial, sans-serif; font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.6; color: rgba(255,255,255,0.55); max-width: 280px; }

.footer-links h4 { font-size: 12px; font-weight: 500; color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 14px; }
.footer-links a { display: block; font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 8px; transition: color 0.15s; }
.footer-links a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 20px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
}

.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: rgba(255,255,255,0.85); text-decoration: none; }

/* ========== COOKIE BANNER ========== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  padding: 16px 24px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}

#cookie-banner p { flex: 1; min-width: 220px; line-height: 1.5; }
#cookie-banner a { color: #7ecfc2; }

.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.cookie-btn {
  font-size: 13px;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}

.cookie-btn:hover { background: rgba(255,255,255,0.1); }
.cookie-btn.accept { background: #fff; color: var(--primary); border-color: #fff; }
.cookie-btn.accept:hover { background: #eee; }
.cookie-btn-link { font-size: 12px; color: rgba(255,255,255,0.6); background: none; border: none; cursor: pointer; padding: 4px 0; text-decoration: underline; }
.cookie-btn-link:hover { color: #fff; }

/* ========== UTILS ========== */
.text-muted { color: var(--muted); }
.divider { border: none; border-top: 1px solid var(--hairline); margin: 40px 0; }
.mt-0 { margin-top: 0 !important; }
.no-content { color: var(--muted); font-size: 15px; font-style: italic; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .contact-form-wrap { padding: 28px 20px; }
  .site-nav { display: none; }
  .burger-btn { display: block; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  section { padding: 48px 0; }
  .hero { padding: 48px 0 40px; }
}
