/* =========================================================
   Captain Kuniya - Main Stylesheet
   Theme: Light, ocean/beach inspired (Nusa Lembongan)
   ========================================================= */

:root {
  --color-ocean-deep: #0a6e8c;
  --color-ocean: #12a4c9;
  --color-ocean-light: #67d5ea;
  --color-sand: #fdf6e9;
  --color-sand-dark: #f2e4c8;
  --color-coral: #ff7a59;
  --color-text: #163043;
  --color-text-light: #4d6a7c;
  --color-white: #ffffff;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(10, 60, 80, 0.08);
  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 600; margin: 0 0 .5em; color: var(--color-ocean-deep); }
p { margin: 0 0 1em; }
a { color: var(--color-ocean-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 13px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-family: var(--font-heading);
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--color-ocean), var(--color-ocean-deep)); color: #fff; box-shadow: 0 8px 20px rgba(18,164,201,.35); }
.btn-outline { background: transparent; border: 2px solid var(--color-ocean); color: var(--color-ocean-deep); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header / Nav */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-heading); font-weight: 700; font-size: 1.2rem; color: var(--color-ocean-deep); }
.brand img { height: 40px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { font-weight: 500; color: var(--color-text); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--color-ocean-deep); border-color: var(--color-ocean); }
.nav-cta {
    color: #fff !important;
    padding: 8px 16px !important;
    border: none !important;
}
.lang-switch { display: flex; gap: 4px; align-items: center; font-weight: 600; font-size: .9rem; color: var(--color-text-light); }
.lang-switch a { padding: 2px 4px; }
.lang-switch a.active { color: var(--color-ocean-deep); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 26px; height: 3px; background: var(--color-ocean-deep); border-radius: 2px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 25px rgba(37,211,102,.45);
}

/* Hero */
.hero { position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,45,64,.55), rgba(6,45,64,.75)); }
.hero-content { position: relative; z-index: 2; max-width: 680px; }
.hero-content h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: .3em; }
.hero-content p { font-size: 1.15rem; margin-bottom: 1.6em; color: #e7f6fb; }
.wave-divider { position: absolute; bottom: -1px; left: 0; width: 100%; height: 80px; fill: var(--color-white); z-index: 1; }

.page-hero { position: relative; height: 40vh; min-height: 280px; display: flex; align-items: flex-end; color: #fff; }
.page-hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(6,45,64,.25), rgba(6,45,64,.75)); }
.page-hero-content { position: relative; z-index: 2; padding-bottom: 40px; }
.page-hero-content h1 { color: #fff; margin-bottom: .2em; }
.page-hero-content p { color: #e7f6fb; }

/* Sections */
.section-heading { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-heading p { color: var(--color-text-light); }
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.card { display: block; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(10,60,80,.14); }
.service-card-img, .post-card-img { height: 200px; overflow: hidden; }
.service-card-img img, .post-card-img img { width: 100%; height: 100%; object-fit: cover; }
.service-card-body, .post-card-body { padding: 22px; }
.service-card-body h3, .post-card-body h3 { margin-bottom: .3em; }
.price-tag { display: inline-block; background: var(--color-sand-dark); color: var(--color-ocean-deep); font-weight: 600; padding: 4px 12px; border-radius: 999px; font-size: .85rem; margin: 6px 0; }
.link-arrow { display: block; margin-top: 10px; font-weight: 600; color: var(--color-ocean); }

.services-section { background: var(--color-sand); }
.why-section { background: #fff; }
.why-card { text-align: center; padding: 30px 20px; }
.why-icon { font-size: 2.4rem; margin-bottom: 12px; }
.blog-teaser-section { background: var(--color-sand); }

.cta-section { background: linear-gradient(135deg, var(--color-ocean-deep), var(--color-ocean)); color: #fff; }
.cta-box { text-align: center; }
.cta-box h2, .cta-box p { color: #fff; }

/* Activity detail page */
.activity-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 40px; align-items: start; }
.activity-content img { border-radius: var(--radius); }
.mini-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mini-gallery img,
.mini-gallery video { border-radius: 12px; height: 140px; object-fit: cover; width: 100%; display: block; }
.activity-sidebar { position: sticky; top: 90px; }
.sidebar-card { background: var(--color-sand); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.sidebar-meta { list-style: none; padding: 0; margin: 0 0 16px; }
.sidebar-meta li { margin-bottom: 8px; }
.price-note { font-size: .85rem; color: var(--color-text-light); margin-top: 4px; }
.sidebar-link { display: block; padding: 6px 0; border-bottom: 1px solid var(--color-sand-dark); }

/* Contact / booking */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.booking-form-wrap { background: var(--color-sand); padding: 34px; border-radius: var(--radius); }
.form-group { margin-bottom: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .92rem; }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--color-sand-dark);
  font-family: var(--font-body); font-size: 1rem; background: #fff;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--color-ocean); }
.form-error { color: #c0392b; margin-top: 10px; }
.contact-info-wrap h3 { margin-bottom: 16px; }
.map-embed { margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.map-embed iframe { width: 100%; height: 260px; border: 0; }

/* Gallery */
.masonry-gallery { columns: 3; gap: 14px; }
.masonry-gallery figure {
  margin: 0 0 14px;
  break-inside: avoid;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  aspect-ratio: 4 / 3;
  background: var(--color-sand);
}
.masonry-gallery img,
.masonry-gallery video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* Blog */
.blog-single-container { max-width: 780px; margin: 0 auto; }
.blog-single-header { text-align: center; margin-bottom: 24px; }
.post-meta { color: var(--color-text-light); font-size: .9rem; }
.blog-single-img { border-radius: var(--radius); margin-bottom: 30px; width: 100%; max-height: 420px; object-fit: cover; }
.blog-single-content h2 { margin-top: 1.4em; }
.blog-single-cta { text-align: center; margin-top: 40px; }
.related-posts { background: var(--color-sand); }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 30px; }
.pagination a { padding: 8px 14px; border-radius: 8px; background: var(--color-sand); font-weight: 600; }
.pagination a.active { background: var(--color-ocean); color: #fff; }

.narrow-content { max-width: 780px; margin: 0 auto; }
.not-found-section { text-align: center; padding: 120px 0; }

/* Footer */
.site-footer { background: #0d3348; color: #cfe7ef; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 30px; padding-bottom: 40px; }
.footer-col h4 { color: #fff; margin-bottom: 14px; }
.footer-col a { display: block; color: #b7d7e2; margin-bottom: 8px; }
.brand-footer { color: #fff; margin-bottom: 12px; }
.social-links { display: flex; gap: 14px; margin-top: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 18px 0; text-align: center; font-size: .88rem; color: #93b8c5; }

/* Responsive */
@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .activity-layout, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .masonry-gallery { columns: 2; }
}
@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #fff; flex-direction: column; padding: 20px; box-shadow: 0 10px 20px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .masonry-gallery { columns: 1; }
}
