/* ============================================
   THEME: GoldPress — Editorial Portal
   DNA Source: Drivin (gold+navy, geometric sans,
   bold sections, hover overlays, uppercase nav)
   ============================================ */

:root {
  --gold: #F3BD00;
  --gold-light: #FDD835;
  --navy: #0C2B4B;
  --navy-deep: #081E35;
  --navy-mid: #153A5C;
  --gray-100: #F3F6F8;
  --gray-200: #E4E8EC;
  --gray-400: #9EA8B3;
  --gray-600: #757575;
  --white: #FFFFFF;
  --text: #2D3748;
  --text-muted: #6B7280;
  --font-display: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
  --section-py: 5.5rem;
  --transition: .4s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
}
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── UTILITY ── */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  margin-bottom: 1rem;
}
.section-subtitle {
  color: var(--text-muted);
  max-width: 580px;
  font-size: 1.05rem;
  line-height: 1.65;
}

/* ── TOPBAR ── */
.topbar {
  background: var(--navy-deep);
  color: var(--gray-400);
  font-size: .8rem;
  padding: .55rem 0;
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.topbar a { color: var(--gold); }
.topbar a:hover { color: var(--gold-light); }

/* ── HEADER / NAVBAR ── */
.site-header {
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 900;
  border-bottom: 1px solid var(--gray-200);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(12,43,75,.08);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--navy);
  padding-right: 2rem;
  margin-right: 2rem;
  border-right: 2px solid var(--gray-200);
  white-space: nowrap;
}
.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}
.nav-main { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-main a {
  font-size: .82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--navy);
  padding: .5rem 1rem;
  border-radius: 0;
  transition: color var(--transition);
}
.nav-main a:hover,
.nav-main a:focus { color: var(--gold); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 4px 0;
  margin-left: auto;
}
.hamburger span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-main {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--white);
    border-bottom: 2px solid var(--gold);
    padding: 1rem 1.5rem;
    gap: 0;
    box-shadow: 0 8px 24px rgba(12,43,75,.1);
  }
  .nav-main.open { display: flex; }
  .nav-main a {
    padding: .75rem 0;
    border-bottom: 1px solid var(--gray-200);
    width: 100%;
  }
  .nav-main a:last-child { border-bottom: none; }
  .brand { margin-right: 0; padding-right: 0; border-right: none; }
}

/* ── HERO ── */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 480px;
}
.hero-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4rem 3rem 4rem 0;
  position: relative;
  z-index: 2;
}
.hero-content h1 {
  color: var(--white);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero-subtitle {
  color: var(--gray-400);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 480px;
}
.hero-subtitle p { margin-bottom: .5rem; }
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: var(--gold);
  color: var(--navy);
  font-weight: 700;
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 1rem 2rem;
  transition: background var(--transition), transform var(--transition);
}
.hero-cta:hover { background: var(--gold-light); transform: translateY(-2px); }
.hero-cta svg { width: 16px; height: 16px; }
.hero-visual {
  position: relative;
  background: var(--navy-mid);
}
.hero-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--navy) 0%, transparent 60%);
  z-index: 1;
}
.hero-decoration {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 140px;
  height: 140px;
  background: var(--gold);
  opacity: .12;
  z-index: 1;
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { padding: 3rem 0; }
  .hero-visual { display: none; }
}

/* ── TOPICS ── */
.topics-section {
  background: var(--gray-100);
  padding: var(--section-py) 0;
}
.topics-header {
  margin-bottom: 3rem;
}
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0;
}
.topic-card {
  background: var(--white);
  padding: 2.25rem 2rem;
  border: 1px solid var(--gray-200);
  margin: -0.5px;
  position: relative;
  transition: background var(--transition), transform var(--transition);
}
.topic-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width .5s ease;
}
.topic-card:hover::before { width: 100%; }
.topic-card:hover { background: var(--gray-100); }
.topic-card h3 {
  font-size: 1.15rem;
  margin-bottom: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.topic-card .topic-desc {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}
.topic-card .topic-desc p { margin-bottom: .5rem; }
.topic-card .topic-desc p:last-child { margin-bottom: 0; }

/* ── LATEST POSTS ── */
.posts-section {
  padding: var(--section-py) 0;
  background: var(--white);
}
.posts-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 3rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.posts-header .view-all {
  font-size: .85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gold);
  border-bottom: 2px solid var(--gold);
  padding-bottom: .15rem;
  transition: color var(--transition);
}
.posts-header .view-all:hover { color: var(--navy); border-color: var(--navy); }

.posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}
.post-card { display: flex; flex-direction: column; }
.post-card-cover {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: var(--gray-200);
}
.post-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.post-card:hover .post-card-cover img { transform: scale(1.05); }
.post-card-cover .overlay {
  position: absolute;
  inset: 0;
  background: rgba(12,43,75,0);
  transition: background .5s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-card:hover .post-card-cover .overlay {
  background: rgba(12,43,75,.55);
}
.overlay-label {
  color: var(--white);
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  border: 2px solid var(--white);
  padding: .5rem 1.5rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .4s ease, transform .4s ease;
}
.post-card:hover .overlay-label { opacity: 1; transform: translateY(0); }

.post-card-body { padding: 1.5rem 0 0; }
.post-card-date {
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.post-card-body h3 {
  font-size: 1.2rem;
  margin-bottom: .65rem;
  transition: color var(--transition);
}
.post-card-body h3 a:hover { color: var(--gold); }
.post-card-excerpt {
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.65;
}
.post-card-excerpt p { margin-bottom: .5rem; }
.post-card-excerpt p:last-child { margin-bottom: 0; }

/* First post featured */
.posts-grid .post-card:first-child {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 2.5rem;
}
.posts-grid .post-card:first-child .post-card-cover { aspect-ratio: 4/3; }
.posts-grid .post-card:first-child .post-card-body {
  padding-top: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.posts-grid .post-card:first-child h3 { font-size: 1.55rem; }

@media (max-width: 768px) {
  .posts-grid { grid-template-columns: 1fr; gap: 2rem; }
  .posts-grid .post-card:first-child {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .posts-grid .post-card:first-child .post-card-body { padding-top: 1.5rem; }
}

/* ── FAQ ── */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--navy);
}
.faq-section .section-label { color: var(--gold); }
.faq-section .section-title { color: var(--white); }
.faq-section .section-subtitle { color: var(--gray-400); }

.faq-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: start;
}
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-bottom: 1px solid var(--navy-mid);
}
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--white);
  text-align: left;
  cursor: pointer;
  gap: 1rem;
  font-family: var(--font-body);
}
.faq-question:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--navy-mid);
  color: var(--gold);
  font-size: .85rem;
  font-weight: 700;
  transition: var(--transition);
}
.faq-item.active .faq-icon {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  color: var(--gray-400);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 400px;
  padding-bottom: 1.25rem;
}
.faq-answer p { margin-bottom: .5rem; }
.faq-answer p:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .faq-layout { grid-template-columns: 1fr; gap: 2rem; }
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy-deep);
  padding: 4rem 0 0;
  color: var(--gray-400);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
}
.footer-desc {
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.footer-email a {
  color: var(--gold);
  font-weight: 600;
  transition: color var(--transition);
}
.footer-email a:hover { color: var(--gold-light); }
.footer-heading {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.footer-nav { display: flex; flex-direction: column; gap: .5rem; }
.footer-nav a {
  color: var(--gray-400);
  transition: color var(--transition), padding-left var(--transition);
}
.footer-nav a:hover { color: var(--gold); padding-left: .35rem; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: .8rem;
  color: var(--gray-600);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ── PAGE TEMPLATE ── */
.page-hero {
  background: var(--navy);
  padding: 4rem 0 3.5rem;
}
.page-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}
.page-content {
  padding: var(--section-py) 0;
}
.page-content .content-body {
  max-width: 760px;
}
.content-body h1, .content-body h2, .content-body h3,
.content-body h4, .content-body h5, .content-body h6 {
  margin-top: 2rem;
  margin-bottom: 1rem;
}
.content-body p { margin-bottom: 1.25rem; }
.content-body ul, .content-body ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.content-body ul { list-style: disc; }
.content-body ol { list-style: decimal; }
.content-body li { margin-bottom: .4rem; }
.content-body a { color: var(--gold); border-bottom: 1px solid var(--gold); }
.content-body a:hover { color: var(--navy); border-color: var(--navy); }
.content-body blockquote {
  border-left: 4px solid var(--gold);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  background: var(--gray-100);
  color: var(--text-muted);
}
.content-body img { border-radius: 2px; margin: 1.5rem 0; }
.content-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.content-body th, .content-body td {
  border: 1px solid var(--gray-200);
  padding: .75rem 1rem;
  text-align: left;
}
.content-body th { background: var(--gray-100); font-weight: 600; }

/* ── BLOG INDEX ── */
.blog-hero {
  background: var(--navy);
  padding: 4rem 0 3.5rem;
}
.blog-hero h1 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3rem);
}
.blog-list-section {
  padding: var(--section-py) 0;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 2.5rem;
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .25rem;
  margin-top: 3.5rem;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 .75rem;
  font-size: .85rem;
  font-weight: 600;
  border: 2px solid var(--gray-200);
  color: var(--navy);
  transition: var(--transition);
}
.pagination a:hover { border-color: var(--gold); color: var(--gold); }
.pagination a.active, .pagination span.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--navy);
}
.pagination .prev-next {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: .78rem;
}

@media (max-width: 768px) {
  .blog-grid { grid-template-columns: 1fr; }
}

/* ── POST SINGLE ── */
.post-hero {
  background: var(--navy);
  padding: 4rem 0 3.5rem;
}
.post-hero h1 {
  color: var(--white);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  max-width: 760px;
}
.post-meta {
  margin-top: 1rem;
  color: var(--gray-400);
  font-size: .85rem;
}
.post-meta time { color: var(--gold); font-weight: 600; }
.post-cover-section {
  margin-top: -2rem;
  position: relative;
  z-index: 2;
}
.post-cover-section img {
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16/9;
  object-fit: cover;
  border: 4px solid var(--white);
  box-shadow: 0 8px 32px rgba(12,43,75,.12);
}
.post-excerpt {
  max-width: 760px;
  padding: 1.5rem 0;
  font-size: 1.15rem;
  color: var(--text-muted);
  border-bottom: 2px solid var(--gold);
  margin-bottom: 2rem;
  line-height: 1.7;
}
.post-excerpt p { margin-bottom: .5rem; }
.post-excerpt p:last-child { margin-bottom: 0; }
.post-content-section {
  padding: 2rem 0 var(--section-py);
}
.post-content-section .content-body {
  max-width: 760px;
}

/* ── BACK TO TOP ── */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  width: 44px;
  height: 44px;
  background: var(--gold);
  color: var(--navy);
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 800;
  transition: var(--transition);
}
.back-to-top:hover { background: var(--navy); color: var(--gold); }
.back-to-top.visible { display: flex; }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
}
.animate-on-scroll.visible {
  animation: fadeUp .6s ease forwards;
}
