/* ============================================
   GEELONG MASONIC CENTRE — VENUE HIRE WEBSITE
   styles.css — Design System & All Styles
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* --- CSS Custom Properties --- */
:root {
  --bg-main: #faf8f5;
  --bg-card: #ffffff;
  --bg-alt: #f0ebe3;
  --bg-dark: #2d2d2d;
  --primary: #c75b39;
  --primary-hover: #a84828;
  --primary-light: #f4ded6;
  --secondary: #d4a853;
  --secondary-light: #f5e6c0;
  --text-primary: #2d2d2d;
  --text-secondary: #6b6b6b;
  --text-light: #999999;
  --text-white: #ffffff;
  --success: #4caf50;
  --error: #e53935;
  --border: #e0dbd3;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
  --shadow-hover: 0 8px 30px rgba(199,91,57,0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1200px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-hover); }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Header / Navigation --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}

.header.scrolled { box-shadow: var(--shadow-md); }

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo span { color: var(--primary); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  display: block;
  padding: 8px 20px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 50px;
  transition: all var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
  background: var(--primary-light);
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition);
}

.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Hero Section --- */
.hero {
  position: relative;
  height: 85vh;
  min-height: 550px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 72px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(20,20,30,0.7) 0%,
    rgba(30,40,50,0.55) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 700px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.15;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.hero-content p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.9);
  margin-bottom: 12px;
  font-weight: 300;
}

.hero-address {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.75);
  margin-bottom: 32px;
}

.hero-address svg { vertical-align: middle; margin-right: 4px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 36px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--text-white);
  box-shadow: 0 4px 15px rgba(199,91,57,0.35);
}

.hero .btn-primary {
  background: #2a9d8f;
  box-shadow: 0 4px 15px rgba(42,157,143,0.45);
}

.hero .btn-primary:hover {
  background: #21867a;
  box-shadow: 0 6px 25px rgba(42,157,143,0.55);
}

.btn-primary:hover {
  background: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(199,91,57,0.45);
}

.btn-secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.btn-secondary:hover {
  background: var(--primary);
  color: var(--text-white);
  transform: translateY(-2px);
}

/* --- Section Styles --- */
.section {
  padding: 80px 0;
}

.section-alt { background: var(--bg-alt); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  border-radius: 3px;
  margin: 16px auto 0;
}

/* --- Step Indicator --- */
.steps-indicator {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-secondary);
  transition: all var(--transition);
  flex-shrink: 0;
}

.step-item.active .step-number {
  background: var(--primary);
  color: white;
  box-shadow: 0 3px 12px rgba(199,91,57,0.3);
}

.step-item.completed .step-number {
  background: var(--success);
  color: white;
}

.step-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.step-item.active .step-label { color: var(--text-primary); }

.step-connector {
  width: 40px;
  height: 2px;
  background: var(--border);
  align-self: center;
}

/* --- Room Selection Grid --- */
.room-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.room-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.room-card:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.room-card.selected {
  border-color: var(--primary);
  background: var(--primary-light);
  box-shadow: var(--shadow-hover);
}

.room-card.disabled {
  opacity: 0.5;
  pointer-events: none;
}

.room-card-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  background: white;
}

.room-card.selected .room-card-check {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.room-card-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.room-card h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.room-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.room-card.whole-building {
  grid-column: 1 / -1;
  background: linear-gradient(135deg, var(--secondary-light) 0%, var(--bg-card) 100%);
  border-color: var(--secondary);
}

.room-card.whole-building.selected {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  color: white;
}

.room-card.whole-building.selected h3,
.room-card.whole-building.selected p { color: white; }

/* --- Floor Plan --- */
.floor-plan-section {
  margin: 40px 0;
  text-align: center;
}

.floor-plan-wrapper {
  display: inline-block;
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  cursor: zoom-in;
  max-width: 700px;
  transition: transform var(--transition);
}

.floor-plan-wrapper:hover { transform: scale(1.01); }

.floor-plan-wrapper img { display: block; width: 100%; }

.floor-plan-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 12px;
}

/* --- Calendar --- */
.calendar-container {
  max-width: 420px;
  margin: 0 auto 40px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--primary);
  color: white;
}

.calendar-header h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 600;
}

.calendar-nav {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
  font-size: 1.1rem;
}

.calendar-nav:hover { background: rgba(255,255,255,0.35); }

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 12px 16px 8px;
  border-bottom: 1px solid var(--border);
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 8px 16px 16px;
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 500;
  border: none;
  background: none;
  color: var(--text-primary);
}

.calendar-day:hover:not(.disabled):not(.empty) {
  background: var(--primary-light);
  color: var(--primary);
}

.calendar-day.today {
  border: 2px solid var(--primary);
  font-weight: 700;
}

.calendar-day.selected {
  background: var(--primary);
  color: white;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(199,91,57,0.35);
}

.calendar-day.in-range {
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 4px;
}

.calendar-day.range-start { border-radius: 50% 4px 4px 50%; }
.calendar-day.range-end { border-radius: 4px 50% 50% 4px; }

.calendar-day.disabled {
  color: var(--text-light);
  opacity: 0.4;
  cursor: not-allowed;
}

.calendar-day.empty {
  cursor: default;
}

.date-display {
  text-align: center;
  margin: 16px 0;
  padding: 12px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.date-display strong { color: var(--primary); }

/* --- Contact / Booking Form --- */
.booking-form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--error);
  margin-left: 2px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-main);
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(199,91,57,0.1);
}

.form-input::placeholder { color: var(--text-light); }

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-error {
  font-size: 0.8rem;
  color: var(--error);
  margin-top: 4px;
  display: none;
}

.form-group.error .form-input { border-color: var(--error); }
.form-group.error .form-error { display: block; }

.btn-submit {
  width: 100%;
  padding: 16px;
  font-size: 1.05rem;
  margin-top: 8px;
}

/* --- Success Message --- */
.booking-success {
  display: none;
  text-align: center;
  padding: 48px 24px;
  max-width: 500px;
  margin: 0 auto;
}

.booking-success.show { display: block; }

.success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--success);
  color: white;
  font-size: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  animation: scaleIn 0.5s ease;
}

.booking-success h3 {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.booking-success p {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

@keyframes scaleIn {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.2); }
  100% { transform: scale(1); opacity: 1; }
}

/* --- Placeholder / Coming Soon Sections --- */
.coming-soon-content {
  text-align: center;
  padding: 40px 24px;
}

.coming-soon-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: 0.7;
}

.coming-soon-content h3 {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.coming-soon-content p {
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
}

.coming-soon-badge {
  display: inline-block;
  padding: 6px 18px;
  background: var(--secondary-light);
  color: var(--secondary);
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 20px;
}

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.contact-item:last-child { margin-bottom: 0; }

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.contact-item h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.contact-item p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 300px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: none;
}

/* --- Footer --- */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 8px;
}

.footer-brand p {
  font-size: 0.85rem;
  max-width: 300px;
}

.footer-links h4 {
  color: white;
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.footer-links ul {
  list-style: none;
}

.footer-links a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  padding: 4px 0;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--secondary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
}

/* --- Lightbox / Modal --- */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.9);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
  animation: fadeIn 0.3s ease;
}

.lightbox.active { display: flex; }

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

.lightbox-close:hover { background: rgba(255,255,255,0.3); }

/* --- Animations --- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Loading Spinner --- */
.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.btn.loading { pointer-events: none; opacity: 0.8; }

/* --- Responsive Design --- */
@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 16px 24px 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }

  .nav-links.open { display: flex; }

  .hamburger { display: flex; }

  .hero { height: 70vh; min-height: 450px; }
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 56px 0; }

  .room-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .room-card { padding: 16px; }
  .room-card.whole-building { grid-column: 1 / -1; }

  .form-row { grid-template-columns: 1fr; }

  .booking-form { padding: 24px; }

  .contact-grid { grid-template-columns: 1fr; }

  .footer-content { flex-direction: column; }

  .steps-indicator { flex-direction: column; align-items: center; }
  .step-connector { width: 2px; height: 20px; }
}

@media (max-width: 480px) {
  .room-grid { grid-template-columns: 1fr; }
  .hero { height: 60vh; }
  .container { padding: 0 16px; }
}
