/* ============================================================
   style.css — WP2Static: Playfair + Lora, teal, warm bg
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:       #f7f6f2;
  --surface:  #ffffff;
  --surface2: #f0ede7;
  --text:     #1f2937;
  --muted:    #6b7280;
  --primary:  #0f766e;
  --primary-d:#0b5c56;
  --accent:   #f59e0b;
  --border:   #e5e7eb;
  --shadow:   0 12px 32px rgba(0,0,0,.08);
  --radius:   18px;
  --max:      960px;
  --wide:     1180px;
  --font:     'Lora', serif;
  --display:  'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.8;
  font-size: 1rem;
}

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

.container      { width: min(var(--max),  calc(100% - 40px)); margin: 0 auto; }
.container-wide { width: min(var(--wide), calc(100% - 40px)); margin: 0 auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  line-height: 1.2;
  color: #111827;
  margin-top: 0;
}

/* ── Topbar ──────────────────────────────────────────────── */
.topbar {
  background: #0f172a;
  color: #fff;
  padding: 0;
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.15);
}
.topbar .inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 20px; min-height: 68px; flex-wrap: wrap;
}
.brand {
  font-family: var(--display);
  font-size: 1.45rem; color: #fff;
  font-weight: 700; white-space: nowrap;
}
.topbar-nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.topbar-nav a { color: #e5e7eb; font-size: .9rem; transition: color .15s; }
.topbar-nav a:hover { color: #fff; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 22px; border-radius: 999px;
  font-weight: 600; font-family: var(--font);
  transition: all .2s ease; border: none; cursor: pointer;
  font-size: .9rem;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-d); }
.btn-outline {
  background: transparent; color: var(--primary);
  border: 1.5px solid rgba(15,118,110,.3);
}
.btn-outline:hover { background: rgba(15,118,110,.07); }
.btn-white { background: #fff; color: var(--primary); }
.btn-white:hover { background: var(--surface2); }

/* ── Hero (landing) ──────────────────────────────────────── */
.hero-landing {
  padding: 72px 0 56px;
  background:
    radial-gradient(circle at top left, rgba(245,158,11,.1), transparent 28%),
    radial-gradient(circle at bottom right, rgba(15,118,110,.1), transparent 30%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px; align-items: center;
}
@media(max-width:768px){ .hero-grid { grid-template-columns:1fr; } }

.eyebrow {
  display: inline-block; margin-bottom: 14px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(15,118,110,.08); color: var(--primary);
  font-size: .82rem; font-weight: 600; font-family: sans-serif;
}
.hero-landing h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 1rem; }
.hero-landing p  { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.hero-actions    { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-img        { border-radius: var(--radius); overflow: hidden;
                   box-shadow: var(--shadow); }
.hero-img img    { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 64px 0; }
.section-alt { background: var(--surface2); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.section-head h2 { font-size: clamp(1.4rem,3vw,2rem); margin-bottom: .75rem; }
.section-head p  { color: var(--muted); }

/* ── Feature grid ────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px,1fr));
  gap: 1.25rem;
}
.feat-card {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.5rem; box-shadow: var(--shadow);
  transition: transform .2s;
}
.feat-card:hover { transform: translateY(-3px); }
.feat-card i { font-size: 1.75rem; color: var(--primary); margin-bottom: .75rem; display: block; }
.feat-card h3 { font-size: 1rem; margin-bottom: .4rem; }
.feat-card p  { font-size: .875rem; color: var(--muted); }

/* ── CTA Strip ───────────────────────────────────────────── */
.cta-strip {
  background: linear-gradient(135deg, var(--primary) 0%, #0d9488 100%);
  border-radius: var(--radius); padding: 3rem 2rem;
  color: #fff; text-align: center;
}
.cta-strip h2 { color: #fff; font-size: clamp(1.3rem,3vw,1.9rem); margin-bottom: .75rem; }
.cta-strip p  { opacity: .9; margin-bottom: 1.5rem; }
.cta-actions  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Posts page ──────────────────────────────────────────── */
.posts-hero { padding: 48px 0 28px; }
.posts-hero h1 { font-size: clamp(1.5rem,3vw,2.2rem); margin-bottom: .5rem; }
.posts-hero p  { color: var(--muted); }
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px,1fr));
  gap: 1.25rem; margin-bottom: 2rem;
}
.post-card {
  background: var(--surface); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
  display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0,0,0,.1); }
.post-card a { display: flex; flex-direction: column; height: 100%; color: inherit; }
.post-card-body { padding: 1.25rem; flex: 1; }
.post-card h3 { font-size: .95rem; margin-bottom: .4rem; line-height: 1.4; }
.post-card p  { font-size: .8rem; color: var(--muted); }
.post-card-foot {
  padding: .75rem 1.25rem; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: .75rem; color: var(--muted);
}
.card-rating { color: var(--accent); font-weight: 700; }

/* ── Pagination ──────────────────────────────────────────── */
.pagination { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: .45rem .85rem; border-radius: 8px; font-size: .875rem;
  border: 1px solid var(--border); color: var(--text);
  transition: all .15s;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .active { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Article ──────────────────────────────────────────────── */
.article-wrap { padding: 42px 0 48px; }

.breadcrumbs { margin-bottom: 1.25rem; font-size: .82rem; color: var(--muted); }
.breadcrumbs a { color: var(--primary); }
.breadcrumbs span { margin: 0 .35rem; }

.article-header { margin-bottom: 1.75rem; }
.cat-badge {
  display: inline-block; background: rgba(15,118,110,.1); color: var(--primary);
  font-size: .72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; padding: .25rem .65rem; border-radius: 999px;
  margin-bottom: .75rem;
}
.article-header h1 {
  font-size: clamp(1.4rem,3vw,2rem); margin-bottom: .75rem; line-height: 1.25;
}
.article-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  font-size: .82rem; color: var(--muted);
}
.meta-dot { color: var(--border); }

.rating-inline { display: flex; align-items: center; gap: .3rem; }
.stars  { color: var(--accent); letter-spacing: .05em; }

.feat-img { border-radius: var(--radius); overflow: hidden; margin-bottom: 1.75rem; box-shadow: var(--shadow); }
.feat-img img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }

/* ── Article layout ──────────────────────────────────────── */
.article-layout {
  display: grid; grid-template-columns: 1fr 300px;
  gap: 2.5rem; align-items: start;
}
@media(max-width:768px){ .article-layout { grid-template-columns: 1fr; } }

/* ── Article content ──────────────────────────────────────── */
.article-content { font-size: 1rem; line-height: 1.85; }
.article-content h2 { font-size: 1.4rem; margin: 2rem 0 .75rem; }
.article-content h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.article-content p  { margin-bottom: 1.1rem; }
.article-content ul,
.article-content ol { margin: 0 0 1.1rem 1.5rem; }
.article-content li { margin-bottom: .4rem; }
.article-content a  { color: var(--primary); }
.article-content a:hover { text-decoration: underline; }
.article-content img { border-radius: 12px; margin: 1rem 0; }
.article-content blockquote {
  border-left: 3px solid var(--primary); padding: .75rem 1.25rem;
  background: rgba(15,118,110,.05); border-radius: 0 12px 12px 0;
  margin: 1.25rem 0; color: var(--muted); font-style: italic;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .9rem; }
.article-content th, .article-content td {
  border: 1px solid var(--border); padding: .6rem .85rem; text-align: left;
}
.article-content th { background: var(--surface2); font-weight: 700; }

.article-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.tag {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: 999px; padding: .25rem .75rem; font-size: .78rem;
  color: var(--muted); transition: all .15s;
}
.tag:hover { background: var(--primary); color: #fff; border-color: var(--primary); }

/* ── Sidebar ─────────────────────────────────────────────── */
.sidebar { position: sticky; top: 84px; }
.widget {
  background: var(--surface); border-radius: var(--radius);
  padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.25rem;
}
.widget-title {
  font-size: .95rem; font-weight: 700; margin-bottom: 1rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--primary);
  font-family: var(--display);
}
.related-list { list-style: none; }
.related-list li { padding: .6rem 0; border-bottom: 1px solid var(--border); }
.related-list li:last-child { border-bottom: none; }
.related-list a { font-size: .875rem; font-weight: 500; color: var(--text); line-height: 1.4; display: block; margin-bottom: .15rem; }
.related-list a:hover { color: var(--primary); }
.related-list time { font-size: .72rem; color: var(--muted); }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer {
  background: #0f172a; color: rgba(255,255,255,.7);
  padding: 2rem 0; font-size: .875rem;
}
.footer-inner {
  display: flex; justify-content: space-between;
  align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: rgba(255,255,255,.6); transition: color .15s; }
.footer-links a:hover { color: #fff; }

/* ── 404 ──────────────────────────────────────────────────── */
.not-found { text-align: center; padding: 5rem 1rem; }
.not-found h1 { font-size: 5rem; color: var(--primary); margin-bottom: .5rem; }
.not-found p  { color: var(--muted); font-size: 1.1rem; margin-bottom: 2rem; }
