/* ========================================
   Cloud Paragliding Club — Main Stylesheet
   ======================================== */

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: #f4f6f9;
  color: #1f2937;
  line-height: 1.6;
}

/* --- Top Navigation Bar --- */
.topbar {
  background: #0f172a;
  color: #fff;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav a {
  color: #cbd5e1;
  text-decoration: none;
  margin-left: 16px;
  font-size: 13px;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: #38bdf8;
}

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.85) 0%, rgba(15, 23, 42, 0.9) 100%),
              url("../assets/hero-bg.jpeg") center / cover no-repeat;
  color: #fff;
  padding: 64px 20px;
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  margin-bottom: 10px;
}

.hero p {
  font-size: 14px;
  color: #e2e8f0;
  max-width: 560px;
  margin: 0 auto 20px;
}

.hero-btn {
  display: inline-block;
  background: #38bdf8;
  color: #0f172a;
  font-weight: 700;
  padding: 10px 22px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.hero-btn:hover {
  background: #7dd3fc;
}

/* --- Container & Section Titles --- */
.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 28px 16px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
  color: #0f172a;
}

/* --- Card Grid --- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: #fff;
  border-radius: 10px;
  padding: 0;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
  border: 1px solid #e5e7eb;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1);
  transform: translateY(-2px);
}

/* --- Card Image --- */
.card-img {
  width: 100%;
  height: 60px;
  overflow: hidden;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

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

.card-img + .tag {
  margin-top: 0;
}

.card > .tag,
.card > h3,
.card > p,
.card > .price {
  padding: 0 18px;
}

.card > .tag {
  padding-top: 14px;
  margin-bottom: 8px;
}

.card > h3 {
  padding-top: 0;
}

.card > p {
  margin-bottom: 10px;
}

.card > .price {
  padding-bottom: 18px;
}

.tag {
  display: inline-block;
  background: #e0f2fe;
  color: #0369a1;
  font-size: 12px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.card h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.card p {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 10px;
}

.price {
  font-size: 16px;
  font-weight: 700;
  color: #0284c7;
}

/* --- Info Box --- */
.info-box {
  background: #fff;
  border-radius: 10px;
  padding: 18px;
  border: 1px solid #e5e7eb;
  margin-bottom: 28px;
  font-size: 14px;
  color: #374151;
}

.info-box li {
  margin-left: 18px;
  margin-bottom: 6px;
}

/* Info Box with Image Layout */
.info-box--with-img {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 0;
  overflow: hidden;
}

.info-box__img {
  flex: 0 0 90px;
  height: 100%;
  min-height: 100px;
}

.info-box__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-box__content {
  flex: 1;
  padding: 18px 18px 18px 0;
}

/* --- Booking Wrapper (Image + Form) --- */
.booking-wrapper {
  display: flex;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 28px;
}

.booking-img {
  flex: 0 0 110px;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.booking-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  min-height: 140px;
}

.booking-img__caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(15, 23, 42, 0.75));
  color: #e2e8f0;
  font-size: 12px;
  padding: 24px 14px 12px;
  text-align: center;
}

.booking-box {
  flex: 1;
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.form-row {
  margin-bottom: 12px;
}

label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
}

input,
select {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  transition: border-color 0.2s ease;
}

input:focus,
select:focus {
  outline: none;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

button {
  width: 100%;
  background: #0284c7;
  color: #fff;
  border: none;
  padding: 11px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

button:hover {
  background: #0369a1;
}

/* --- Success Message --- */
.msg {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 6px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 13px;
  display: none;
}

/* --- Footer --- */
footer {
  text-align: center;
  color: #94a3b8;
  font-size: 12px;
  padding: 32px 16px 40px;
  background: #0f172a;
  margin-top: 12px;
}

footer a {
  color: #38bdf8;
  text-decoration: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .info-box--with-img {
    flex-direction: column;
  }

  .info-box__img {
    flex: none;
    width: 100%;
    min-height: 70px;
    max-height: 80px;
  }

  .info-box__content {
    padding: 18px;
  }

  .booking-wrapper {
    flex-direction: column;
  }

  .booking-img {
    flex: none;
    width: 100%;
  }

  .booking-img img {
    min-height: 70px;
    max-height: 90px;
  }
}

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .nav a {
    margin-left: 8px;
    margin-right: 8px;
  }

  .hero {
    padding: 40px 16px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .card-img {
    height: 50px;
  }
}
