/* --- CSS Variables & Theme Setup --- */
:root {
  --bg-primary: #faf8f4; 
  --bg-secondary: #ffffff; 
  --bg-accent: #ece9e0; 
  --bg-green-light: #e6ebe3; 
  --text-main: #242c25; 
  --text-muted: #586359; 
  --primary: #2e4331; 
  --primary-hover: #1f2e22; 
  --accent: #c48b6a; 
  --border-color: #ded9cd;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(46, 67, 49, 0.07);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #121613;
    --bg-secondary: #1a201b;
    --bg-accent: #252d27;
    --bg-green-light: #1f2a21;
    --text-main: #eaf0eb;
    --text-muted: #9fb0a2;
    --primary: #527357;
    --primary-hover: #678d6d;
    --accent: #d99c7b;
    --border-color: #313d33;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  }
}

/* --- Reset & Base Styles --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: var(--primary-hover);
}

/* --- Typography & Elements --- */
h1, h2, h3 {
  line-height: 1.25;
  color: var(--text-main);
  font-weight: 600;
  letter-spacing: -0.3px;
}

h1 { font-size: 2.6rem; margin-bottom: 1rem; }
h2 { font-size: 2rem; margin-bottom: 0.75rem; text-align: center; }
p { margin-bottom: 1rem; color: var(--text-muted); }

.tagline {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.subtitle {
  text-align: center;
  max-width: 650px;
  margin: 0 auto 2.5rem auto;
  font-size: 1.1rem;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.btn {
  display: inline-block;
  background-color: var(--primary);
  color: #ffffff !important;
  padding: 0.85rem 1.75rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(46, 67, 49, 0.2);
  transition: background-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn:hover:not(:disabled) {
  background-color: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(46, 67, 49, 0.3);
}

.btn:disabled {
  background-color: #aeb5b0 !important;
  color: #ffffff !important;
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main) !important;
  border: 2px solid var(--border-color);
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--bg-accent);
  transform: translateY(-1px);
}

/* --- Header & Nav --- */
header {
  position: sticky;
  top: 0;
  background-color: var(--bg-primary);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  max-height: 52px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.5px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  align-items: center;
}

.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 0.95rem;
}

/* --- Hero Section --- */
.hero {
  padding: 4rem 0 3rem 0;
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
}

.hero-content {
  flex: 1;
  max-width: 540px;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1.75rem;
  flex-wrap: wrap;
}

.hero-banner-frame {
  flex: 1;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- About Section --- */
.about-grid {
  display: flex;
  flex-direction: row;
  gap: 3rem;
  align-items: center;
  background-color: var(--bg-secondary);
  padding: 3rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-color);
}

.about-image-card {
  flex: 1;
  background-color: var(--bg-green-light);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  border: 1px dashed var(--border-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.about-text-content {
  flex: 1.2;
}

.headshot-container {
  width: 400px;
  height: 400px;
  max-width: 100%;
  border-radius: 50%;
  margin: 0 auto 1.25rem auto;
  border: 3px solid var(--bg-secondary);
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  overflow: hidden;
  background-color: var(--bg-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.headshot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.headshot-fallback {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 0.5rem;
}

.headshot-fallback svg {
  width: 42px;
  height: 42px;
  margin-bottom: 0.25rem;
  fill: var(--text-muted);
  opacity: 0.7;
}

.qualifications {
  margin-top: 1.25rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem; 
}

.qualifications li {
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem; 
  font-weight: 500;
  line-height: 1.5;
}

.qualifications li span.icon {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

/* --- Location Highlight Bar --- */
.location-banner {
  background-color: var(--bg-green-light);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 1.25rem 2rem;
  text-align: center;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.location-banner span {
  color: var(--primary);
  font-weight: 700;
}

/* --- Classes Section --- */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.class-card {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.class-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 35px rgba(46, 67, 49, 0.12);
}

.class-tag {
  align-self: flex-start;
  background-color: var(--bg-green-light);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.85rem;
  border-radius: 20px;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}

.class-tag.coming-soon {
  background-color: var(--bg-accent);
  color: var(--accent);
}

.class-title {
  font-size: 1.4rem;
  margin-bottom: 0.5rem;
}

.class-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-weight: 500;
}

.class-card p {
  flex-grow: 1;
  margin-bottom: 1.5rem;
}

/* --- Contact & Details Section --- */
.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.details-box {
  background-color: var(--bg-secondary);
  padding: 2.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
}

.details-box h3 {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.address-card {
  background-color: var(--bg-primary);
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-color);
  margin-top: 1rem;
  line-height: 1.5;
}

.contact-links {
  list-style: none;
  margin-top: 1rem;
}

.contact-links li {
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* --- Booking Embed Section --- */
.booking-wrapper {
  background-color: transparent;
  border: none;
  padding: 0;
  min-height: 350px; /* Prevents layout shift during loading */
}

.embed-placeholder {
  background-color: var(--bg-secondary);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 4rem 2rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow);
  grid-column: 1 / -1;
  height: 100%;
}

/* --- FAQ Section --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 1.25rem;
  background: none;
  border: none;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 1.25rem 1.25rem 1.25rem;
  display: none;
  color: var(--text-muted);
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* --- Footer --- */
footer {
  border-top: 1px solid var(--border-color);
  padding: 3rem 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* --- Responsive Queries --- */
@media (max-width: 768px) {
  h1 { font-size: 2.1rem; }
  .section { padding: 3rem 0; }
  
  .hero { flex-direction: column; gap: 2rem; padding: 2.5rem 0; }
  .about-grid { flex-direction: column-reverse; padding: 1.5rem; gap: 2rem; }
  
  .details-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
}