:root {
  font-family: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand-navy: #112E57;
  --brand-white: #ffffff;
  --brand-light: #f4f8ff;
  --slate: #475569;
  --panel: rgba(255, 255, 255, 0.98);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--brand-light);
  min-height: 100vh;
  color: var(--brand-navy);
}

img {
  display: block;
  max-width: 100%;
}

header,
main,
footer {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

/* Hero Section */
.hero {
  padding: clamp(3rem, 8vw, 6rem) 0 2rem;
  text-align: center;
}

.hero__logo {
  width: 500px;
  height: auto;
  margin: 0 auto 2rem;
  opacity: 0.95;
}

h1 {
  font-size: clamp(2.8rem, 7vw, 5rem);
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
  color: var(--brand-navy);
  line-height: 1.05;
}

.hero-info-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.opening-now-banner {
  display: inline-block;
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 8px 20px rgba(17, 46, 87, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-bottom: 0;
  /* Override previous margin */
}

.hero-location {
  color: var(--brand-navy);
  font-weight: 500;
  font-size: 1.1rem;
}

.hero__subhead {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 1.5rem;
  line-height: 1.6;
}

.hero__features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  font-size: 0.9rem;
  color: var(--brand-navy);
  margin-bottom: 2rem;
  font-weight: 500;
}

.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  background: var(--brand-navy);
  color: var(--brand-white);
  padding: 0.9rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 8px 24px rgba(17, 46, 87, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(17, 46, 87, 0.25);
}

.btn--outline {
  background: transparent;
  color: var(--brand-navy);
  border: 2px solid var(--brand-navy);
  box-shadow: none;
}

.btn--outline:hover {
  background: var(--brand-navy);
  color: var(--brand-white);
}

/* Sections */
section {
  margin: clamp(3rem, 8vw, 5rem) 0;
}

.section-title {
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--brand-navy);
  font-size: 0.8rem;
  margin: 0 0 0.5rem;
  font-weight: 600;
  opacity: 0.7;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--brand-navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.section-subhead {
  color: var(--slate);
  font-size: 1.1rem;
  max-width: 600px;
  line-height: 1.6;
}

.section--centered {
  text-align: center;
}

.section--centered .section-subhead {
  margin: 0 auto 2rem;
}

/* Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  background: var(--panel);
  border-radius: 1.25rem;
  padding: 1.75rem;
  box-shadow: 0 15px 35px rgba(17, 46, 87, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(17, 46, 87, 0.12);
}

.card h3 {
  margin: 0 0 0.5rem;
  color: var(--brand-navy);
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Highlight Section (dark bg) */
.section--dark {
  background: var(--brand-navy);
  color: var(--brand-white);
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding: 4rem calc(50vw - 50%);
}

.section--dark .section-title {
  color: rgba(255, 255, 255, 0.6);
}

.section--dark .section-heading {
  color: var(--brand-white);
}

.section--dark .section-subhead {
  color: rgba(255, 255, 255, 0.8);
}

.section--dark .card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section--dark .card h3 {
  color: var(--brand-white);
}

.section--dark .card p {
  color: rgba(255, 255, 255, 0.75);
}

/* Classes Section */
.classes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.class-card {
  background: var(--panel);
  border-radius: 1.25rem;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 15px 35px rgba(17, 46, 87, 0.08);
  border: 1px solid rgba(17, 46, 87, 0.06);
}

.class-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
  color: var(--brand-navy);
}

.class-card p {
  color: var(--slate);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

/* Bullet Grid (Why COLLAB) */
.bullet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--brand-navy);
  font-weight: 500;
}

.bullet-item::before {
  content: "✓";
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

/* Contact / Waitlist Form */
.panel {
  border: 1px solid rgba(17, 46, 87, 0.08);
  border-radius: 1.5rem;
  padding: 2.5rem;
  background: var(--panel);
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  box-shadow: 0 20px 40px rgba(17, 46, 87, 0.06);
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

input,
textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(17, 46, 87, 0.15);
  background: #ffffff;
  color: var(--brand-navy);
  font-size: 1rem;
  font-family: inherit;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand-navy);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-status {
  min-height: 1.2rem;
  font-size: 0.9rem;
  color: var(--slate);
}

.form-status.success {
  color: #059669;
}

.form-status.error {
  color: #dc2626;
}

/* Footer */
footer {
  padding: 3rem 0;
  text-align: center;
  color: var(--slate);
  font-size: 0.9rem;
  border-top: 1px solid rgba(17, 46, 87, 0.08);
  margin-top: 4rem;
  background: var(--brand-light);
}

/* Store Info Section */
.store-info {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.store-info__details {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  color: var(--slate);
}

.store-info__details li {
  margin-bottom: 0.5rem;
}

/* Thank You Message */
.thank-you-message {
  text-align: center;
  padding: 3rem 2rem;
}

.thank-you-message h2 {
  margin: 1rem 0 1.5rem;
  color: var(--brand-navy);
}

.thank-you-message p {
  color: var(--slate);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
  box-sizing: border-box;
}

.header-location {
  position: absolute;
  top: 2rem;
  right: 2rem;
  text-align: right;
  color: var(--brand-navy);
  font-size: 0.9rem;
  line-height: 1.4;
  display: none;
  /* Hidden on mobile by default */
}

@media (min-width: 768px) {
  .header-location {
    display: block;
  }
}

.hero {
  position: relative;
  /* Ensure absolute positioning works */
  text-align: center;
  padding: 8rem 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
}

/* Workflow Flowchart */
.workflow {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.workflow-step {
  background: var(--panel);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(17, 46, 87, 0.08);
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  border: 1px solid rgba(17, 46, 87, 0.08);
}

.workflow-number {
  width: 40px;
  height: 40px;
  background: var(--brand-navy);
  color: var(--brand-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  margin: 0 auto 1rem;
}

.workflow-step h3 {
  margin: 0 0 0.5rem;
  color: var(--brand-navy);
  font-size: 1.1rem;
}

.workflow-step p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.4;
}

.workflow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--brand-navy);
  font-weight: 600;
  padding-top: 2.5rem;
}

@media (max-width: 768px) {
  .workflow {
    flex-direction: column;
    align-items: center;
  }

  .workflow-step {
    max-width: 100%;
    width: 100%;
  }

  .workflow-arrow {
    transform: rotate(90deg);
    padding: 0.5rem 0;
  }
}

/* Gallery - Flywheel/Carousel Style */
.gallery-grid {
  display: flex;
  overflow-x: auto;
  gap: 1.5rem;
  margin-top: 2rem;
  padding-bottom: 1.5rem;
  /* Space for scrollbar/shadow */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  /* Firefox */
}

/* Custom scrollbar */
.gallery-grid::-webkit-scrollbar {
  height: 6px;
}

.gallery-grid::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 3px;
}

.gallery-grid::-webkit-scrollbar-thumb {
  background: var(--brand-navy);
  border-radius: 3px;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
  aspect-ratio: 1/1;
  /* Square images */
  position: relative;
  background: #eee;
  flex: 0 0 300px;
  /* Fixed width for carousel items */
  scroll-snap-align: start;
}

.gallery-item:hover {
  transform: scale(1.02);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  z-index: 2000;
  /* High z-index to sit on top of everything */
  padding-top: 0;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: rgba(17, 46, 87, 0.95);
  backdrop-filter: blur(5px);
  display: none;
  /* Explicitly hidden first */
  align-items: center;
  justify-content: center;
}

.lightbox[style*="display: block"] {
  display: flex !important;
  /* Force flex when shown */
}

.lightbox-content {
  margin: auto;
  display: block;
  max-width: 90%;
  max-height: 90vh;
  border-radius: 0.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  object-fit: contain;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #fff;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  z-index: 2001;
  line-height: 1;
}

.lightbox-close:hover,
.lightbox-close:focus {
  color: #bbb;
  cursor: pointer;
}

/* Flagship Section */
.section--flagship {
  background: linear-gradient(135deg, #f4f8ff 0%, #fff 100%);
  padding: 6rem 1rem;
}

.flagship-details {
  margin-top: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  font-size: 1.25rem;
  color: var(--brand-navy);
}

.flagship-address {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.flagship-hours,
.flagship-contact {
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.flagship-desc {
  margin-top: 2rem;
  font-size: 1rem;
  color: var(--slate);
  line-height: 1.6;
}