/* ============================================================
   Ombak Travel & Tours - Demo oleh Webg
   Mobile-first, Poppins sahaja, tiada framework
   ============================================================ */

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Poppins";
  src: url("../fonts/poppins-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ocean: #0369A1;
  --ocean-dark: #075985;
  --ocean-tint: #E0F2FE;
  --aqua: #22D3EE;
  --sand: #FBF7EF;
  --white: #FFFFFF;
  --ink: #1E293B;
  --muted: #5B6B7C;
  --line: #E5E9EF;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-card: 0 4px 16px rgba(15, 60, 90, 0.08);
  --shadow-nav: 0 2px 12px rgba(15, 60, 90, 0.08);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

body {
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  padding-bottom: 52px; /* ruang untuk ribbon demo */
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ocean);
}

.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Tipografi ---------- */

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.9rem, 5.5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.1rem;
}

.section {
  padding: 64px 0;
}

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

.section-head {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-head p {
  color: var(--muted);
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ocean);
  background: var(--ocean-tint);
  border-radius: 999px;
  padding: 4px 14px;
  margin-bottom: 12px;
}

/* ---------- Butang ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 24px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn-primary {
  background: var(--ocean);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--ocean-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}

.btn-outline:hover {
  background: var(--ocean-tint);
}

.btn-wa::before {
  content: "";
  width: 18px;
  height: 18px;
  flex: none;
  background: currentColor;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5.1-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.5-.3-2.6.7.7-2.5-.3-.5A8 8 0 0 1 12 4zm-3 3.8c-.2 0-.5 0-.7.3-.2.3-.9.9-.9 2.1s.9 2.4 1 2.6c.2.2 1.8 2.9 4.5 3.9 2.2.9 2.7.7 3.2.7.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.6-.3l-2-.9c-.2-.1-.4-.1-.6.1l-.8 1c-.2.2-.3.2-.6.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4 0-.5.1-.7l.6-.7c.1-.2.1-.4 0-.6L9.9 8.2c-.1-.3-.3-.4-.5-.4h-.4z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 2a10 10 0 0 0-8.6 15.1L2 22l5.1-1.3A10 10 0 1 0 12 2zm0 2a8 8 0 1 1-4.2 14.8l-.5-.3-2.6.7.7-2.5-.3-.5A8 8 0 0 1 12 4zm-3 3.8c-.2 0-.5 0-.7.3-.2.3-.9.9-.9 2.1s.9 2.4 1 2.6c.2.2 1.8 2.9 4.5 3.9 2.2.9 2.7.7 3.2.7.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.6-.3l-2-.9c-.2-.1-.4-.1-.6.1l-.8 1c-.2.2-.3.2-.6.1a6.6 6.6 0 0 1-3.3-2.9c-.2-.4 0-.5.1-.7l.6-.7c.1-.2.1-.4 0-.6L9.9 8.2c-.1-.3-.3-.4-.5-.4h-.4z"/></svg>') no-repeat center / contain;
}

/* ---------- Nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-nav);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.brand svg {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav.open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav.open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

.nav.open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--white);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow-nav);
  padding: 12px 20px 20px;
}

.nav.open .nav-menu {
  display: block;
}

.nav-menu ul {
  list-style: none;
}

.nav-menu li a:not(.btn) {
  display: block;
  padding: 10px 4px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.nav-menu li a:not(.btn):hover {
  color: var(--ocean);
}

.nav-cta {
  margin-top: 14px;
}

.nav-cta .btn {
  width: 100%;
}

/* ---------- Hero ---------- */

.hero {
  background: linear-gradient(180deg, var(--ocean-tint) 0%, var(--white) 100%);
  padding: 56px 0 0;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  gap: 32px;
  align-items: center;
}

.hero-copy .eyebrow {
  background: var(--white);
}

.hero-copy p {
  color: var(--muted);
  margin: 16px 0 24px;
  max-width: 52ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-art svg {
  width: 100%;
}

/* ---------- Kad pakej ---------- */

.grid {
  display: grid;
  gap: 24px;
}

.pakej-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pakej-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(15, 60, 90, 0.12);
}

.pakej-media {
  position: relative;
}

.pakej-media svg {
  width: 100%;
}

.pakej-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ocean-dark);
  border-radius: 999px;
  padding: 3px 12px;
}

.pakej-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
  padding: 20px;
}

.pakej-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.pakej-harga {
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
}

.pakej-harga strong {
  display: block;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ocean);
}

.pakej-included {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

.pakej-included li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.pakej-included li::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--aqua);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 12.2 2.4 8.1l1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4z"/></svg>') no-repeat center / contain;
          mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M6.5 12.2 2.4 8.1l1.4-1.4 2.7 2.7 5.7-5.7 1.4 1.4z"/></svg>') no-repeat center / contain;
}

.pakej-body .btn {
  margin-top: auto;
}

/* ---------- Kenapa kami ---------- */

.kenapa-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.kenapa-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--ocean-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.kenapa-icon svg {
  width: 26px;
  height: 26px;
}

.kenapa-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ---------- Cara tempah ---------- */

.langkah {
  counter-reset: langkah;
}

.langkah-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 28px 24px 24px;
}

.langkah-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--ocean);
  color: var(--white);
  font-weight: 600;
  margin-bottom: 14px;
}

.langkah-card p {
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

.tempah-cta {
  text-align: center;
  margin-top: 36px;
}

/* ---------- Galeri ---------- */

.galeri-item {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  position: relative;
}

.galeri-item svg {
  width: 100%;
}

.galeri-label {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ocean-dark);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 999px;
  padding: 3px 12px;
}

/* ---------- Testimoni ---------- */

.testi-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.testi-stars {
  color: var(--aqua);
  letter-spacing: 2px;
  font-size: 0.95rem;
}

.testi-card blockquote {
  font-size: 0.95rem;
  color: var(--ink);
}

.testi-card figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

.testi-card figcaption strong {
  display: block;
  font-weight: 600;
  color: var(--ink);
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.98rem;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 16px 18px;
  cursor: pointer;
}

.faq-q .faq-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ocean-tint);
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 18px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.faq-a[hidden] {
  display: none;
}

/* ---------- Hubungi ---------- */

.hubungi-grid {
  display: grid;
  gap: 32px;
}

.hubungi-info ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.hubungi-info li strong {
  color: var(--ink);
  font-weight: 600;
}

.hubungi-map {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.hubungi-map svg {
  width: 100%;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--ocean-dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 40px 0;
  font-size: 0.88rem;
}

.footer .brand {
  color: var(--white);
  margin-bottom: 10px;
}

.footer p {
  max-width: 60ch;
}

.footer-legal {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.65);
}

/* ---------- Ribbon demo Webg ---------- */

.demo-ribbon {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.9);
  text-align: center;
  font-size: 0.82rem;
  padding: 10px 16px;
}

.demo-ribbon a {
  color: var(--aqua);
  font-weight: 600;
  text-decoration: underline;
}

/* ---------- Tablet & desktop ---------- */

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

@media (min-width: 900px) {
  .section {
    padding: 88px 0;
  }

  .nav-toggle {
    display: none;
  }

  .nav-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    position: static;
    border: 0;
    box-shadow: none;
    padding: 0;
    background: none;
  }

  .nav-menu ul {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .nav-menu li a:not(.btn) {
    border-bottom: 0;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .nav-cta {
    margin: 0 0 0 8px;
  }

  .nav-cta .btn {
    width: auto;
    padding: 9px 20px;
    font-size: 0.88rem;
  }

  .hero {
    padding: 72px 0 0;
  }

  .hero-inner {
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .hubungi-grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}
