/* =========================================================
   NATALIE LISSACK SCHOOL OF BALLET
   Main stylesheet
   Desktop + Tablet + Mobile
   ========================================================= */

/* =========================================================
   CSS VARIABLES
   ========================================================= */

:root {
  --text-light: #ffffff;
  --text-dark: #333333;

  --hero-overlay: rgba(0, 0, 0, 0.38);

  --footer-background: #111111;

  --accent: #a8566b;
  --accent-soft: #f4e9ec;
  --surface: #f8f5f3;
  --border: #e6dfdc;
  --text-muted: #6b6461;
  --whatsapp: #25d366;

  --content-width: 1200px;
}

/* =========================================================
   RESET / BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;

  font-family: Arial, Helvetica, sans-serif;

  color: var(--text-dark);
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
}

/* =========================================================
   HEADER
   ========================================================= */

.site-header {
  position: absolute;

  top: 0;
  left: 0;
  right: 0;

  z-index: 100;

  color: var(--text-light);
}

.header-container {
  width: 100%;
  max-width: var(--content-width);

  min-height: 80px;

  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* ---------------------------------------------------------
   Site name

   Hidden on desktop because the home-page design currently
   uses the large title in the hero.
   --------------------------------------------------------- */

.site-name {
  display: none;
}

/* =========================================================
   DESKTOP NAVIGATION
   ========================================================= */

.site-navigation {
  display: flex;

  align-items: center;

  gap: 38px;
}

.site-navigation a {
  display: block;

  font-size: 10px;
  font-weight: 600;

  letter-spacing: 2.5px;
  line-height: 1;

  text-transform: uppercase;

  white-space: nowrap;

  transition: opacity 0.2s ease;
}

.site-navigation a:hover {
  opacity: 0.65;
}

/* =========================================================
   MOBILE MENU BUTTON
   ========================================================= */

.mobile-menu-toggle {
  display: none;

  width: 42px;
  height: 42px;

  padding: 8px;

  border: 0;

  background: transparent;

  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;

  width: 100%;
  height: 2px;

  margin: 5px 0;

  background: #ffffff;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

/* =========================================================
   HERO
   ========================================================= */

.hero {
  position: relative;

  width: 100%;
  min-height: 100vh;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  background-image: url("../images/home_bg.jpg");

  background-size: cover;

  background-position: center center;

  background-repeat: no-repeat;
}

/* ---------------------------------------------------------
   Dark overlay
   --------------------------------------------------------- */

.hero-overlay {
  position: absolute;

  inset: 0;

  background: var(--hero-overlay);
}

/* =========================================================
   HERO CONTENT
   ========================================================= */

.hero-content {
  position: relative;

  z-index: 1;

  width: 100%;

  padding: 40px;

  text-align: center;

  color: #ffffff;
}

/* ---------------------------------------------------------
   Main title
   --------------------------------------------------------- */

.hero-content h1 {
  margin: 0 0 34px;

  font-size: clamp(2rem, 4vw, 3.2rem);

  font-weight: 300;

  line-height: 1.2;

  letter-spacing: 9px;

  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Subtitle
   --------------------------------------------------------- */

.hero-content p {
  margin: 0 0 38px;

  font-size: 13px;

  font-weight: 400;

  line-height: 1.5;

  letter-spacing: 4px;

  text-transform: uppercase;
}

/* =========================================================
   HERO BUTTON
   ========================================================= */

.hero-button {
  display: inline-block;

  padding: 11px 34px;

  border: 1px solid rgba(255, 255, 255, 0.85);

  color: #ffffff;

  font-size: 10px;

  font-weight: 600;

  letter-spacing: 2px;

  line-height: 1.4;

  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease;
}

.hero-button:hover {
  background: #ffffff;

  border-color: #ffffff;

  color: #333333;
}

/* =========================================================
   FOOTER
   ========================================================= */

.site-footer {
  padding: 45px 30px;

  background: var(--footer-background);

  color: #ffffff;
}

.footer-content {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;

  text-align: center;
}

/* ---------------------------------------------------------
   Footer logo
   --------------------------------------------------------- */

.footer-logo {
  display: block;

  width: auto;

  max-width: 180px;
  max-height: 80px;

  margin: 0 auto 25px;
}

/* ---------------------------------------------------------
   Copyright
   --------------------------------------------------------- */

.footer-content p {
  margin: 0 0 25px;

  font-size: 11px;

  line-height: 1.5;

  letter-spacing: 1px;
}

/* ---------------------------------------------------------
   Footer navigation
   --------------------------------------------------------- */

.footer-navigation {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 30px;
}

.footer-navigation a {
  font-size: 10px;

  letter-spacing: 1.5px;

  line-height: 1.4;

  text-transform: uppercase;

  opacity: 0.75;

  transition: opacity 0.2s ease;
}

.footer-navigation a:hover {
  opacity: 1;
}

/* ---------------------------------------------------------
   Footer contact
   --------------------------------------------------------- */

.footer-contact {
  margin-top: 25px;

  font-size: 11px;

  letter-spacing: 1px;

  opacity: 0.75;
}

.footer-contact a:hover {
  opacity: 0.65;
}

/* =========================================================
   INNER PAGES
   ========================================================= */

.container {
  width: 100%;
  max-width: var(--content-width);

  margin: 0 auto;
  padding: 0 40px;
}

/* ---------------------------------------------------------
   Page hero

   A compact dark band behind the transparent header. The
   site photos are too small to stretch full width, so this
   uses a gradient rather than an image.
   --------------------------------------------------------- */

.page-hero {
  padding: 170px 0 90px;

  background:
    radial-gradient(
      ellipse at 80% 20%,
      rgba(168, 86, 107, 0.45),
      transparent 60%
    ),
    #141214;

  color: var(--text-light);

  text-align: center;
}

.page-hero h1 {
  margin: 0 0 18px;

  font-size: clamp(1.8rem, 3.5vw, 2.8rem);

  font-weight: 300;

  line-height: 1.2;

  letter-spacing: 8px;

  text-transform: uppercase;
}

.page-hero p {
  max-width: 620px;

  margin: 0 auto;

  font-size: 15px;

  line-height: 1.7;

  opacity: 0.8;
}

/* ---------------------------------------------------------
   Sections
   --------------------------------------------------------- */

.section {
  padding: 90px 0;
}

.section-alt {
  background: var(--surface);
}

.eyebrow {
  display: block;

  margin-bottom: 14px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 24px;

  font-size: clamp(1.5rem, 2.5vw, 2rem);

  font-weight: 300;

  line-height: 1.3;

  letter-spacing: 3px;

  text-transform: uppercase;
}

.section p {
  margin: 0 0 18px;

  font-size: 16px;

  line-height: 1.75;

  color: var(--text-muted);
}

.section-intro {
  max-width: 680px;

  margin-bottom: 50px;
}

.lead {
  font-size: 19px !important;

  color: var(--text-dark) !important;
}

/* ---------------------------------------------------------
   Split layout (image + text)
   --------------------------------------------------------- */

.split {
  display: grid;

  grid-template-columns: 1fr 1fr;

  gap: 70px;

  align-items: center;
}

.split-media img {
  display: block;

  width: 100%;
  height: auto;

  border-radius: 4px;
}

/* ---------------------------------------------------------
   Timeline
   --------------------------------------------------------- */

.timeline {
  margin: 0;
  padding: 0;

  list-style: none;

  border-left: 1px solid var(--border);
}

.timeline li {
  position: relative;

  padding: 0 0 34px 34px;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";

  position: absolute;

  top: 4px;
  left: -6px;

  width: 11px;
  height: 11px;

  border-radius: 50%;

  background: var(--accent);
}

.timeline-label {
  display: block;

  margin-bottom: 6px;

  color: var(--accent);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2.5px;

  text-transform: uppercase;
}

.timeline h3 {
  margin: 0 0 6px;

  font-size: 17px;
  font-weight: 600;
}

.timeline p {
  margin: 0;

  font-size: 15px;
}

/* ---------------------------------------------------------
   Card grid
   --------------------------------------------------------- */

.card-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));

  gap: 24px;
}

.card {
  padding: 32px 28px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: #ffffff;
}

.card-badge {
  display: inline-block;

  margin-bottom: 18px;
  padding: 6px 12px;

  border-radius: 999px;

  background: var(--accent-soft);
  color: var(--accent);

  font-size: 11px;
  font-weight: 700;

  letter-spacing: 1.5px;
}

.card h3 {
  margin: 0 0 8px;

  font-size: 17px;
  font-weight: 600;

  line-height: 1.4;
}

.card p {
  margin: 0;

  font-size: 14px;
}

/* ---------------------------------------------------------
   Page hero with overlapping cards

   Extra bottom padding leaves room for the overview cards
   to sit across the edge of the dark band.
   --------------------------------------------------------- */

.page-hero-overlap {
  padding-bottom: 150px;
}

.overview {
  position: relative;

  margin-top: -90px;
  padding-bottom: 20px;
}

/* ---------------------------------------------------------
   Class overview cards
   --------------------------------------------------------- */

.class-card {
  display: flex;

  flex-direction: column;

  padding: 34px 30px;

  border: 1px solid var(--border);
  border-radius: 6px;

  background: #ffffff;

  box-shadow: 0 12px 30px rgba(20, 18, 20, 0.08);

  transition:
    transform 0.2s ease,
    border-color 0.2s ease;
}

.class-card:hover {
  border-color: var(--accent);

  transform: translateY(-4px);
}

.class-card-number {
  margin-bottom: 18px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 2px;
}

.class-card h2 {
  margin: 0 0 10px;

  font-size: 20px;
  font-weight: 400;

  letter-spacing: 2px;

  text-transform: uppercase;
}

.class-card p {
  flex: 1;

  margin: 0 0 22px;

  font-size: 15px;

  line-height: 1.6;

  color: var(--text-muted);
}

.class-card-link {
  color: var(--accent);

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2px;

  text-transform: uppercase;
}

/* ---------------------------------------------------------
   Benefits
   --------------------------------------------------------- */

.benefit-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  gap: 40px;
}

.benefit {
  padding-top: 22px;

  border-top: 2px solid var(--accent);
}

.benefit h3 {
  margin: 0 0 8px;

  font-size: 16px;
  font-weight: 600;

  letter-spacing: 1px;

  text-transform: uppercase;
}

.benefit p {
  margin: 0;

  font-size: 15px;
}

/* ---------------------------------------------------------
   Class features (image panel + text)

   Alternate rows flip the image to the right.
   --------------------------------------------------------- */

.class-feature {
  display: grid;

  grid-template-columns: 5fr 7fr;

  gap: 70px;

  align-items: center;
}

.class-feature-reverse .class-visual {
  order: 2;
}

/*
 * The class photos are small, so they sit centred on a
 * tinted panel rather than being stretched to fill it.
 */
.class-visual {
  display: flex;

  align-items: center;
  justify-content: center;

  min-height: 360px;

  padding: 40px;

  border-radius: 6px;

  background: var(--accent-soft);
}

.section-alt .class-visual {
  background: #ffffff;
}

.class-visual img {
  display: block;

  max-width: 100%;
  height: auto;

  border-radius: 4px;

  box-shadow: 0 14px 30px rgba(20, 18, 20, 0.18);
}

/* ---------------------------------------------------------
   Check list
   --------------------------------------------------------- */

.check-list {
  margin: 26px 0 32px;
  padding: 0;

  list-style: none;
}

.check-list li {
  position: relative;

  padding: 0 0 12px 30px;

  font-size: 15px;

  line-height: 1.6;
}

.check-list li::before {
  content: "";

  position: absolute;

  top: 5px;
  left: 2px;

  width: 6px;
  height: 11px;

  border: solid var(--accent);
  border-width: 0 2px 2px 0;

  transform: rotate(45deg);
}

/* ---------------------------------------------------------
   Pathway (children's progression)
   --------------------------------------------------------- */

.pathway {
  display: grid;

  grid-template-columns: repeat(3, 1fr);

  gap: 24px;

  margin: 80px 0 0;
  padding: 0;

  list-style: none;

  counter-reset: step;
}

.pathway li {
  position: relative;

  padding: 30px 28px;

  border: 1px solid var(--border);
  border-radius: 6px;

  counter-increment: step;
}

.pathway li::before {
  content: counter(step, decimal-leading-zero);

  display: block;

  margin-bottom: 14px;

  color: var(--accent);

  font-size: 13px;
  font-weight: 600;

  letter-spacing: 2px;
}

.pathway h3 {
  margin: 0 0 8px;

  font-size: 16px;
  font-weight: 600;
}

.pathway p {
  margin: 0;

  font-size: 15px;
}

/* ---------------------------------------------------------
   FAQ
   --------------------------------------------------------- */

.faq {
  max-width: 780px;

  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--border);
}

.faq summary {
  position: relative;

  padding: 22px 40px 22px 0;

  font-size: 17px;

  cursor: pointer;

  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";

  position: absolute;

  top: 50%;
  right: 4px;

  color: var(--accent);

  font-size: 24px;
  font-weight: 300;

  transform: translateY(-50%);

  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq details p {
  margin: 0 0 22px;
}

.tag-list {
  display: flex;

  flex-wrap: wrap;

  gap: 10px;

  margin: 24px 0;
  padding: 0;

  list-style: none;
}

.tag-list li {
  padding: 8px 14px;

  border: 1px solid var(--border);
  border-radius: 999px;

  font-size: 13px;
}

/* ---------------------------------------------------------
   Buttons
   --------------------------------------------------------- */

.button {
  display: inline-block;

  padding: 14px 32px;

  border: 1px solid var(--accent);

  background: var(--accent);
  color: #ffffff;

  font-size: 11px;
  font-weight: 600;

  letter-spacing: 2px;

  text-transform: uppercase;

  transition:
    background-color 0.25s ease,
    color 0.25s ease;
}

.button:hover {
  background: transparent;

  color: var(--accent);
}

.button-outline {
  background: transparent;

  color: var(--accent);
}

.button-outline:hover {
  background: var(--accent);

  color: #ffffff;
}

/* ---------------------------------------------------------
   Call to action band
   --------------------------------------------------------- */

.cta {
  padding: 80px 0;

  background: #141214;
  color: var(--text-light);

  text-align: center;
}

.cta h2 {
  margin: 0 0 16px;

  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 300;

  letter-spacing: 4px;

  text-transform: uppercase;
}

.cta p {
  margin: 0 0 32px;

  font-size: 15px;

  opacity: 0.75;
}

.cta-actions {
  display: flex;

  flex-wrap: wrap;

  justify-content: center;

  gap: 14px;
}

.cta .button-outline {
  border-color: rgba(255, 255, 255, 0.7);

  color: #ffffff;
}

.cta .button-outline:hover {
  background: #ffffff;

  border-color: #ffffff;

  color: var(--text-dark);
}

/* ---------------------------------------------------------
   Contact cards
   --------------------------------------------------------- */

.contact-grid {
  display: grid;

  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));

  gap: 24px;

  max-width: 640px;

  margin: 0 auto;
}

.contact-card {
  display: block;

  padding: 40px 30px;

  border: 1px solid var(--border);
  border-radius: 4px;

  background: #ffffff;

  text-align: center;

  transition:
    border-color 0.2s ease,
    transform 0.2s ease;
}

a.contact-card:hover {
  border-color: var(--accent);

  transform: translateY(-3px);
}

.contact-card .eyebrow {
  margin-bottom: 12px;
}

.contact-card strong {
  display: block;

  font-size: 19px;
  font-weight: 400;

  word-break: break-word;
}

.contact-card-whatsapp .eyebrow {
  color: #128c4b;
}

a.contact-card-whatsapp:hover {
  border-color: var(--whatsapp);
}

.contact-note {
  max-width: 600px;

  margin: 50px auto 0 !important;

  text-align: center;
}

/* =========================================================
   WHATSAPP BUTTON

   Floating on every page, bottom-right.
   ========================================================= */

.whatsapp-float {
  position: fixed;

  right: 24px;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));

  z-index: 200;

  width: 58px;
  height: 58px;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  background: var(--whatsapp);
  color: #ffffff;

  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);

  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
}

/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {
  .header-container {
    padding: 0 25px;
  }

  .site-navigation {
    gap: 22px;
  }

  .site-navigation a {
    font-size: 10px;

    letter-spacing: 2px;
  }

  .hero-content h1 {
    letter-spacing: 6px;
  }

  .split,
  .class-feature {
    grid-template-columns: 1fr;

    gap: 40px;
  }

  .class-feature-reverse .class-visual {
    order: 0;
  }

  .pathway {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 768px) {
  /* -----------------------------------------------------
       Header
       ----------------------------------------------------- */

  .site-header {
    background: rgba(0, 0, 0, 0.12);
  }

  .header-container {
    position: relative;

    min-height: 70px;

    padding: 0 20px;

    justify-content: space-between;
  }

  /* -----------------------------------------------------
       Mobile site name
       ----------------------------------------------------- */

  .site-name {
    display: block;

    font-size: 13px;

    font-weight: 500;

    letter-spacing: 2px;

    line-height: 1;

    text-transform: uppercase;
  }

  /* -----------------------------------------------------
       Hamburger
       ----------------------------------------------------- */

  .mobile-menu-toggle {
    display: block;
  }

  /* -----------------------------------------------------
       Mobile navigation
       ----------------------------------------------------- */

  .site-navigation {
    position: absolute;

    top: 70px;

    left: 0;
    right: 0;

    display: none;

    flex-direction: column;

    align-items: stretch;

    gap: 0;

    background: rgba(15, 15, 15, 0.94);
  }

  .site-navigation.is-open {
    display: flex;
  }

  .site-navigation a {
    width: 100%;

    padding: 18px 25px;

    border-bottom: 1px solid rgba(255, 255, 255, 0.1);

    font-size: 11px;

    letter-spacing: 2px;

    line-height: 1.4;
  }

  .site-navigation a:hover {
    opacity: 1;

    background: rgba(255, 255, 255, 0.08);
  }

  /* -----------------------------------------------------
       Hero
       ----------------------------------------------------- */

  .hero {
    min-height: 100svh;

    /*
         * The dancer sits at roughly 70–98% across the
         * original image; portrait screens only show about a
         * quarter of its width, so keep that slice on her.
         */
    background-position: 88% center;
  }

  .hero-content {
    padding: 30px 20px;
  }

  /* -----------------------------------------------------
       Hero title
       ----------------------------------------------------- */

  .hero-content h1 {
    margin-bottom: 25px;

    font-size: 2rem;

    line-height: 1.3;

    letter-spacing: 4px;
  }

  /* -----------------------------------------------------
       Hero subtitle
       ----------------------------------------------------- */

  .hero-content p {
    margin-bottom: 32px;

    font-size: 11px;

    letter-spacing: 2.5px;
  }

  /* -----------------------------------------------------
       Hero button
       ----------------------------------------------------- */

  .hero-button {
    padding: 13px 30px;

    font-size: 10px;
  }

  /* -----------------------------------------------------
       Footer
       ----------------------------------------------------- */

  .site-footer {
    padding: 40px 20px;
  }

  .footer-navigation {
    flex-direction: column;

    gap: 15px;
  }

  /* -----------------------------------------------------
       Inner pages
       ----------------------------------------------------- */

  .container {
    padding: 0 20px;
  }

  .page-hero {
    padding: 130px 0 60px;
  }

  .page-hero h1 {
    letter-spacing: 4px;
  }

  .section {
    padding: 60px 0;
  }

  .page-hero-overlap {
    padding-bottom: 110px;
  }

  .overview {
    margin-top: -70px;
  }

  .class-visual {
    min-height: 0;

    padding: 30px;
  }

  .pathway {
    margin-top: 50px;
  }
}

/* =========================================================
   SMALL PHONES
   ========================================================= */

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.7rem;

    letter-spacing: 3px;
  }

  .hero-content p {
    font-size: 10px;

    letter-spacing: 2px;
  }
}
