/* ============================================================
   Yogi Tim – Static Site Stylesheet
   Font: Quicksand (Google Fonts)
   Colors derived from original WP/Astra theme
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 19px; scroll-behavior: smooth; }

body {
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: #03283b;
  background: #fff;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: #b46438; text-decoration: none; transition: color 0.2s; }
a:hover { text-decoration: underline; color: #31789e; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Quicksand', sans-serif;
  font-weight: 600;
  color: #31789e;
  line-height: 1.25;
  margin-bottom: 0.6em;
}
h1 { font-size: 2.1rem; border-bottom: 1px solid #daeef9; padding-bottom: 15px; margin-bottom: 20px; }
h2 { font-size: 1.6rem; margin-top: 1.6em; }
h3 { font-size: 1.25rem; margin-top: 1.4em; color: #0e222d; }

p { margin-bottom: 1.1em; }
em { font-style: italic; }
strong { font-weight: 700; }

ul, ol { padding-left: 1.5em; margin-bottom: 1.1em; }

blockquote {
  border-left: 4px solid #3f9acb;
  margin: 1.2em 0;
  padding: 0.5em 1.2em;
  color: #4b4f58;
  font-style: italic;
}

/* ── Layout ── */
.site-wrap { display: flex; flex-direction: column; min-height: 100vh; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }

/* ── Header ── */
.site-header {
  background-color: #3f9acb;
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid #2c2a1e;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  gap: 1rem;
  min-height: 75px;
}

.site-logo img {
  height: 60px;
  width: auto;
  transition: opacity 0.2s, transform 0.3s;
}
.site-logo a { display: block; }
.site-logo a:hover img { opacity: 0.85; transform: scale(1.03); }

/* ── Navigation ── */
.main-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 0.2rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav ul li a {
  color: #f5fafd;
  font-weight: 500;
  font-size: 1rem;
  text-transform: uppercase;
  padding: 0 19px;
  transition: background 0.2s, color 0.2s;
  display: block;
  white-space: nowrap;
  position: relative;
}

.main-nav ul li a:hover {
  text-decoration: none;
  color: rgba(255,255,255,0.75);
}
.main-nav ul li a.active {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  background: none;
  border: 2px solid rgba(255,255,255,0.7);
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.3rem 0.6rem;
  border-radius: 4px;
  line-height: 1;
  transition: background 0.2s;
}
.nav-toggle:hover { background: rgba(255,255,255,0.2); }

/* ── Page title banner ── */
.page-hero {
  background: #31789e;
  color: #fff;
  padding: 1.8rem 1.5rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.page-hero h1 { color: #fff; margin: 0; font-size: 2rem; position: relative; }

/* ── Featured image (constrained to container width, matching live site) ── */
.featured-image { width: 100%; margin-bottom: 1.5rem; }
.featured-image img { max-width: 100%; height: auto; vertical-align: middle; display: block; }

/* ── Main content ── */
.site-main { flex: 1; padding: 2.5rem 0 3rem; }
.entry-content { width: 100%; }

/* ── Entry header & title (inner pages, matching live Astra theme) ── */
.entry-header {
  padding-bottom: 0.5rem;
}
.entry-title {
  font-size: 40px;
  font-weight: 600;
  color: #31789e;
  padding: 0 0 15px;
  margin-bottom: 20px;
  line-height: 1.2;
  border-bottom: 1px solid #daeef9;
}

/* ── Two-column text layout (newspaper columns, matching live Astra .col-2) ── */
@media (min-width: 769px) {
  .col-2 {
    column-count: 2;
    column-gap: 72px;
    column-rule: 1px solid #daeef9;
    display: block;
  }
  /* Prevent column breaks mid-paragraph or mid-element */
  .col-2 p,
  .col-2 li,
  
}
/* col-2 as a block should only fade, never shift position (transforms break columns) */
.col-2.will-animate { transform: none; opacity: 0; }
.col-2.is-visible   { opacity: 1; }

/* ── Homepage layout ── */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2.5rem;
  align-items: start;
}
.home-sidebar img {
  border-radius: 6px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.15);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.home-sidebar img:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 32px rgba(0,0,0,0.2);
}

/* ── Workshop cards ── */
.workshop-card {
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.8rem;
  background: #fafcfd;
  transition: box-shadow 0.3s, transform 0.3s;
}
.workshop-card:hover {
  box-shadow: 0 6px 24px rgba(49,120,158,0.12);
  transform: translateY(-3px);
}
.workshop-card h3 { margin-top: 0; color: #31789e; }
.workshop-meta {
  font-size: 0.9rem;
  color: #4b4f58;
  margin-bottom: 0.8em;
  line-height: 1.7;
}
.workshop-meta strong { color: #0e222d; }
.workshop-card .signup-link {
  display: inline-block;
  margin-top: 0.6rem;
  background: #3f9acb;
  color: #fff;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.workshop-card .signup-link:hover {
  background: #31789e;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(49,120,158,0.3);
}

/* Past workshop images */
.past-workshops-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}
.past-workshops-grid img {
  border-radius: 5px;
  width: 100%;
  object-fit: cover;
  aspect-ratio: 3/4;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.past-workshops-grid img:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
}

/* ── Music page ── */
.music-platforms {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1rem 0 1.5rem;
}
.music-platforms a {
  background: #31789e;
  color: #fff;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.music-platforms a:hover {
  background: #b46438;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(180,100,56,0.3);
}

.spotify-embed { margin: 1rem 0; }
.spotify-embed iframe { border-radius: 12px; }

/* ── Testimonials ── */
.testimonial {
  border-left: 3px solid #3f9acb;
  padding: 0.6em 1.2em;
  margin: 1rem 0;
  color: #4b4f58;
  font-style: italic;
  background: #f7fbfd;
  border-radius: 0 5px 5px 0;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.testimonial:hover {
  border-color: #b46438;
  background: #fdf9f6;
  transform: translateX(5px);
}

/* ── Teaching Philosophy ── */
.principle { margin-bottom: 2rem; }
.principle .quote {
  font-style: italic;
  color: #31789e;
  font-size: 0.95rem;
  border-left: 3px solid #E5E5E5;
  padding-left: 1em;
  margin: 0.5em 0 0.8em;
}
.principle .quote cite {
  display: block;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  margin-top: 0.3em;
  color: #4b4f58;
}

/* ── Contact form ── */
.contact-form { max-width: 600px; }
.contact-form .form-group { margin-bottom: 1.2rem; }
.contact-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #0e222d;
  font-size: 0.95rem;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1px solid #c5d4dd;
  border-radius: 4px;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  color: #03283b;
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #3f9acb;
  box-shadow: 0 0 0 3px rgba(63,154,203,0.15);
}
.contact-form textarea { min-height: 150px; resize: vertical; }
.contact-form .honeypot { display: none !important; }
.contact-form button[type="submit"] {
  background: #3f9acb;
  color: #fff;
  border: none;
  padding: 0.7rem 2rem;
  font-family: 'Quicksand', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}
.contact-form button:hover {
  background: #31789e;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(49,120,158,0.35);
}
.contact-form button:active { transform: translateY(0); }

/* ── Footer (matching live Astra structure) ── */
#colophon.site-footer {
  background: #235671;
border-top: 2px solid #87b8d2;
}
.ast-small-footer {
  padding: 1.8rem 0;

}
.ast-footer-overlay {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ast-small-footer-wrap {
  text-align: center;
}
.ast-small-footer-section {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.ast-small-footer-section em {
  font-style: italic;
  display: block;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.8);
}
.ast-small-footer-section hr {
  border: none;
  border-top: 1px solid #afcfe1;
  margin: 0.8rem auto 0.8rem;
  width: 60%;
}
.ast-small-footer-section p {
  margin: 0;
  color: rgba(255,255,255,0.6);
  font-size: 0.92rem;
}
.ast-footer-site-title {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* ── Soundcloud embed ── */
.soundcloud-embed { margin: 0.8rem 0; }
.soundcloud-embed iframe { border: 0; width: 100%; }

/* ── Utility ── */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }


/* ============================================================
   ANIMATIONS
   ============================================================ */

/* ── Keyframes ── */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes shimmer {
  0%   { background-position: -200% center; }
  100% { background-position:  200% center; }
}

@keyframes popIn {
  0%   { transform: scale(0.5); opacity: 0; }
  70%  { transform: scale(1.12); opacity: 1; }
  100% { transform: scale(1); }
}

/* ── IntersectionObserver scroll-reveal ──
   JS adds .will-animate (hide) then .is-visible (show).
   Without JS nothing is hidden — always accessible.     */
.will-animate {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.will-animate.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Headings slide in from left */
h2.will-animate, h3.will-animate {
  transform: translateX(-22px);
}
h2.will-animate.is-visible, h3.will-animate.is-visible {
  transform: translateX(0);
}

/* ── Page-load animations ──
   Pure CSS. Content is ALWAYS visible — animations are
   purely additive enhancement, never hiding anything.     */

/* Nav items stagger in from top on load */
.main-nav ul li { animation: fadeInDown 0.4s ease both; }
.main-nav ul li:nth-child(1) { animation-delay: 0.05s; }
.main-nav ul li:nth-child(2) { animation-delay: 0.1s;  }
.main-nav ul li:nth-child(3) { animation-delay: 0.15s; }
.main-nav ul li:nth-child(4) { animation-delay: 0.2s;  }
.main-nav ul li:nth-child(5) { animation-delay: 0.25s; }

/* Entry title and featured image */
.entry-title   { animation: fadeInDown 0.5s ease 0.05s both; }
.featured-image { animation: fadeIn 0.9s ease 0.1s both; }

/* Home page content fades up on load */
.home-layout   { animation: fadeInUp 0.65s ease 0.15s both; }

/* ── Scroll-reveal (driven by scroll-reveal.js IntersectionObserver) ── */
/* Named classes used in HTML get the same will-animate / is-visible treatment */

/* ── Thank-you icon pop ── */
.thankyou-icon {
  font-size: 3.5rem;
  display: block;
  text-align: center;
  margin-bottom: 0.5rem;
  animation: popIn 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.3s both;
}

/* ── Accessibility: respect reduced-motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .header-inner { flex-wrap: wrap; }
  .main-nav { width: 100%; overflow: hidden; max-height: 0; transition: max-height 0.35s ease; }
  .main-nav.open { max-height: 500px; }
  .main-nav ul { flex-direction: column; gap: 0; padding: 0.5rem 0; background: rgba(0,0,0,0.12); }
  .main-nav ul li a { padding: 0.7rem 1.5rem; line-height: 1.5; text-align: left; }
  .nav-toggle { display: block; }
}

@media (max-width: 720px) {
  html { font-size: 17px; }
  .home-layout { grid-template-columns: 1fr; }
  .home-sidebar { order: -1; }
  .home-sidebar img { max-height: 280px; width: 100%; object-fit: cover; }
  .past-workshops-grid { grid-template-columns: repeat(2, 1fr); }
  .entry-title { font-size: 28px; }
}

@media (max-width: 480px) {
  .past-workshops-grid { grid-template-columns: 1fr; }
  .music-platforms { flex-direction: column; }
  .music-platforms a { text-align: center; }
}
