/*
Theme Name: Lynn Peesel Tutoring
Theme URI: https://lynnpeesel.com
Author: BackLeft
Author URI: https://backleft.com
Description: Custom one-page WordPress theme for Lynn Peesel, Experienced Educator & Literacy Specialist. Features Customizer-editable content sections including Hero, About, Specializations, Approach, Experience, Testimonials, and Contact.
Version: 1.4.2
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: lynn-peesel
*/

/* ── VARIABLES ── */
:root {
  --sage: #7A9E7E;
  --sage-light: #A8C5AB;
  --sage-pale: #E8F0E9;
  --warm: #E8985E;
  --warm-light: #F5C9A3;
  --cream: #FDF8F3;
  --cream-dark: #F5EDE4;
  --ink: #2C3E2D;
  --ink-light: #4A5D4B;
  --text: #3D4F3E;
  --text-light: #6B7D6C;
  --white: #FFFFFF;
  --shadow-sm: 0 1px 3px rgba(44,62,45,0.08);
  --shadow-md: 0 4px 16px rgba(44,62,45,0.1);
  --shadow-lg: 0 8px 32px rgba(44,62,45,0.12);
  --radius: 12px;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; overflow-x: hidden; }
body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(253,248,243,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(122,158,126,0.15);
  transition: box-shadow 0.3s;
}
.site-nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-logo {
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--sage); }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a {
  text-decoration: none;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: width 0.3s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }
.nav-cta {
  background: var(--sage) !important;
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.15s !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { background: var(--ink) !important; transform: translateY(-1px); }
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: 0.3s;
}

/* ── HERO ── */
.hero {
  padding: 160px 24px 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--sage-pale) 0%, var(--cream) 100%);
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(122,158,126,0.15) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -40px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(232,152,94,0.1) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-inner {
  max-width: 780px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.hero-badge {
  display: inline-block;
  background: var(--white);
  color: var(--sage);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: 50px;
  margin-bottom: 28px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.hero h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
}
.hero h1 em {
  font-style: italic;
  color: var(--sage);
  font-weight: 500;
}
.hero p {
  font-size: 1.15rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.8;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--warm);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(232,152,94,0.35);
}
.btn-primary:hover { background: #D4874E; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,152,94,0.4); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border: 2px solid rgba(122,158,126,0.3);
}
.btn-secondary:hover { border-color: var(--sage); background: var(--sage-pale); }

/* ── SECTIONS ── */
section { padding: 90px 24px; }
.container { max-width: 1080px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}
.section-title {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-light);
  max-width: 600px;
  line-height: 1.7;
}

/* ── ABOUT ── */
#about { background: var(--cream); }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-top: 48px;
}
.about-photo {
  position: relative;
  max-width: 360px;
  margin: 0 auto;
}
.about-photo-frame {
  width: 100%;
  height: 0;
  padding-bottom: 100%;
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--sage-pale);
  box-shadow: var(--shadow-lg);
}
.about-photo-frame img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.about-photo-accent {
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 120px;
  height: 120px;
  background: var(--warm-light);
  border-radius: 50%;
  opacity: 0.5;
  z-index: -1;
}
.about-text h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 16px;
  font-weight: 500;
}
.about-text p { margin-bottom: 16px; }
.about-highlight {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage);
  padding: 20px 24px;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin-top: 24px;
  font-style: italic;
  color: var(--ink-light);
}

/* ── SPECIALIZATIONS ── */
#specializations { background: var(--white); }
.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.spec-card {
  background: var(--cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid rgba(122,158,126,0.1);
}
.spec-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.spec-icon {
  width: 48px;
  height: 48px;
  background: var(--sage-pale);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.spec-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 600;
}
.spec-card p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── PHOTO STRIP ── */
.photo-strip {
  padding: 0 24px;
  background: var(--cream);
}
.photo-strip-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.photo-strip-img {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.photo-strip-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-placeholder {
  aspect-ratio: 4/3;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-sm);
}
.photo-placeholder-content {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  font-weight: 500;
  text-align: center;
  padding: 16px;
}
.photo-placeholder-content .ph-icon { font-size: 2rem; opacity: 0.7; }
.photo-placeholder-content .ph-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage);
  font-weight: 600;
}
.ph-1 { background: linear-gradient(135deg, #D4E7D6, #B8D4BA); }
.ph-2 { background: linear-gradient(135deg, #F5E6D3, #E8D4BF); }
.ph-3 { background: linear-gradient(135deg, #D6E4EE, #BACED8); }

/* ── APPROACH ── */
#approach { background: var(--sage-pale); }
.approach-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 48px;
}
.approach-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.approach-num {
  font-family: 'Fraunces', serif;
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--sage-light);
  margin-bottom: 12px;
  line-height: 1;
}
.approach-card h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.1rem;
  color: var(--ink);
  margin-bottom: 10px;
  font-weight: 600;
}
.approach-card p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.65;
}

/* ── EXPERIENCE ── */
#experience { background: var(--white); }
.exp-timeline {
  margin-top: 48px;
  position: relative;
  padding-left: 40px;
}
.exp-timeline::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--sage), var(--sage-light));
  border-radius: 1px;
}
.exp-item {
  position: relative;
  margin-bottom: 36px;
}
.exp-item::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sage);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--sage);
}
.exp-dates {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--sage);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.exp-item h4 {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.exp-item p {
  font-size: 0.92rem;
  color: var(--text-light);
  line-height: 1.65;
}
.credentials {
  margin-top: 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.credential-tag {
  background: var(--cream);
  border: 1px solid rgba(122,158,126,0.2);
  padding: 10px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--ink-light);
  font-weight: 500;
}

/* ── TESTIMONIALS ── */
#testimonials { background: var(--cream-dark); }
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.testimonial-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  position: relative;
  border: 1px solid rgba(122,158,126,0.08);
}
.testimonial-card::before {
  content: '\201C';
  font-family: 'Fraunces', serif;
  font-size: 4rem;
  color: var(--sage-light);
  position: absolute;
  top: 16px;
  left: 24px;
  line-height: 1;
  opacity: 0.5;
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 20px;
  padding-top: 24px;
  font-style: italic;
}
.testimonial-text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: all 0.3s ease;
}
.testimonial-text.expanded {
  -webkit-line-clamp: unset;
  display: block;
}
.read-more-btn {
  background: none;
  border: none;
  color: var(--sage);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 4px 0;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.read-more-btn:hover { color: var(--ink); }
.read-more-btn svg { transition: transform 0.3s; }
.read-more-btn.expanded svg { transform: rotate(180deg); }
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sage-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--sage);
}
.testimonial-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
}
.testimonial-role {
  font-size: 0.78rem;
  color: var(--text-light);
}

/* ── CONTACT ── */
#contact {
  background: var(--ink);
  color: var(--white);
  text-align: center;
  position: relative;
  overflow: hidden;
}
#contact::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(122,158,126,0.15) 0%, transparent 60%);
  border-radius: 50%;
}
#contact .section-label { color: var(--sage-light); }
#contact .section-title { color: var(--white); }
#contact .section-subtitle { color: rgba(255,255,255,0.7); margin: 0 auto 40px; }
.contact-methods {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius);
  padding: 28px 36px;
  text-decoration: none;
  color: var(--white);
  transition: all 0.2s;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.contact-card:hover { background: rgba(255,255,255,0.14); transform: translateY(-3px); }
.contact-card .contact-icon { font-size: 1.6rem; margin-bottom: 4px; }
.contact-card .contact-type {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--sage-light);
  font-weight: 600;
}
.contact-card .contact-value {
  font-family: 'Fraunces', serif;
  font-size: 1.15rem;
  font-weight: 500;
}
.accepting-badge {
  display: inline-block;
  background: var(--warm);
  color: var(--white);
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  margin-top: 40px;
  position: relative;
  z-index: 1;
  box-shadow: 0 4px 16px rgba(232,152,94,0.3);
}

/* ── PAGE CONTENT (inner pages) ── */
.page-body h1 {
  font-family: 'Fraunces', serif;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.page-body h2 {
  font-family: 'Fraunces', serif;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
  margin: 40px 0 16px;
  letter-spacing: -0.01em;
}
.page-body h3 {
  font-family: 'Fraunces', serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 32px 0 12px;
}
.page-body p {
  margin-bottom: 18px;
  line-height: 1.75;
}
.page-body ul, .page-body ol {
  margin: 0 0 20px 24px;
}
.page-body li {
  margin-bottom: 8px;
  line-height: 1.65;
}
.page-body .page-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.8;
}
.page-body .highlight-box {
  background: var(--sage-pale);
  border-left: 3px solid var(--sage);
  padding: 20px 24px;
  border-radius: 0 12px 12px 0;
  margin: 28px 0;
}
.page-body .highlight-box p { margin-bottom: 0; }
.page-body .faq-item {
  margin-bottom: 32px;
}
.page-body .faq-item h3 {
  color: var(--sage);
  margin-bottom: 8px;
  margin-top: 0;
}
.page-body .breadcrumb {
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 24px;
}
.page-body .breadcrumb a {
  color: var(--sage);
  text-decoration: none;
}
.page-body .breadcrumb a:hover { text-decoration: underline; }

/* ── FOOTER ── */
.site-footer {
  background: #243026;
  padding: 32px 24px;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}
.site-footer a { color: var(--sage-light); text-decoration: none; }

/* ── ANIMATIONS ── */
.js-ready .fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.js-ready .fade-up.visible { opacity: 1; transform: translateY(0); }

/* ── MOBILE ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(253,248,243,0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(122,158,126,0.15);
  }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .hero { padding: 130px 24px 72px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .about-photo { max-width: 320px; margin: 0 auto; }
  .approach-cards { grid-template-columns: 1fr; }
  .spec-grid { grid-template-columns: 1fr; }
  .contact-methods { flex-direction: column; align-items: center; }
  .photo-strip-inner { grid-template-columns: 1fr; max-width: 400px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  section { padding: 64px 24px; }
}
