/* =========================================================
   Don & Maria Hotel — Masbate City
   Warm & tropical landing page
   ========================================================= */

:root {
  /* Warm tropical palette */
  --sand:        #faf6ef;
  --sand-deep:   #f1e8d8;
  --cream:       #fffdf8;
  --ink:         #2c2a25;
  --ink-soft:    #5b554a;
  /* Brand colors (from logo): sage green + warm coral */
  --palm:        #5c7064;   /* deepened logo sage — AA contrast for text/buttons */
  --palm-light:  #768e7e;   /* logo sage */
  --gold:        #e88153;   /* logo coral — accent */
  --gold-deep:   #cf6a3c;   /* deeper coral for hover/contrast */
  --coral:       #d2603a;   /* error / alert */
  --line:        #e7ddcb;
  --shadow:      0 14px 40px rgba(47, 42, 30, 0.10);
  --shadow-sm:   0 6px 18px rgba(47, 42, 30, 0.08);
  --radius:      16px;
  --radius-sm:   10px;
  --maxw:        1160px;
  --font-head:   'Playfair Display', Georgia, serif;
  --font-body:   'Poppins', system-ui, sans-serif;
}

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

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

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; color: var(--ink); font-weight: 600; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.35rem; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 0.6rem;
}

.section { padding: 86px 0; scroll-margin-top: 84px; }
.section-tint { background: var(--sand-deep); }

/* ---------- Scroll-reveal animations ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal.in-view { opacity: 1; transform: none; }
/* Directional variants */
.reveal.from-left  { transform: translateX(-40px); }
.reveal.from-right { transform: translateX(40px); }
.reveal.zoom       { transform: scale(0.94); }
.reveal.from-left.in-view,
.reveal.from-right.in-view,
.reveal.zoom.in-view { transform: none; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-lead { color: var(--ink-soft); margin-top: 0.8rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 500; font-size: 0.95rem;
  padding: 0.72rem 1.4rem;
  border-radius: 50px;
  border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--palm); color: #fff; box-shadow: 0 8px 20px rgba(47,107,79,0.28); }
.btn-primary:hover { background: var(--palm-light); }
.btn-secondary { background: var(--gold); color: #3a2c08; }
.btn-secondary:hover { background: var(--gold-deep); color: #fff; }
.btn-ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.7); backdrop-filter: blur(2px); }
.btn-ghost:hover { background: #fff; color: var(--ink); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.3s ease, box-shadow 0.3s ease;
  padding: 14px 0;
}
.site-header.scrolled { background: var(--cream); box-shadow: var(--shadow-sm); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--ink); }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, var(--palm-light) 0%, var(--gold) 100%);
  color: #fff;
  font-family: var(--font-head); font-weight: 700; font-size: 1.05rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-family: var(--font-head); font-size: 1.18rem; }
.brand-text small { font-size: 0.62rem; letter-spacing: 0.16em; color: var(--ink-soft); }

/* Hero header text contrast (before scroll) */
.site-header:not(.scrolled) .brand-text strong,
.site-header:not(.scrolled) .brand-text small { color: #fff; }
.site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: #fff; }

.nav-links { display: flex; align-items: center; gap: 1.6rem; }
.nav-links a { text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:not(.nav-cta):hover { color: var(--gold-deep); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: 0.3s; }
.site-header:not(.scrolled) .nav-toggle span { background: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh; /* fills the screen exactly on mobile + desktop */
  display: flex; align-items: center;
  color: #fff;
  overflow: hidden;
  background-color: #2f4034; /* dark fallback so a parallax edge never shows white */
}
/* Parallax layer (moves slower than scroll via JS) — generous overscan
   top & bottom so the image always covers the hero as it shifts. */
.hero-bg {
  position: absolute; top: -18%; bottom: -18%; left: 0; right: 0;
  background: url('https://loremflickr.com/1700/1100/tropical,resort,hotel?lock=5') center/cover no-repeat;
  background-color: #2f4034;
  will-change: transform;
  z-index: 0;
}
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(120deg, rgba(48,64,55,0.84) 0%, rgba(92,112,100,0.55) 55%, rgba(232,129,83,0.38) 100%);
}
.hero-content { position: relative; z-index: 2; max-width: 720px; padding-top: 90px; padding-bottom: 60px; }
/* Staggered hero entrance on load */
.hero-content > * { opacity: 0; transform: translateY(24px); animation: heroIn 0.9s cubic-bezier(0.22,1,0.36,1) forwards; }
.hero-content > .eyebrow      { animation-delay: 0.15s; }
.hero-content > h1            { animation-delay: 0.30s; }
.hero-content > .hero-sub     { animation-delay: 0.45s; }
.hero-content > .hero-actions { animation-delay: 0.60s; }
.hero-content > .hero-badges  { animation-delay: 0.75s; }
@keyframes heroIn { to { opacity: 1; transform: none; } }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5.2vw, 3.9rem); font-weight: 700; }
.hero-sub { font-size: 1.1rem; margin: 1.3rem 0 2rem; max-width: 560px; color: rgba(255,255,255,0.92); }
.hero .eyebrow { color: #ffe6a8; }
.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-badges { display: flex; gap: 1.4rem; flex-wrap: wrap; margin-top: 2.4rem; font-size: 0.88rem; color: rgba(255,255,255,0.9); }
.hero-badges span { display: inline-flex; align-items: center; }
.hero-badges span:not(:last-child)::after { content: ''; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about-text p { color: var(--ink-soft); margin-top: 1rem; }
.checklist { list-style: none; margin-top: 1.4rem; display: grid; gap: 0.7rem; }
.checklist li { position: relative; padding-left: 1.9rem; color: var(--ink-soft); }
.checklist li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--palm); color: #fff; font-size: 0.75rem;
  display: grid; place-items: center; font-weight: 700;
}
.about-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.stat { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.stat strong { display: block; font-family: var(--font-head); font-size: 2rem; color: var(--palm); }
.stat span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Rooms ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.room-card {
  background: var(--cream); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column;
}
.room-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.room-img { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.room-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.room-card:hover .room-img img { transform: scale(1.06); }
.room-tag {
  position: absolute; top: 12px; left: 12px;
  background: var(--gold); color: #3a2c08; font-size: 0.72rem; font-weight: 600;
  padding: 0.3rem 0.7rem; border-radius: 50px; letter-spacing: 0.03em;
}
.room-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.room-body p { color: var(--ink-soft); font-size: 0.93rem; margin: 0.5rem 0 1rem; }
.room-feats { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.2rem; }
.room-feats li { font-size: 0.78rem; background: var(--sand-deep); color: var(--ink-soft); padding: 0.3rem 0.7rem; border-radius: 50px; }
.room-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }
.price { font-family: var(--font-head); font-size: 1.6rem; color: var(--palm); font-weight: 700; }
.price small { font-size: 0.8rem; color: var(--ink-soft); font-family: var(--font-body); font-weight: 400; }

/* ---------- Amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.amenity { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 22px; text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.amenity:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.amenity-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem;
  border-radius: 50%; display: grid; place-items: center;
  background: rgba(118, 142, 126, 0.13); color: var(--palm);
}
.amenity-icon svg { width: 26px; height: 26px; }
.amenity h4 { font-family: var(--font-body); font-weight: 600; font-size: 1.02rem; margin-bottom: 0.3rem; }
.amenity p { font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Restaurant ---------- */
.restaurant-imgs { position: relative; min-height: 460px; }
.restaurant-imgs img { border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; }
.r-img-1 { width: 78%; height: 460px; }
.r-img-2 { position: absolute; bottom: -28px; right: 0; width: 52%; height: 250px; border: 6px solid var(--sand); }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-sm); cursor: pointer; transition: transform 0.3s ease, filter 0.3s ease; }
.gallery-grid img:hover { transform: scale(1.03); filter: brightness(1.05); }

/* ---------- Booking + Contact ---------- */
.book-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 40px; align-items: start; }
.book-form-wrap h2 { margin-bottom: 0.4rem; }
.book-form { margin-top: 1.8rem; display: grid; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { font-size: 0.85rem; font-weight: 500; color: var(--ink-soft); }
.field .optional { color: #a99; font-weight: 400; }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 0.95rem;
  padding: 0.7rem 0.9rem; border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  background: var(--cream); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--palm-light); box-shadow: 0 0 0 3px rgba(78,154,114,0.18);
}
.field textarea { resize: vertical; }
.form-status { font-size: 0.9rem; min-height: 1.2rem; }
.form-status.ok { color: var(--palm); }
.form-status.err { color: var(--coral); }

.contact-card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); }
.contact-card h3 { margin-bottom: 1rem; }
.contact-list { list-style: none; display: grid; gap: 1.1rem; }
.contact-list li { display: flex; gap: 0.85rem; font-size: 0.92rem; color: var(--ink-soft); }
.contact-list .ci { flex-shrink: 0; color: var(--palm); line-height: 0; margin-top: 2px; }
.contact-list .ci svg { width: 20px; height: 20px; }
.contact-list a { color: var(--palm); text-decoration: none; }
.contact-list a:hover { text-decoration: underline; }
.map-embed { margin-top: 1.4rem; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.map-embed iframe { width: 100%; height: 220px; border: 0; display: block; }
.contact-socials { margin-top: 1.2rem; display: flex; gap: 1rem; }
.contact-socials a { font-size: 0.85rem; color: var(--palm); text-decoration: none; font-weight: 500; }
.contact-socials a:hover { color: var(--gold-deep); }

/* ---------- Footer ---------- */
.site-footer { background: #232019; color: #d8d0c2; padding-top: 54px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 30px; flex-wrap: wrap; padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand { display: flex; gap: 1rem; align-items: center; max-width: 380px; }
.footer-brand strong { font-family: var(--font-head); color: #fff; font-size: 1.2rem; }
.footer-brand p { font-size: 0.88rem; color: #aaa093; margin-top: 0.2rem; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; }
.footer-links a { color: #d8d0c2; text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom { padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 0.82rem; color: #8d8475; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .book-grid { grid-template-columns: 1fr; }
  .restaurant-imgs { min-height: auto; margin-bottom: 40px; }
  .r-img-1 { width: 100%; height: 360px; }
  .r-img-2 { width: 44%; bottom: -24px; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 720px) {
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh; width: min(78%, 320px);
    background: var(--cream); flex-direction: column; align-items: flex-start;
    padding: 90px 32px; gap: 1.4rem; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transform: translateX(100%); transition: transform 0.3s ease;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a, .site-header:not(.scrolled) .nav-links a:not(.nav-cta) { color: var(--ink); font-size: 1.05rem; }
  .nav-cta { margin-top: 0.5rem; }
  .nav-toggle { display: flex; z-index: 110; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .site-header:not(.scrolled) .nav-toggle.open span { background: var(--ink); }
  .section { padding: 64px 0; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-badges { gap: 0.9rem; }
}

/* Reduced motion — disable parallax & reveals, show everything */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  * { transition: none !important; animation: none !important; }
  .reveal, .hero-content > * { opacity: 1 !important; transform: none !important; }
}
