/* ============================================================
   MORA Resort — main.css
   Reset · Design tokens · Base typography · Layout · Buttons
   Header · Footer
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Brand colors */
  --color-gold: #b59777;
  --color-gold-dark: #9c8266;
  --color-gold-soft: #cdb295;
  --color-cream: #f9f0e6;
  --color-navy: #12273d;
  --color-navy-soft: #1d3a55;
  --color-navy-2: #2a4a6b;

  /* Semantic */
  --color-bg: var(--color-cream);
  --color-bg-alt: #fff;
  --color-text: var(--color-navy);
  --color-text-muted: #5b6b7d;
  --color-text-invert: var(--color-cream);
  --color-border: rgba(18, 39, 61, 0.12);
  --color-border-gold: rgba(181, 151, 119, 0.4);

  /* Typography */
  --font-philosopher: 'Philosopher', 'Cormorant Garamond', Georgia, serif;
  --font-lato: 'Lato', 'PT Sans', system-ui, -apple-system, sans-serif;

  --text-xs: 0.8125rem;
  --text-sm: 0.9375rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;
  --text-4xl: 3.75rem;
  --text-hero: clamp(2.75rem, 6vw, 5.5rem);

  --leading-tight: 1.1;
  --leading-snug: 1.3;
  --leading-normal: 1.65;

  /* Spacing scale */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 7rem;
  --sp-20: 9rem;

  /* Layout */
  --container-width: 1480px;
  --container-narrow: 1000px;
  --container-padding: 2rem;
  --header-height: 84px;
  --map-h: 420px;
  --services-hero-h: clamp(420px, 72svh, 680px);
  --panel-grow-active: 2.4;
  --panel-grow-idle: 0.6;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(18, 39, 61, 0.06);
  --shadow-md: 0 12px 32px rgba(18, 39, 61, 0.1);
  --shadow-lg: 0 24px 60px rgba(18, 39, 61, 0.16);

  /* Motion */
  --transition: 0.3s cubic-bezier(0.22, 1, 0.36, 1);
  --transition-slow: 0.6s cubic-bezier(0.22, 1, 0.36, 1);

  /* Z-index */
  --z-header: 100;
  --z-overlay: 200;
  --z-modal: 300;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-lato);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
picture,
svg,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 3px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-philosopher);
  font-weight: 700;
  line-height: var(--leading-tight);
  color: var(--color-navy);
}

p { max-width: 68ch; }
section{overflow:clip}
.eyebrow {
  display: inline-block;
  font-family: var(--font-lato);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-gold);
  margin-bottom: var(--sp-4);
}

.section-title {
  font-size: var(--text-3xl);
  margin-bottom: var(--sp-4);
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.section-head {
  margin-bottom: var(--sp-10);
}

.section-head--center {
  text-align: center;
}
.section-head--center .section-lead { margin-inline: auto; }

/* ---------- Simple text (WYSIWYG editor content) ---------- */
.simple-text > * + * { margin-top: var(--sp-2); }

.simple-text h1,
.simple-text h2,
.simple-text h3,
.simple-text h4,
.simple-text h5,
.simple-text h6 {
  font-family: var(--font-philosopher);
  font-weight: 700;
  line-height: var(--leading-snug);
  color: var(--color-navy);
}

.simple-text h1 { font-size: var(--text-3xl); }
.simple-text h2 { font-size: var(--text-2xl); }
.simple-text h3 { font-size: var(--text-xl); }
.simple-text h4,
.simple-text h5,
.simple-text h6 { font-size: var(--text-lg); }

.simple-text p {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 56ch;
}

.simple-text em { font-style: italic; }

.simple-text strong,
.simple-text b { font-weight: 700; color: var(--color-navy); }

.simple-text ul,
.simple-text ol {
  padding-inline-start: 1.25em;
  max-width: 56ch;
}

.simple-text ul { list-style: disc; }
.simple-text ol { list-style: decimal; }

.simple-text li {
  color: var(--color-text-muted);
}

.simple-text li::marker { color: var(--color-gold); }

.simple-text li + li { margin-top:0; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin-inline: auto;
  padding-inline: var(--container-padding);
}

.container--narrow { max-width: var(--container-narrow); }

.section {
  padding-block: var(--sp-16);
  position: relative;
}
.section--lg { padding-block: var(--sp-20); }
.section--sm { padding-block: var(--sp-10); }

.section--alt { background: var(--color-bg-alt); }
.section--navy {
  background: var(--color-navy);
  color: var(--color-text-invert);
}
.section--navy h1,
.section--navy h2,
.section--navy h3 { color: var(--color-cream); }

.grid { display: grid; gap: var(--sp-6); }
.grid--2col { grid-template-columns: repeat(2, 1fr); }
.grid--3col { grid-template-columns: repeat(3, 1fr); }

/* Spacers */
.spacer-4 { height: var(--sp-4); }
.spacer-8 { height: var(--sp-8); }
.spacer-12 { height: var(--sp-12); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  font-family: var(--font-lato);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  border: 1.5px solid transparent;
  transition: background var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-gold);
  color: #fff;
}
.btn--primary:hover { background: var(--color-gold-dark); }

.btn--outline {
  background: transparent;
  color: var(--color-navy);
  border-color: var(--color-gold);
}
.btn--outline:hover { background: var(--color-gold); color: #fff; }

.btn--light {
  background: transparent;
  color: var(--color-cream);
  border-color: rgba(249, 240, 230, 0.5);
}
.btn--light:hover { background: var(--color-cream); color: var(--color-navy); border-color: var(--color-cream); }

.btn--sm { padding: var(--sp-2) var(--sp-5); font-size: var(--text-xs); }

.btn--text {
  padding: 0;
  background: none;
  border: none;
  border-radius: 0;
  color: var(--color-gold);
  border-bottom: 1.5px solid var(--color-border-gold);
  padding-bottom: 2px;
}
.btn--text:hover { transform: none; border-bottom-color: var(--color-gold); }

/* ============================================================
   Header
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: var(--z-header);
  height: var(--header-height);
  display: flex;
  align-items: center;
  transition: background var(--transition), box-shadow var(--transition),
              height var(--transition);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  width: 100%;
}
.header__logo img { height: 40px; width: auto; transform-origin: left center; transition: transform var(--transition); }
.header__logo .logo--dark { display: none; }

.header__nav { display: flex; gap: var(--sp-6); }
.header__link {
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--color-cream);
  position: relative;
  padding-block: var(--sp-1);
  transition: color var(--transition);
}
.header__link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1.5px;
  background: var(--color-gold);
  transition: width var(--transition);
}
.header__link:hover::after { width: 100%; }

.header__actions { display: flex; align-items: center; gap: var(--sp-4); }
.header__map-pin {
  display: flex;
  align-items: center;
  color: rgba(249, 240, 230, 0.9);
  transition: color var(--transition);
}
.header__map-pin { gap: var(--sp-2); }
.header__map-pin svg { width: 22px; height: 22px; flex-shrink: 0; }
.header__map-label {
  font-size: var(--text-xs);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header__map-pin:hover { color: var(--color-gold); }

/* Scrolled state */
.header.is-scrolled {
  background: rgba(18, 39, 61, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-md);
  height: 72px;
}
.header.is-scrolled .header__logo img { transform: scale(1); }

/* Burger */
.header__burger {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.header__burger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--color-cream);
  transition: transform var(--transition), opacity var(--transition);
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: var(--color-navy);
  color: var(--color-cream);
  padding-block: var(--sp-12) var(--sp-6);
}
.footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--sp-8);
  padding-bottom: var(--sp-8);
  border-bottom: 1px solid rgba(249, 240, 230, 0.14);
}
.footer__logo img { width: 316px; height: auto; margin-bottom: var(--sp-5); }
.footer__about { color: rgba(249, 240, 230, 0.7); max-width: 40ch; }
.footer__col h4 {
  color: var(--color-gold);
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}
.footer__col li { margin-bottom: var(--sp-2); }
.footer__col a { color: rgba(249, 240, 230, 0.8); transition: color var(--transition); }
.footer__col a:hover { color: var(--color-gold); }
.footer__bottom {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  padding-top: var(--sp-5);
  font-size: var(--text-xs);
  color: rgba(249, 240, 230, 0.55);
}
.footer__legal {
  display: flex;
  gap: var(--sp-5);
}
.footer__legal a {
  color: rgba(249, 240, 230, 0.55);
  text-decoration: none;
  transition: color var(--transition);
  white-space: nowrap;
}
.footer__legal a:hover { color: var(--color-gold); }
.footer__socials { margin-inline: auto; }
.footer__socials {
  display: flex;
  gap: var(--sp-5);
  justify-content: center;
}
.footer__socials a {
  color: rgba(249, 240, 230, 0.6);
  display: flex;
  align-items: center;
  transition: color var(--transition);
}
.footer__socials a:hover { color: var(--color-gold); }
.footer__credit {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  justify-content: flex-end;
  color: rgba(249, 240, 230, 0.45);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition);
}
.footer__credit:hover { color: rgba(249, 240, 230, 0.8); }
.footer__credit img { opacity: 0.55; transition: opacity var(--transition); filter: brightness(0) invert(1); }
.footer__credit:hover img { opacity: 0.9; }
