/* Karen Chappell Pilates — Main Stylesheet */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Prompt', Arial, sans-serif; font-weight: 300; color: #333; line-height: 1.6; background-color: #fff; }
p { font-weight: 300; }
img { max-width: 100%; height: auto; display: block; }
a { color: #3d6887; text-decoration: none; }
a:hover { text-decoration: underline; }
ul { list-style: none; }

/* ---- Header ---- */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 24px;
}
.logo img { height: 56px; width: auto; }
nav { display: flex; align-items: center; gap: 32px; }
nav ul { display: flex; gap: 28px; }
nav a {
  font-family: 'Prompt', sans-serif;
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: #333;
  text-transform: uppercase;
}
nav a:hover { color: #3d6887; text-decoration: none; }
.social-icons { display: flex; gap: 8px; align-items: center; }
.social-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  line-height: 0;
}
.social-icons a:hover { opacity: 0.85; }
.social-icons a[aria-label="Facebook"] { background: #1877f2; }
.social-icons a[aria-label="Instagram"] {
  background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
}
.social-icons svg { width: 15px; height: 15px; fill: currentColor; }
.social-icons a[aria-label="Instagram"] svg rect,
.social-icons a[aria-label="Instagram"] svg path { fill: none; stroke: #fff; stroke-width: 2; }
.social-icons a[aria-label="Instagram"] svg line { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }

/* ---- Hero ---- */
.hero { line-height: 0; }
.hero img { width: 100%; }
.hero-combo { text-align: center; padding: 24px 0 0; }
.hero-combo img { display: inline-block; max-width: 133px; }

/* ---- Shared section layout ---- */
.section { padding: 60px 24px; }
.container { max-width: 1200px; margin: 0 auto; }

.section-eyebrow {
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  text-align: center;
  color: #3d6887;
  margin-bottom: 6px;
}
.section-title {
  font-family: 'Prompt', sans-serif;
  font-weight: 400;
  font-size: 30px;
  text-align: center;
  color: #000;
  margin-bottom: 12px;
}
.divider {
  border: none;
  border-top: 2px solid #222;
  width: 80px;
  margin: 0 auto 36px;
}

/* ---- Pilates section ---- */
#pilates .body-text { max-width: 860px; margin: 0 auto; }
#pilates .body-text p { margin-bottom: 1em; font-weight: 300; }
.new-student-special {
  background: #f2efef;
  text-align: center;
  padding: 40px 24px;
}
.new-student-special h2 { font-weight: 500; font-size: 22px; margin-bottom: 8px; letter-spacing: 0.13em; }
.new-student-special h3 { font-weight: 300; font-size: 18px; letter-spacing: 0.13em; }

/* ---- Sliders ---- */
.sliders-row {
  display: flex;
  gap: 20px;
  background: #f2efef;
  padding: 24px;
}
.slideshow { position: relative; overflow: hidden; aspect-ratio: 5 / 4; flex: 1; }
.slideshow img {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.2s ease-in-out;
}
.slideshow img.active { opacity: 1; }

/* ---- About ---- */
#about .about-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
.about-bio p { margin-bottom: 1em; font-weight: 300; }

/* ---- Rates ---- */
#rates .rates-intro { text-align: center; margin-bottom: 8px; font-weight: 300; }
#rates .rates-intro strong { font-weight: 600; }
#rates .studio-intro { text-align: center; max-width: 860px; margin: 0 auto 36px; font-weight: 300; }
.rates-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.rate-group-title {
  color: #333;
  font-weight: 600;
  font-size: 15px;
  padding-bottom: 8px;
  border-bottom: 3px solid #759abc;
  margin-bottom: 0;
}
.rate-item {
  display: flex;
  justify-content: space-between;
  padding: 9px 0;
  border-bottom: 1px solid #d0d0d0;
  font-family: 'Prompt', sans-serif;
  font-weight: 300;
}
.rate-item .price { font-weight: 300; }

/* ---- Online Lessons ---- */
.online-lessons {
  position: relative;
  background: url('../images/pilates-reformer-1980x1020.jpg') center / cover no-repeat;
  padding: 80px 24px;
  text-align: center;
}
.online-lessons::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}
.online-lessons > * { position: relative; z-index: 1; }
.online-lessons h2 {
  font-family: 'Prompt', sans-serif;
  font-weight: 700;
  font-size: 30px;
  color: #759abc;
  margin-bottom: 28px;
}
.online-lessons p {
  color: #fff;
  font-weight: 300;
  max-width: 860px;
  margin: 0 auto 16px;
  font-size: 16px;
  line-height: 1.75;
}

/* ---- Testimonials ---- */
#testimonials .testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
  margin-top: 32px;
}
.testimonial {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 20px;
  background-color: #f8fafa;
  border: 1px solid #e5eaea;
  padding: 24px;
}
.testimonial em { display: block; margin-bottom: 10px; font-style: italic; }
.testimonial strong { display: block; margin-top: 4px; }

/* ---- Quote section ---- */
.quote-section {
  position: relative;
  background: url('../images/pilates-teaser-mat-class-1980x1020.jpg') center / cover no-repeat;
  padding: 180px 24px;
  text-align: center;
}
.quote-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.58);
}
.quote-section > * { position: relative; z-index: 1; }
.quote-section blockquote {
  font-family: 'Prompt', sans-serif;
  font-weight: 500;
  font-size: 28px;
  color: #759abc;
  max-width: 860px;
  margin: 0 auto 16px;
  line-height: 1.4;
}
.quote-section cite { color: #fff; font-style: normal; font-size: 16px; }

/* ---- Policies / New Students ---- */
#policies .policies-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 32px;
}
#policies ul { padding-left: 20px; list-style: disc; margin-top: 8px; }
#policies li { margin-bottom: 8px; font-weight: 300; }
.policy-title { font-weight: 700; margin-bottom: 8px; }
.registration-intro { font-weight: 300; margin-bottom: 20px; }
.pdf-link {
  display: block;
  margin-bottom: 10px;
  color: #3d6887;
  font-weight: 300;
  font-size: 14px;
}
.pdf-link:hover { text-decoration: underline; }

/* ---- Contact ---- */
.contact-info-bar {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 32px;
  font-weight: 300;
  font-size: 15px;
}
.contact-info-bar a { font-weight: 300; }

/* Contact form */
.form-three-col { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; margin-bottom: 16px; }
.form-group label { font-size: 13px; font-weight: 500; margin-bottom: 4px; }
.form-group input,
.form-group textarea {
  padding: 9px 12px;
  border: 1px solid #ccc;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 300;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #759abc; }
.form-group textarea { height: 120px; resize: vertical; }
.btn-submit {
  display: block;
  margin: 8px auto 0;
  background: #3d6887;
  color: #fff;
  border: none;
  padding: 12px 60px;
  font-family: 'Prompt', sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
}
.btn-submit:hover { background: #2c5570; }

/* ---- Footer ---- */
footer { background: #1a1a1a; color: #858d91; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 0;
}
.footer-divider { border: none; border-top: 1px solid #444; margin-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.footer-col h2 {
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.footer-col p { font-size: 14px; line-height: 1.7; }
.footer-col strong { color: #858d91; }
.footer-col a { color: #759abc; font-size: 14px; } /* passes on dark bg */

.newsletter-form input[type="email"],
.newsletter-form input[type="text"] {
  display: block;
  width: 100%;
  padding: 8px 10px;
  margin-bottom: 8px;
  background: #2a2a2a;
  border: 1px solid #444;
  color: #fff;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
}
.newsletter-form input::placeholder { color: #666; }
.newsletter-form button {
  background: #3d6887;
  color: #fff;
  border: none;
  padding: 8px 20px;
  font-family: 'Prompt', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  cursor: pointer;
  text-transform: uppercase;
}
.newsletter-form button:hover { background: #2c5570; }

.footer-bottom {
  max-width: 1200px;
  margin: 32px auto 0;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  border-top: 1px solid #333;
}
.footer-bottom img { height: 44px; width: auto; }
.footer-copyright { font-size: 11px; }
.footer-copyright a { color: #759abc; text-decoration: underline; }

/* ---- Hamburger button (hidden on desktop) ---- */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span { display: block; width: 100%; height: 2px; background: #333; transition: all 0.25s; }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 8px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -8px); }

/* ==============================
   RESPONSIVE
   ============================== */
@media (max-width: 768px) {

  /* Header */
  .header-inner { flex-wrap: wrap; }
  .hamburger { display: flex; }
  nav {
    display: none;
    flex-direction: column;
    order: 4;
    width: 100%;
    border-top: 1px solid #eee;
    margin-top: 8px;
  }
  nav.open { display: flex; }
  nav ul { flex-direction: column; gap: 0; }
  nav ul li a { display: block; padding: 11px 0; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
  nav .social-icons { justify-content: center; padding: 20px 0 8px; }

  /* Section padding */
  .section { padding: 40px 16px; }
  .section-title { font-size: 24px; }

  /* About */
  #about .about-grid { grid-template-columns: 1fr; gap: 24px; }

  /* Sliders */
  .sliders-row { flex-direction: column; padding: 16px; gap: 12px; }
  .slideshow { aspect-ratio: 4 / 3; }

  /* Rates */
  .rates-grid { grid-template-columns: 1fr; }

  /* Testimonials */
  #testimonials .testimonials-grid { grid-template-columns: 1fr; }

  /* Policies */
  #policies .policies-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-three-col { grid-template-columns: 1fr; }
  .contact-info-bar { flex-direction: column; gap: 6px; align-items: center; text-align: center; }

  /* Online lessons */
  .online-lessons { padding: 60px 16px; }
  .online-lessons h2 { font-size: 24px; }

  /* Quote */
  .quote-section { padding: 80px 16px; }
  .quote-section blockquote { font-size: 22px; }

  /* Footer */
  .footer-inner { padding: 32px 16px 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-bottom { gap: 12px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero-combo img { max-width: 100px; }
}
