:root {
  --ccs-navy: #082c55;
  --ccs-blue: #139bd7;
  --ccs-sky: #c7f0ff;
  --ccs-coral: #ff6f61;
  --ccs-sun: #ffbd14;
  --ccs-cream: #fff8e9;
  --ccs-paper: #fffdf7;
  --ccs-ink: #102a43;
  --ccs-muted: #53677b;
  --ccs-line: #e6e4dc;
  --ccs-shadow: 0 18px 50px rgba(8, 44, 85, 0.12);
  --ccs-radius: 28px;
}

html { scroll-behavior: smooth; }
body {
  color: var(--ccs-ink);
  background:
    radial-gradient(circle at 4% 2%, rgba(199, 240, 255, .8), transparent 24rem),
    radial-gradient(circle at 98% 6%, rgba(255, 111, 97, .18), transparent 19rem),
    linear-gradient(180deg, var(--ccs-cream), var(--ccs-paper) 52%, #fff);
  font-family: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4, .nav-link, .btn-book-nav, button, .btn-primary,
.btn-secondary, .btn-banner, .btn-whatsapp, .book-search-btn, .detail-link {
  font-family: "Fredoka", "Nunito", sans-serif;
}

a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--ccs-blue); outline-offset: 3px; }
.container { width: min(1200px, calc(100% - 32px)); }
.skip-link {
  position: fixed; left: 16px; top: -80px; z-index: 2000; padding: 12px 18px;
  background: var(--ccs-navy); color: #fff; border-radius: 999px;
}
.skip-link:focus { top: 12px; }

.mesh-bg { display: none; }
.site-header { top: 16px; padding: 0; z-index: 1000; }
.header-glass-bar {
  width: min(1200px, calc(100% - 32px)); min-height: 68px; padding: 8px 12px 8px 18px;
  border: 1px solid rgba(8, 44, 85, .08); border-radius: 999px;
  background: rgba(255, 255, 255, .94); box-shadow: 0 12px 32px rgba(8, 44, 85, .13);
  backdrop-filter: blur(14px);
}
.header-glass-bar > a:first-child { display: inline-flex; align-items: center; gap: 8px; color: var(--ccs-navy); text-decoration: none; }
.header-glass-bar > a:first-child::after { content: "CCS Homestay Malaysia"; font-family: "Fredoka", sans-serif; font-size: 1.02rem; font-weight: 600; white-space: nowrap; }
.brand-logo { width: 70px; height: 46px; object-fit: contain; object-position: left center; }
.nav-menu { gap: 8px; }
.nav-link { color: var(--ccs-navy); font-size: .98rem; font-weight: 600; padding: 11px 15px; border-radius: 999px; }
.nav-link:hover, .nav-link.active { color: var(--ccs-navy); background: #fff4d7; }
.btn-book-nav {
  min-height: 48px; display: inline-flex; align-items: center; gap: 8px; padding: 0 22px;
  border-radius: 999px; color: var(--ccs-navy); background: var(--ccs-sun);
  box-shadow: 0 8px 20px rgba(255, 189, 20, .32); font-weight: 700;
}
.btn-book-nav:hover { color: var(--ccs-navy); background: #ffc92d; transform: translateY(-1px); }
.mobile-toggle { color: var(--ccs-navy); width: 48px; height: 48px; }

.family-hero { padding: 22px 0 0; }
.hero-board {
  width: min(1480px, calc(100% - 32px)); margin: 0 auto; padding: 12px;
  display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(320px, .85fr); gap: 12px;
  border-radius: 38px; background: rgba(255, 255, 255, .74); box-shadow: var(--ccs-shadow);
}
.hero-story {
  position: relative; isolation: isolate; min-height: 590px; overflow: hidden; border-radius: 30px;
  display: flex; align-items: center; background: url("hero-family.jpg") 64% center / cover no-repeat;
}
.hero-story::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(255, 248, 233, .98) 0%, rgba(255, 248, 233, .92) 32%, rgba(255, 248, 233, .62) 43%, rgba(255, 248, 233, .12) 55%, rgba(255, 248, 233, 0) 66%);
}
.hero-copy { width: min(620px, 64%); padding: 64px 34px 64px 58px; }
.eyebrow { display: block; margin-bottom: 14px; color: var(--ccs-blue); font-weight: 800; font-size: .82rem; letter-spacing: .18em; text-transform: uppercase; }
.hero-copy h1 { color: var(--ccs-navy); font-size: clamp(3rem, 5vw, 5.4rem); line-height: .98; letter-spacing: -.04em; margin: 0 0 20px; }
.hero-copy h1 strong { display: block; color: var(--ccs-coral); font-weight: 700; }
.hero-copy p { max-width: 520px; color: var(--ccs-ink); font-size: clamp(1.03rem, 1.3vw, 1.24rem); line-height: 1.5; margin: 0; }
.hero-note { display: inline-flex; align-items: center; gap: 9px; margin-top: 28px; color: var(--ccs-navy); font-family: "Fredoka", sans-serif; font-weight: 600; }
.hero-note::before { content: ""; width: 36px; height: 5px; border-radius: 10px; background: var(--ccs-sun); transform: rotate(-12deg); }

.hero-features { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 12px; }
.hero-feature {
  position: relative; min-height: 0; overflow: hidden; border-radius: 24px; background: var(--ccs-sky);
}
.hero-feature img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-feature::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(8, 44, 85, .88)); }
.hero-feature span {
  position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 2; color: #fff;
  font-family: "Fredoka", sans-serif; font-weight: 600; font-size: clamp(.9rem, 1.2vw, 1.1rem); line-height: 1.2;
}
.hero-feature:nth-child(1) span::before, .hero-feature:nth-child(4) span::before {
  content: ""; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border-radius: 50%; background: var(--ccs-sun);
}

.booking-shell { position: relative; z-index: 4; margin-top: -44px; }
.booking-bar-wrapper { padding: 0; background: transparent; box-shadow: none; }
.booking-bar {
  background: rgba(255,255,255,.98); border: 1px solid rgba(8, 44, 85, .08); border-radius: 26px;
  box-shadow: var(--ccs-shadow); padding: 12px; gap: 0; align-items: stretch;
}
.book-field { min-width: 0; padding: 8px 20px; border-right: 1px solid var(--ccs-line); }
.book-field:last-of-type { border-right: 0; }
.book-label { color: #617084; font-size: .73rem; letter-spacing: .08em; }
.book-input { min-height: 36px; color: var(--ccs-navy); font-size: .97rem; font-weight: 700; }
.book-search-btn {
  width: auto; min-width: 190px; min-height: 58px; padding: 0 24px; border-radius: 999px;
  color: var(--ccs-navy); background: var(--ccs-sun); font-size: 1.04rem; font-weight: 700;
  box-shadow: 0 8px 22px rgba(255, 189, 20, .32);
}
.book-search-btn:hover { background: #ffc92d; transform: translateY(-1px); }
.booking-assurance { margin: 12px 0 0; text-align: center; color: var(--ccs-muted); font-size: .86rem; }

.home-section { padding: 78px 0; }
.home-section.compact { padding-top: 42px; }
.section-kicker { color: var(--ccs-blue); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; }
.home-heading { margin: 5px 0 12px; color: var(--ccs-navy); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.035em; }
.home-heading .coral { color: var(--ccs-coral); }
.home-intro { max-width: 720px; margin: 0; color: var(--ccs-muted); font-size: 1.08rem; }
.title-row { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.title-row .scribble { color: var(--ccs-blue); font-family: "Fredoka", sans-serif; font-weight: 500; transform: rotate(-2deg); }

.adventure-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.adventure-card {
  position: relative; min-height: 0; overflow: hidden; border-radius: 24px; color: #fff; background: var(--ccs-navy);
  box-shadow: 0 14px 30px rgba(8, 44, 85, .13); text-decoration: none;
}
.adventure-card img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: contain; display: block; background: #edf5f8; }
.adventure-card .card-label { position: relative; display: block; padding: 16px 74px 18px 20px; z-index: 2; }
.adventure-card strong { display: block; font-family: "Fredoka", sans-serif; font-size: 1.55rem; line-height: 1.15; }
.adventure-card small { display: block; margin-top: 4px; font-size: .9rem; color: #edf7ff; }
.round-arrow { position: absolute; right: 18px; bottom: 18px; z-index: 3; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ccs-coral); color: #fff; font-size: 1.35rem; }

.promise-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.promise-item { padding: 20px; border: 1px solid var(--ccs-line); border-radius: 20px; background: rgba(255,255,255,.8); }
.promise-item strong { display: block; color: var(--ccs-navy); font-family: "Fredoka", sans-serif; font-size: 1.05rem; }
.promise-item span { color: var(--ccs-muted); font-size: .9rem; }

.area-compare { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-choice { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--ccs-line); box-shadow: 0 12px 28px rgba(8, 44, 85, .07); }
.area-choice:nth-child(1) { border-top: 7px solid var(--ccs-sun); }
.area-choice:nth-child(2) { border-top: 7px solid var(--ccs-coral); }
.area-choice:nth-child(3) { border-top: 7px solid var(--ccs-blue); }
.area-choice h3 { color: var(--ccs-navy); font-size: 1.55rem; margin: 0 0 8px; }
.area-choice p { color: var(--ccs-muted); margin: 0 0 18px; }
.area-choice ul { margin: 0 0 22px; padding-left: 20px; color: var(--ccs-ink); }
.area-choice a { color: var(--ccs-navy); font-weight: 800; }

.stay-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.stay-card { overflow: hidden; border-radius: 24px; background: #fff; border: 1px solid var(--ccs-line); box-shadow: 0 12px 30px rgba(8, 44, 85, .08); }
.stay-card img { width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; display: block; }
.stay-card-body { padding: 22px; }
.stay-card .location { color: var(--ccs-blue); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.stay-card h3 { margin: 5px 0 8px; color: var(--ccs-navy); font-size: 1.5rem; }
.stay-card p { color: var(--ccs-muted); margin: 0 0 18px; }
.stay-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.detail-link, .btn-primary, .btn-secondary {
  min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 18px;
  border-radius: 999px; font-weight: 700; text-decoration: none;
}
.detail-link, .btn-primary { color: var(--ccs-navy); background: var(--ccs-sun); }
.detail-link:hover, .btn-primary:hover { color: var(--ccs-navy); background: #ffc92d; }
.btn-secondary { color: var(--ccs-navy); border: 1px solid #b9c6d2; background: #fff; }

.review-band { display: grid; grid-template-columns: 1.15fr .85fr; gap: 20px; padding: 34px; border-radius: 30px; background: var(--ccs-navy); color: #fff; }
.review-band h2 { color: #fff; margin: 0 0 10px; font-size: clamp(2rem, 3vw, 3rem); }
.review-band blockquote { margin: 0; padding: 24px; border-radius: 22px; background: rgba(255,255,255,.1); font-size: 1.08rem; }
.review-band cite { display: block; margin-top: 12px; color: var(--ccs-sky); font-style: normal; font-weight: 700; }
.review-band .review-copy p { color: #dceaf5; max-width: 540px; }
.review-band .review-copy a { color: var(--ccs-navy); background: var(--ccs-sun); }

.faq-shell { display: grid; grid-template-columns: .8fr 1.2fr; gap: 36px; align-items: start; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--ccs-line); border-radius: 18px; background: #fff; overflow: hidden; }
.faq-question { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; color: var(--ccs-navy); background: #fff; border: 0; text-align: left; font-weight: 650; cursor: pointer; }
.faq-question::after { content: "+"; font-size: 1.4rem; color: var(--ccs-coral); }
.faq-question[aria-expanded="true"]::after { content: "−"; }
.faq-answer { display: none; padding: 0 18px 18px; color: var(--ccs-muted); }
.faq-question[aria-expanded="true"] + .faq-answer { display: block; }

.cta-sun { position: relative; overflow: hidden; padding: 50px; border-radius: 32px; background: var(--ccs-sun); color: var(--ccs-navy); }
.cta-sun::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -70px; bottom: -120px; background: var(--ccs-sky); }
.cta-sun h2 { margin: 0 0 8px; color: var(--ccs-navy); font-size: clamp(2rem, 3.6vw, 3.4rem); }
.cta-sun p { max-width: 700px; margin: 0 0 22px; font-size: 1.06rem; }
.cta-sun a { position: relative; z-index: 2; color: #fff; background: var(--ccs-navy); }

/* Existing interior pages inherit the new family visual system. */
main > .hero { padding-top: 54px !important; }
.hero h1, .section-header h2, .area-title { color: var(--ccs-navy); }
.text-gradient, .text-gold { color: var(--ccs-coral); background: none; -webkit-text-fill-color: currentColor; }
.tagline { color: var(--ccs-blue); background: #eaf8ff; border-color: #c7edfc; }
.copy-block, .feature-card, .prop-card, .review-card, .contact-card, .faq-item, .area-hero, .banner-card { border-radius: 24px; }
.feature-card, .prop-card, .review-card, .contact-card { border-color: var(--ccs-line); box-shadow: 0 12px 30px rgba(8, 44, 85, .07); }
.prop-card .img-container { background: #e7f6fc; }
.prop-card .card-body h4 a { color: var(--ccs-navy); text-decoration: none; }
.prop-card .card-body h4 a:hover { color: var(--ccs-coral); }
.prop-card .detail-link { width: 100%; margin: 0 0 10px; }
.pill { color: var(--ccs-navy); background: #edf8fd; }
.btn-gallery, .btn-book-dates, .btn-whatsapp, .btn-banner { min-height: 46px; border-radius: 999px; }
.btn-book-dates, .btn-whatsapp { background: var(--ccs-sun); color: var(--ccs-navy); }
.btn-gallery, .btn-outline { color: var(--ccs-navy); border-color: #b9c6d2; }
.btn-plat { border-radius: 999px; }
.area-hero { overflow: hidden; background: #fff; border: 1px solid var(--ccs-line); }
.area-hero-tag { color: var(--ccs-blue); }
.footer { background: var(--ccs-navy); }
.footer, .footer p, .footer-nap { color: #dceaf5; }
.footer a { color: var(--ccs-sky); }

/* New location and unit pages. */
.inner-hero { padding: 54px 0; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: var(--ccs-muted); font-size: .9rem; }
.breadcrumb a { color: var(--ccs-navy); }
.inner-hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; align-items: center; }
.inner-hero h1 { margin: 8px 0 16px; color: var(--ccs-navy); font-size: clamp(2.7rem, 5vw, 4.8rem); line-height: 1; letter-spacing: -.04em; }
.inner-hero p { color: var(--ccs-muted); font-size: 1.1rem; }
.inner-hero img { width: 100%; height: auto; object-fit: cover; border-radius: 30px; box-shadow: var(--ccs-shadow); }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; }
.quick-fact { padding: 15px; border-radius: 16px; background: #fff; border: 1px solid var(--ccs-line); }
.quick-fact strong { display: block; color: var(--ccs-navy); font-family: "Fredoka", sans-serif; }
.quick-fact span { color: var(--ccs-muted); font-size: .85rem; }
.gallery-mosaic { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: start; }
.gallery-mosaic img { width: 100%; height: auto; object-fit: contain; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px rgba(8, 44, 85, .08); }
.gallery-mosaic img:first-child { grid-column: span 2; }
.content-two { display: grid; grid-template-columns: 1.3fr .7fr; gap: 32px; align-items: start; }
.content-card { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--ccs-line); }
.content-card h2, .content-card h3 { color: var(--ccs-navy); }
.sticky-book { position: sticky; top: 108px; }
.bed-layout { display: grid; gap: 10px; padding: 0; list-style: none; }
.bed-layout li { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--ccs-line); }
.bed-layout strong { color: var(--ccs-navy); }
.unit-nearby { margin: 0; padding-left: 20px; }
.location-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.location-summary .content-card { height: 100%; }

@media (max-width: 1100px) {
  .nav-link { padding-inline: 10px; font-size: .9rem; }
  .hero-board { grid-template-columns: 1.75fr .9fr; }
  .hero-story { min-height: 530px; }
  .hero-copy { width: 70%; padding-left: 42px; }
  .booking-bar { grid-template-columns: repeat(2, 1fr); }
  .book-field:nth-child(2) { border-right: 0; }
  .book-search-btn { grid-column: 1 / -1; width: 100%; }
}

@media (max-width: 900px) {
  .site-header { top: 10px; }
  .header-glass-bar { border-radius: 24px; }
  .nav-menu { top: calc(100% + 8px); border-radius: 22px; background: #fff; box-shadow: var(--ccs-shadow); }
  .hero-board { grid-template-columns: 1fr; }
  .hero-story { min-height: 560px; }
  .hero-features { grid-template-rows: repeat(2, 180px); }
  .booking-shell { margin-top: 18px; }
  .adventure-grid, .area-compare, .stay-grid, .promise-strip { grid-template-columns: repeat(2, 1fr); }
  .review-band, .faq-shell, .inner-hero-grid, .content-two { grid-template-columns: 1fr; }
  .sticky-book { position: static; }
  .location-summary { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); }
  .gallery-mosaic img:first-child { grid-column: span 2; }
}

@media (max-width: 640px) {
  .container, .hero-board, .header-glass-bar { width: min(100% - 20px, 1200px); }
  .family-hero { padding-top: 12px; }
  .hero-board { padding: 7px; border-radius: 28px; }
  .hero-story { min-height: 520px; align-items: flex-end; background-position: 56% center; border-radius: 22px; }
  .hero-story::before { background: linear-gradient(0deg, rgba(255,248,233,.99) 0%, rgba(255,248,233,.94) 50%, rgba(255,248,233,.06) 82%); }
  .hero-copy { width: 100%; padding: 200px 24px 30px; }
  .hero-copy h1 { font-size: clamp(2.75rem, 14vw, 4.2rem); }
  .hero-copy p { font-size: 1rem; }
  .hero-features { grid-template-rows: repeat(2, 148px); gap: 7px; }
  .hero-feature { border-radius: 18px; }
  .hero-feature span { left: 10px; bottom: 10px; font-size: .82rem; }
  .booking-bar { display: grid; grid-template-columns: 1fr; padding: 8px; border-radius: 22px; }
  .book-field, .book-field:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--ccs-line); padding: 10px 14px; }
  .book-search-btn { min-width: 0; margin-top: 8px; }
  .home-section { padding: 58px 0; }
  .title-row { display: block; }
  .title-row .scribble { margin-top: 10px; }
  .adventure-grid, .area-compare, .stay-grid, .promise-strip { grid-template-columns: 1fr; }
  .adventure-card { min-height: 0; }
  .review-band, .cta-sun { padding: 26px; border-radius: 24px; }
  .quick-facts { grid-template-columns: 1fr; }
  .gallery-mosaic { grid-template-columns: 1fr; }
  .gallery-mosaic img:first-child { grid-column: auto; }
  .inner-hero { padding-top: 40px; }
  main > .hero { padding-top: 40px !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
