/* ============================================================
   Dylan Seibel News — style.css
   Premium editorial design | Cloudflare Pages static deploy
   ============================================================ */

/* --- Reset & Variables --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:      #0f172a;
  --primary-mid:  #1e293b;
  --accent:       #d4920a;
  --accent-light: #f59e0b;
  --accent-hover: #b97d08;
  --text:         #1e293b;
  --text-muted:   #64748b;
  --text-light:   #94a3b8;
  --bg:           #ffffff;
  --bg-alt:       #f8fafc;
  --bg-dark:      #0f172a;
  --border:       #e2e8f0;
  --border-dark:  #334155;
  --red:          #dc2626;
  --radius:       6px;
  --radius-lg:    12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-serif:   'Merriweather', Georgia, serif;
  --max-w:        1200px;
  --max-w-text:   720px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent-hover); }

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  line-height: 1.25;
  color: var(--primary);
  font-weight: 700;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Layout --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--text {
  max-width: var(--max-w-text);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section { padding: 5rem 0; }

/* --- Utility --- */
.sr-only {
  position: absolute; width:1px; height:1px;
  padding:0; margin:-1px; overflow:hidden;
  clip:rect(0,0,0,0); border:0;
}

.tag {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .2rem .6rem;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
}

.tag--outline {
  background: transparent;
  border: 1.5px solid var(--accent);
  color: var(--accent);
}

.divider {
  width: 56px;
  height: 4px;
  background: var(--accent);
  border-radius: 2px;
  margin: 1rem 0 2rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .01em;
  cursor: pointer;
  border: none;
  transition: all .2s;
  line-height: 1;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}
.btn--primary:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }

.btn--outline {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
}
.btn--outline:hover { background: var(--accent); color: #fff; }

.btn--white {
  background: #fff;
  color: var(--primary);
}
.btn--white:hover { background: var(--accent); color: #fff; }

/* --- Header / Nav --- */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  border-bottom: 2px solid var(--accent);
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  text-decoration: none;
}
.site-logo:hover { color: var(--accent-light); }

.logo-mark {
  width: 40px;
  height: 40px;
  background: var(--accent);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.site-nav a {
  color: #cbd5e1;
  font-size: .88rem;
  font-weight: 500;
  padding: .5rem .85rem;
  border-radius: var(--radius);
  transition: all .2s;
  white-space: nowrap;
  text-decoration: none;
}
.site-nav a:hover,
.site-nav a.active { color: #fff; background: rgba(255,255,255,.08); }

.nav-cta {
  background: var(--accent) !important;
  color: #fff !important;
  border-radius: var(--radius) !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: .5rem;
  background: none;
  border: none;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: all .3s;
}

/* --- Breaking Banner --- */
.breaking-banner {
  background: var(--red);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .03em;
  padding: .4rem 0;
  text-align: center;
}

/* --- Hero --- */
.hero {
  background: var(--primary);
  padding: 6rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(212,146,10,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 80% at 10% 80%, rgba(212,146,10,.06) 0%, transparent 60%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.5rem;
}

.hero-eyebrow .live-dot {
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
  animation: pulse 1.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .5; transform: scale(.7); }
}

.hero-eyebrow span {
  color: var(--text-light);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.hero h1 {
  color: #fff;
  margin-bottom: 1.25rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent-light);
}

.hero .lead { color: #94a3b8; margin-bottom: 2.5rem; }

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-dark);
}

.stat { text-align: center; }
.stat-num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-light);
  line-height: 1;
}
.stat-label { font-size: .78rem; color: var(--text-light); margin-top: .25rem; }

.hero-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg);
  padding: 2rem;
  backdrop-filter: blur(8px);
}

.hero-card-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1.25rem;
}

.hero-feature-list { list-style: none; }
.hero-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: #cbd5e1;
  font-size: .9rem;
}
.hero-feature-list li:last-child { border-bottom: none; }
.hero-feature-list .icon {
  color: var(--accent-light);
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* --- Section Headers --- */
.section-header { margin-bottom: 3rem; }
.section-header.center { text-align: center; }
.section-header.center .divider { margin-left: auto; margin-right: auto; }
.section-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: .75rem;
}

/* --- Article Cards --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.articles-grid--featured {
  grid-template-columns: 2fr 1fr 1fr;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-alt);
}

.card-img-placeholder {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #1e293b, #334155);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: .85rem;
  font-size: .78rem;
}

.card-date { color: var(--text-light); }

.card h3 {
  font-size: 1.1rem;
  margin-bottom: .75rem;
  line-height: 1.3;
}
.card h3 a { color: var(--primary); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }

.card p { color: var(--text-muted); font-size: .9rem; flex: 1; }

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border);
  font-size: .82rem;
  color: var(--text-light);
}

.card--featured .card-body { padding: 2rem; }
.card--featured h3 { font-size: 1.4rem; }

/* --- Coverage Map Grid --- */
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.coverage-item {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  text-align: center;
  transition: all .2s;
  cursor: default;
}
.coverage-item:hover {
  border-color: var(--accent);
  background: #fff;
  box-shadow: var(--shadow);
}

.coverage-icon { font-size: 2rem; margin-bottom: .75rem; }
.coverage-item h4 { margin-bottom: .4rem; font-size: 1rem; }
.coverage-item p { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* --- About Strip --- */
.about-strip {
  background: var(--primary);
  padding: 5rem 0;
}

.about-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.about-strip h2, .about-strip h3 { color: #fff; }

.about-strip p { color: #94a3b8; }

.about-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 2rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1rem;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  color: #cbd5e1;
  font-size: .82rem;
  font-weight: 500;
}

.about-img-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.about-img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(160deg, #1e3a5f, #0f172a);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #475569;
  font-size: .85rem;
  text-align: center;
}

.about-img-placeholder .big-icon { font-size: 4rem; }

.about-accent-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 5px;
  background: var(--accent);
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.testimonial {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
}

.testimonial-stars { color: var(--accent-light); font-size: 1rem; margin-bottom: 1rem; letter-spacing: .1em; }
.testimonial p { color: var(--text-muted); font-size: .9rem; font-style: italic; margin-bottom: 1.25rem; }
.testimonial-author { font-size: .82rem; font-weight: 600; color: var(--primary); }
.testimonial-location { font-size: .78rem; color: var(--text-light); }

/* --- Newsletter --- */
.newsletter-section {
  background: var(--primary);
  padding: 4rem 0;
}

.newsletter-inner {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.newsletter-inner h2 { color: #fff; margin-bottom: .75rem; }
.newsletter-inner p { color: #94a3b8; margin-bottom: 2rem; }

.newsletter-form {
  display: flex;
  gap: .75rem;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: .85rem 1.25rem;
  border-radius: var(--radius);
  border: 1.5px solid var(--border-dark);
  background: rgba(255,255,255,.07);
  color: #fff;
  font-size: .95rem;
  outline: none;
  transition: border-color .2s;
}
.newsletter-form input[type="email"]::placeholder { color: #64748b; }
.newsletter-form input[type="email"]:focus { border-color: var(--accent); }

/* --- Footer --- */
#site-footer {
  background: #07101e;
  border-top: 2px solid var(--accent);
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand .site-logo { margin-bottom: 1.25rem; }
.footer-brand p { color: #64748b; font-size: .88rem; line-height: 1.7; }

.footer-col h5 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.footer-links { list-style: none; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a {
  color: #64748b;
  font-size: .88rem;
  text-decoration: none;
  transition: color .2s;
}
.footer-links a:hover { color: var(--accent-light); }

.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom p { color: #475569; font-size: .82rem; margin: 0; }

.footer-legal {
  display: flex;
  gap: 1.5rem;
}
.footer-legal a { color: #475569; font-size: .82rem; text-decoration: none; }
.footer-legal a:hover { color: var(--accent-light); }

/* --- Article Page --- */
.article-header {
  background: var(--primary);
  padding: 4rem 0 3rem;
}

.article-header .breadcrumb {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
}
.article-header .breadcrumb a { color: #94a3b8; text-decoration: none; }
.article-header .breadcrumb a:hover { color: var(--accent-light); }
.article-header .breadcrumb span { color: #475569; }

.article-header h1 { color: #fff; margin-bottom: 1.25rem; }

.article-byline {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.byline-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}

.byline-info { color: #94a3b8; font-size: .88rem; }
.byline-info strong { color: #fff; display: block; margin-bottom: .1rem; }

.article-body {
  padding: 4rem 0;
}

.article-content {
  font-family: var(--font-serif);
  font-size: 1.08rem;
  line-height: 1.9;
  color: var(--text);
}
.article-content h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.article-content h3 { font-size: 1.25rem; margin: 2rem 0 .75rem; }
.article-content p { margin-bottom: 1.5rem; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.5rem; }
.article-content li { margin-bottom: .5rem; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 1rem 1.5rem;
  margin: 2rem 0;
  background: var(--bg-alt);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}

.article-sidebar {
  position: sticky;
  top: 90px;
}

.sidebar-widget {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-widget h4 {
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

.sidebar-links { list-style: none; }
.sidebar-links li { border-bottom: 1px solid var(--border); }
.sidebar-links li:last-child { border-bottom: none; }
.sidebar-links a {
  display: block;
  padding: .75rem 0;
  font-size: .88rem;
  color: var(--text);
  text-decoration: none;
  transition: color .2s;
}
.sidebar-links a:hover { color: var(--accent); }

.article-two-col {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 4rem;
  align-items: start;
}

/* --- About Page --- */
.about-hero {
  background: var(--primary);
  padding: 5rem 0 4rem;
}

.about-hero-inner {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 4rem;
  align-items: center;
}

.about-hero h1 { color: #fff; }
.about-hero .lead { color: #94a3b8; }

.credentials-list {
  list-style: none;
  margin-top: 2rem;
}
.credentials-list li {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  color: #cbd5e1;
  font-size: .9rem;
}
.credentials-list li:last-child { border-bottom: none; }
.credentials-list .check { color: var(--accent-light); font-size: 1.1rem; }

/* --- Contact Page --- */
.contact-form-wrap {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
}

.form-group { margin-bottom: 1.5rem; }
.form-group label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: .5rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: .85rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: .95rem;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .2s;
  font-family: var(--font-sans);
}

.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); }
.form-group textarea { resize: vertical; min-height: 140px; }

/* --- Blog index --- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .articles-grid--featured { grid-template-columns: 1fr 1fr; }
  .articles-grid--featured .card--featured { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-strip-inner { grid-template-columns: 1fr; }
  .about-hero-inner { grid-template-columns: 1fr; }
  .article-two-col { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
}

@media (max-width: 768px) {
  section { padding: 3.5rem 0; }
  .site-nav { display: none; }
  .site-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0; right: 0;
    background: var(--primary);
    border-bottom: 1px solid var(--accent);
    padding: 1rem 1.5rem 1.5rem;
    gap: .25rem;
    z-index: 999;
  }
  .site-nav.open a { width: 100%; }
  .hamburger { display: flex; }
  .articles-grid { grid-template-columns: 1fr; }
  .articles-grid--featured { grid-template-columns: 1fr; }
  .articles-grid--featured .card--featured { grid-column: span 1; }
  .coverage-grid { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .blog-grid { grid-template-columns: 1fr; }
  .hero { padding: 4rem 0; }
}

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