/* ============================================================
   SEA DMC — Modern design layer
   Loaded AFTER style.min.css on every page; overrides only.
   No external fonts (system stack keeps first paint fast on
   mobile connections). All motion respects reduced-motion.
   Edit this file directly — it is served unminified.
   ============================================================ */

:root {
  --font-sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --primary: #4a7fae;
  --primary-dark: #33587e;
  --primary-soft: rgba(74, 127, 174, 0.10);
  --accent: #8BB42D;
  --accent-dark: #6e9421;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(24, 29, 47, 0.06), 0 2px 8px rgba(24, 29, 47, 0.06);
  --shadow-md: 0 2px 4px rgba(24, 29, 47, 0.05), 0 10px 24px rgba(24, 29, 47, 0.10);
  --shadow-lg: 0 4px 8px rgba(24, 29, 47, 0.06), 0 22px 48px rgba(24, 29, 47, 0.16);
  --ease-out: cubic-bezier(0.22, 0.7, 0.3, 1);
}

/* ── Typography ── */
body {
  font-family: var(--font-sans);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  letter-spacing: -0.015em;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.9rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 800; }
h3 { font-weight: 700; }

::selection {
  background: var(--primary);
  color: #fff;
}

/* Decorative underline for centered section headings */
.section > .container > h2,
.section-header h2 {
  position: relative;
  padding-bottom: 0.85rem;
}
.section > .container > h2::after,
.section-header h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 3px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

/* ── Header & nav ── */
.site-header {
  transition: box-shadow 240ms var(--ease-out);
  box-shadow: none;
}
.site-header.scrolled {
  box-shadow: 0 6px 24px rgba(24, 29, 47, 0.12);
}

.nav-link,
.menu-trigger {
  position: relative;
  transition: color 180ms var(--ease-out), background 180ms var(--ease-out);
}
.site-nav > .nav-link::after,
.nav-item > .menu-trigger::after {
  content: "";
  position: absolute;
  left: 0.4rem;
  right: 0.4rem;
  bottom: 1px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease-out);
  display: block;
}
.site-nav > .nav-link:hover::after,
.site-nav > .nav-link:focus-visible::after,
.nav-item > .menu-trigger:hover::after,
.nav-item > .menu-trigger:focus-visible::after,
.has-menu:focus-within > .menu-trigger::after,
.has-menu.open > .menu-trigger::after {
  transform: scaleX(1);
}

.dropdown-menu {
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out), visibility 200ms;
}
.dropdown-menu a {
  transition: background 150ms var(--ease-out), color 150ms var(--ease-out), padding-left 150ms var(--ease-out);
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  padding-left: 0.95rem;
}

/* ── Buttons ── */
.btn {
  border-radius: var(--radius-sm);
  transition: background 180ms var(--ease-out), border-color 180ms var(--ease-out),
              color 180ms var(--ease-out), transform 180ms var(--ease-out),
              box-shadow 180ms var(--ease-out);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(0) scale(0.985); box-shadow: var(--shadow-sm); }
.btn:focus-visible { outline: 3px solid rgba(74, 127, 174, 0.35); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border: 0;
}
.btn-primary:hover,
.btn-primary:focus-visible {
  background: linear-gradient(135deg, #557fa8 0%, #2c4d70 100%);
}
.btn-accent {
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
  border: 0;
}
.whatsapp-btn { border: 0 !important; }

/* ── Hero ── */
.hero-slide::after {
  background: linear-gradient(180deg, rgba(13, 24, 38, 0.38) 0%, rgba(13, 24, 38, 0.52) 62%, rgba(13, 24, 38, 0.66) 100%);
}
.hero-slide.active {
  animation: heroZoom 8s var(--ease-out) forwards;
}
@keyframes heroZoom {
  from { transform: scale(1); }
  to   { transform: scale(1.07); }
}
.hero-content h1 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 3.1rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
  animation: riseIn 700ms var(--ease-out) both;
}
.hero-content .hero-sub {
  max-width: 640px;
  margin: -0.8rem 0 1.6rem;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.2rem);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
  text-align: center;
  animation: riseIn 700ms 120ms var(--ease-out) both;
}
.hero-cta { animation: riseIn 700ms 240ms var(--ease-out) both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Cards ── */
.card,
.hotel-card,
.blog-post-card {
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 320ms var(--ease-out), box-shadow 320ms var(--ease-out);
}
a.card:hover,
a.card:focus-visible,
.card:has(> a):hover,
.hotel-card:hover,
.blog-post-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}
.card img {
  transition: transform 600ms var(--ease-out);
}
a.card:hover img,
a.card:focus-visible img,
.blog-post-card:hover img {
  transform: scale(1.05);
}
.card figure,
.card article { overflow: hidden; }

.hotel-card img { border-radius: var(--radius-sm); }
.article-panel, .article-callout, .partner-cta { border-radius: var(--radius); }

/* ── Scroll-reveal (activated by enhance.js; no JS = fully visible) ── */
html.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
html.js .reveal.in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
}

/* ── Forms ── */
input, select, textarea {
  border-radius: var(--radius-sm);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out);
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 4px rgba(74, 127, 174, 0.16);
}

/* ── Footer ── */
.site-footer {
  background:
    radial-gradient(1200px 300px at 15% -10%, rgba(74, 127, 174, 0.25), transparent 60%),
    var(--footer);
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--primary), var(--accent)) 1;
}
.site-footer a {
  transition: color 160ms var(--ease-out), padding-left 160ms var(--ease-out);
}
.site-footer .footer-grid a:hover,
.site-footer .footer-grid a:focus-visible {
  color: #fff;
  padding-left: 4px;
}
.newsletter-fields .btn-accent { min-width: 130px; }

/* ── Floating WhatsApp button (injected by enhance.js) ── */
.float-wa {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1200;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: #25d366;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.float-wa:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.55); }
.float-wa svg { width: 30px; height: 30px; fill: #fff; }
@media print { .float-wa { display: none; } }

/* ── Subtle scrollbar (WebKit) ── */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: #b9c9d6; border-radius: 8px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── Small screens ── */
@media (max-width: 680px) {
  .hero { min-height: 440px; padding: 4.6rem 0 4rem; }
  .float-wa { width: 50px; height: 50px; right: 14px; bottom: 14px; }
  .section { padding: 3rem 0; }
}

/* ── Reduced motion: switch all of the above off ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html.js .reveal { opacity: 1; transform: none; }
  .hero-slide.active { animation: none; }
}
