/* ========================================
   Blog styles: shares the design tokens, nav and footer of index.php
======================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green-dark:   #5a7a5c;
  --green-mid:    #7d9e7e;
  --green-pale:   #e8f0e8;
  --blush-deep:   #d4909a;
  --blush-mid:    #e8b4b8;
  --blush-light:  #f2d0d4;
  --blush-pale:   #fdf0f1;
  --cream:        #faf8f4;
  --white:        #ffffff;
  --gold:         #c9a84c;
  --gold-light:   #e8d5a3;
  --gold-dark:    #9a7a2e;
  --text-dark:    #2a2a2a;
  --text-mid:     #555555;
  --text-light:   #888888;
  --shadow-soft:  0 4px 30px rgba(0,0,0,0.08);
  --shadow-card:  0 8px 40px rgba(0,0,0,0.10);
  --radius:       12px;
  --radius-lg:    20px;
  --transition:   0.4s ease;
}

html { font-size: 16px; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  background-color: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.25;
  color: var(--text-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.45rem); font-weight: 500; }

p { margin-bottom: 1rem; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

.section-label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
  display: block;
}

.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, var(--blush-mid), var(--gold));
  margin: 1.5rem 0 0;
  border-radius: 2px;
}

.btn {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.9rem 2.2rem;
  border-radius: 40px;
  transition: all 0.3s ease;
}

.btn-primary {
  background: var(--gold);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(201,168,76,0.4);
}

.btn-primary:hover { background: var(--gold-dark); transform: translateY(-2px); }

/* ========================================
   NAVIGATION (always in the solid "scrolled" style)
======================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 0 24px;
  background: rgba(250, 248, 244, 0.97);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  backdrop-filter: blur(10px);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

.nav-logo { display: flex; flex-direction: column; line-height: 1.1; }

.nav-logo .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-logo .logo-sub {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-light);
  font-weight: 300;
}

.nav-links { display: flex; gap: 2.5rem; list-style: none; }

.nav-links a {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-mid);
  position: relative;
  padding-bottom: 3px;
  transition: color var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }
.nav-links a:hover { color: var(--gold-dark); }

.nav-cta {
  background: var(--gold);
  color: var(--white) !important;
  padding: 0.55rem 1.4rem !important;
  border-radius: 30px;
  font-size: 0.8rem !important;
}

.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--gold-dark) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
}

.nav-mobile {
  display: none;
  position: fixed;
  top: 80px; left: 0; right: 0;
  background: var(--cream);
  padding: 1.5rem 2rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
  z-index: 999;
  flex-direction: column;
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  display: block;
  padding: 0.9rem 0;
  font-size: 1rem;
  color: var(--text-dark);
  border-bottom: 1px solid var(--blush-light);
  letter-spacing: 0.05em;
}

.nav-mobile a:last-child { border-bottom: none; }

/* ========================================
   BLOG INDEX
======================================== */
.blog-hero {
  padding: 80px 0 50px;
  background: linear-gradient(180deg, var(--blush-pale), var(--cream));
}

.blog-hero h1 em { font-style: italic; color: var(--green-dark); }

.blog-hero p { max-width: 620px; color: var(--text-mid); margin-top: 1rem; }

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 32px;
  padding: 40px 0 100px;
}

.post-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }

.post-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.post-card-body { padding: 1.5rem 1.75rem 1.75rem; }

.post-card h2 { font-size: 1.35rem; margin-bottom: 0.6rem; }

.post-card p { color: var(--text-mid); font-size: 0.95rem; margin-bottom: 1rem; }

.post-meta {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.6rem;
  display: block;
}

.read-more {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-dark);
}

.empty-state { padding: 40px 0 100px; color: var(--text-mid); }

/* ========================================
   SINGLE POST
======================================== */
.post-header { padding: 70px 0 40px; }
.post-header .container,
.post-body,
.post-cta { max-width: 760px; }

.post-lede { font-size: 1.15rem; color: var(--text-mid); margin-top: 1.25rem; }

.post-hero {
  max-width: 1000px;
  margin: 0 auto 50px;
  padding: 0 24px;
}

.post-hero img {
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.post-body { margin: 0 auto; padding: 0 24px; font-size: 1.06rem; }
.post-body h2 { margin: 2.5rem 0 1rem; }
.post-body h3 { margin: 2rem 0 0.75rem; color: var(--green-dark); }
.post-body ul, .post-body ol { margin: 0 0 1.25rem 1.4rem; }
.post-body li { margin-bottom: 0.45rem; }
.post-body a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.post-body strong { color: var(--text-dark); }

.post-body figure { margin: 2rem 0; }
.post-body figure img { border-radius: var(--radius); width: 100%; }
.post-body figcaption { font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem; text-align: center; }

.post-cta {
  margin: 60px auto 100px;
  padding: 2.5rem;
  background: var(--green-pale);
  border-radius: var(--radius-lg);
  text-align: center;
}

.post-cta h2 { margin-bottom: 0.75rem; }
.post-cta p { color: var(--text-mid); margin-bottom: 1.5rem; }

.back-link {
  display: inline-block;
  margin-bottom: 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-light);
}

.back-link:hover { color: var(--gold-dark); }

/* ========================================
   FOOTER
======================================== */
footer { background: #1e1c1a; color: rgba(255,255,255,0.75); padding: 60px 0 0; }

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .logo-main {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 0.2rem;
}

.footer-brand .logo-sub {
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  display: block;
  margin-bottom: 1.25rem;
}

.footer-brand p { font-size: 0.9rem; line-height: 1.8; color: rgba(255,255,255,0.55); }

.footer-col h4 {
  color: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  font-weight: 700;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 0.7rem; }
.footer-col a, .footer-col p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin: 0; transition: color 0.25s; }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ========================================
   RESPONSIVE
======================================== */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 35px; }
}

@media (max-width: 560px) {
  .blog-hero { padding: 56px 0 30px; }
  .post-header { padding: 48px 0 30px; }
  .post-cta { margin: 40px 16px 70px; padding: 2rem 1.25rem; }
  .post-body, .post-hero { padding: 0 16px; }
  .container { padding: 0 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
