﻿/* ==========================================================================
   HOME.CSS â€“ Hero, Philosophy, Quote, About, Daily (Homepage only)
   ========================================================================== */

/* HERO SECTION */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: calc(var(--space-2xl) + 60px) var(--space-md) var(--space-2xl);
    overflow: hidden;
  }
  /* Watercolor wash background effect */
  .hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-wash-sage),
                radial-gradient(ellipse at 80% 30%, rgba(212, 168, 83, 0.12) 0%, transparent 45%),
                radial-gradient(ellipse at 70% 80%, rgba(196, 131, 106, 0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 30% 70%, rgba(168, 196, 171, 0.15) 0%, transparent 45%);
    z-index: 0;
  }
  .hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
  }
  .hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    color: var(--sage-dark);
    margin-bottom: var(--space-md);
    animation: fadeInDown 0.8s var(--ease-gentle) 0.2s both;
  }
  .hero__badge svg {
    width: 20px;
    height: 20px;
  }
  .hero__title {
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.8s var(--ease-gentle) 0.4s both;
  }
  .hero__title span {
    display: block;
  }
  .hero__title-main {
    color: var(--bark);
  }
  .hero__title-accent {
    font-family: var(--font-handwritten);
    font-size: 0.5em;
    color: var(--terracotta);
    margin-top: var(--space-xs);
  }
  .hero__subtitle {
    font-size: 1.15rem;
    color: var(--ink-soft);
    max-width: 600px;
    margin: 0 auto var(--space-lg);
    animation: fadeInUp 0.8s var(--ease-gentle) 0.6s both;
  }
  .hero__cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-md);
    justify-content: center;
    animation: fadeInUp 0.8s var(--ease-gentle) 0.8s both;
  }
  .hero__details {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-lg);
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(122, 158, 126, 0.2);
    animation: fadeInUp 0.8s var(--ease-gentle) 1s both;
  }
  .hero__detail {
    text-align: center;
  }
  .hero__detail-value {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--bark);
  }
  .hero__detail-label {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
    color: var(--sage-dark);
  }
  to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  /* PHILOSOPHY SECTION */
  .philosophy {
    position: relative;
  }
  .philosophy__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
  }
  .philosophy__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
  }
  .philosophy__card {
    background: var(--cream);
    padding: var(--space-lg);
    border-radius: 20px;
    border: 1px solid rgba(122, 158, 126, 0.15);
    position: relative;
    overflow: hidden;
    transition: all 0.4s var(--ease-gentle);
  }
  .philosophy__card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sage), var(--sage-light));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s var(--ease-gentle);
  }
  .philosophy__card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(61, 54, 49, 0.1);
  }
  .philosophy__card:hover::before {
    transform: scaleX(1);
  }
  .philosophy__card-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--sage-light), var(--sage));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-md);
    color: var(--cream);
  }
  .philosophy__card-icon svg {
    width: 28px;
    height: 28px;
  }
  .philosophy__card h3 {
    color: var(--bark);
  }
  .philosophy__card p {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  
  /* QUOTE SECTION */
  .quote-section {
    position: relative;
    overflow: hidden;
  }
  .quote-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--bg-wash-sage),
                radial-gradient(ellipse at 100% 50%, rgba(212, 168, 83, 0.1) 0%, transparent 50%);
  }
  .quote-card {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: var(--space-xl);
  }
  .quote-card__icon {
    width: 60px;
    height: 60px;
    margin: 0 auto var(--space-lg);
    color: var(--sage-light);
  }
  .quote-card__text {
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-style: italic;
    font-weight: 400;
    color: var(--bark);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
  }
  .quote-card__author {
    font-family: var(--font-handwritten);
    font-size: 1.3rem;
    color: var(--terracotta);
  }
  
  /* ABOUT / TEACHER SECTION */
  .about {
    position: relative;
    overflow: hidden;
  }
  .about::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 90% 10%, rgba(212, 168, 83, 0.08) 0%, transparent 40%),
                radial-gradient(ellipse at 10% 90%, rgba(168, 196, 171, 0.1) 0%, transparent 40%);
  }
  .about__inner {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-xl);
    align-items: center;
    position: relative;
    z-index: 1;
  }
  .about__image-wrapper {
    position: relative;
  }
  .about__image-frame {
    position: relative;
    border-radius: 30px;
    overflow: hidden;
    background: var(--parchment);
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .about__image-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border: 3px solid var(--sage-light);
    border-radius: 30px;
    pointer-events: none;
  }
  .about__image-frame::after {
    content: "";
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    bottom: 15px;
    border: 1px dashed var(--sage-light);
    border-radius: 20px;
    opacity: 0.5;
  }
  .about__image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--cream-dark), var(--parchment));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    color: var(--sage);
  }
  .about__image-placeholder svg {
    width: 80px;
    height: 80px;
    opacity: 0.5;
  }
  .about__image-placeholder span {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    color: var(--sage-dark);
    opacity: 0.7;
  }
  .about__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 25px;
  }
  .about__floating-badge {
    position: absolute;
    bottom: -20px;
    right: -20px;
    background: var(--terracotta);
    color: var(--cream);
    padding: var(--space-md) var(--space-lg);
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(196, 131, 106, 0.3);
  }
  .about__floating-badge-value {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 600;
    line-height: 1;
  }
  .about__floating-badge-label {
    font-family: var(--font-handwritten);
    font-size: 1.1rem;
  }
  .about__content {
    padding: var(--space-md) 0;
  }
  .about__lead {
    font-size: 1.1rem;
    color: var(--ink);
    font-style: italic;
    margin-bottom: var(--space-md);
  }
  .about__credentials {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
  }
  .about__credential {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-family: var(--font-display);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    background: rgba(122, 158, 126, 0.1);
    border-radius: 30px;
    color: var(--sage-dark);
  }
  .about__credential svg {
    width: 16px;
    height: 16px;
  }
  @media (max-width: 900px) {
    .about__inner {
      grid-template-columns: 1fr;
      text-align: center;
    }
    .about__image-wrapper {
      max-width: 400px;
      margin: 0 auto;
    }
    .about__credentials {
      justify-content: center;
    }
  }
  
  /* A DAY AT THE COTTAGE / DAILY SECTION */
  .daily {
    position: relative;
  }
  .daily__header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--space-xl);
  }
  .daily__timeline {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
  }
  .daily__timeline::before {
    content: "";
    position: absolute;
    left: 30px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--sage-light), var(--sage), var(--sage-light));
  }
  .daily__item {
    display: grid;
    grid-template-columns: 60px 1fr;
    gap: var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
  }
  .daily__item:last-child {
    margin-bottom: 0;
  }
  .daily__time {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: var(--space-sm);
  }
  .daily__time-dot {
    width: 16px;
    height: 16px;
    background: var(--sage);
    border-radius: 50%;
    border: 4px solid var(--parchment);
    box-shadow: 0 0 0 2px var(--sage-light);
    position: relative;
    z-index: 1;
  }
  .daily__card {
    background: var(--cream);
    padding: var(--space-md) var(--space-lg);
    border-radius: 16px;
    border: 1px solid rgba(122, 158, 126, 0.12);
    transition: all 0.3s var(--ease-gentle);
  }
  .daily__card:hover {
    transform: translateX(8px);
    box-shadow: 0 10px 30px rgba(61, 54, 49, 0.08);
  }
  .daily__card-title {
    font-family: var(--font-handwritten);
    font-size: 1.2rem;
    color: var(--terracotta);
    margin-bottom: var(--space-xs);
  }
  .daily__card-desc {
    font-size: 0.95rem;
    margin-bottom: 0;
  }
  @media (max-width: 600px) {
    .daily__timeline::before {
      left: 15px;
    }
    .daily__item {
      grid-template-columns: 30px 1fr;
    }
  }


/* Keyframe animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
