/* ============================================================
   ZENTRY GHOST THEME — screen.css
   Brand: #080808 Black | #C9A84C Gold | #F0EDE8 White
   Font: Playfair Display (headings) | Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=Inter:wght@300;400;500;600&display=swap');

/* ── RESET & ROOT ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #080808;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --white:      #F0EDE8;
  --gray:       #6B6B6B;
  --dark2:      #141414;
  --dark3:      #1E1E1E;
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; transition: color .2s; }
a:hover { color: var(--gold-light); }

img { max-width: 100%; height: auto; display: block; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 700;
  color: var(--white);
  line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); }
p  { margin-bottom: 1.2rem; color: var(--white); opacity: .9; }

/* ── LAYOUT ───────────────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── HEADER / NAV ─────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--black);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 1.2rem 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-logo img { height: 52px; width: auto; }
.site-logo-text {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 2px;
}

.site-nav { display: flex; gap: 2rem; align-items: center; }
.site-nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--white);
  opacity: .8;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: opacity .2s, color .2s;
}
.site-nav a:hover { opacity: 1; color: var(--gold); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--black) !important;
  opacity: 1 !important;
  padding: .5rem 1.2rem;
  border-radius: 2px;
  font-weight: 600;
}
.nav-cta:hover { background: var(--gold-light) !important; }

/* ── HERO ─────────────────────────────────────────────────── */
.site-hero {
  padding: 7rem 0 5rem;
  text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.15);
  position: relative;
}
.site-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center top, rgba(201,168,76,.07) 0%, transparent 70%);
  pointer-events: none;
}
.hero-tagline {
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-family: var(--font-serif);
  color: var(--white);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--white);
  opacity: .7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: .75rem 2rem;
  font-family: var(--font-sans);
  font-size: .9rem;
  font-weight: 600;
  letter-spacing: .5px;
  border-radius: 2px;
  cursor: pointer;
  transition: all .2s;
  border: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--black);
}
.btn-primary:hover { background: var(--gold-light); color: var(--black); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(201,168,76,.5);
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

/* ── GOLD DIVIDER ─────────────────────────────────────────── */
.gold-line {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 1.5rem auto;
}

/* ── SECTION ──────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-title {
  font-family: var(--font-serif);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--white);
  margin-bottom: .5rem;
}
.section-subtitle {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

/* ── POST GRID ────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.post-card {
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,.1);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.post-card:hover { border-color: var(--gold); transform: translateY(-3px); }

.post-card-image { aspect-ratio: 16/9; overflow: hidden; }
.post-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.post-card:hover .post-card-image img { transform: scale(1.03); }

.post-card-content { padding: 1.5rem; }
.post-card-tag {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: .75rem;
}
.post-card-title {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: .75rem;
  line-height: 1.3;
}
.post-card-excerpt {
  font-size: .9rem;
  color: var(--white);
  opacity: .6;
  line-height: 1.6;
  margin-bottom: 1rem;
}
.post-card-meta {
  font-size: .8rem;
  color: var(--gray);
  display: flex;
  gap: 1rem;
}

/* ── PRICING ──────────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.pricing-card {
  background: var(--dark2);
  border: 1px solid rgba(201,168,76,.15);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color .2s;
}
.pricing-card.featured {
  border-color: var(--gold);
  position: relative;
}
.pricing-card.featured::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gold);
  color: var(--black);
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 2px;
  padding: .2rem .8rem;
  border-radius: 20px;
}
.pricing-tier {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.pricing-price {
  font-family: var(--font-serif);
  font-size: 2.8rem;
  color: var(--white);
  line-height: 1;
}
.pricing-price sup { font-size: 1.2rem; vertical-align: top; margin-top: .4rem; }
.pricing-desc {
  font-size: .85rem;
  color: var(--white);
  opacity: .6;
  margin: 1rem 0 1.5rem;
  line-height: 1.5;
}
.pricing-card .btn { width: 100%; justify-content: center; }

/* ── NEWSLETTER CTA ───────────────────────────────────────── */
.newsletter-section {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,.2);
  border-bottom: 1px solid rgba(201,168,76,.2);
  padding: 5rem 0;
  text-align: center;
}
.newsletter-form {
  display: flex;
  gap: .75rem;
  max-width: 480px;
  margin: 2rem auto 0;
  flex-wrap: wrap;
  justify-content: center;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 240px;
  padding: .75rem 1rem;
  background: var(--black);
  border: 1px solid rgba(201,168,76,.5);
  border-radius: 2px;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: .9rem;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.newsletter-form input[type="email"]:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(201,168,76,.15);
}
.newsletter-form input::placeholder { color: var(--gray); }
.newsletter-msg {
  margin-top: 1rem;
  font-size: .9rem;
  min-height: 1.5rem;
}
.newsletter-msg.success { color: var(--gold); }
.newsletter-msg.error { color: #e05c5c; }

/* ── SINGLE POST ──────────────────────────────────────────── */
.post-header { padding: 5rem 0 3rem; text-align: center; }
.post-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 5vw, 3.5rem);
  max-width: 800px;
  margin: 0 auto 1.5rem;
}
.post-meta {
  font-size: .85rem;
  color: var(--gray);
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 0 5rem;
}
.post-content h2, .post-content h3 { margin: 2rem 0 1rem; }
.post-content p { margin-bottom: 1.5rem; line-height: 1.9; opacity: .9; }
.post-content ul, .post-content ol { margin: 1rem 0 1.5rem 1.5rem; }
.post-content li { margin-bottom: .5rem; opacity: .9; }
.post-content blockquote {
  border-left: 3px solid var(--gold);
  margin: 2rem 0;
  padding: 1rem 1.5rem;
  background: var(--dark2);
  font-style: italic;
  color: var(--white);
  opacity: .85;
}
.post-content code {
  background: var(--dark3);
  color: var(--gold);
  padding: .15rem .4rem;
  border-radius: 2px;
  font-size: .85em;
}
.post-content pre {
  background: var(--dark3);
  border: 1px solid rgba(201,168,76,.2);
  border-radius: 4px;
  padding: 1.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
}
.post-content img { border-radius: 4px; margin: 2rem auto; }
.post-content a { color: var(--gold); border-bottom: 1px solid rgba(201,168,76,.3); }
.post-content a:hover { border-bottom-color: var(--gold); }

/* ── FEATURED IMAGE ───────────────────────────────────────── */
.post-featured-image {
  max-width: 900px;
  margin: 0 auto 3rem;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid rgba(201,168,76,.1);
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--dark2);
  border-top: 1px solid rgba(201,168,76,.2);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}
.footer-brand .site-logo-text { font-size: 1.4rem; margin-bottom: 1rem; }
.footer-brand p { font-size: .9rem; opacity: .6; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  font-size: .75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .6rem; }
.footer-col a { font-size: .9rem; color: var(--white); opacity: .6; }
.footer-col a:hover { opacity: 1; color: var(--gold); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--gray);
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .site-nav { display: none; }
  .post-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input { min-width: unset; width: 100%; }
}

/* ── KOENIG EDITOR CLASSES (required) ─────────────────────── */
.kg-width-wide {
  margin-left: calc(50% - 50vw + 2rem);
  margin-right: calc(50% - 50vw + 2rem);
}
.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  width: 100vw;
}
.kg-image { max-width: 100%; }
.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 4px; }
.kg-gallery-image { flex: 1; overflow: hidden; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; }

/* ── UTILITIES ────────────────────────────────────────────── */
.text-gold { color: var(--gold); }
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
