@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;
}

@media (max-width: 768px) {
  #frame-container {
    background-size: 130% 110%;
  }
  #frame-container > p {
    font-size: 1.05rem;
  }
  .primary-nav {
    margin-bottom: 0.15rem;
  }
  .primary-nav button {
    padding: 0.3rem 0.9rem;
    font-size: 0.8rem;
  }
}

/* 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,
.start-copy p {
  font-size: 1.125rem;
  margin-bottom: 1.4rem;
  margin-top: 0.1rem;
  text-align: center;
  color: #fff;
}

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

.primary-nav button {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.4rem 1.2rem;
  cursor: pointer;
  letter-spacing: 1px;
  font-size: 0.9rem;
  transition: background 0.3s ease, color 0.3s ease;
}

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

.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;
}

.start-media img {
  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 1rem;
  display: block;
}

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

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

/* 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;
}

/* 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: 2rem 3rem;
  border-radius: 28px;
  box-shadow: 0 20px 35px rgba(0,0,0,0.25);
  color: #ef6500;
}

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

.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.2rem;
  margin-bottom: 0.7rem;
}

.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 .membership-copy {
    padding: 0 3%;
  }
}

.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;
}

.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: 0.85rem;
    padding: 0.45rem 0.8rem;
  }
}

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