/* Global styles */

html {
  scroll-behavior: smooth;
}

:root {
  --teal: #a8ede8;
  --magenta: #e6197c;
  --dark-gray: #333333;
  --light-gray: #f5f5f5;
}

body {
  font-family: 'Georgia', serif;
  margin: 0;
  padding: 0;
  color: var(--dark-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Header */
header {
  background-color: var(--teal);
  padding: 20px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 15px;
}

.logo img {
  width: 60px;
  height: auto;
}

.logo h1 {
  font-size: 24px;
  margin: 0;
  color: var(--magenta);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 30px;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  color: var(--dark-gray);
  font-weight: bold;
  padding: 5px 0;
  position: relative;
  transition: color 0.3s;
}

nav a:hover {
  color: var(--magenta);
}

nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: var(--magenta);
  transition: width 0.3s;
}

nav a:hover::after {
  width: 100%;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--dark-gray);
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle:hover {
  background-color: rgba(0, 0, 0, 0.1);
}

/* Hero Section */
.hero {
  background-color: var(--teal);
  padding: 80px 0;
  text-align: center;
  position: relative;
}

.hero img {
  max-width: 100%;
  height: auto;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,0 C150,40 350,0 500,20 C650,40 850,0 1000,10 L1000,20 L0,20 Z' fill='white'/%3E%3C/svg%3E");
  background-size: 100% 20px;
}

.hero h2 {
  font-size: 48px;
  color: var(--magenta);
  margin-bottom: 20px;
}

.hero p {
  font-size: 22px;
  max-width: 800px;
  margin: 0 auto 30px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: var(--magenta);
  color: white;
  padding: 12px 30px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: bold;
  font-size: 18px;
  transition: background-color 0.3s;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  min-height: 44px;
}

.cta-button:hover {
  background-color: #c41569;
}

/* Classes Section */
.classes {
  padding: 80px 0;
  background-color: white;
}

.section-title {
  text-align: center;
  color: var(--magenta);
  font-size: 42px;
  margin-bottom: 60px;
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  width: 80px;
  height: 3px;
  background-color: var(--teal);
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
}

.class-cards {
  display: flex;
  gap: 40px;
  justify-content: center;
  flex-wrap: wrap;
}

.class-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  overflow: hidden;
  width: 350px;
  transition: transform 0.3s;
}

.class-card:hover {
  transform: translateY(-5px);
}

.class-image img {
  width: 100%;
  height: 233px;
  object-fit: cover;
}

.class-content {
  padding: 25px;
}

.class-title {
  color: var(--magenta);
  font-size: 24px;
  margin-top: 0;
  margin-bottom: 15px;
}

.class-details p {
  margin: 8px 0;
}

.class-details strong {
  color: var(--magenta);
}

/* About Section */
.about {
  padding: 80px 0;
  background-color: var(--light-gray);
  position: relative;
}

.about::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 C150,0 350,20 500,10 C650,0 850,20 1000,15 L1000,20 L0,20 Z' fill='white'/%3E%3C/svg%3E");
  background-size: 100% 20px;
}

.about-content {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1000px;
  margin: 0 auto;
}

.about-image img {
  width: 250px;
  height: 313px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.about-text {
  flex: 1;
}

.about-text h3 {
  color: var(--magenta);
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 20px;
}

/* Contact Section */
.contact {
  padding: 80px 0;
  background-color: white;
}

.contact-content {
  display: flex;
  max-width: 1000px;
  margin: 0 auto;
  gap: 60px;
}

.contact-info {
  flex: 1;
}

.contact-info h3 {
  color: var(--magenta);
  font-size: 28px;
  margin-top: 0;
  margin-bottom: 25px;
}

.contact-details {
  margin-bottom: 30px;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.contact-icon {
  width: 40px;
  height: 40px;
  background-color: var(--teal);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
}

.contact-form {
  flex: 1;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--dark-gray);
}

.form-control {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: 'Georgia', serif;
  font-size: 16px;
  box-sizing: border-box;
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.submit-button {
  background-color: var(--magenta);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  min-height: 44px;
}

.submit-button:hover {
  background-color: #c41569;
}

/* Footer */
footer {
  background-color: var(--teal);
  color: var(--dark-gray);
  padding: 50px 0 20px;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 20px;
  background-image: url("data:image/svg+xml,%3Csvg width='100%25' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0,20 C150,0 350,20 500,10 C650,0 850,20 1000,15 L1000,20 L0,20 Z' fill='white'/%3E%3C/svg%3E");
  background-size: 100% 20px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  max-width: 1000px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.footer-logo {
  margin-bottom: 20px;
}

.footer-logo img {
  width: 100px;
}

.footer-info p {
  margin: 10px 0;
}

.footer-links h4, .footer-social h4 {
  color: var(--magenta);
  margin-top: 0;
  margin-bottom: 20px;
}

.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  text-decoration: none;
  color: var(--dark-gray);
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--magenta);
}

.social-icons {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--magenta);
  text-decoration: none;
  transition: transform 0.3s;
}

.social-icon:hover {
  transform: translateY(-3px);
}

.copyright {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(0,0,0,0.1);
}

.email-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

.email-link:hover {
  color: var(--magenta);
}

/* ===== MOBILE RESPONSIVE DESIGN ===== */

/* Tablet and smaller */
@media (max-width: 768px) {
  .container {
    padding: 0 15px;
  }
  
  /* Header */
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    position: relative;
  }
  
  .logo h1 {
    font-size: 18px;
    line-height: 1.2;
  }
  
  /* Hide desktop nav, show mobile toggle */
  nav {
    display: none !important;
  }
  
  .mobile-menu-toggle {
    display: flex !important;
    position: relative;
    z-index: 1000;
  }
  
  /* Mobile menu overlay */
  nav.mobile-active {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 999;
    align-items: center;
    justify-content: center;
  }
  
  nav.mobile-active ul {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  nav.mobile-active a {
    font-size: 20px;
    padding: 15px 20px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  nav.mobile-active a:hover {
    background-color: var(--teal);
    color: var(--magenta);
  }
  
  /* Hero */
  .hero {
    padding: 60px 0;
  }
  
  .hero h2 {
    font-size: 36px;
  }
  
  .hero p {
    font-size: 18px;
  }
  
  /* Sections */
  .section-title {
    font-size: 32px;
  }
  
  .classes, .about, .contact {
    padding: 60px 0;
  }
  
  /* Class cards */
  .class-cards {
    flex-direction: column;
    align-items: center;
  }
  
  .class-card {
    width: 100%;
    max-width: 500px;
  }
  
  /* About section */
  .about-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
  }
  
  .about-image img {
    width: 100%;
    max-width: 300px;
    height: auto;
  }
  
  /* Contact section */
  .contact-content {
    flex-direction: column;
    gap: 40px;
    width: 100%;
  }
  
  .contact-info {
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
  }
  
  .contact-form {
    width: 100%;
    max-width: 100%;
  }
  
  .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 10px;
    margin-bottom: 20px;
  }
  
  .contact-icon {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-control {
    width: 100%;
    box-sizing: border-box;
    font-size: 16px;
  }
  
  .submit-button {
    width: auto;
    max-width: 90%;
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }
  
  /* Footer */
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 30px;
    width: 100%;
  }
  
  .footer-logo {
    margin: 0 auto 20px;
    text-align: center;
  }
  
  .footer-info, .footer-links, .footer-social {
    width: 100%;
    text-align: center;
  }
  
  .footer-links ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
  
  .social-icons {
    justify-content: center;
    gap: 15px;
  }
}

/* Mobile phones */
@media (max-width: 480px) {
  .container {
    padding: 0 15px;
  }
  
  .logo h1 {
    font-size: 16px;
    line-height: 1.1;
  }
  
  .hero h2 {
    font-size: 28px;
    margin-bottom: 15px;
  }
  
  .hero p {
    font-size: 16px;
    margin-bottom: 25px;
  }
  
  .section-title {
    font-size: 28px;
  }
  
  .classes, .about, .contact {
    padding: 40px 0;
  }
  
  .class-card {
    margin: 0;
    width: 100%;
  }
  
  .about-image img {
    max-width: 250px;
  }
  
  .contact-info h3 {
    font-size: 24px;
  }
  
  .contact-content {
    gap: 30px;
  }
  
  .contact-info {
    margin-bottom: 20px;
  }
  
  .contact-item {
    margin-bottom: 15px;
  }
  
  .contact-form {
    margin-top: 20px;
  }
  
  .footer-logo img {
    width: 80px;
  }
  
  .footer-info p {
    font-size: 14px;
  }
  
  .social-icon {
    width: 35px;
    height: 35px;
  }
  
  .social-icon img {
    width: 20px;
    height: 20px;
  }
  
  /* Form improvements */
  .form-control {
    font-size: 16px; /* Prevents iOS zoom */
    padding: 12px;
  }
  
  .submit-button {
    width: auto;
    max-width: 90%;
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }
  
  .cta-button {
    width: auto;
    max-width: 90%;
    padding: 12px 24px;
    font-size: 16px;
    margin: 0 auto;
    display: block;
  }
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* Optimize for mobile */
* {
  -webkit-tap-highlight-color: transparent;
}

/* Focus states for accessibility */
.cta-button:focus,
.submit-button:focus,
nav a:focus,
.mobile-menu-toggle:focus {
  outline: 2px solid var(--magenta);
  outline-offset: 2px;
}
  