* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Merriweather', serif;
  color: #333;
  line-height: 1.5;
  background: #f5f0e8;
  overflow-x: hidden;
}

/* Hero */
.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.45), rgba(0,0,0,.45)),
    url('images/main.png') center center/cover no-repeat;
  padding: 2rem 1rem;
  margin-bottom: 2rem;
}
.hero h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 9vw, 5.5rem);
  font-weight: 400;
  color: #fff;
  margin-bottom: 0.75rem;
  letter-spacing: 0.02em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.35);
  line-height: 1.2;
}
.hero .tagline {
  color: #fff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  margin-bottom: 1.5rem;
}
.btn {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: opacity 0.2s;
}
.btn:hover { opacity: 0.9; }
.btn-primary {
  background: linear-gradient(to bottom, #c0392b, #922b21);
  color: #fff;
  margin-bottom: 0.75rem;
}
.hero .cta-note {
  color: rgba(255,255,255,0.95);
  font-size: 0.95rem;
}
.hero-inner {
  width: 100%;
  text-align: center;
}
@media (min-width: 650px) {
  .hero-inner {
    width: 66%;
    margin-left: 0;
    margin-right: auto;
  }
}

/* Sections common */
section {
  padding: 0 1.5rem 1rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title-wrap {
  position: relative;
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-title-wrap::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  margin-top: -0.5px;
  height: 1px;
  background: rgba(0, 0, 0, 0.12);
}
.section-title {
  font-family: 'Cormorant Garamond', serif;
  display: inline-block;
  font-size: 2rem;
  font-weight: bold;
  font-style: italic;
  color: #333;
  letter-spacing: 0.06em;
  background: #f5f0e8;
  padding: 0 0.75rem;
  position: relative;
  z-index: 1;
}

/* Features 3-col */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding-bottom: 1rem;
  position: relative;
}
.features::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100vw;
  height: 1px;
  background: rgba(0, 0, 0, 0.1);
}
.content-section {
  position: relative;
}
@media (max-width: 649px) {
  .features { grid-template-columns: 1fr; justify-items: center; }
}
@media (min-width: 650px) {
  .feature { padding: 0 0.75rem; }
  .feature + .feature {
    border-left: 1px solid rgba(0, 0, 0, 0.1);
  }
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: background 0.2s;
  border-radius: 4px;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
@media (min-width: 1024px) {
  .feature {
    flex-direction: row;
    align-items: flex-start;
    text-align: left;
    gap: 1rem;
  }
}
.feature:hover {
  background: rgba(0, 0, 0, 0.04);
}
.feature:hover .icon-sprite {
  transform: translateY(-3px);
}
.feature-icon {
  line-height: 1;
  flex-shrink: 0;
}

/* Sprite icons */
.icon-sprite {
  display: inline-block;
  width: 75px;
  height: 75px;
  background-image: url('images/icons.png');
  background-repeat: no-repeat;
  background-position: 0 0;
  background-size: cover;
  transition: transform 0.25s ease;
}
.icon-sprite-sm {
  display: inline-block;
  width: 28px;
  height: 28px;
  background-image: url('images/icons.png');
  background-repeat: no-repeat;
  background-position: 0 0;
}
/* Set background-position for each icon to match the sprite sheet */
.icon-piano    { background-position: -2px -5px; }
.icon-teacher  { background-position: -219px -8px; }
.icon-schedule { background-position: -435px -8px; }
.feature-text h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.35rem;
}
.feature-text p {
  font-size: 0.95rem;
  color: #555;
  margin: 0;
}

/* Our Lessons */
.lessons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 650px) {
  .lessons-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .lessons-grid { grid-template-columns: repeat(4, 1fr); }
}
.lesson-card {
  background: #ece6da;
  border: 1px solid rgba(0, 0, 0, 0.12);
  overflow: hidden;
  text-align: left;
  max-width: 350px;
  margin: 0 auto;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.lesson-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.lesson-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}
.img-crop-top { object-position: top; }
.lesson-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #333;
  padding: 1rem 1rem 0.5rem;
}
.lesson-card p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  padding: 0 1rem 1rem;
  margin: 0;
  flex: 1;
}
.btn-outline-red {
  background: #a52a2a;
  color: #fff;
  font-size: 0.85rem;
  padding: 0.6rem 1.25rem;
}

.btn-call-about {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.9rem 2.5rem;
  background: linear-gradient(to bottom, #c0392b, #922b21);
  color: #fff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: 6px;
  transition: opacity 0.2s;
}
.btn-call-about:hover { opacity: 0.9; }


/* FAQ */
.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 650px) {
  .faq-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: repeat(3, 1fr); }
}
.faq-item {
  background: #ece6da;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 1.25rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.faq-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.faq-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin-bottom: 0.5rem;
}
.faq-item p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

/* Trinity page */
.trinity-layout {
  margin-bottom: 1rem;
}
.trinity-layout::after {
  content: '';
  display: table;
  clear: both;
}
.trinity-image {
  float: left;
  width: 350px;
  max-width: 45%;
  margin: 0 2.5rem 1rem 0;
}
.trinity-image img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
}
@media (max-width: 649px) {
  .trinity-image {
    float: none;
    width: 100%;
    max-width: 350px;
    margin: 0 auto 1.5rem;
  }
}
.trinity-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.trinity-why {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.trinity-why p {
  font-size: 1rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 1.75rem;
}
.trinity-back {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
}
.back-link {
  font-size: 0.9rem;
  color: #922b21;
  text-decoration: none;
  font-weight: 700;
}
.back-link:hover { text-decoration: underline; }
.card-more-link {
  display: block;
  margin: 0 1rem 1rem;
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #922b21;
  text-decoration: none;
  border: 1.5px solid #922b21;
  border-radius: 4px;
  text-align: center;
  transition: background 0.2s, color 0.2s;
}
.card-more-link:hover {
  background: #922b21;
  color: #fff;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 649px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img {
    max-width: 350px;
    margin: 0 auto;
  }
}
.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  border: 1px solid rgba(0, 0, 0, 0.12);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.gallery-caption {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}

/* Location */
.location-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 649px) {
  .location-layout { grid-template-columns: 1fr; }
}
.location-address {
  font-style: normal;
  font-size: 1rem;
  color: #555;
  line-height: 1.9;
  margin-bottom: 1.5rem;
}
.location-map iframe {
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.12);
  width: 100%;
}

/* About the Teacher */
.about-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2.5rem;
  align-items: start;
  margin-bottom: 1rem;
}
@media (max-width: 649px) {
  .about-layout { grid-template-columns: 1fr; }
}
.about-portrait img {
  width: 280px;
  height: 360px;
  object-fit: cover;
  object-position: top;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: block;
}
@media (max-width: 649px) {
  .about-portrait img {
    width: 100%;
    max-width: 350px;
    height: 280px;
    object-position: center;
    margin: 0 auto;
  }
}
.portrait-caption {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  text-align: center;
  margin-top: 0.5rem;
}
.about-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.6rem;
  font-weight: bold;
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
}
.about-text p {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.75;
  margin-bottom: 0.85rem;
}

/* Thank You page */
.thankyou-wrap {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 1.5rem;
}
.thankyou-wrap h1 {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(3rem, 9vw, 5rem);
  font-weight: 400;
  color: #333;
  margin-bottom: 1rem;
  line-height: 1.2;
}
.thankyou-wrap p {
  font-size: 1.1rem;
  color: #555;
  max-width: 520px;
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* Footer */
footer {
  background: url('images/footerbg.png') center center / cover no-repeat;
  padding: 2.5rem 1.5rem;
  color: #fff;
  position: relative;
}
footer::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
}
.footer-bottom { position: relative; z-index: 1; }
.footer-bottom {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center
;}
.footer-copy {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.9);
  text-align: center;
}
.footer-link {
  color: rgba(255,255,255,0.9);
  text-decoration: underline;
}
.footer-link:hover {
  color: #fff;
}
