/*
Theme Name: Sally Foster-Ward Blog
Theme URI: https://www.sallyfosterward.co.uk
Description: Custom WordPress theme for Sally Foster-Ward's blog, matching the Enchanted Woodland design of the main website.
Author: Sean
Author URI: https://www.sallyfosterward.co.uk
Version: 1.0
License: Private
Text Domain: sfw-blog

This is a standalone theme (not a child theme) designed to seamlessly 
integrate with the static HTML main site at sallyfosterward.co.uk.
The blog lives in the /blog/ subdirectory.
*/

/* ===== CSS VARIABLES — matching main site ===== */
:root {
  --forest: #1E4A3E;
  --forest-mid: #2B5B4E;
  --forest-light: #3A7A68;
  --forest-pale: #4A8E7A;
  --cream-gold: #E8D5A8;
  --cream: #F2EADB;
  --cream-light: #FAF6EE;
  --cream-white: #FDFBF7;
  --warm-gold: #D4B96A;
  --gold-muted: #C9AD6B;
  --lavender: #9B8BB8;
  --text-cream: #F2EADB;
  --text-cream-soft: rgba(242,234,219,0.75);
  --text-dark: #2A3A32;
  --text-mid: #4A5A50;
  --text-soft: #7A8A7E;
  --max-width: 1200px;
  --radius: 20px;
  --shadow-sm: 0 2px 8px rgba(30,74,62,0.06);
  --shadow-md: 0 8px 24px rgba(30,74,62,0.1);
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Lora', serif;
  background: var(--cream-white);
  color: var(--text-dark);
  line-height: 1.7;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--forest-light); text-decoration: none; transition: color 0.3s; }
a:hover { color: var(--forest); }

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

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.2;
  color: var(--forest);
}

h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); font-weight: 400; }

/* ===== NAVIGATION — matches main site exactly ===== */
.site-nav-wrapper {
  background: var(--forest);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(232,213,168,0.1);
}

.site-nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.nav-logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--cream-gold);
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.nav-logo-subtitle {
  display: block;
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text-cream-soft);
  font-family: 'Lora', serif;
  font-weight: 400;
}

.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-links li { list-style: none; }

.nav-links a {
  color: var(--text-cream-soft);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 4px;
  font-family: 'Lora', serif;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--cream-gold);
  background: rgba(232,213,168,0.08);
}

.nav-cta {
  background: var(--cream-gold) !important;
  color: var(--forest) !important;
  padding: 9px 22px !important;
  border-radius: 25px !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--cream) !important;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--cream-gold);
  font-size: 26px;
  cursor: pointer;
  padding: 8px;
}

.mobile-nav {
  display: none;
  background: var(--forest);
  padding: 0 40px 20px;
}

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

.mobile-nav a {
  display: block;
  color: var(--text-cream-soft);
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 12px 0;
  border-bottom: 1px solid rgba(232,213,168,0.06);
  font-family: 'Lora', serif;
  text-decoration: none;
}

/* ===== BLOG HEADER ===== */
.blog-header {
  background: linear-gradient(170deg, #E8F0E4 0%, #D8E8D0 20%, #C8D8C0 40%, var(--cream-light) 70%);
  padding: 60px 40px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.blog-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,240,180,0.15) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(155,139,184,0.06) 0%, transparent 40%);
}

.blog-header-content {
  position: relative;
  z-index: 1;
}

.blog-header .eyebrow {
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 12px;
  font-family: 'Lora', serif;
}

.blog-header h1 { margin-bottom: 8px; }

.blog-header p {
  font-size: 15px;
  color: var(--text-mid);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== MAIN CONTENT ===== */
.site-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 40px;
}

.site-content.wide {
  max-width: var(--max-width);
}

/* ===== BLOG POST LIST ===== */
.post-list {
  display: grid;
  gap: 32px;
}

.post-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  padding: 28px;
  background: white;
  border-radius: 16px;
  border: 1px solid rgba(30,74,62,0.08);
  transition: all 0.3s;
  align-items: start;
}

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

.post-card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
}

.post-card-image-placeholder {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--forest), var(--forest-light));
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--cream-gold);
}

.post-card-meta {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 8px;
}

.post-card-title {
  font-size: 1.3rem;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.3;
}

.post-card-title a {
  color: var(--text-dark);
  text-decoration: none;
}

.post-card-title a:hover { color: var(--forest-light); }

.post-card-excerpt {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  margin-bottom: 12px;
}

.post-card-link {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--forest-light);
  font-weight: 500;
}

/* ===== SINGLE POST ===== */
.single-post-header {
  text-align: center;
  padding-bottom: 40px;
  margin-bottom: 40px;
  border-bottom: 1px solid rgba(30,74,62,0.08);
}

.single-post-meta {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 16px;
}

.single-post-content {
  font-size: 16px;
  line-height: 1.9;
  color: var(--text-mid);
}

.single-post-content h2 {
  margin: 40px 0 16px;
}

.single-post-content h3 {
  margin: 32px 0 12px;
}

.single-post-content p {
  margin-bottom: 20px;
}

.single-post-content blockquote {
  padding: 24px 32px;
  border-left: 3px solid var(--warm-gold);
  margin: 32px 0;
  background: rgba(232,213,168,0.06);
  border-radius: 0 12px 12px 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.2rem;
  font-style: italic;
  color: var(--forest);
}

.single-post-content img {
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: var(--shadow-sm);
}

.single-post-content ul,
.single-post-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.single-post-content li {
  margin-bottom: 8px;
}

/* Post navigation */
.post-nav {
  display: flex;
  justify-content: space-between;
  padding: 40px 0;
  border-top: 1px solid rgba(30,74,62,0.08);
  margin-top: 40px;
  gap: 20px;
}

.post-nav a {
  font-size: 13px;
  color: var(--forest-light);
  letter-spacing: 1px;
}

/* ===== SIDEBAR ===== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 60px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
  align-items: start;
}

.sidebar .widget {
  background: var(--cream-light);
  padding: 28px;
  border-radius: 16px;
  margin-bottom: 24px;
}

.sidebar .widget-title {
  font-family: 'Lora', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--forest-light);
  margin-bottom: 16px;
  font-weight: 400;
}

.sidebar .widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar .widget li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(30,74,62,0.06);
}

.sidebar .widget li:last-child { border-bottom: none; }

.sidebar .widget a {
  font-size: 14px;
  color: var(--text-mid);
}

.sidebar .widget a:hover { color: var(--forest-light); }

/* About widget */
.sidebar-about {
  text-align: center;
}

.sidebar-about img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin-bottom: 16px;
  object-fit: cover;
}

.sidebar-about p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.7;
}

/* CTA widget */
.sidebar-cta {
  background: var(--forest) !important;
  text-align: center;
}

.sidebar-cta .widget-title { color: var(--warm-gold); }

.sidebar-cta p {
  color: var(--text-cream-soft);
  font-size: 14px;
  margin-bottom: 16px;
}

.sidebar-cta .btn {
  display: inline-block;
  background: var(--cream-gold);
  color: var(--forest);
  padding: 10px 24px;
  border-radius: 25px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: 'Lora', serif;
  text-decoration: none;
  transition: all 0.3s;
}

.sidebar-cta .btn:hover {
  background: var(--cream);
  transform: translateY(-1px);
}

/* ===== PAGINATION ===== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  border: 1px solid rgba(30,74,62,0.12);
  color: var(--text-mid);
  text-decoration: none;
  transition: all 0.3s;
}

.pagination a:hover {
  background: var(--forest);
  color: var(--cream-gold);
  border-color: var(--forest);
}

.pagination .current {
  background: var(--forest);
  color: var(--cream-gold);
  border-color: var(--forest);
}

/* ===== FOOTER — matches main site ===== */
.site-footer-wrapper {
  background: var(--forest);
  border-top: 1px solid rgba(232,213,168,0.1);
}

.site-footer {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 60px 40px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(232,213,168,0.08);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--cream-gold);
  font-weight: 300;
  margin-bottom: 12px;
}

.footer-brand img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
}

.footer-brand .subtitle {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  color: var(--text-cream-soft);
  font-family: 'Lora', serif;
  margin-top: 4px;
  text-transform: uppercase;
}

.footer-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-cream-soft);
}

.footer-col h4 {
  font-family: 'Lora', serif;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--warm-gold);
  margin-bottom: 16px;
  font-weight: 400;
}

.footer-col a {
  display: block;
  color: var(--text-cream-soft);
  font-size: 14px;
  padding: 4px 0;
  text-decoration: none;
}

.footer-col a:hover { color: var(--cream-gold); }

.footer-col p {
  color: var(--text-cream-soft);
  font-size: 14px;
  line-height: 1.6;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(242,234,219,0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .blog-layout {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .site-nav { padding: 0 20px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  
  .post-card {
    grid-template-columns: 1fr;
  }
  
  .post-card-image,
  .post-card-image-placeholder {
    height: 180px;
  }
  
  .blog-header { padding: 40px 20px 30px; }
  .site-content { padding: 40px 20px; }
  .blog-layout { padding: 40px 20px; }
  
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .site-footer { padding: 40px 20px; }
}

/* ===== ADDITIONAL MOBILE FIXES ===== */
@media (max-width: 768px) {
  .blog-layout {
    grid-template-columns: 1fr;
    padding: 40px 20px;
  }
  
  .post-card {
    grid-template-columns: 1fr;
  }
  
  .post-card-image,
  .post-card-image-placeholder {
    height: 180px;
  }
  
  .post-nav {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }
}
