/* ═══════════════════════════════════════════════
   FAMILY TOURS — G K Travel
   Shared by family-tours.html, family-study-tour.html,
   singapore-bintan-family.html and the homepage section.
   Uses CSS variables defined in each page's main style block.
   ═══════════════════════════════════════════════ */

.family-hero {
  background-position: center;
}

/* ─── Family product cards ─── */
.family-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 48px;
}

@media (min-width: 768px) {
  .family-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

.family-card {
  background: var(--ivory);
  border: 1px solid var(--hairline);
  padding: clamp(28px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: border-color 0.35s ease, transform 0.35s ease;
}

.family-card:hover {
  border-color: rgba(201, 169, 110, 0.55);
  transform: translateY(-3px);
}

.family-card .family-kicker {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
}

.family-card h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  line-height: 1.2;
  color: var(--navy);
}

.family-card p {
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

.family-card .family-price {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--navy);
  margin-top: auto;
  line-height: 1.1;
}

.family-card .family-price span {
  font-family: var(--font-body);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.family-card .family-link {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.family-card .family-link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ─── Comparison table ─── */
.family-compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: 48px;
}

.family-compare th,
.family-compare td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--hairline);
  text-align: left;
  font-size: 0.9rem;
  vertical-align: top;
  line-height: 1.6;
}

.family-compare th {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--navy);
  font-size: 1rem;
  white-space: nowrap;
}

.family-compare td {
  color: var(--muted);
}

.family-compare tr:first-child th {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Day-by-day itinerary ─── */
.itinerary-list {
  max-width: 900px;
  margin: 0 auto;
}

.itinerary-day {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 24px;
  padding: 26px 0;
  border-top: 1px solid var(--hairline);
}

.itinerary-day:last-child {
  border-bottom: 1px solid var(--hairline);
}

.itinerary-day .day-index {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--gold);
  line-height: 1;
}

.itinerary-day .day-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 6px;
  line-height: 1.25;
}

.itinerary-day .day-body p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 8px;
}

.itinerary-day .day-meta {
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  line-height: 1.6;
}

/* ─── Price box and lists ─── */
.price-box {
  background: var(--cream);
  border-left: 3px solid var(--gold);
  padding: clamp(28px, 4vw, 40px);
  margin-bottom: 40px;
}

.price-box .price {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--navy);
  line-height: 1;
}

.price-box .price span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-box p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 12px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
  }
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 24px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.check-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 600;
}

/* ─── FAQ ─── */
.faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  padding: 24px 0;
  border-top: 1px solid var(--hairline);
}

.faq-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.faq-item h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
  color: var(--navy);
  margin-bottom: 8px;
  line-height: 1.3;
}

.faq-item p {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─── Mobile ─── */
@media (max-width: 767px) {
  .itinerary-day {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .family-compare {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .family-compare th,
  .family-compare td {
    min-width: 150px;
  }
}

/* ─── Homepage family section ─── */
.family-section {
  padding: clamp(80px, 10vw, 140px) 0;
  background: var(--cream);
  border-top: 1px solid var(--hairline);
}

.family-section .display-md {
  margin-bottom: 0;
}

.family-section-intro {
  max-width: 720px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-top: 16px;
}

.family-section .family-cards {
  margin-top: 40px;
}

.family-section-cta {
  text-align: center;
  margin-top: 40px;
}

.family-all-link {
  display: inline-block;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 3px;
}

.family-all-link:hover {
  color: var(--navy);
  border-color: var(--navy);
}

/* ─── Family product gallery ─── */
.family-gallery-group {
  margin-top: 40px;
}

.family-gallery-group h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--navy);
  margin-bottom: 14px;
}

.family-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .family-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
}

.family-gallery figure {
  margin: 0;
  background: var(--ivory);
  border: 1px solid var(--hairline);
  overflow: hidden;
}

.family-gallery img {
  width: 100%;
  height: auto;
  display: block;
}

.family-gallery figcaption {
  font-size: 0.64rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  line-height: 1.5;
}
