/*
Theme Name: Kids Piano
Theme URI: https://example.com/kids-piano
Author: Your Name
Author URI: https://example.com
Description: A bright, playful WordPress theme for a children's piano school.
Version: 1.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: kids-piano
Tags: one-column, custom-logo, custom-colors, custom-menu
*/

@import url('https://fonts.googleapis.com/css2?family=M+PLUS+Rounded+1c:wght@400;700&display=swap');

:root {
  --clr-primary: #FF9AA2;
  --clr-secondary: #FEEAE6;
  --clr-accent: #FFF7E0;
  --clr-light: #E9F8FF;
}


/* Basic Reset */

.container {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--clr-light);
  font-family: 'M PLUS Rounded 1c', sans-serif;
  color: #333;
  background: #fff8f4;
  line-height: 1.6;
}

a {
  color: #FF9AA2;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  background: #FFF7E0;
  padding: 1rem 0;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.site-branding .site-title {
  margin: 0;
  font-size: 1.5rem;
}

.site-branding .site-title a {
  color: var(--clr-primary);
  text-decoration: none;
  font-weight: 700;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--clr-primary);
  transition: all 0.3s ease;
}

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

.mobile-menu-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.main-navigation .primary-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

.main-navigation .primary-menu a {
  color: #333;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 0;
  transition: color 0.3s ease;
}

.main-navigation .primary-menu a:hover {
  color: var(--clr-primary);
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-navigation {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    background: #fff;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    transition: left 0.3s ease;
    z-index: 1001;
    padding-top: 80px;
  }
  
  .main-navigation.is-open {
    left: 0;
  }
  
  .main-navigation .primary-menu {
    flex-direction: column;
    gap: 0;
    padding: 2rem;
  }
  
  .main-navigation .primary-menu li {
    border-bottom: 1px solid #eee;
  }
  
  .main-navigation .primary-menu a {
    display: block;
    padding: 1rem 0;
    font-size: 1.1rem;
  }
  
  .mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
  }
  
  .mobile-menu-overlay.is-open {
    opacity: 1;
    visibility: visible;
  }
  
  body.menu-open {
    overflow: hidden;
  }
}


.site-title {
  font-family: 'Comic Neue', cursive;
  font-size: 2rem;
  text-align: center;
  color: #FF9AA2;
}

nav {
  text-align: center;
  margin-top: 0.5rem;
}

nav ul {
  list-style: none;
}

nav li {
  display: inline-block;
  margin: 0 0.75rem;
}

.hero {
  position: relative;
  isolation: isolate;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.25);
  text-align: center;
  overflow: hidden;
  margin-top: -80px;
  padding-top: 80px;
}

.hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  pointer-events: none;
}

.hero-content > * {
  pointer-events: auto;
}





.hero h1 {
  font-weight: 700;
  font-size: 3rem;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.25rem;
  max-width: 600px;
}

.btn-primary {
  background: var(--clr-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  margin-top: 1.5rem;
  display: inline-block;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.course-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 1rem;
  text-align: center;
}
.course-thumb img {
  width: 100%;
  border-radius: 6px;
  margin-bottom: 0.5rem;
}

.lesson-features {
  text-align: left;
  font-size: 0.9rem;
  margin: 0.5rem auto 1rem;
  list-style: disc;
  padding-left: 1.1rem;
}
.lesson-features li {
  margin-bottom: 0.25rem;
}

.course-thumb img {
  border-radius: 6px;
}
.price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}
.price-table th,
.price-table td {
  border: 1px solid #FEEAE6;
  padding: 0.75rem;
}
.price-table thead {
  background: #FFF7E0;
}

.teachers-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 2rem;
}
.teacher-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  text-align: center;
  padding: 1rem;
}
.teacher-card img {
  width: 100%;
  max-width: 200px;
  border-radius: 50%;
  margin-bottom: 0.5rem;
}
.teacher-name {
  font-weight: 700;
  margin-bottom: 0.25rem;
}
.teacher-bio {
  font-size: 0.9rem;
  line-height: 1.4;
}


section {
  padding: 4rem 0;
  background: linear-gradient(to bottom, var(--clr-secondary), #fff);
}

section:nth-child(even) {
  background: var(--clr-secondary);
}

.news ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.news li {
  background: #fff;
  border-left: 4px solid var(--clr-primary);
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
}
.news li .date {
  color: #777;
  font-size: 0.8rem;
}

.front-contact {
  text-align: center;
}
.front-contact form {
  max-width: 600px;
  margin: 0 auto;
}
.front-contact input,
.front-contact textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  margin-bottom: 1rem;
  font-family: inherit;
}
.front-contact input:focus,
.front-contact textarea:focus {
  outline: none;
  border-color: var(--clr-primary);
  box-shadow: 0 0 0 2px rgba(255,154,162,0.25);
}
.front-contact button,
.front-contact input[type="submit"] {
  display: inline-block;
  background: var(--clr-primary);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.front-contact button:hover,
.front-contact input[type="submit"]:hover {
  background: #FFB2B8;
}

footer {
  background: #370617;
  color: #fff;
  text-align: center;
  padding: 1rem 0;
}
