/* Rivergrove Project Desk — style.css */
/* Design: Mistral.ai-inspired editorial system */

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

:root {
  --primary: #fa520f;
  --primary-deep: #cc3a05;
  --ink: #1f1f1f;
  --charcoal: #2c2c2c;
  --slate: #4a4a4a;
  --steel: #6a6a6a;
  --muted: #a8a8a8;
  --hairline: #e5e5e5;
  --hairline-soft: #ededed;
  --hairline-strong: #c7c7c7;
  --canvas: #ffffff;
  --surface: #fafafa;
  --cream: #fff8e0;
  --cream-soft: #fffaeb;
  --cream-deeper: #fff0c2;
  --beige-deep: #e6d5a8;
  --on-dark: #ffffff;
  --on-cream: #1f1f1f;
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

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

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

a { color: var(--primary); 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-soft);
  height: 64px;
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  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: 30px; height: 30px; }

.brand-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}

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

.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav a { font-size: 14px; font-weight: 400; color: var(--slate); padding: 7px 12px; border-radius: var(--radius-sm); white-space: nowrap; transition: color 0.15s; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }

.burger-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.burger-btn span { display: block; width: 20px; height: 2px; background: var(--ink); margin: 4px 0; }

.mobile-nav {
  display: none;
  position: fixed;
  top: 64px; 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: 15px; color: var(--slate); padding: 11px 0; border-bottom: 1px solid var(--hairline-soft); }
.mobile-nav a:last-child { border-bottom: none; }

/* ========== LAYOUT ========== */
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }

section { padding: 80px 0; }

/* ========== HERO ========== */
.hero {
  padding: 96px 0;
  background: var(--canvas);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--cream-deeper);
  color: var(--ink);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  padding: 4px 12px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
  font-family: Georgia, 'Times New Roman', serif;
}

.hero-desc { font-size: 18px; line-height: 1.55; color: var(--slate); max-width: 540px; margin-bottom: 36px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.hero-img-wrap {
  margin-top: 56px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--cream);
}
.hero-img-wrap img { width: 100%; max-height: 420px; object-fit: cover; }

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-block;
  background: var(--primary);
  color: var(--on-dark);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.btn-primary:hover { background: var(--primary-deep); text-decoration: none; color: var(--on-dark); }

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--hairline-strong);
  cursor: pointer;
  transition: border-color 0.15s;
  text-decoration: none;
}
.btn-secondary:hover { border-color: var(--ink); text-decoration: none; color: var(--ink); }

/* ========== SECTION LABELS ========== */
.section-eyebrow { font-size: 11px; font-weight: 600; color: var(--primary); letter-spacing: 0.8px; text-transform: uppercase; margin-bottom: 10px; }
.section-title { font-size: clamp(28px, 3.5vw, 40px); font-weight: 400; line-height: 1.2; color: var(--ink); margin-bottom: 14px; font-family: Georgia, 'Times New Roman', serif; }
.section-desc { font-size: 16px; line-height: 1.55; color: var(--slate); max-width: 560px; }

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

.card {
  background: var(--canvas);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-soft);
  overflow: hidden;
  box-shadow: rgba(0,0,0,0.04) 0px 4px 12px;
  transition: box-shadow 0.15s;
}
.card:hover { box-shadow: rgba(0,0,0,0.08) 0px 8px 20px; }

.card-cream { background: var(--cream); border: 1px solid var(--beige-deep); }

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

.card-body { padding: 20px; }
.card-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-deeper);
  border-radius: var(--radius-full);
  padding: 3px 9px;
  margin-bottom: 8px;
}
.card-title { font-size: 17px; font-weight: 500; color: var(--ink); line-height: 1.35; margin-bottom: 8px; }
.card-excerpt { font-size: 14px; line-height: 1.5; color: var(--slate); margin-bottom: 10px; }
.card-meta { font-size: 12px; color: var(--muted); display: flex; gap: 12px; flex-wrap: wrap; }
.card-link { font-size: 13px; font-weight: 500; color: var(--primary); margin-top: 10px; display: inline-block; }

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

/* ========== SUNSET STRIPE ========== */
.sunset-stripe {
  width: 100%;
  height: 20px;
  background: linear-gradient(to right, var(--primary), #ffa110, #ffd900, var(--cream));
}

/* ========== CREAM BAND ========== */
.cream-band { background: var(--cream); padding: 64px 0; }

/* ========== ARTICLE ========== */
.article-header { padding: 56px 0 32px; border-bottom: 1px solid var(--hairline-soft); }

.article-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink);
  background: var(--cream-deeper);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  margin-bottom: 14px;
}

.article-title {
  font-size: clamp(28px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.5px;
  color: var(--ink);
  margin-bottom: 16px;
  font-family: Georgia, 'Times New Roman', serif;
}

.article-summary { font-size: 18px; line-height: 1.6; color: var(--slate); max-width: 680px; margin-bottom: 18px; }
.article-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 16px; }
.article-meta strong { color: var(--ink); }
.reading-time { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; background: var(--cream-deeper); border-radius: var(--radius-full); padding: 3px 10px; color: var(--charcoal); }

.article-body { padding: 40px 0; }
.article-body h2 { font-size: 26px; font-weight: 500; color: var(--ink); margin: 40px 0 12px; }
.article-body h3 { font-size: 20px; font-weight: 500; color: var(--ink); margin: 28px 0 10px; }
.article-body p { font-size: 16px; line-height: 1.75; color: var(--charcoal); margin-bottom: 20px; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 20px; }
.article-body li { font-size: 16px; line-height: 1.7; color: var(--charcoal); margin-bottom: 6px; }

.article-img { border-radius: var(--radius-lg); overflow: hidden; margin: 24px 0; box-shadow: rgba(0,0,0,0.04) 0px 4px 12px; }
.article-img img { width: 100%; object-fit: cover; }
.article-img figcaption { font-size: 13px; color: var(--steel); padding: 8px 0 0; }

.toc {
  background: var(--cream-soft);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin: 24px 0;
}
.toc h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); margin-bottom: 10px; }
.toc ol { padding-left: 18px; }
.toc li { font-size: 14px; margin-bottom: 5px; }
.toc a { color: var(--primary); }

.key-context {
  background: var(--cream);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius-lg);
  padding: 18px 22px;
  margin: 24px 0;
}
.key-context h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--primary); margin-bottom: 10px; }
.key-context p { font-size: 15px; line-height: 1.65; color: var(--charcoal); margin-bottom: 8px; }
.key-context p:last-child { margin-bottom: 0; }

.not-cover {
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline-soft);
  padding: 18px 22px;
  margin: 24px 0;
}
.not-cover h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: var(--steel); margin-bottom: 10px; }
.not-cover ul { padding-left: 18px; }
.not-cover li { font-size: 14px; line-height: 1.6; color: var(--slate); margin-bottom: 4px; }

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

/* ========== RELATED ========== */
.related { padding: 48px 0; border-top: 1px solid var(--hairline-soft); margin-top: 16px; }
.related h3 { font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 22px; font-family: Georgia, serif; }

/* ========== STATIC PAGES ========== */
.static-page { padding: 56px 0 80px; }
.static-page h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 400; color: var(--ink); margin-bottom: 12px; line-height: 1.15; font-family: Georgia, 'Times New Roman', serif; }
.static-page .page-lead { font-size: 17px; line-height: 1.65; color: var(--slate); margin-bottom: 40px; max-width: 620px; }
.static-page h2 { font-size: 22px; font-weight: 500; color: var(--ink); margin: 36px 0 10px; }
.static-page h3 { font-size: 17px; font-weight: 500; color: var(--ink); margin: 24px 0 8px; }
.static-page p { font-size: 16px; line-height: 1.75; color: var(--charcoal); margin-bottom: 16px; }
.static-page ul { padding-left: 20px; margin-bottom: 16px; }
.static-page li { font-size: 16px; line-height: 1.7; color: var(--charcoal); margin-bottom: 5px; }

/* ========== CONTACT FORM ========== */
.contact-form-wrap {
  max-width: 520px;
  background: var(--cream);
  border: 1px solid var(--beige-deep);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 28px;
}
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 13px; font-weight: 500; color: var(--ink); margin-bottom: 6px; }
.form-row input,
.form-row textarea {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  height: 44px;
  outline: none;
  transition: border-color 0.15s;
}
.form-row textarea { height: auto; min-height: 120px; resize: vertical; }
.form-row input:focus,
.form-row textarea:focus { border-color: var(--primary); border-width: 2px; }
.form-confirm { display: none; padding: 14px 18px; background: var(--cream); border: 1px solid var(--beige-deep); border-radius: var(--radius-md); font-size: 14px; color: var(--charcoal); margin-top: 14px; }
#cf-error { display: none; color: #cc3a05; font-size: 13px; margin-bottom: 10px; }

/* ========== FOOTER ========== */
.site-footer {
  background: var(--cream);
  border-top: 1px solid var(--beige-deep);
  padding: 56px 0 28px;
}

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

.footer-brand .footer-logo { font-size: 15px; font-weight: 500; color: var(--ink); margin-bottom: 8px; }
.footer-brand p { font-size: 13px; line-height: 1.55; color: var(--steel); max-width: 260px; }
.footer-links h4 { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; margin-bottom: 12px; }
.footer-links a { display: block; font-size: 13px; color: var(--primary); margin-bottom: 8px; }
.footer-links a:hover { text-decoration: underline; }

.footer-bottom {
  max-width: 1280px;
  margin: 24px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid var(--beige-deep);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--steel);
}
.footer-bottom a { color: var(--primary); }
.footer-bottom a:hover { text-decoration: underline; }

/* ========== COOKIE BANNER ========== */
#cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--ink);
  color: rgba(255,255,255,0.85);
  padding: 14px 32px;
  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: #ffd06a; }
.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-md);
  border: 1px solid rgba(255,255,255,0.3);
  background: transparent;
  color: #fff;
  cursor: pointer;
}
.cookie-btn.accept { background: var(--canvas); color: var(--ink); border-color: var(--canvas); }
.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; }

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
  .container, .container-narrow { padding: 0 24px; }
  .header-inner { padding: 0 24px; }
  .footer-inner { padding: 0 24px; grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1/-1; }
  .footer-bottom { padding: 20px 24px 0; }
  #cookie-banner { padding: 14px 24px; }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
}

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