/* =============================================================
   Renee Kiffin Tutoring — styles.css
   Sections, in order, mirror index.html:
     0.  Tokens & resets
     1.  Layout primitives (container, buttons, utilities)
     2.  Skip link & site header (sticky nav)
     3.  Hero
     4.  Section headers / generic section spacing
     5.  Subjects / card grids
     6.  Who I Teach (audience)
     7.  Skill levels
     8.  About Renee
     9.  Testimonials
     10. How It Works (steps)
     11. FAQ
     12. Booking + Lunacal calendar wrapper
     13. Footer
     14. Reveal-on-scroll animation
     15. Reduced motion
   ============================================================= */

/* =====================================================
   0. TOKENS & RESETS
   ===================================================== */
:root {
  --color-primary: #0B0D0E;
  --color-bg: #FFFFFF;
  --color-muted: #EDEDED;
  --color-cream: #FAF8F5;
  --color-border: #DFDFDF;
  --color-accent: #000000;

  --color-text: #0B0D0E;
  --color-text-soft: #4A4D52;

  --radius-card: 20px;
  --radius-button: 12px;
  --radius-calendar: 24px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 2px 2px 4px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

  --font-sans: 'Outfit', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --container-max: 1200px;
  --nav-h: 64px;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1.25rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 5rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  transition: opacity 0.2s ease, color 0.2s ease;
}

a:hover {
  opacity: 0.75;
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 var(--space-md);
  color: var(--color-primary);
}

h2 { font-size: clamp(1.65rem, 4vw, 2.5rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 var(--space-md); }

p:last-child { margin-bottom: 0; }

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

cite { font-style: normal; }

/* Sections need scroll offset because of the sticky header */
section[id] { scroll-margin-top: calc(var(--nav-h) + 16px); }

/* =====================================================
   1. LAYOUT PRIMITIVES
   ===================================================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container { padding: 0 2rem; }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-sm);
}

.lede {
  font-size: 1.05rem;
  color: var(--color-text-soft);
  max-width: 60ch;
}

.note {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  text-align: center;
  margin-top: var(--space-lg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-button);
  font-family: inherit;
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  opacity: 1;
  transform: translateY(-1px);
  background: #000;
}

.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-border);
}

.btn-ghost:hover {
  opacity: 1;
  border-color: var(--color-primary);
  background: var(--color-muted);
}

/* =====================================================
   2. SKIP LINK & SITE HEADER
   ===================================================== */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 0.75rem 1rem;
  z-index: 1000;
  text-decoration: none;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--nav-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--color-primary);
  font-weight: 600;
}

.brand:hover { opacity: 1; }

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--color-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.brand-name {
  font-size: 1rem;
  line-height: 1.1;
}

.brand-sub {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--color-text-soft);
  letter-spacing: 0.04em;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  cursor: pointer;
  padding: 0;
}

.nav-toggle-bar {
  width: 20px;
  height: 2px;
  background: var(--color-primary);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  position: absolute;
  inset: var(--nav-h) 0 auto 0;
  background: #fff;
  border-bottom: 1px solid var(--color-border);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.primary-nav.is-open {
  max-height: 80vh;
}

.primary-nav ul {
  display: flex;
  flex-direction: column;
  padding: var(--space-sm) 1.25rem var(--space-md);
  gap: 4px;
}

.primary-nav a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.5rem 0.25rem;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--color-muted);
}

.primary-nav li:last-child a { border-bottom: 0; }

.primary-nav .nav-cta {
  margin-top: 0.5rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-button);
  border-bottom: 0;
  padding: 0.6rem 1.2rem;
  justify-content: center;
}

@media (min-width: 768px) {
  .nav-toggle { display: none; }

  .primary-nav {
    position: static;
    inset: auto;
    background: transparent;
    border: 0;
    max-height: none;
    overflow: visible;
  }

  .primary-nav ul {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
    padding: 0;
  }

  .primary-nav a {
    padding: 0.5rem 0.85rem;
    border: 0;
    min-height: 44px;
    font-size: 0.95rem;
  }

  .primary-nav .nav-cta {
    margin: 0 0 0 0.5rem;
    padding: 0.55rem 1.1rem;
  }
}

/* =====================================================
   3. HERO
   ===================================================== */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(2.5rem, 6vw, 4rem);
  background:
    radial-gradient(ellipse at top right, var(--color-cream), transparent 60%),
    var(--color-bg);
}

.hero-inner {
  max-width: 880px;
  text-align: left;
}

.hero-title {
  font-size: clamp(2rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}

.hero-sub {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: var(--color-text-soft);
  max-width: 60ch;
  margin: 0 0 var(--space-lg);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-md);
}

.hero-price {
  font-size: 1rem;
  color: var(--color-text-soft);
  margin: 0 0 var(--space-md);
}

.hero-price strong {
  font-size: 1.4rem;
  color: var(--color-primary);
  font-weight: 600;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.6rem;
  font-size: 0.85rem;
  color: var(--color-text-soft);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-lg);
  max-width: 720px;
}

.trust-row li {
  display: inline-flex;
  align-items: center;
}

.trust-row li:not(:last-child)::after {
  content: "•";
  margin-left: 0.6rem;
  opacity: 0.5;
}

/* =====================================================
   4. SECTION SPACING
   ===================================================== */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
}

.section-cream {
  background: var(--color-cream);
}

.section-head {
  max-width: 760px;
  margin: 0 auto var(--space-xl);
  text-align: center;
}

.section-head .lede { margin-left: auto; margin-right: auto; }

/* =====================================================
   5. CARD GRIDS (subjects)
   ===================================================== */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .card-grid.grid-2 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .card-grid.grid-3 { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}

@media (min-width: 1024px) {
  .card-grid.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.section-cream .card {
  background: #fff;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.card h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.card p {
  font-size: 0.95rem;
  color: var(--color-text-soft);
  margin: 0;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-muted);
  color: var(--color-primary);
  margin-bottom: 1rem;
}

/* =====================================================
   6. AUDIENCE GRID
   ===================================================== */
.audience-grid .card h3 {
  font-size: 1.05rem;
}

/* =====================================================
   7. SKILL LEVELS
   ===================================================== */
.levels-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .levels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.level-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem 1.75rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.level-num {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--color-text-soft);
  margin-bottom: 0.75rem;
}

.level-card h3 { font-size: 1.35rem; }

.level-card p {
  color: var(--color-text-soft);
  font-size: 0.97rem;
  margin: 0;
}

/* =====================================================
   8. ABOUT RENEE
   ===================================================== */
.about-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  align-items: center;
}

@media (min-width: 900px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: 3rem;
  }
}

.about-media {
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--color-muted);
  aspect-ratio: 1 / 1;
  max-width: 460px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-body h2 { margin-top: 0.25rem; }

/* =====================================================
   9. TESTIMONIALS
   ===================================================== */
.testimonials .card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.testimonial blockquote {
  margin: 0;
  font-size: 1rem;
  color: var(--color-primary);
}

.testimonial blockquote p { margin: 0; }

.testimonial footer {
  border-top: 1px solid var(--color-muted);
  padding-top: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.testimonial cite {
  font-weight: 600;
  font-size: 0.95rem;
}

.testimonial footer span {
  font-size: 0.85rem;
  color: var(--color-text-soft);
}

/* =====================================================
   10. HOW IT WORKS (steps)
   ===================================================== */
.steps-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  counter-reset: step;
}

@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
}

.step {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 2rem 1.5rem;
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-weight: 600;
  margin-bottom: 1rem;
}

.step h3 { font-size: 1.1rem; }
.step p { color: var(--color-text-soft); font-size: 0.95rem; margin: 0; }

/* =====================================================
   11. FAQ
   ===================================================== */
.faq-wrap { max-width: 820px; margin: 0 auto; }

.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: var(--space-lg);
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item[open] { border-color: var(--color-primary); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.1rem 1.25rem;
  font-weight: 500;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 56px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat,
    linear-gradient(currentColor, currentColor) center/2px 100% no-repeat;
  transition: transform 0.25s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
  background:
    linear-gradient(currentColor, currentColor) center/100% 2px no-repeat;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-text-soft);
  font-size: 0.97rem;
}

.faq-answer p { margin: 0; }

/* =====================================================
   12. BOOKING + LUNACAL
   ===================================================== */
.section-book { background: var(--color-cream); }

.price-banner {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  padding: 0.4rem 1rem;
  background: var(--color-primary);
  color: #fff;
  border-radius: 999px;
  font-weight: 500;
  margin: 0 auto var(--space-md);
}

.price-amount { font-size: 1.5rem; font-weight: 700; }
.price-unit { font-size: 0.95rem; opacity: 0.85; }

.calendar-wrap {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-calendar);
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

#my-lunacal-inline-designtutoring {
  width: 100%;
  min-height: 700px;
  overflow: auto;
  border-radius: 16px;
}

@media (min-width: 768px) {
  .calendar-wrap { padding: 1rem; }
  #my-lunacal-inline-designtutoring { min-height: 800px; }
}

/* =====================================================
   13. FOOTER
   ===================================================== */
.site-footer {
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.footer-name {
  font-weight: 600;
  font-size: 1.05rem;
  margin: 0;
}

.footer-tag {
  margin: 0.25rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  font-size: 0.95rem;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 2px;
}

.footer-links a:hover { border-bottom-color: #fff; }

.footer-copy {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .footer-copy { width: 100%; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.15); }
}

/* =====================================================
   14. REVEAL ON SCROLL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* =====================================================
   15. REDUCED MOTION
   ===================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* =====================================================
   16. BLOG
   ===================================================== */

.blog-hero { padding-top: 5rem; padding-bottom: 3rem; }
.blog-hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin: 0.5rem 0 1rem;
}

/* Post list (blog index) */
.post-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.post-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 1.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 18px rgba(0,0,0,0.06);
}

.post-card h2 {
  font-size: 1.5rem;
  line-height: 1.25;
  margin: 0.4rem 0 0.75rem;
}

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

.post-card h2 a:hover { text-decoration: underline; }

.post-meta {
  font-size: 0.875rem;
  color: #555;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.post-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--color-primary);
  border-bottom: 1px solid currentColor;
}

.post-link:hover { opacity: 0.7; }

/* Article (individual post) */
.post-article { padding: 4rem 0 5rem; }

.post-container { max-width: 720px; }

.post-header { margin-bottom: 2.5rem; }

.post-header .eyebrow a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.post-header .eyebrow a:hover { border-bottom-color: currentColor; }

.post-header h1 {
  font-size: clamp(1.75rem, 4.5vw, 2.5rem);
  line-height: 1.2;
  margin: 0.5rem 0 1rem;
}

.post-prose { font-size: 1.0625rem; line-height: 1.7; color: var(--color-primary); }

.post-prose h2 {
  font-size: 1.5rem;
  line-height: 1.3;
  margin: 2.25rem 0 0.75rem;
}

.post-prose h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 1.75rem 0 0.5rem;
}

.post-prose p { margin: 0 0 1rem; }

.post-prose ul,
.post-prose ol {
  margin: 0 0 1.25rem 1.25rem;
  padding: 0;
}

.post-prose li { margin-bottom: 0.5rem; }

.post-prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

.post-prose a:hover { text-decoration-thickness: 2px; }

.post-prose strong { font-weight: 600; }

.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

@media (min-width: 768px) {
  .post-card { padding: 2rem 2.25rem; }
  .post-card h2 { font-size: 1.65rem; }
}
