/*
 Theme Name:   GeneratePress Editorial Dark
 Description:  GeneratePress child theme with editorial dark style
 Template:     generatepress
 Version:      2.0.0
 Text Domain:  generatepress-editorial-dark
*/

/* ═══════════════════════════════════
   CSS CUSTOM PROPERTIES
   ═══════════════════════════════════ */
:root {
  --bg:        #1a1208;
  --bg-card:   #221a08;
  --bg-dark:   #110e05;
  --bg-lift:   #1e1508;
  --border:    #3a2e1a;
  --accent:    #c8922a;
  --accent-lt: #e8a835;
  --text:      #d5cab8;
  --muted:     #a09070;
  --white:     #ebe0cc;
}

/* ═══════════════════════════════════
   BASE
   ═══════════════════════════════════ */
html, body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Source Serif 4', Georgia, serif;
}

/* ═══════════════════════════════════
   TYPOGRAPHY
   ═══════════════════════════════════ */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  color: var(--white);
  font-weight: 900;
  line-height: 1.15;
}

p { line-height: 1.75; }

a         { color: var(--accent); text-decoration: none; }
a:hover   { color: var(--accent-lt); text-decoration: underline; }

/* ═══════════════════════════════════
   HEADER & NAV
   ═══════════════════════════════════ */
.site-header, #masthead {
  background: var(--bg-dark);
  border-bottom: 1px solid var(--border);
}

.site-title a, .site-title { color: var(--white); font-family: 'Playfair Display', serif; }

.main-navigation a       { color: var(--muted); }
.main-navigation a:hover { color: var(--accent); }

.main-navigation .current-menu-item a,
.main-navigation .current_page_item a {
  color: var(--accent);
  border-bottom: 2px solid var(--accent);
}

.site-header .inside-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
}

.site-branding, .header-branding { flex-shrink: 0; margin-right: 30px; }
.main-navigation                 { flex-shrink: 0; }

/* ═══════════════════════════════════
   CONTENT AREAS
   ═══════════════════════════════════ */
.site-content, #content, .site-main,
#main, #primary, .content-area,
.hentry, .inside-article, .entry-content,
.post-inner {
  background: transparent;
  color: var(--text);
}

.entry-title, .entry-title a       { color: var(--accent); font-style: italic; }
.entry-summary, .entry-meta,
.post-meta, .posted-on, .byline    { color: var(--muted); font-style: italic; font-size: 0.9rem; }
.entry-content p, .entry-content li { color: var(--text); font-size: 1rem; line-height: 1.75; }

/* ═══════════════════════════════════
   SIDEBAR & WIDGETS
   ═══════════════════════════════════ */
.widget-area, #secondary           { background: transparent; }
.widget-title {
  color: var(--accent);
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ═══════════════════════════════════
   FOOTER
   ═══════════════════════════════════ */
.site-footer, #colophon {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  color: var(--muted);
}

/* ═══════════════════════════════════
   FORMS & SEARCH
   ═══════════════════════════════════ */
input, textarea, select {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 3px;
}

input:focus, textarea:focus {
  border-color: var(--accent);
  outline: none;
}

.search-submit,
.wp-block-button__link,
button[type="submit"] {
  background: var(--accent);
  color: var(--bg);
  border: none;
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.search-submit:hover,
.wp-block-button__link:hover,
button[type="submit"]:hover {
  background: var(--accent-lt);
}

/* ═══════════════════════════════════
   LATEST POSTS
   ═══════════════════════════════════ */
.wp-block-latest-posts,
.wp-block-query,
.wp-block-post-template {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.wp-block-latest-posts__list        { padding: 0; }
.wp-block-latest-posts__list li     { border-bottom: 1px solid var(--border); padding: 1rem 0; }
.wp-block-latest-posts__post-title  { color: var(--accent); font-family: 'Playfair Display', serif; font-size: 1.1rem; }
.wp-block-latest-posts__post-date   { color: var(--muted); font-size: 0.8rem; }
.wp-block-latest-posts__post-excerpt{ color: var(--text); font-size: 0.9rem; line-height: 1.6; }

/* ═══════════════════════════════════
   HEADINGS ALIGNMENT
   ═══════════════════════════════════ */
.wp-block-heading {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 20px;
}

/* ═══════════════════════════════════
   GUTENBERG BLOCKS
   ═══════════════════════════════════ */

/* Pullquote */
.wp-block-pullquote {
  border-top: 3px solid var(--accent);
  border-bottom: 3px solid var(--accent);
  background: var(--bg-lift);
}
.wp-block-pullquote blockquote p {
  font-family: 'Playfair Display', serif;
  color: var(--white);
  font-size: 1.3rem;
  font-style: italic;
}

/* Tables */
.wp-block-table table  { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.wp-block-table th     { background: var(--bg-lift); color: var(--accent); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; }
.wp-block-table td     { border-color: var(--border); }

/* Code */
pre, code {
  background: #0d0a04;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Separator */
.wp-block-separator { border-color: var(--border); }

/* ═══════════════════════════════════
   CUSTOM BLOCK CLASSES
   ═══════════════════════════════════ */

/* class="section-label" */
.section-label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 1.2rem;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent);
  flex-shrink: 0;
}

/* class="stat-grid" on Columns block */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 2rem 0;
}

/* class="stat-card" on each Column */
.stat-card {
  background: var(--bg-card);
  padding: 1.4rem 1rem;
  text-align: center;
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 900;
  color: var(--accent);
  display: block;
  margin-bottom: 0.5rem;
}
.stat-card p { font-size: 0.78rem; color: var(--muted); line-height: 1.5; margin: 0; }

/* class="claim-block" on Group block */
.claim-block {
  background: var(--bg-lift);
  border-left: 3px solid var(--accent);
  border-radius: 0;
  padding: 1.4rem 1.5rem;
  margin: 2rem 0;
}
.claim-block p {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--white);
  line-height: 1.5;
  margin: 0;
}

/* class="fact-tag" on Paragraph */
p.fact-tag, .fact-tag {
  display: inline-block;
  background: var(--bg-lift);
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.78rem;
  padding: 5px 14px;
  border-radius: 20px;
  margin: 1rem 0;
}
.fact-tag::before { content: '▶  '; font-size: 0.65rem; }

/* ═══════════════════════════════════
   HOVER EFFECTS ON FEATURE CARDS
   ═══════════════════════════════════ */
.wp-block-column, .wp-block-media-text {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.wp-block-column:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(200, 146, 42, 0.15);
}

/* ═══════════════════════════════════
   NEWSLETTER SECTION
   ═══════════════════════════════════ */
.wp-block-group {
  border-color: var(--border);
}
