/* css/style.css - Half Star Hotel shared styles */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@500;600;700&display=swap');

:root {
  --primary-dark: #333;
  --text: #333;
  --accent: #000;
  --card-border: #d0d0d0;
  --card-bg: #f9f9f9;
  --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', Arial, Helvetica, sans-serif;
  background-color: #ffffff;
  color: var(--text);
  line-height: 1.6;
}

/* Header */
header {
  background-color: #ffffff;
  border-bottom: 1px solid #ddd;
}

.header-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 20px 10px;
  text-align: center;
}

.hamburger {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  justify-content: space-between;
  width: 32px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  background: #000;
  height: 4px;
  width: 100%;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.logo-wrapper {
  display: inline-block;
  max-width: 30%;
  margin: 0 auto;
}

.logo-link {
  display: block;
}

.logo {
  max-width: 380px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

.desktop-nav {
  margin: 10px 0 25px;
}

.desktop-nav ul {
  display: flex;
  justify-content: center;
  gap: 60px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.desktop-nav ul li a {
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 1.25em;
  text-decoration: none;
  transition: all 0.2s;
}

.desktop-nav ul li a:hover,
.desktop-nav ul li a.active {
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.menu-toggle {
  display: none;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  background: white;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease;
}

.mobile-menu ul {
  list-style: none;
  text-align: center;
  padding: 0;
  margin: 0;
}

.mobile-menu ul li {
  margin: 40px 0;
}

.mobile-menu ul li a {
  color: #000;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.8em;
  font-weight: 700;
  text-decoration: none;
}

.mobile-menu ul li a.active,
.mobile-menu ul li a:hover {
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 8px;
}

.close-btn {
  position: absolute;
  top: 25px;
  right: 30px;
  font-size: 5em;
  font-weight: bold;
  color: #000;
  cursor: pointer;
}

/* Main content */
main {
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

section {
  margin-bottom: 70px;
  text-align: center;
}

h2, h4 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 20px;
}

/* Unified styling for all major feature images (hero + story + inspires) */
.hero-img,
.story-img,
.inspires-img {
  width: 100%;
  max-width: 800px;           /* All images capped at the same width */
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Hero band image section */
.hero-band {
  text-align: center;
  margin: 15px auto 50px auto;
  max-width: 1200px;
  padding: 0;
}

/* Story & Inspires sections */
.story-section,
.inspires-section {
  margin-bottom: 80px;
}

.story-container,
.inspires-container {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
}

.story-image,
.inspires-image {
  flex: 1 1 45%;
  min-width: 300px;
}

.story-text,
.inspires-text {
  flex: 1 1 50%;
  min-width: 300px;
}

/* Mobile: stack vertically, text first (respects HTML order) */
@media (max-width: 768px) {
  .hero-img,
  .story-img,
  .inspires-img {
    width: 100%;
    max-width: 100% !important;   /* Ensures no cap from desktop rule leaks in */
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }

  /* Optional: add some breathing room if they feel too edge-to-edge */
  .story-image,
  .inspires-image {
    padding: 0 10px;   /* tiny side padding on very small screens */
  }


  .story-text,
  .inspires-text {
    text-align: center;
  }

  .hero-img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  }

  .hero-band {
    padding: 0 10px;
    margin: 15px auto 35px auto;
  }
}

/* Desktop: alternate image/text sides */
@media (min-width: 769px) {
  .story-container {
    flex-direction: row;           /* image left, text right */
  }

  .inspires-container {
    flex-direction: row-reverse;   /* text left, image right */
  }
}

/* Band members */
.band-members {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto 60px auto;
}

.member {
  flex: 0 0 320px;
  width: 320px;
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 25px 20px;
  box-shadow: var(--card-shadow);
  transition: all 0.25s ease;
  text-align: center;
}

.member:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.member img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 16px;
}

.member h4 {
  margin: 12px 0 8px;
  font-size: 1.3em;
}

.member p {
  font-size: 0.98em;
  color: #555;
}

.social {
  margin-top: 40px;
  margin-bottom: 20px;
}

#meet-the-band {
  margin-top: 100px;
}

/* Events page styles */
.events {
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
}

.event {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid #ddd;
}

.event-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.event-date {
  font-size: 1.8rem;
  font-weight: 700;
  min-width: 110px;
}

.event-venue {
  font-size: 1.8rem;
  font-weight: 600;
  text-align: left;
}

@media (min-width: 641px) {
  .event {
    display: flex;
    align-items: flex-start;
    gap: 30px;
    padding: 18px 0;
    border-bottom: 1px solid #ddd;
  }

  .event-date {
    font-size: 1.8rem;
    font-weight: 700;
    min-width: 110px;
    line-height: 1.2;
  }

  .event-right {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    align-items: flex-start;
  }

  .event-venue {
    font-size: 1.6rem;
    font-weight: 600;
    opacity: 1;
    text-align: left;
  }

  .event-location,
  .event-address {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.75;
    line-height: 1.3;
    text-align: right;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .event {
    display: grid;
    grid-template-columns: 85px 1fr;
    grid-template-rows: auto auto auto;
    column-gap: 14px;
    row-gap: 2px;
    align-items: start;
    padding: 16px 0;
  }

  .event-date {
    grid-column: 1;
    grid-row: 1;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.2;
  }

  .event-venue {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.15rem;
    font-weight: 600;
    text-align: left;
  }

  .event-location {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.35;
    text-align: left;
  }

  .event-address {
    grid-column: 2;
    grid-row: 3;
    font-size: 0.9rem;
    opacity: 0.75;
    line-height: 1.35;
    text-align: left;
  }

  .event-left,
  .event-right {
    display: contents;
  }
}

/* Gallery videos */
.gallery-container {
  max-width: 1000px;
  margin: auto;
  padding: 10px;
}

.gallery-item {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #999;
  text-align: center;
}

.gallery-item:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.gallery-video {
  max-width: 768px;
  width: 100%;
  margin: 0 auto 16px auto;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
}

@media (max-width: 768px) {
  .gallery-container {
    max-width: 100%;
    padding: 20px 10px 40px;
  }

  .gallery-video {
    max-width: 100%;
    width: 100%;
    margin: 0 auto 16px auto;
  }
}

.gallery-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.gallery-details h2 {
  margin: 0 0 6px;
}

.gallery-details p {
  margin: 0 0 6px;
  line-height: 1.5;
}

/* Footer */
footer {
  background-color: #E8E6E6;
  color: black;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
  .hamburger {
    display: flex !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .logo-wrapper {
    max-width: 70vw;
  }

  .logo {
    max-width: 100%;
    max-height: 12vh;
    width: auto;
    height: auto;
    object-fit: contain;
  }

  .menu-toggle:checked ~ .mobile-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.4s ease;
  }

  .band-members {
    gap: 30px;
  }

  .member {
    flex: 0 0 100%;
    width: 100%;
    max-width: 360px;
  }

  #meet-the-band {
    margin-top: 60px;
  }

  .social {
    margin-top: 30px;
    margin-bottom: 15px;
  }
}

/* Contact form */
#contact {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 520px;
}

.contact-form label {
  text-align: left;
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-family: 'Inter', sans-serif;
  transition: all 0.2s ease;
}

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

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: #000;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
}

.send-btn {
  padding: 12px 40px;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  background: #000;
  color: white;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.send-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
  .form-group {
    max-width: 100%;
  }

  .send-btn {
    width: 100%;
  }
}

/* Photo Carousel */
.photo-carousel {
  max-width: 1000px;
  margin: 50px auto;
  padding: 0 10px;
}

.carousel-container {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 10px;
  width: 100%;
  min-height: 200px;
}

.carousel-container::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 250px;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  scroll-snap-align: start;
  transition: transform 0.2s ease;
}

.carousel-item:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  .carousel-container {
    gap: 10px;
  }

  .carousel-item {
    flex: 0 0 180px;
    height: 130px;
  }
}
