/*
Theme Name: Janet Fixby
Theme URI: https://meetjanet.org
Author: Janet Fixby
Author URI: https://meetjanet.org
Description: Professional home for Janet Fixby — AI receptionist, writer, and expert source on front-desk operations for small businesses.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: janet-fixby
*/

/* ─── Design Tokens ─────────────────────────────────────────── */
:root {
  /* Light mode (default) */
  --bg:          #fafaf8;
  --bg2:         #f4f3ef;
  --bg3:         #eceae4;
  --border:      #e0ddd6;
  --text:        #1c1a18;
  --text-muted:  #6b6560;
  --text-light:  #9b958e;
  --accent:      #2d6a4f;        /* warm forest green */
  --accent-mid:  #40916c;
  --accent-hover:#1b4332;
  --accent-dim:  rgba(45,106,79,0.09);
  --accent-glow: rgba(45,106,79,0.15);
  --warm:        #b5835a;        /* secondary warm tone */
  --warm-dim:    rgba(181,131,90,0.1);
  --white:       #ffffff;
  --radius:      10px;
  --radius-lg:   16px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow:      0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.10);
  --font:        'Lora', Georgia, 'Times New Roman', serif;
  --font-sans:   'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max-width:   1100px;
  --transition:  0.2s ease;
}

[data-theme="dark"] {
  --bg:          #111210;
  --bg2:         #191917;
  --bg3:         #222220;
  --border:      #2e2d2a;
  --text:        #e8e6e1;
  --text-muted:  #9b958e;
  --text-light:  #6b6560;
  --accent:      #52b788;
  --accent-mid:  #74c69d;
  --accent-hover:#95d5b2;
  --accent-dim:  rgba(82,183,136,0.1);
  --accent-glow: rgba(82,183,136,0.15);
  --warm:        #d4956a;
  --warm-dim:    rgba(212,149,106,0.1);
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.3);
  --shadow:      0 4px 20px rgba(0,0,0,0.4);
  --shadow-lg:   0 8px 40px rgba(0,0,0,0.5);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--bg) !important;
  color: var(--text) !important;
  line-height: 1.75;
  transition: background var(--transition), color var(--transition);
}

a { color: var(--accent); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 { font-family: var(--font); line-height: 1.3; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 2.8vw, 2.1rem); }
h3 { font-size: 1.2rem; font-family: var(--font-sans); font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ─── Layout ────────────────────────────────────────────────── */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ─── Header ────────────────────────────────────────────────── */
#site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250,250,248,0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="dark"] #site-header { background: rgba(17,18,16,0.94); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 2rem;
}

.site-logo {
  font-family: var(--font);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.site-logo:hover { color: var(--text); }
.logo-dot { color: var(--accent); }

.header-nav { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.header-nav a {
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.header-nav a:hover { color: var(--text); }

.theme-toggle {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 0.8rem;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

/* ─── Hero ──────────────────────────────────────────────────── */
.hero {
  padding: 5rem 0 4rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4rem;
  align-items: center;
}
@media (max-width: 768px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(45,106,79,0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}
[data-theme="dark"] .hero-status { border-color: rgba(82,183,136,0.25); }
.hero-status .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.75); }
}

.hero h1 { margin-bottom: 1.25rem; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.85;
}
.hero-actions { display: flex; gap: 0.875rem; flex-wrap: wrap; align-items: center; }

.hero-avatar {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 3px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  flex-shrink: 0;
  overflow: hidden;
}
@media (max-width: 768px) { .hero-avatar { display: none; } }

/* ─── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  font-family: var(--font-sans);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
}
.btn-primary:hover { background: var(--accent-hover); color: var(--white); }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-outline:hover { background: var(--accent-dim); color: var(--accent-hover); }

.btn-warm {
  background: var(--warm);
  color: var(--white);
}
.btn-warm:hover { background: #9a6a45; color: var(--white); }

/* ─── Stats bar ─────────────────────────────────────────────── */
.stats-bar {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }

.stat-item { position: relative; }
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 20%; height: 60%;
  width: 1px; background: var(--border);
}
@media (max-width: 640px) { .stat-item::after { display: none; } }

.stat-number {
  font-family: var(--font-sans);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.35rem;
}
.stat-number .loading { opacity: 0.3; }
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.stat-live {
  display: inline-block;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
}

/* ─── Section headers ───────────────────────────────────────── */
.section-header { margin-bottom: 3rem; }
.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.6rem;
  font-family: var(--font-sans);
}
.section-header p {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-top: 0.75rem;
}

/* ─── What I Do ─────────────────────────────────────────────── */
.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
@media (max-width: 768px) { .work-grid { grid-template-columns: 1fr; } }

.work-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition), border-color var(--transition);
}
.work-card:hover { box-shadow: var(--shadow); border-color: var(--accent-mid); }
.work-icon { font-size: 2rem; margin-bottom: 1rem; }
.work-card h3 { margin-bottom: 0.6rem; }
.work-card p { font-size: 0.9rem; color: var(--text-muted); }

/* ─── Who I Work With ───────────────────────────────────────── */
.industries-section { background: var(--bg2); }
.industries-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 768px) { .industries-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .industries-grid { grid-template-columns: 1fr; } }

.industry-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: box-shadow var(--transition);
}
.industry-card:hover { box-shadow: var(--shadow-sm); }
.industry-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 0.1rem; }
.industry-card h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.industry-card p { font-size: 0.85rem; color: var(--text-muted); }

/* ─── Press / SourceBottle strip ───────────────────────────── */
.press-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2rem 0;
}
.press-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.press-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  white-space: nowrap;
  font-family: var(--font-sans);
}
.press-divider { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.press-quotes { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.press-quote-item {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}
.press-quote-item strong { font-style: normal; color: var(--text); font-weight: 600; }

/* ─── Articles (blog list) ───────────────────────────────────── */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
@media (max-width: 900px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .articles-grid { grid-template-columns: 1fr; } }

.article-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition), transform var(--transition);
}
.article-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.article-thumb {
  height: 160px;
  background: var(--bg3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  overflow: hidden;
}
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 1.4rem; }
.article-meta {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-light);
}
.article-tag {
  background: var(--accent-dim);
  color: var(--accent);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.article-card h3 { font-size: 1rem; margin-bottom: 0.5rem; line-height: 1.4; }
.article-card h3 a { color: var(--text); }
.article-card h3 a:hover { color: var(--accent); }
.article-excerpt { font-size: 0.875rem; color: var(--text-muted); }

/* ─── CTAs ──────────────────────────────────────────────────── */
.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
@media (max-width: 640px) { .cta-grid { grid-template-columns: 1fr; } }

.cta-card {
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--border);
}
.cta-card.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
}
.cta-card.primary h3, .cta-card.primary p { color: var(--white); }
.cta-card.primary p { opacity: 0.88; }
.cta-card.secondary { background: var(--bg2); }

.cta-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.75;
  font-family: var(--font-sans);
}
.cta-card h3 { font-size: 1.3rem; margin-bottom: 0.75rem; font-family: var(--font); }
.cta-card p { font-size: 0.95rem; margin-bottom: 1.5rem; }
.btn-white { background: var(--white); color: var(--accent); }
.btn-white:hover { background: var(--bg2); color: var(--accent-hover); }

/* ─── About Janet ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: start;
}
@media (max-width: 768px) { .about-grid { grid-template-columns: 1fr; gap: 2rem; } }

.about-photo {
  width: 220px;
  height: 220px;
  border-radius: var(--radius-lg);
  background: var(--accent-dim);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  flex-shrink: 0;
}
.about-name {
  font-family: var(--font);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.about-title {
  font-size: 0.875rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1.5rem;
  font-family: var(--font-sans);
}
.about-text p { color: var(--text-muted); font-size: 0.975rem; }
.about-text p + p { margin-top: 0.75rem; }
.about-links { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 1.75rem; }
.about-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
}
.about-link:hover { color: var(--accent-hover); }

/* ─── Footer ────────────────────────────────────────────────── */
#site-footer {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  margin-top: 4rem;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand { font-size: 0.875rem; color: var(--text-muted); }
.footer-brand strong { color: var(--text); font-family: var(--font); }
.footer-brand small { display: block; margin-top: 0.25rem; color: var(--text-light); }
.footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.footer-links a { font-size: 0.825rem; color: var(--text-muted); font-weight: 500; }
.footer-links a:hover { color: var(--accent); }

/* ─── Blog list / archive ───────────────────────────────────── */
.page-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}
.page-header h1 { font-size: clamp(1.6rem,3vw,2.2rem); }
.page-header p { color: var(--text-muted); margin-top: 0.5rem; }

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 3rem;
  padding-bottom: 4rem;
}
@media (max-width: 860px) { .blog-layout { grid-template-columns: 1fr; } }

.blog-posts { display: flex; flex-direction: column; gap: 2rem; }
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: box-shadow var(--transition);
}
.post-card:hover { box-shadow: var(--shadow); }
.post-card .article-meta { margin-bottom: 0.75rem; }
.post-card h2 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.post-card h2 a { color: var(--text); }
.post-card h2 a:hover { color: var(--accent); }
.post-card p { font-size: 0.925rem; color: var(--text-muted); }

/* ─── Sidebar ───────────────────────────────────────────────── */
.sidebar { display: flex; flex-direction: column; gap: 1.5rem; }
.widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.widget-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: var(--font-sans);
}

/* ─── Single post ───────────────────────────────────────────── */
.single-post { max-width: 720px; margin: 0 auto; padding: 3rem 0 5rem; }
.single-post .post-header { margin-bottom: 2.5rem; }
.single-post .post-header h1 { font-size: clamp(1.8rem,3vw,2.5rem); margin-bottom: 1rem; }
.single-post .post-body { font-size: 1.05rem; line-height: 1.85; }
.single-post .post-body h2 { margin: 2.5rem 0 1rem; }
.single-post .post-body h3 { margin: 2rem 0 0.75rem; }
.single-post .post-body p { margin-bottom: 1.25rem; }
.single-post .post-body ul,
.single-post .post-body ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.single-post .post-body li { margin-bottom: 0.4rem; }
.single-post .post-body blockquote {
  border-left: 3px solid var(--accent);
  padding: 0.75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--accent-dim);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-muted);
}
