@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600&family=Orbitron:wght@400;700&family=Monoton&display=swap');

/* Reset margins and paddings */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Body styling – warm gradient background reminiscent of vintage interiors */
body {
  background: linear-gradient(180deg, #fff6e8 0%, #fff6e8 40%, #ffefcc 100%);
  font-family: 'Space Grotesk', sans-serif;
  color: #333;
  height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Frame container uses our 3D frame graphic as background */
#frame-container {
  position: relative;
  width: 100vw;
  max-width: none;
  height: 100vh;
  padding: 5%;
  background: url('../images/frame.png') no-repeat center center;
  background-size: 100% 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.site-title-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  width: 100%;
  padding: 0 10px;
}

.site-title-row h1 {
  justify-self: center;
  text-align: center;
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  padding: 0.35rem;
  cursor: pointer;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.mobile-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  margin: 4px 0;
  border-radius: 999px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 18vh;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 20;
}

.mobile-menu-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu-panel {
  background: rgba(255,255,255,0.95);
  border-radius: 22px;
  padding: 1.4rem 1.2rem 1.6rem;
  width: min(360px, 90vw);
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
  color: #ef6500;
  position: relative;
}

.mobile-menu-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: #ef6500;
  cursor: pointer;
}

.mobile-menu-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.mobile-menu-buttons button {
  background: #ef6500;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  letter-spacing: 1px;
  font-size: 0.95rem;
  cursor: pointer;
}

.mobile-menu-buttons button.active {
  background: #fff;
  color: #ef6500;
  border: 1px solid #ef6500;
}

@media (max-width: 768px) {
  #frame-container {
    background-size: 130% 110%;
  }
  #frame-container > p {
    display: none;
  }
  #frame-container h1 {
    margin-bottom: 32px;
    font-size: clamp(1.5rem, 7vw, 2.1rem);
  }
  .site-title-row {
    margin-bottom: 26px;
  }
  .site-title-row {
    justify-content: space-between;
  }
  .mobile-menu-toggle {
    display: inline-flex;
    align-self: center;
  }
  .primary-nav {
    display: none !important;
  }
  #membership-section {
    margin-top: 0.1rem;
  }
  #faq-section {
    margin-top: 0.1rem;
  }
  .primary-nav button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.3rem clamp(0.45rem, 2.2vw, 0.75rem);
    font-size: clamp(0.7rem, 3vw, 0.9rem);
    white-space: nowrap;
  }
  .cta-row.double {
    flex-direction: column;
    gap: 0.75rem;
    align-items: center;
  }
  .cta-row.double .cta {
    font-size: 1.05rem;
    width: 100%;
    max-width: 260px;
    margin: 0 auto;
  }
  .legal-link {
    display: none;
  }
  .start-card {
    width: 80%;
    padding: 0.5rem 0.9rem 1.2rem;
  }
}

@media (max-width: 768px) {
  #frame-container h1 {
    font-size: clamp(1.5rem, 7vw, 2.1rem) !important;
  }
}

/* Title styling – retro font and bold orange colour */
#frame-container h1 {
  font-family: 'Monoton', cursive;
  font-size: clamp(2rem, 9vw, 2.8rem);
  color: #fff;
  margin-bottom: 0.35rem;
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.1;
  white-space: nowrap;
}

/* Tagline */
#frame-container > p {
  font-size: 1.1875rem;
  margin-bottom: 1.4rem;
  margin-top: 0.1rem;
  text-align: center;
  color: #fff;
}

.start-copy p {
  font-size: 1.0625rem;
  margin-bottom: 1.4rem;
  margin-top: 0.1rem;
  text-align: center;
  color: #fff;
}

.primary-nav {
  display: flex;
  gap: 1rem;
  margin-bottom: 25px;
}

.primary-nav button {
  background: #fff;
  color: #ef6500;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.4rem;
  cursor: pointer;
  letter-spacing: 1px;
  font-size: 1rem;
  transition: background 0.3s ease, color 0.3s ease;
}

.primary-nav button.active {
  color: #ef6500;
}

.primary-nav button:hover {
  background: #ef6500;
  color: #fff;
}

.legal-link {
  position: fixed;
  right: 16px;
  bottom: 14px;
  font-size: 0.875rem;
  color: #fff;
  text-decoration: none;
  opacity: 0.7;
  letter-spacing: 0.5px;
}

.legal-link:hover {
  opacity: 1;
}

.cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  background: #fff;
  color: #ef6500;
}

.cta:hover {
  transform: translateY(-1px);
  background: #ef6500;
  color: #fff;
}

.content-section {
  width: 100%;
  display: none;
  margin-top: 0.65rem;
}

.content-section.active {
  display: block;
}

#membership-section {
  margin-top: -0.6rem;
}

#faq-section {
  margin-top: -0.6rem;
}

.start-media .start-hero-image {
  width: 80%;
  max-height: 40vh;
  object-fit: cover;
  border-radius: 25px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  margin: 0 auto 1.6rem;
  display: block;
  position: relative;
  z-index: 0;
}

.start-media {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.start-logo-overlay {
  position: absolute;
  inset: auto;
  top: 50%;
  left: 50%;
  width: clamp(60px, 15vw, 140px);
  max-width: 140px;
  height: auto;
  transform: translate(-50%, -50%);
  margin: 0;
  box-shadow: none;
  border-radius: 0;
  pointer-events: none;
  z-index: 3;
  opacity: 1;
  filter: drop-shadow(0 0 15px rgba(0,0,0,0.35));
}

.start-copy {
  text-align: center;
  margin-top: -0.5rem;
}

.start-copy p {
  line-height: 1.6;
}

.start-card {
  background: rgba(255,255,255,0.9);
  color: #ef6500;
  padding: 0.6rem 1.8rem 1.4rem;
  border-radius: 22px;
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
  max-width: 900px;
  width: 92%;
  margin: 0 auto 1.6rem;
}

.start-card h2 {
  color: #ef6500;
  margin-top: 0;
  margin-bottom: 0.7rem;
}

.start-card p {
  color: #ef6500;
  margin-bottom: 0;
}

#start-section .start-card {
  padding-top: 0.8rem;
}

.studios-panel {
  background: rgba(255,255,255,0.92);
  border-radius: 28px;
  padding: 1.1rem 2.4rem 2.2rem;
  max-width: 1100px;
  width: 95%;
  margin: 0 auto 1.6rem;
  box-shadow: 0 18px 35px rgba(0,0,0,0.2);
}

.studios-panel__header {
  margin-top: 0;
}

.studios-panel__header h2 {
  margin-top: 0 !important;
}

.studios-panel__header h2 {
  margin-bottom: 0.2rem;
  color: #ef6500;
}

.studios-panel__header p {
  color: #333;
  margin-bottom: 1.2rem;
  font-size: 1rem;
}

.studios-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.studios-subnav button {
  background: #ef6500;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.55rem 1.25rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.studios-subnav button.active {
  background: #fff;
  color: #ef6500;
  border: 1px solid #ef6500;
}

.studios-content {
  margin-top: 1.6rem;
}

.studios-pane {
  display: none;
  animation: fadeIn 0.4s ease;
}

.studios-pane.active {
  display: block;
}

.studios-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.studios-gallery-grid img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  height: 160px;
}

.studios-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.studios-card {
  background: #fff;
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 20px rgba(0,0,0,0.12);
  min-height: 190px;
}

.studios-card h3 {
  color: #ef6500;
  margin-bottom: 0.6rem;
}

.studios-card p {
  color: #1d1d1d;
  line-height: 1.4;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#start-section .start-card h2 {
  margin-top: 0;
}

#faq-section .club-card h2 {
  margin-top: 0;
}

/* Section headings */
#frame-container h2 {
  margin-top: 1.5rem;
  font-size: 1.8rem;
  color: #ef6500;
  text-align: center;
}

/* Gallery layout */
.gallery {
  display: grid;
  /* Use smaller minimum sizes so that images don’t spill outside the frame */
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-top: 0.5rem;
}

.gallery img {
  width: 100%;
  max-height: 25vh;
  object-fit: cover;
  border-radius: 20px;
  cursor: pointer;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery img:hover {
  transform: scale(1.05);
}

/* Modal for image viewer */
#image-modal {
  display: none;
  position: fixed;
  z-index: 10;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.85);
}

#image-modal img {
  margin: auto;
  display: block;
  max-width: 80%;
  max-height: 80%;
  margin-top: 5%;
  border-radius: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.5);
}

#image-modal .close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #ef6500;
  font-size: 3rem;
  font-weight: bold;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
}

#image-modal .modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  border: none;
  color: #ef6500;
  font-size: 2.4rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(0,0,0,0.25);
}

#image-modal .modal-nav.prev {
  left: 24px;
}

#image-modal .modal-nav.next {
  right: 24px;
}

@media (max-width: 768px) {
  #image-modal .modal-nav {
    width: 38px;
    height: 38px;
    font-size: 2rem;
  }
  #image-modal .modal-nav.prev {
    left: 12px;
  }
  #image-modal .modal-nav.next {
    right: 12px;
  }
}

/* Login section */
.club-card {
  margin-top: 0.2rem;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  background: rgba(255,255,255,0.9);
  padding: 1.6rem 2.4rem 2.2rem;
  border-radius: 28px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.25);
  color: #ef6500;
}

#login-section {
  padding-top: 1.1rem;
}

#login-section .membership-copy {
  margin-bottom: 1rem;
  font-size: 1rem;
  line-height: 1.6;
  color: #ef6500;
  text-shadow: none;
  text-align: center;
  padding: 0 4%;
}

.club-card .membership-copy {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

#login-section .membership-copy + .membership-copy {
  margin-top: 1rem;
}

.membership-cta,
.cta-row {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1rem;
}

.membership-cta {
  flex-direction: column;
  align-items: center;
  width: 100%;
  gap: 0.5rem;
}

.membership-cta .cta,
.cta-row .cta {
  text-decoration: none;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  border: none;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
  background: #fff;
  color: #ef6500;
}

.membership-cta .cta {
  width: 100%;
  max-width: 260px;
}

.membership-cta.padded {
  margin-top: 1.25rem;
}

.cta.primary {
  background: #fff;
  color: #ef6500;
}

.cta:hover {
  transform: translateY(-1px);
  background: #ef6500;
  color: #fff;
}

.club-card h2 {
  margin-top: 0;
  margin-bottom: 0.7rem;
}

#membership-section .club-card h2 {
  margin-top: 0;
  padding-top: 0;
}

.club-card .membership-copy {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 768px) {
  #login-section {
    padding: 1.5rem;
  }
  #login-section h2 {
    margin-bottom: 1.2rem;
  }
  #login-section .membership-copy {
    font-size: 0.95rem;
    padding: 0 3%;
  }
  #faq-section .faq-card {
    margin-bottom: 18px;
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  #studios-section .studios-panel {
    max-height: 70vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
}

.club-card .membership-copy.subtle.block {
  margin-bottom: 0.1rem;
}

.club-card .membership-cta {
  gap: 0.25rem;
}

.club-card .membership-cta.padded {
  margin-top: 0.6rem;
}

.club-card .cta {
  background: #ef6500;
  color: #fff;
  border: none;
}

.club-card .cta:hover {
  background: #fff;
  color: #ef6500;
}

.faq-card {
  color: #ef6500;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.faq-item {
  background: rgba(255,255,255,0.75);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  box-shadow: 0 10px 18px rgba(0,0,0,0.12);
  text-align: left;
}

.faq-item h3 {
  font-size: 1.05rem;
  color: #ef6500;
  margin-bottom: 0.5rem;
}

.faq-item p {
  font-size: 0.98rem;
  color: #333;
  line-height: 1.55;
}

.faq-item a {
  color: #ef6500;
  text-decoration: none;
}

.faq-item a:hover {
  text-decoration: underline;
}

.membership-copy.subtle {
  font-size: 1rem;
  text-transform: none;
  letter-spacing: normal;
  color: #ef6500;
}

.membership-copy.subtle.block {
  margin-bottom: 0.4rem;
}

.membership-cta .full {
  flex: 0 1 auto;
  min-width: 220px;
  text-align: center;
}

#booking-section {
  margin-top: 2rem;
}

#booking-section .membership-copy.small {
  font-size: 0.9rem;
  opacity: 0.85;
}

#login-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
}

#login-form input {
  padding: 0.5rem 1rem;
  border: 2px solid #ef6500;
  border-radius: 10px;
  font-size: 1rem;
  width: 200px;
}

#login-form button {
  padding: 0.6rem 1.5rem;
  background-color: #ef6500;
  color: white;
  border: none;
  border-radius: 15px;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s ease;
}

#login-form button:hover {
  background-color: #d95c00;
}

/* Booking section */
#booking-section {
  margin-top: 1.5rem;
  width: 100%;
}

.tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.tabs button {
  background-color: #fff;
  color: #ef6500;
  border: none;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  cursor: pointer;
  font-size: 1rem;
  transition: background-color 0.3s, color 0.3s ease;
}

.tabs button.active,
.tabs button:hover {
  background-color: #ef6500;
  color: #fff;
}

#calendar {
  background-color: rgba(255,255,255,0.8);
  border-radius: 20px;
  padding: 1rem;
  width: 100%;
  max-height: 45vh;
  overflow-y: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* FullCalendar colour customisations */
.fc .fc-daygrid-day-number {
  color: #ef6500;
}

.fc .fc-daygrid-day-frame {
  background-color: rgba(255,255,255,0.6);
}

.fc .fc-event {
  background-color: #ef6500;
  border: none;
  color: white;
  border-radius: 10px;
  font-size: 0.8rem;
  padding: 2px;
}

/* Contact page styling */
.contact-layout {
  justify-content: flex-start;
  padding-top: 3%;
}

.contact-card {
  width: 100%;
  max-width: 640px;
  max-height: min(80vh, 720px);
  background: rgba(255,255,255,0.92);
  border-radius: 28px;
  padding: 2rem 2.5rem;
  box-shadow: 0 18px 35px rgba(0,0,0,0.25);
  color: #ef6500;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
}

.contact-back {
  align-self: flex-start;
  text-decoration: none;
  font-size: 0.9rem;
  color: #ef6500;
  margin-bottom: 0.5rem;
}

.contact-card h2 {
  margin: 0;
  color: #ef6500;
}

.contact-card h3 {
  margin: 0 0 0.35rem;
  color: #ef6500;
}

.contact-intro {
  font-size: 1rem;
  color: #ef6500;
  margin-bottom: 0.5rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-field label {
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  display: block;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: 12px;
  border: 2px solid rgba(239,101,0,0.35);
  background: rgba(255,255,255,0.9);
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1rem;
  color: #333;
}

.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-error {
  margin-top: 0.2rem;
  font-size: 0.85rem;
  color: #b00020;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding-bottom: 0.5rem;
}

.contact-actions .cta.secondary {
  background: rgba(255,255,255,0.6);
  color: #ef6500;
}

.contact-success {
  background: rgba(255,255,255,0.8);
  border-left: 4px solid #ef6500;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.cta-row.double,
.cta-row.single {
  justify-content: center;
  flex-wrap: nowrap;
  width: 100%;
  gap: 0.5rem;
}

@media (max-width: 480px) {
  .cta-row.double .cta,
  .cta-row.single .cta {
    flex: 1 1 auto;
    font-size: 1.05rem;
    padding: 0.45rem 0.8rem;
  }
}

@media (max-width: 768px) {
  .contact-card {
    padding: 1.5rem;
  }
  .contact-layout {
    padding: 4% 6%;
  }
  .contact-actions {
    flex-direction: column;
  }
}

@media (max-width: 768px) {
  #membership-section,
  #faq-section {
    margin-top: 0.8rem !important;
  }
  #membership-section .club-card,
  #faq-section .club-card {
    margin-top: 18px;
  }
}
