/* Drift Lodge: shared styles (every page). Values come from the approved boards in Website/Design source. */

:root {
  --sand: #F4EFE8;
  --teal: #0E6670;
  --apricot: #F2A35E;
  --coral: #E48D6C;
  --plum: #3A3347;
  --night: #1B2A30;
  --terracotta: #9E5440;   /* small labels (AA contrast); icons keep #B5674F */
  --muted: #56646A;
  --grey: #5B676B;
  --line: #E6DED2;
  --card-line: #ECE5DB;
  --wa: #178553;
  --wa-hover: #12693F;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Manrope', 'Helvetica Neue', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --gutter: clamp(16px, 3vw, 32px);
  --gutter-wide: clamp(16px, 3vw, 40px);
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--sand); }

.dl {
  position: relative;
  width: 100%;
  background: var(--sand);
  color: var(--night);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
.dl *, .dl *::before, .dl *::after { box-sizing: border-box; }
.dl img { max-width: 100%; }
.dl a { color: var(--teal); }
.dl a:hover { color: var(--night); }
.dl button { font: inherit; cursor: pointer; }
.dl input, .dl select, .dl textarea { font: inherit; color: var(--night); }
.dl [hidden] { display: none !important; }
.dl h1, .dl h2, .dl h3 { margin: 0; font-family: var(--serif); font-weight: 400; }
.dl h2 { font-size: clamp(42px, 5vw, 66px); line-height: 1; }

/* Keyboard focus: apricot ring on everything interactive */
.dl a:focus-visible, .dl button:focus-visible, .dl input:focus-visible, .dl select:focus-visible, .dl textarea:focus-visible, .dl [tabindex]:focus-visible {
  outline: 2px solid var(--apricot);
  outline-offset: 3px;
}
.dl h1:focus { outline: none; }

.skip {
  position: fixed; left: 16px; top: -80px; z-index: 120;
  padding: 12px 18px; border-radius: 999px;
  background: #FFFFFF; color: var(--night) !important; font-weight: 700; text-decoration: none;
  transition: top .2s ease;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--terracotta); }
.eyebrow--apricot { color: var(--apricot); }
.eyebrow--white { color: #FFFFFF; }

.sec-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px 48px; }
.sec-title { display: flex; flex-direction: column; gap: 10px; }
.sec-intro { margin: 0; max-width: 26em; color: var(--muted); }

.glass {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .34);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.fadein { animation: dlFade .8s ease both; }
@keyframes dlFade { from { opacity: .35; transform: scale(1.02); } to { opacity: 1; transform: none; } }

.btn-dark {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; border-radius: 999px;
  background: var(--night); color: #FFFFFF !important; text-decoration: none; font-weight: 600;
}

.fine { margin: 0; font-size: 13px; color: var(--grey); }

/* Language switch (EN · DE · FR) */
.lang { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255, 255, 255, .14); }
.lang-item {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; padding: 4px 12px; border-radius: 999px;
  color: #FFFFFF !important; font-size: 13px; text-decoration: none;
}
.lang-item.is-current { background: #FFFFFF; color: var(--night) !important; font-size: 12px; font-weight: 600; }

/* Floating WhatsApp button: circle; on hover or focus a "Chat on WhatsApp" pill slides out */
.wa { position: fixed; z-index: 60; right: 24px; bottom: 24px; display: flex; flex-direction: row-reverse; align-items: center; text-decoration: none; transition: opacity .3s ease, transform .3s ease, visibility .3s; }
/* Steps aside while the footer is in view (assets/js/site.js). */
.wa.is-away { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.wa-dot {
  flex: none; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #FFFFFF;
  box-shadow: 0 18px 36px -16px rgba(27, 42, 48, .6);
  transition: transform .25s ease, background .25s ease;
}
.wa-label {
  display: flex; align-items: center; height: 44px; max-width: 0; padding: 0; margin-right: 0;
  overflow: hidden; white-space: nowrap; opacity: 0; border-radius: 999px;
  background: rgba(255, 255, 255, .92); border: 1px solid #FFFFFF;
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px -18px rgba(27, 42, 48, .55);
  color: var(--night); font-weight: 600; font-size: 15px;
  transition: max-width .4s cubic-bezier(.2, .7, .2, 1), padding .4s cubic-bezier(.2, .7, .2, 1), margin .4s cubic-bezier(.2, .7, .2, 1), opacity .25s ease;
}
.wa:hover .wa-label, .wa:focus-visible .wa-label { max-width: 220px; padding: 0 18px; margin-right: 10px; opacity: 1; }
.wa:hover .wa-dot, .wa:focus-visible .wa-dot { transform: scale(1.06); background: var(--wa-hover); }
@media (max-width: 600px) {
  .wa-label { display: none !important; }
  .wa-dot { width: 52px; height: 52px; }
}

/* Footer */
.foot { background: var(--night); color: #C9D2D3; padding: 64px var(--gutter-wide) 30px; }
.foot-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.foot-brand { display: flex; flex-direction: column; gap: 14px; max-width: 320px; }
.foot-brand img { width: 170px; height: auto; display: block; }
.foot-brand p { margin: 0; font-size: 15px; }
.foot-brand .foot-tagline { font-family: var(--serif); font-size: 26px; line-height: 1.15; color: var(--sand); }
.foot-cols { display: flex; flex-wrap: wrap; gap: 40px 56px; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col a { color: var(--sand); text-decoration: none; transition: color .2s ease; }
.foot a:hover { color: var(--apricot); }
.foot-label { font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--apricot); }
.foot-icon { display: flex; align-items: center; gap: 8px; }
.foot-bottom {
  margin-top: 40px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .12);
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 24px;
  font-size: 13px; color: #8FA0A3;
}
.foot-bottom-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; }
.foot-bottom-links a { display: flex; align-items: center; gap: 6px; min-height: 44px; color: #C9D2D3; text-decoration: none; transition: color .2s ease; }

.placeholder { padding-top: 120px; padding-bottom: 120px; }

@media (max-width: 600px) {
  .dl { font-size: 16px; line-height: 1.55; }
  .dl h2 { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .skip, .foot a, .wa-label, .wa-dot { transition: none; }
  .fadein { animation: none; }
}

/* Spam trap: a field people never see or fill in */
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }

/* Text for screen readers only */
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Reveal on scroll (assets/js/site.js). Slow, soft easing; uses "translate" so it never clashes with hover
   "transform" effects. The page clips sideways overflow so side slides can't make it wobble. */
.dl { overflow-x: clip; }
.dl-rv { opacity: 0; transition: opacity 1.1s cubic-bezier(.22, .61, .36, 1), translate 1.3s cubic-bezier(.16, 1, .3, 1); will-change: opacity, translate; }
.dl-rv--up { translate: 0 28px; }
.dl-rv--left { translate: -40px 0; }
.dl-rv--right { translate: 40px 0; }
.dl-rv.is-shown { opacity: 1; translate: 0 0; }
@media (max-width: 600px) { .dl-rv--left { translate: -24px 0; } .dl-rv--right { translate: 24px 0; } .dl-rv--up { translate: 0 20px; } }
@media (prefers-reduced-motion: reduce) { .dl-rv { opacity: 1; translate: none; transition: none; } }

/* Date fields on phones: iOS gives them a fixed minimum width, so two side by side overlapped (Fady, 2026-10-19).
   Let them shrink to their column, keep the text left-aligned, and keep a tappable height when empty. */
@media (pointer: coarse) {
  .dl input[type="date"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 44px; }
  .dl input[type="date"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
}

/* Satellite map of Soma Bay (parts/sat-map.php): fills its box; the box sets the shape (15:11 desktop, 4:3 phone). */
.sat-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.sat-credit { position: absolute; right: 14px; bottom: 10px; font-size: 10px; color: rgba(255, 255, 255, .85); text-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
