/* assets/css/styles.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&family=Pacifico&display=swap');

:root {
  --teal: #00A1A7;
  --orange: #F5A623;
  --green: #4CAF50;
  --blue: #2196F3;
  --purple: #9C27B0;
  --red: #F44336;
  --gray: #6B7280;
  --light: #F9FAFB;
  --white: #FFFFFF;
  --dark: #1F2937;
  --shadow: 0 10px 25px rgba(0,0,0,0.1);
  --radius: 1rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--light);
  color: var(--dark);
  line-height: 1.6;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header & Nav */
header {
  position: sticky;
  top: 0;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
  transition: all 0.3s ease;
  padding: 0.5rem 0;
}

header.scrolled {
  backdrop-filter: blur(10px);
  background: rgba(255,255,255,0.95);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 0;
}

.logo {
  font-family: 'Pacifico', cursive;
  font-size: 1.4rem;
  color: var(--teal);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: var(--orange);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background: var(--teal);
  border-radius: 3px;
  transition: 0.3s;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 2rem;
}

.mobile-menu.active {
  transform: translateX(0);
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  font-size: 1.5rem;
  color: var(--teal);
  text-decoration: none;
  font-weight: 600;
}

.mobile-menu a:hover {
  color: var(--orange);
}

/* Hero */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,161,167,0.1), rgba(245,166,35,0.1));
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  animation: fadeInUp 1s ease-out;
}

.hero h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--teal);
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  color: var(--gray);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background: var(--white);
  color: var(--dark);
  border: 2px solid var(--dark);
  border-radius: 0;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}

.btn:hover {
  background: var(--orange);
  color: white;
  border-color: var(--orange);
  transform: translateY(-3px);
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section h2 {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--teal);
  position: relative;
}

.section h2::after {
  content: '';
  width: 80px;
  height: 4px;
  background: var(--orange);
  display: block;
  margin: 0.5rem auto;
  border-radius: 2px;
}

.calendar-wrapper {
  overflow-x: auto;
  margin-top: 2rem;
  -webkit-overflow-scrolling: touch; /* smooth on iOS */
}

.calendar-grid {
  display: grid;
  grid-template-columns: 100px repeat(2, 1fr);
  gap: 0.5rem;
}

/* Keep desktop styles for headers */
.day-header, .time-slot {
  background: var(--teal);
  color: white;
  padding: 1rem;
  text-align: center;
  font-weight: 700;
  border-radius: var(--radius);
}

.time-slot {
  writing-mode: vertical-rl;
  text-orientation: mixed;
}

.day-cell {
  background: white;
  border: 2px solid #ddd;
  border-radius: var(--radius);
  min-height: 120px;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.day-cell:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.event-card {
  background: var(--green);
  color: white;
  padding: 0.5rem;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
}

.event-card:hover {
  transform: scale(1.05);
}

.event-card.two-events {
  font-size: 0.75rem;
  padding: 0.25rem;
}

/* Upcoming Events */
.events-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.event-item {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.event-item:hover {
  transform: translateY(-10px) rotate(1deg);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.event-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.event-item h3 {
  padding: 1rem;
  color: var(--blue);
  font-size: 1.3rem;
}

.event-item p {
  padding: 0 1rem 1rem;
  color: var(--gray);
}

/* Bookings Card */
.booking-card {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: 2rem auto;
  text-align: center;
  border: 3px solid var(--teal);
}

.booking-card p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
  color: var(--dark);
}

.booking-card strong {
  color: var(--teal);
}

/* Modal */
/* Modal – improved version */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);     /* modern touch, falls back gracefully */
  z-index: 2000;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.modal.show {   /* ← add this class in JS when opening */
  display: flex;
}

.modal-content {
  background: white;
  padding: 2rem;
  border-radius: var(--radius);
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: var(--shadow);
  animation: slideIn 0.3s ease-out;
}

.close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  font-size: 2.2rem;
  line-height: 1;
  color: var(--gray);
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s;
}

.close:hover,
.close:focus {
  color: var(--teal);
  transform: rotate(90deg);
  outline: none;
}

/* Optional: nicer button styling if you decide to use <button class="close"> */
.close:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

/* Modal content children – add these */
#modalTitle {
  margin: 0 0 1rem 0;
  color: var(--teal);
  font-size: 1.9rem;
  text-align: center;
}

#modalDesc {
  margin: 0 0 1.5rem 0;
  color: var(--dark);
  line-height: 1.65;
  font-size: 1.05rem;
}

#modalLink {
display: none;
  margin-top: 1.5rem;
  padding: 0.9rem 1.8rem;
  background: var(--teal);
  color: white;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

#modalLink:hover,
#modalLink:focus {
background: #008a8f;  /* darker teal */
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,161,167,0.3);
}

#modalLink:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

/* Footer */
footer {
  background: var(--dark);
  color: white;
  text-align: center;
  padding: 2rem 0;
  margin-top: 4rem;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links { display: none; }





 
  .hero h1 { font-size: 1.5rem; }

  .booking-card {
    padding: 1.5rem;
    margin: 1.5rem auto;
  }

.calendar-wrapper {
    margin: 1rem -1rem 0 -1rem; /* extend to full screen width beyond container padding */
    padding: 0 1rem; /* add internal padding for content */
  }

  .calendar-grid {
    grid-template-columns: 60px repeat(2, 1fr); /* smaller day column */
    gap: 0.3rem;
    min-width: 320px; /* fit typical phones; scroll only if needed */
  }

  .day-header,
  .time-slot {
    padding: 0.5rem 0.3rem;
    font-size: 0.8rem;
  }

  .time-slot {
    writing-mode: vertical-rl;
    text-orientation: mixed;
  }

  .day-cell {
    min-height: 70px;
    padding: 0.3rem;
    font-size: 0.8rem;
  }

  .event-card {
    font-size: 0.7rem;
    padding: 0.25rem;
  }

  .event-card.two-events {
    font-size: 0.6rem;
    padding: 0.15rem;
  }
}