/* ==========================================================================
   Visawa Beach Resort & Hotel -- Public Site Stylesheet
   Design language: sunny coastal / hand-painted resort signage.
   Palette drawn from the resort's own sun logo (coral sun, gold core,
   palm green wordmark) rather than a generic template palette.
   ========================================================================== */

:root {
  --sand:        #FBF3E3;
  --sand-dim:     #F3E8D2;
  --ocean-deep:  #0E4A44;
  --ocean-deep-2:#0A3733;
  --sun-coral:   #E2492E;
  --sun-coral-dark:#C43A22;
  --sun-gold:    #F5A623;
  --palm:        #2E7D4F;
  --palm-dark:   #1F5C38;
  --ink:         #20302A;
  --ink-soft:    #4B5A54;
  --white:       #FFFFFF;
  --line:        rgba(14, 74, 68, 0.14);
  --shadow:      0 12px 30px rgba(14, 32, 28, 0.14);
  --radius-lg:   26px;
  --radius-md:   16px;
  --radius-sm:   10px;
  --font-display: 'Baloo 2', 'Fredoka', system-ui, sans-serif;
  --font-body:    'Work Sans', 'Inter', system-ui, sans-serif;
  --container:   1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ocean-deep);
  line-height: 1.12;
  margin: 0 0 .4em;
  font-weight: 700;
}
h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.4rem; }
p { margin: 0 0 1em; color: var(--ink-soft); }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 3px solid var(--sun-gold); outline-offset: 3px; }

/* Skip link */
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--ocean-deep); color: #fff;
  padding: 10px 16px; z-index: 999; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 26px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--sun-coral); color: #fff; box-shadow: 0 8px 20px rgba(226,73,46,.35); }
.btn-primary:hover { background: var(--sun-coral-dark); }
.btn-outline { background: transparent; border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: rgba(255,255,255,.15); }
.btn-dark { background: var(--ocean-deep); color: #fff; }
.btn-dark:hover { background: var(--ocean-deep-2); }
.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ---------- Eyebrow / section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; letter-spacing: .04em;
  color: var(--sun-coral); text-transform: uppercase; font-size: .82rem; margin-bottom: 10px;
}
.eyebrow::before {
  content: ''; width: 20px; height: 20px; background: var(--sun-gold);
  clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}
.section-head { max-width: 640px; margin: 0 auto 44px; text-align: center; }
.section-head.align-left { margin-left: 0; text-align: left; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 200; background: rgba(251,243,227,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.topbar {
  background: var(--ocean-deep); color: #eaf4f1; font-size: .82rem;
}
.topbar .container { display: flex; justify-content: space-between; align-items: center; padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; gap: 6px;}
.topbar a { color: #eaf4f1; }
.topbar-links { display: flex; gap: 18px; }
.topbar-links a:hover { color: var(--sun-gold); }
.navbar { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); }
.brand img { height: 52px; width: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; color: var(--ocean-deep); }
.brand-text span { font-size: .72rem; color: var(--sun-coral); font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 28px; font-weight: 600; }
.nav-links a { padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { border-color: var(--sun-coral); color: var(--sun-coral); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.6rem; cursor: pointer; color: var(--ocean-deep); }

@media (max-width: 900px) {
  .nav-links { position: fixed; inset: 0 0 0 auto; width: min(80vw, 320px); height: 100vh;
    background: var(--sand); flex-direction: column; align-items: flex-start; padding: 90px 28px 28px;
    box-shadow: -10px 0 30px rgba(0,0,0,.15); transform: translateX(100%); transition: transform .25s ease; }
  .nav-links.open { transform: translateX(0); }
  .nav-toggle { display: block; }
  .nav-cta .btn-primary { padding: 10px 16px; font-size: .9rem; }
  .topbar-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-media::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,40,36,.35) 0%, rgba(10,40,36,.35) 40%, rgba(10,40,36,.88) 100%);
}
.hero-content { position: relative; z-index: 2; padding: 60px 0 72px; width: 100%; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.4); padding: 8px 16px; border-radius: 999px; font-size: .82rem;
  font-weight: 600; margin-bottom: 18px; backdrop-filter: blur(4px);
}
.hero h1 { color: #fff; max-width: 780px; }
.hero p.lead { color: #f3ede0; max-width: 560px; font-size: 1.1rem; }
.hero-actions { display: flex; gap: 14px; margin-top: 26px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 30px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div strong { display: block; font-family: var(--font-display); font-size: 1.7rem; color: var(--sun-gold); }
.hero-stats div span { font-size: .82rem; color: #e7e0cf; }

/* ---------- Sun divider ---------- */
.sun-divider { display: flex; justify-content: center; margin: -30px 0 0; position: relative; z-index: 5; }
.sun-divider svg { width: 56px; height: 56px; }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: var(--ocean-deep); color: #eef4f2; }
.section-alt h2, .section-alt h3 { color: #fff; }
.section-alt p { color: #cfe1dc; }
.section-tight { padding: 56px 0; }

/* ---------- Cards grid ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; } }

/* ---------- Room card ---------- */
.room-card {
  background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  transition: transform .2s ease, box-shadow .2s ease; display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: 0 20px 40px rgba(14,32,28,.2); }
.room-card .thumb { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.room-card:hover .thumb img { transform: scale(1.06); }
.room-card .price-tag {
  position: absolute; top: 14px; right: 14px; background: var(--sun-coral); color: #fff;
  font-family: var(--font-display); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .9rem;
}
.room-card .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.room-card .meta { display: flex; gap: 14px; font-size: .82rem; color: var(--ink-soft); flex-wrap: wrap; }
.room-card .meta span { display: inline-flex; align-items: center; gap: 5px; }
.room-card .actions { margin-top: auto; display: flex; gap: 10px; padding-top: 6px; }

/* ---------- Facility / experience card ---------- */
.facility-card {
  background: #fff; border-radius: var(--radius-md); padding: 26px; box-shadow: var(--shadow); text-align: left;
  border-top: 4px solid var(--sun-gold);
}
.facility-card .icon-badge {
  width: 52px; height: 52px; border-radius: 14px; background: var(--sand-dim);
  display: flex; align-items: center; justify-content: center; margin-bottom: 14px; color: var(--sun-coral); font-size: 1.4rem;
}

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 34px; }
.gallery-filters a {
  padding: 9px 18px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: .88rem;
}
.gallery-filters a.active, .gallery-filters a:hover { background: var(--ocean-deep); color: #fff; border-color: var(--ocean-deep); }
.gallery-grid { column-count: 3; column-gap: 18px; }
.gallery-grid .g-item { break-inside: avoid; margin-bottom: 18px; border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.gallery-grid .g-item img { width: 100%; transition: transform .3s ease; }
.gallery-grid .g-item:hover img { transform: scale(1.05); }
.gallery-grid .g-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; font-size: .85rem; color: #fff;
  background: linear-gradient(0deg, rgba(10,40,36,.8), transparent); opacity: 0; transition: opacity .2s ease;
}
.gallery-grid .g-item:hover .g-caption { opacity: 1; }
@media (max-width: 900px) { .gallery-grid { column-count: 2; } }
@media (max-width: 560px) { .gallery-grid { column-count: 1; } }

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: #fff; border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow); position: relative;
}
.testimonial-card .stars { color: var(--sun-gold); letter-spacing: 2px; display: block; margin-bottom: 10px; }
.testimonial-card .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; }
.testimonial-card .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testimonial-card .who strong { color: var(--ocean-deep); display: block; }
.testimonial-card .who span { font-size: .8rem; color: var(--ink-soft); }

/* ---------- Postcard stamp badge (signature element) ---------- */
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 84px; height: 84px; border: 2px dashed var(--sun-coral); border-radius: 50%;
  transform: rotate(-8deg); color: var(--sun-coral); font-family: var(--font-display); font-weight: 700;
  text-align: center; font-size: .78rem; line-height: 1.15; background: rgba(226,73,46,.06);
}

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field.full { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .88rem; color: var(--ocean-deep); }
input, select, textarea {
  font-family: var(--font-body); font-size: 1rem; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%;
}
input:focus, select:focus, textarea:focus { border-color: var(--sun-coral); outline: none; }
textarea { resize: vertical; min-height: 110px; }
.form-card { background: #fff; border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-note { font-size: .82rem; color: var(--ink-soft); margin-top: 10px; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 18px; font-weight: 600; }
.alert-success { background: #e4f4e9; color: var(--palm-dark); border: 1px solid #bfe3c9; }
.alert-error { background: #fbe6e2; color: var(--sun-coral-dark); border: 1px solid #f3c2b7; }

/* ---------- Map / location ---------- */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.location-info { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 30px; }
.location-info li { display: flex; gap: 12px; margin-bottom: 16px; align-items: flex-start; }
.location-info li .ic { color: var(--sun-coral); font-size: 1.2rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { background: var(--sand-dim); padding: 16px 0; font-size: .86rem; }
.breadcrumbs a { color: var(--ink-soft); }
.breadcrumbs a:hover { color: var(--sun-coral); }
.breadcrumbs .sep { margin: 0 8px; color: var(--ink-soft); }

/* ---------- Page header banner ---------- */
.page-banner {
  position: relative; padding: 90px 0 60px; color: #fff; text-align: center; overflow: hidden;
}
.page-banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.page-banner::after { content:''; position:absolute; inset:0; background: linear-gradient(180deg, rgba(10,40,36,.55), rgba(10,40,36,.85)); }
.page-banner .container { position: relative; z-index: 2; }
.page-banner h1 { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-deep-2); color: #dcebe7; padding: 64px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.02rem; margin-bottom: 16px; }
.site-footer a { color: #bcd6cf; }
.site-footer a:hover { color: var(--sun-gold); }
.site-footer .brand { margin-bottom: 14px; }
.site-footer .brand-text strong { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: .82rem; color: #9fc0b8; }
.social-row { display: flex; gap: 12px; margin-top: 14px; }
.social-row a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; }
.social-row a:hover { background: var(--sun-coral); }

/* ---------- WhatsApp floating button ---------- */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 300; background: #25D366; color: #fff;
  width: 58px; height: 58px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(0,0,0,.25); font-size: 1.6rem;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--sand-dim); color: var(--ocean-deep); font-size: .78rem; font-weight: 700; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--ink-soft); }

/* ---------- Team / owner avatars ---------- */
.avatar-circle picture, .avatar-circle img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Mobile responsive polish ---------- */
@media (max-width: 640px) {
  .hero { min-height: 78vh; }
  .hero-content { padding: 40px 0 48px; }
  .hero-stats { gap: 20px; }
  section { padding: 56px 0; }
  .section-tight { padding: 40px 0; }
  .page-banner { padding: 64px 0 40px; }
  .form-card { padding: 22px; }
  .location-info { padding: 22px; }
  .navbar { padding: 10px 0; }
  .brand img { height: 42px; }
  .footer-grid { gap: 26px; }
  .stamp { width: 68px; height: 68px; font-size: .68rem; }
}
@media (max-width: 400px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .btn { padding: 11px 20px; font-size: .92rem; }
}

/* ---------- Legal / policy pages ---------- */
.legal-draft-banner {
  background: #fdf3dc; color: #a3760c; border: 1px solid #f0d999;
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 24px; font-size: .92rem;
}
