/* ============================================================
   GeoPulse Analysis — style.css
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,600;0,700;1,400;1,600&family=Figtree:wght@300;400;500;600&display=swap');

:root {
  --bg:          #f9f7f3;
  --paper:       #ffffff;
  --ink:         #1a1814;
  --ink-light:   #4a4540;
  --muted:       #8a8278;
  --rule:        #e2ddd6;
  --accent:      #b5401a;
  --accent-dark: #8c2f10;
  --accent-bg:   #fdf2ee;
  --nav-bg:      #1a1814;
  --max-w:       1100px;
  --article-w:   800px;
}

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

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Figtree', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ── Site Header ── */
.site-header {
  background: var(--nav-bg);
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 62px;
}
.site-logo {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  line-height: 1;
  white-space: nowrap;
}
.site-logo span { color: var(--accent); }
.site-logo:hover { text-decoration: none; color: #fff; }

.site-nav ul { list-style: none; display: flex; gap: 0.15rem; flex-wrap: wrap; }
.site-nav a {
  display: inline-block;
  color: #c8c0b4;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.4rem 0.8rem;
  border-radius: 3px;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active {
  background: var(--accent);
  color: #fff;
  text-decoration: none;
}

/* ── Tagline bar ── */
.tagline-bar {
  background: var(--accent);
  text-align: center;
  padding: 0.3rem 1rem;
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
}

/* ── Page Hero ── */
.page-hero {
  background: var(--ink);
  padding: 4.5rem 1.5rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 59px, rgba(255,255,255,0.022) 59px, rgba(255,255,255,0.022) 60px),
    repeating-linear-gradient(90deg, transparent, transparent 59px, rgba(255,255,255,0.022) 59px, rgba(255,255,255,0.022) 60px);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 700px; margin: 0 auto; }
.hero-kicker {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}
.hero-kicker::before, .hero-kicker::after {
  content: '';
  display: block;
  height: 1px;
  width: 2.5rem;
  background: var(--accent);
  opacity: 0.8;
}
.page-hero h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.5rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  color: #fff;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.page-hero p { color: #9a9088; font-size: 1.05rem; line-height: 1.6; max-width: 560px; margin: 0 auto; }
.page-hero.slim { padding: 2.8rem 1.5rem 2.4rem; }
.page-hero.slim h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }

/* ── Main layout ── */
.site-main { max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem 5rem; }

/* ── Section headings ── */
.section-label {
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.5rem;
  padding-bottom: 0.6rem;
  border-bottom: 2px solid var(--rule);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.section-label::after { content: ''; flex: 1; height: 1px; background: var(--rule); margin-left: 0.4rem; }

/* ── Article grid ── */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; list-style: none; }

/* ── Article card ── */
.article-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
  animation: fadeUp 0.45s ease both;
}
.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.09);
  border-color: var(--accent);
}
.card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
}
.card-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 0.75rem;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-desc { font-size: 0.9rem; color: var(--ink-light); line-height: 1.65; flex: 1; margin-bottom: 1.2rem; }
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--rule);
  padding-top: 0.9rem;
  font-size: 0.75rem;
  color: var(--muted);
}
.read-more {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.read-more:hover { color: var(--accent-dark); text-decoration: none; }

/* Featured card */
.article-card.featured { grid-column: 1 / -1; flex-direction: row; }
.article-card.featured .card-body { padding: 2rem 2.2rem; }
.article-card.featured .card-title { font-size: 1.75rem; }
.article-card.featured .card-desc { font-size: 0.95rem; max-width: 680px; }
.featured-label {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 2px;
  margin-bottom: 0.8rem;
}

/* Stagger animation for cards */
.article-grid .article-card:nth-child(1)  { animation-delay: 0.03s; }
.article-grid .article-card:nth-child(2)  { animation-delay: 0.07s; }
.article-grid .article-card:nth-child(3)  { animation-delay: 0.11s; }
.article-grid .article-card:nth-child(4)  { animation-delay: 0.15s; }
.article-grid .article-card:nth-child(5)  { animation-delay: 0.19s; }
.article-grid .article-card:nth-child(6)  { animation-delay: 0.23s; }
.article-grid .article-card:nth-child(7)  { animation-delay: 0.27s; }
.article-grid .article-card:nth-child(8)  { animation-delay: 0.31s; }
.article-grid .article-card:nth-child(9)  { animation-delay: 0.35s; }
.article-grid .article-card:nth-child(10) { animation-delay: 0.39s; }

/* ── Article page ── */
.article-body { max-width: var(--article-w); margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.article-body h1 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.12;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
  padding-bottom: 1.4rem;
  border-bottom: 2px solid var(--rule);
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  align-items: center;
}
.article-meta .tag {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
}
.article-body p { margin-bottom: 1.5rem; font-size: 1.05rem; color: var(--ink-light); line-height: 1.85; }
.article-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin: 2.8rem 0 0.8rem;
  color: var(--ink);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}
.article-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  margin: 2rem 0 0.5rem;
  color: var(--ink);
}
.article-body blockquote {
  border-left: 4px solid var(--accent);
  background: var(--accent-bg);
  padding: 1.2rem 1.6rem;
  margin: 2rem 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--accent-dark);
  line-height: 1.55;
}
.article-body .drop-cap::first-letter {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 4.5em;
  font-weight: 700;
  float: left;
  line-height: 0.78;
  margin: 0.08em 0.1em 0 0;
  color: var(--accent);
}
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ── Static pages ── */
.static-body { max-width: 740px; margin: 0 auto; padding: 3rem 1.5rem 5rem; }
.static-body h2 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--ink);
  margin: 2.4rem 0 0.7rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--rule);
}
.static-body h3 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 600;
  color: var(--ink);
  margin: 1.6rem 0 0.4rem;
}
.static-body p { margin-bottom: 1.3rem; color: var(--ink-light); font-size: 1.01rem; line-height: 1.8; }
.static-body ul, .static-body ol { margin: 0 0 1.3rem 1.4rem; color: var(--ink-light); font-size: 1.01rem; line-height: 1.8; }
.static-body li { margin-bottom: 0.4rem; }
.static-body a { color: var(--accent); }

/* Team cards */
.team-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.2rem; margin: 1.5rem 0 2rem; list-style: none; }
.team-card { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 1.4rem; }
.team-card .tc-name { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.team-card .tc-role { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.7rem; }
.team-card .tc-bio { font-size: 0.88rem; color: var(--ink-light); line-height: 1.65; }

/* Contact form */
.contact-form { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 2rem; margin-top: 1.5rem; }
.form-group { margin-bottom: 1.2rem; }
.form-group label { display: block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 0.4rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.65rem 0.9rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--bg); color: var(--ink); font-family: 'Figtree', sans-serif; font-size: 0.95rem; transition: border-color 0.15s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); background: #fff; }
.form-group textarea { resize: vertical; min-height: 130px; }
.btn-submit {
  background: var(--accent); color: #fff; border: none; padding: 0.7rem 2rem; border-radius: 3px;
  font-family: 'Figtree', sans-serif; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer; transition: background 0.15s;
}
.btn-submit:hover { background: var(--accent-dark); }

/* Site Footer */
.site-footer { background: var(--ink); color: #7a7068; font-size: 0.8rem; padding: 2rem 1.5rem; border-top: 3px solid var(--accent); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem; }
.footer-logo { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.2rem; font-weight: 700; color: #c8c0b4; }
.footer-logo span { color: var(--accent); }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: #7a7068; font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: var(--accent); text-decoration: none; }
.footer-copy { width: 100%; text-align: center; padding-top: 1.2rem; border-top: 1px solid #2e2a24; margin-top: 0.6rem; font-size: 0.75rem; color: #4a4540; }

hr { border: none; border-top: 1px solid var(--rule); margin: 2rem 0; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media (max-width: 700px) {
  .site-header-inner { flex-wrap: wrap; padding: 0.5rem 1rem; min-height: unset; }
  .site-nav ul { gap: 0.1rem; }
  .site-nav a { padding: 0.35rem 0.55rem; font-size: 0.7rem; }
  .article-card.featured { flex-direction: column; }
  .article-card.featured .card-title { font-size: 1.35rem; }
  .page-hero { padding: 3rem 1rem 2.5rem; }
  .site-main { padding: 2rem 1rem 3rem; }
  .article-body, .static-body { padding: 2rem 1rem 3rem; }
  .contact-form { padding: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
