/* =========================================================
   CLAIREMARIE’S SCHOOL OF DANCE — CLEAN & MODERN CSS (2025)
   ========================================================= */

/* ---------- COLOR PALETTE ---------- */
:root {
  --color-primary: #6d2a73;        /* Deep elegant purple */
  --color-secondary: #a04ca1;      /* Softer lilac tone */
  --color-accent: #e29ae3;         /* Light pink accent */
  --color-text-light: #ffffff;
  --color-text-dark: #222222;
  --color-background: #faf9fc;     /* Off-white with a hint of lilac */
}

/* ---------- RESET & BASE ---------- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Source Sans Pro', sans-serif;
  line-height: 1.6;
  color: var(--color-text-dark);
  background: linear-gradient(to bottom, #fff, #f4eff9);
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h4 {
  color: var(--color-primary);
  text-transform: uppercase;
  margin-bottom: 0.5em;
  padding-bottom: 0.25em;
  border-bottom: 2px solid var(--color-primary);
}
h1 { font-size: 2.5em; }
h3 { color: var(--color-primary); margin-bottom: 0.5em; }
h4 { font-size: 1.5em; text-align: center; }

a {
  text-decoration: none;
  color: var(--color-accent);
  transition: color 0.3s ease;
}
a:hover { color: var(--color-primary); }

/* =========================================================
   HEADER — GRADIENT & NAVIGATION
   ========================================================= */
.site-header {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  width: 100%;
  display: flex;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 10;
}

.site-header.scrolled {
  background: linear-gradient(135deg, #5c1e62, #8a458d);
  transition: all 0.4s ease;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.3);
}

.header-content-wrapper {
  width: 100%;
  max-width: 1200px;
  padding: 1rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

/* --- Logo --- */
.logo img {
  height: 90px;
  width: auto;
  display: block;
  transition: height 0.3s ease;
}

/* --- Navigation --- */
.primary-navigation ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
}

.primary-navigation li {
  margin: 0;
  padding: 0;
}

.primary-navigation a {
  display: block;
  padding: 0.8rem 1rem;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
  font-weight: 600;
  border-radius: 6px;
  transition: background 0.3s ease, color 0.3s ease;
}

.primary-navigation li:hover a,
.primary-navigation li.active a {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Hamburger --- */
.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--color-text-light);
  z-index: 100;
}

/* =========================================================
   MAIN CONTENT
   ========================================================= */
.content-wrapper {
  padding: 1.5rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.hero-image img {
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 2rem;
  display: block;
}

@media (min-width: 901px) {
  .hero-image img {
    width: 60%;
    display: block;
    margin: 0 auto;
  }
}

.main-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.main-content {
  flex: 2;
  min-width: 300px;
  padding: 1rem;
}

.full-width-content {
  flex: 1 1 100%;
  padding: 0;
}

.main-content p {
  color: #333;
}

/* =========================================================
   ABOUT PAGE IMAGE
   ========================================================= */
.about-principal-image {
  width: 200px;
  max-width: 100%;
  height: auto;
  float: left;
  margin-right: 1.5em;
  margin-bottom: 1em;
  border-radius: 5px;
}
@media (max-width: 900px) {
  .about-principal-image {
    width: 70%;
    float: none;
    margin: 0 auto 1.5em;
    display: block;
  }
}

/* =========================================================
   CLASSES PAGE TABLES
   ========================================================= */
.table-responsive {
  overflow-x: auto;
  margin: 2em 0;
  border: 1px solid #ddd;
  border-radius: 6px;
  background-color: #fff;
}
.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}
.table-responsive th,
.table-responsive td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.table-responsive th {
  background-color: var(--color-primary);
  color: var(--color-text-light);
  text-transform: uppercase;
}
.table-responsive tr:nth-child(even) td { background-color: #f3f3f3; }
.table-responsive tr:hover td { background-color: #f0e6f0; }

/* =========================================================
   FOOTER — MATCHING GRADIENT STYLE
   ========================================================= */
.footer-v2 {
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: var(--color-text-light);
  padding: 2rem 1rem;
  text-align: center;
  border-top: 4px solid var(--color-accent);
  box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15);
}

.fv2-wrap {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: center;
}

.fv2-block {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 18px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.fv2-block:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.fv2-title {
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 6px;
}

.fv2-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.fv2-list li {
  padding: 4px 0;
}

.fv2-icon img {
  width: 50px;
  height: 49px;
  display: block;
  margin: 0 auto;
  transition: transform 0.3s ease;
}
.fv2-icon:hover img { transform: scale(1.1); }

.fv2-copy {
  max-width: 1100px;
  margin: 16px auto 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.9rem;
  color: #eee;
}

address { font-style: normal; }

/* =========================================================
   RESPONSIVE HEADER & FOOTER
   ========================================================= */
@media (max-width: 900px) {
  .header-content-wrapper {
    flex-wrap: wrap;
  }
  .menu-toggle {
    display: block;
    margin-left: auto;
  }
  .primary-navigation {
    order: 3;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
  }
  .primary-navigation ul {
    display: none;
    flex-direction: column;
    text-align: center;
    margin-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.2);
  }
  .primary-navigation[data-visible="true"] { max-height: 500px; }
  .primary-navigation[data-visible="true"] ul { display: flex; }

  .logo img {
    height: 75px;
    margin-top: 16px;
  }
  .menu-toggle { margin-top: 16px; }

  .fv2-wrap {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .fv2-copy { font-size: 0.85rem; }
}

/* =========================================================
   GALLERY SLIDESHOW — MODERN LOOK
   ========================================================= */
.slideshow-container {
  position: relative;
  max-width: 1000px;
  margin: 2rem auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  background: #000;
}

.mySlides { display: none; width: 100%; }
.mySlides img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: opacity 0.5s ease-in-out;
}

.prev, .next {
  cursor: pointer;
  position: absolute;
  top: 50%;
  padding: 12px;
  color: #fff;
  font-size: 24px;
  border-radius: 50%;
  user-select: none;
  background: rgba(0, 0, 0, 0.4);
  transition: all 0.3s ease;
}
.next { right: 10px; }
.prev { left: 10px; }

.prev:hover, .next:hover {
  background: rgba(255, 255, 255, 0.3);
  color: var(--color-primary);
}

.fade { animation: fade 1s ease-in-out; }
@keyframes fade { from {opacity: 0.4;} to {opacity: 1;} }

@media (max-width: 700px) {
  .slideshow-container {
    max-width: 95%;
    border-radius: 8px;
  }
  .prev, .next { font-size: 20px; padding: 8px; }
}
