/* ========================================
   Val | Private Tutoring
   Textured · Warm · Human
   ======================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;500;600;700&family=Libre+Baskerville:ital,wght@0,400;0,700;1,400&family=Special+Elite&display=swap');

:root {
  /* Warm analog palette */
  --parchment: #f0ebe3;
  --parchment-dark: #e6dfd4;
  --parchment-deeper: #d9d0c3;
  --ink: #2a2118;
  --text: #3d3228;
  --text-mid: #5e5248;
  --text-light: #8a7e72;
  --terra: #b5573a;
  --terra-soft: #c4705a;
  --sage: #6b8f71;
  --sage-soft: #8aab8f;
  --gold: #b8940f;
  --gold-soft: #c9a83c;
  --bark: #6e5a40;

  --font-body: 'Nunito', -apple-system, sans-serif;
  --font-heading: 'Libre Baskerville', Georgia, serif;
  --font-accent: 'Special Elite', 'Courier New', monospace;

  --max-w: 860px;
  --s1: 0.5rem;
  --s2: 1rem;
  --s3: 1.5rem;
  --s4: 2.5rem;
  --s5: 4rem;
  --s6: 6rem;
}

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

html {
  font-size: 17px;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--parchment);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* Paper grain texture */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 512px 512px;
}

/* Subtle vignette */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99;
  background: radial-gradient(ellipse at center, transparent 50%, rgba(42, 33, 24, 0.06) 100%);
}

/* --- Utility --- */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--s3);
}

/* --- Header / Nav --- */
.tutor-header {
  padding: var(--s3) 0;
  background: var(--parchment);
  position: sticky;
  top: 0;
  z-index: 50;
}

.tutor-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 5%;
  right: 5%;
  height: 1px;
  background: var(--parchment-deeper);
}

.tutor-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tutor-logo {
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--terra);
  text-decoration: none;
  letter-spacing: 0.03em;
}

.tutor-nav {
  display: flex;
  gap: var(--s3);
}

.tutor-nav a {
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: color 0.2s;
}

.tutor-nav a:hover {
  color: var(--terra);
}

/* --- Organic section dividers --- */
.section-divider {
  display: block;
  margin: 0 auto;
  opacity: 0.3;
}

/* --- Hero --- */
.hero {
  padding: var(--s4) 0 var(--s6);
  position: relative;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--sage);
  background: rgba(107, 143, 113, 0.1);
  padding: 0.35em 0.9em;
  margin-bottom: var(--s2);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--ink);
  line-height: 1.25;
  margin-bottom: var(--s3);
  font-weight: 400;
}

.hero-sub {
  font-size: 1rem;
  color: var(--text-mid);
  line-height: 1.85;
  margin-bottom: var(--s4);
}

.hero-cta {
  display: inline-block;
  background: var(--terra);
  color: var(--parchment);
  padding: 0.7em 1.8em;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}

.hero-cta:hover {
  background: var(--terra-soft);
}

.hero-details {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.hero-stat {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
}

.hero-stat-num {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--terra);
  font-weight: 700;
  line-height: 1;
}

.hero-stat-label {
  font-size: 0.85rem;
  color: var(--text-mid);
}

.hero-rate {
  background: var(--parchment-dark);
  padding: var(--s3);
  border-left: 3px solid var(--gold-soft);
  position: relative;
}

.hero-rate-amount {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--ink);
  font-weight: 700;
}

.hero-rate-label {
  font-size: 0.8rem;
  color: var(--text-mid);
  margin-top: 0.2rem;
}

/* Portrait banner, collage style */
.portrait-banner {
  padding: var(--s4) 0 0;
  text-align: center;
}

.portrait-badge {
  display: block;
  margin-top: var(--s5);
}

.collage-frame {
  display: inline-block;
  position: relative;
  width: 380px;
  transform: rotate(-1.5deg);
  filter: drop-shadow(3px 4px 0 rgba(42, 33, 24, 0.1)) drop-shadow(1px 1px 0 rgba(42, 33, 24, 0.06));
}

/* The irregular paper border behind the image */
.cutout-border {
  position: absolute;
  inset: -14px;
  width: calc(100% + 28px);
  height: calc(100% + 28px);
  z-index: 0;
}

/* Image container, clipped to rough edges */
.collage-img-wrap {
  position: relative;
  z-index: 1;
  clip-path: polygon(
    1% 0.5%, 4% 0%, 8% 1%, 12% 0%, 16% 0.5%, 22% 0%, 28% 1%, 34% 0%, 40% 0.5%, 46% 0%, 52% 1%, 58% 0%, 64% 0.5%, 70% 0%, 76% 1%, 82% 0%, 88% 0.5%, 94% 0%, 98% 0.5%, 100% 1%,
    100% 4%, 99.5% 10%, 100% 16%, 99.5% 22%, 100% 28%, 99.5% 34%, 100% 40%, 99.5% 46%, 100% 52%, 99.5% 58%, 100% 64%, 99.5% 70%, 100% 76%, 99.5% 82%, 100% 88%, 99.5% 94%, 100% 98%,
    99% 100%, 94% 99.5%, 88% 100%, 82% 99.5%, 76% 100%, 70% 99.5%, 64% 100%, 58% 99.5%, 52% 100%, 46% 99.5%, 40% 100%, 34% 99.5%, 28% 100%, 22% 99.5%, 16% 100%, 10% 99.5%, 4% 100%, 1% 99.5%,
    0% 98%, 0.5% 94%, 0% 88%, 0.5% 82%, 0% 76%, 0.5% 70%, 0% 64%, 0.5% 58%, 0% 52%, 0.5% 46%, 0% 40%, 0.5% 34%, 0% 28%, 0.5% 22%, 0% 16%, 0.5% 10%, 0% 4%, 0.5% 1%
  );
}

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

/* Small tape piece at top center */
.collage-tape {
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  width: 50px;
  height: 16px;
  z-index: 2;
}

/* --- Sections --- */
.section {
  padding: var(--s6) 0;
  position: relative;
}

.section-label {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: lowercase;
  color: var(--sage);
  margin-bottom: var(--s1);
}

.section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: var(--s4);
  font-weight: 400;
  line-height: 1.35;
}

/* --- About --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s5);
}

.about-text p {
  margin-bottom: var(--s3);
  color: var(--text-mid);
  line-height: 1.85;
}

.about-text p:last-child {
  margin-bottom: 0;
}

.about-highlights {
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}

.highlight {
  padding: var(--s3);
  background: var(--parchment-dark);
  border-left: 2px solid var(--sage-soft);
  position: relative;
}

.highlight-title {
  font-family: var(--font-accent);
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--terra);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

.highlight-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.65;
}

/* --- Subjects --- */
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s3);
}

.subject-card {
  padding: var(--s4) var(--s3);
  background: var(--parchment-dark);
  text-align: center;
  transition: transform 0.2s;
  position: relative;
}

.subject-card:hover {
  transform: translateY(-2px);
}

.subject-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--s2);
  width: 48px;
  height: 48px;
}

.subject-icon svg {
  width: 100%;
  height: 100%;
}

.subject-name {
  font-family: var(--font-accent);
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.subject-range {
  font-size: 0.75rem;
  color: var(--text-light);
  letter-spacing: 0.03em;
}

/* --- Approach --- */
.approach-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s4);
}

.step {
  position: relative;
  padding-top: var(--s2);
}

.step-num {
  font-family: var(--font-accent);
  font-size: 2.2rem;
  color: var(--parchment-deeper);
  line-height: 1;
  margin-bottom: var(--s2);
}

.step-title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 1rem;
  color: var(--ink);
  margin-bottom: var(--s1);
}

.step-desc {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.75;
}

/* --- Testimonials --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.testimonial {
  padding: var(--s4);
  background: var(--parchment-dark);
  position: relative;
  border-left: 2px solid var(--gold-soft);
}

/* Slight rotation on alternating cards */
.testimonial:nth-child(odd) {
  transform: rotate(-0.4deg);
}

.testimonial:nth-child(even) {
  transform: rotate(0.3deg);
}

.testimonial:hover {
  transform: rotate(0deg);
}

.testimonial-quote {
  font-family: var(--font-heading);
  font-style: italic;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--s3);
}

/* Hand-drawn quotation mark */
.testimonial-quote::before {
  content: '';
  display: block;
  width: 24px;
  height: 18px;
  margin-bottom: var(--s2);
  background-image: url("data:image/svg+xml,%3Csvg width='24' height='18' viewBox='0 0 24 18' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3,16 Q1,14 1,10 Q1,5 5,2 Q7,1 9,1' fill='none' stroke='%23c9a83c' stroke-width='1.8' stroke-linecap='round' opacity='0.5'/%3E%3Cpath d='M14,16 Q12,14 12,10 Q12,5 16,2 Q18,1 20,1' fill='none' stroke='%23c9a83c' stroke-width='1.8' stroke-linecap='round' opacity='0.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
}

.testimonial-author {
  font-family: var(--font-accent);
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
}

/* --- FAQ --- */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s4);
}

.faq-item {
  padding: var(--s3);
  background: var(--parchment-dark);
  border-left: 2px solid var(--sage-soft);
}

.faq-question {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: var(--s2);
  font-weight: 400;
  line-height: 1.4;
}

.faq-answer {
  font-size: 0.85rem;
  color: var(--text-mid);
  line-height: 1.8;
}

/* --- Contact --- */
.contact-inner {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.contact-inner p {
  color: var(--text-mid);
  margin-bottom: var(--s4);
  line-height: 1.85;
}

.contact-email {
  display: inline-block;
  font-family: var(--font-accent);
  font-size: 1.1rem;
  color: var(--terra);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-soft);
  padding-bottom: 0.15em;
  transition: color 0.2s;
  word-break: break-all;
  max-width: 100%;
}

.contact-email:hover {
  color: var(--sage);
}

.contact-details {
  margin-top: var(--s4);
  display: flex;
  justify-content: center;
  gap: var(--s4);
}

.contact-detail {
  text-align: center;
}

.contact-detail-label {
  font-family: var(--font-accent);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  color: var(--text-light);
  margin-bottom: 0.3rem;
}

.contact-detail-value {
  font-size: 0.9rem;
  color: var(--text);
  font-weight: 600;
}

/* --- Footer --- */
.tutor-footer {
  padding: var(--s4) 0;
  text-align: center;
  font-family: var(--font-accent);
  font-size: 0.7rem;
  color: var(--text-light);
  letter-spacing: 0.05em;
}

/* --- Scattered doodles --- */
.doodle {
  position: absolute;
  pointer-events: none;
  opacity: 0.15;
  z-index: 1;
}

.doodle-fade { opacity: 0.1; }
.doodle-mid { opacity: 0.2; }

/* Inline doodles that flow with content */
.doodle-inline {
  display: block;
  margin: var(--s3) auto;
  pointer-events: none;
  opacity: 0.2;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html { font-size: 16px; }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .hero h1 { font-size: 1.8rem; }

  .collage-frame {
    width: 300px;
  }

  .portrait-badge {
    margin-top: var(--s3);
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--s4);
  }

  .subjects-grid {
    grid-template-columns: 1fr 1fr;
  }

  .approach-steps {
    grid-template-columns: 1fr;
    gap: var(--s3);
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .testimonial:nth-child(odd),
  .testimonial:nth-child(even) {
    transform: none;
  }

  .contact-details {
    flex-direction: column;
    gap: var(--s2);
  }

  .tutor-nav {
    gap: var(--s2);
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tutor-nav a {
    font-size: 0.75rem;
  }

  /* Keep doodles visible but tuck them in tighter */
  .doodle {
    transform: scale(0.75);
  }

  .doodle-fade { opacity: 0.08; }
  .doodle-mid { opacity: 0.14; }
}

@media (max-width: 480px) {
  .subjects-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 { font-size: 1.5rem; }

  .tutor-header .container {
    flex-direction: column;
    gap: var(--s2);
    text-align: center;
  }

  .tutor-nav {
    justify-content: center;
  }

  .doodle {
    transform: scale(0.6);
  }
}
