/* =========================================================================
   Marulla Beach Club — theme (design tokens + base + shared atoms)
   Source: Figma "Sem título (Copy)" — frames Página Inicial / Menu / Galeria / Contactos (1280 desktop)
   Load this first on every page, then the CSS of each widget used.
   ========================================================================= */
@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,700;1,400&family=Bricolage+Grotesque:opsz,wght@12..96,600;12..96,700;12..96,800&family=Space+Grotesk:wght@700&display=swap');

:root {
  /* colour */
  --mr-primary: #a23f00;          /* terracotta — brand, eyebrows, primary buttons */
  --mr-primary-dark: #7c2e00;
  --mr-ink: #1f1b12;              /* headings */
  --mr-text: #574239;             /* body copy */
  --mr-muted: #8b7267;            /* placeholders, wave lines */
  --mr-bg: #fff8f1;               /* page background / nav */
  --mr-surface: #fcf2e3;          /* alternate sections, footer */
  --mr-card: #f6edde;             /* soft cards */
  --mr-sand: #ebe1d3;             /* contact band, borders */
  --mr-sand-2: #f1e7d8;
  --mr-line: rgba(222, 192, 180, .3);   /* #dec0b4 @30% — card borders */
  --mr-line-soft: rgba(222, 192, 180, .2);
  --mr-teal: #436463;             /* secondary (TheFork, outline buttons) */
  --mr-teal-2: #4a6361;
  --mr-teal-light: #c5eae7;
  --mr-mint: #cde8e5;
  --mr-peach: #ffdbcd;
  --mr-white: #ffffff;

  /* type */
  --mr-font-display: 'Bricolage Grotesque', 'Helvetica Neue', Arial, sans-serif;
  --mr-font-label: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --mr-font-body: 'Be Vietnam Pro', 'Helvetica Neue', Arial, sans-serif;
  --mr-h1: clamp(2.5rem, 1.6rem + 3.6vw, 4rem);          /* 64 */
  --mr-h2: clamp(2rem, 1.6rem + 1.6vw, 2.5rem);          /* 40 */
  --mr-h3: clamp(1.5rem, 1.35rem + .6vw, 1.75rem);       /* 28 */
  --mr-lead: 1.125rem;                                   /* 18 */
  --mr-body: 1rem;
  --mr-label: .75rem;                                    /* 12 */

  /* layout */
  --mr-max: 1280px;
  --mr-gutter: clamp(1rem, 5vw, 4rem);
  --mr-section-y: clamp(4.5rem, 9vw, 7.5rem);            /* 120 */
  --mr-radius: 8px;
  --mr-radius-lg: 12px;
  --mr-shadow: 0 10px 30px -12px rgba(162, 63, 0, .12);
  --mr-shadow-lg: 0 25px 40px -20px rgba(31, 27, 18, .25);
  --mr-nav-h: 86px;
  --mr-ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--mr-nav-h) + 16px); }
body {
  margin: 0; background: var(--mr-bg); color: var(--mr-text);
  font-family: var(--mr-font-body); font-size: var(--mr-body); line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-family: var(--mr-font-display); color: var(--mr-ink); }
p, ul, ol, figure, blockquote, address, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }
button, input, select, textarea { font: inherit; color: inherit; }

.mr-container { width: 100%; max-width: var(--mr-max); margin-inline: auto; padding-inline: var(--mr-gutter); }
.mr-section { padding-block: var(--mr-section-y); }
.mr-section--white { background: var(--mr-white); }
.mr-section--surface { background: var(--mr-surface); }
.mr-visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mr-skip { position: absolute; left: 1rem; top: -100px; z-index: 100; padding: .75rem 1rem; background: var(--mr-primary); color: #fff; }
.mr-skip:focus { top: 1rem; }

/* ---------- type ---------- */
.mr-h1 { font-size: var(--mr-h1); line-height: 1.094; font-weight: 800; letter-spacing: -.02em; }
.mr-h2 { font-size: var(--mr-h2); line-height: 1.2; font-weight: 700; letter-spacing: -.01em; }
.mr-h3 { font-size: var(--mr-h3); line-height: 1.286; font-weight: 600; }
.mr-h4 { font-size: 1.125rem; line-height: 1.6; font-weight: 700; }
.mr-lead { font-size: var(--mr-lead); line-height: 1.6; }
.mr-eyebrow {
  display: block; color: var(--mr-primary);
  font-family: var(--mr-font-label); font-size: var(--mr-label); font-weight: 700; line-height: 1.2; letter-spacing: .1em; text-transform: uppercase;
}
.mr-label {
  display: block; color: var(--mr-text);
  font-family: var(--mr-font-label); font-size: var(--mr-label); font-weight: 700; line-height: 1.2; letter-spacing: .05em; text-transform: uppercase;
}
.mr-head { display: flex; flex-direction: column; gap: 16px; }
.mr-head--center { align-items: center; text-align: center; max-width: 896px; margin-inline: auto; }
.mr-head--center .mr-lead, .mr-head--center p { max-width: 672px; }

/* ---------- buttons ---------- */
.mr-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 32px; border: 1px solid transparent; border-radius: 9999px;
  font-family: var(--mr-font-label); font-size: var(--mr-label); font-weight: 700; line-height: 1.2;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .25s var(--mr-ease), color .25s var(--mr-ease), border-color .25s var(--mr-ease), transform .25s var(--mr-ease), box-shadow .25s var(--mr-ease);
}
.mr-btn svg { width: 16px; height: 16px; flex: none; }
.mr-btn--primary { background: var(--mr-primary); color: var(--mr-white); box-shadow: 0 10px 15px -3px rgba(162, 63, 0, .2), 0 4px 6px -4px rgba(162, 63, 0, .2); }
.mr-btn--primary:hover { background: var(--mr-primary-dark); transform: translateY(-1px); }
.mr-btn--outline { border: 2px solid var(--mr-teal); color: var(--mr-teal); background: transparent; }
.mr-btn--outline:hover { background: var(--mr-teal); color: var(--mr-white); }
.mr-btn--teal { background: var(--mr-teal); color: var(--mr-white); }
.mr-btn--teal:hover { background: #2f4c4b; }
.mr-btn--light { background: var(--mr-bg); color: var(--mr-ink); border-color: var(--mr-line); }
.mr-btn--light:hover { border-color: var(--mr-primary); color: var(--mr-primary); }
.mr-btn--soft { background: var(--mr-card); color: var(--mr-primary); border-color: rgba(139, 114, 103, .2); padding: 12px 24px; }
.mr-btn--soft:hover { background: var(--mr-primary); color: var(--mr-white); }
.mr-btn--sm { padding: 12px 20px; }

/* ---------- cards ---------- */
.mr-card { background: var(--mr-white); border: 1px solid var(--mr-line-soft); border-radius: var(--mr-radius); box-shadow: var(--mr-shadow); }
.mr-icon-badge {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: var(--mr-surface); color: var(--mr-primary); flex: none;
}
.mr-icon-badge svg { width: 22px; height: 22px; }
.mr-icon-badge--sm { width: 40px; height: 40px; }
.mr-icon-badge--sm svg { width: 18px; height: 18px; }
.mr-icon-badge--peach { background: var(--mr-peach); color: var(--mr-primary-dark); }
.mr-icon-badge--teal { background: var(--mr-teal-light); color: #2b4c4b; }
.mr-icon-badge--mint { background: var(--mr-mint); color: #334b49; }

/* ---------- photo frame ---------- */
.mr-photo { position: relative; overflow: hidden; border-radius: var(--mr-radius); border: 1px solid var(--mr-line-soft); background: var(--mr-sand-2); box-shadow: var(--mr-shadow); }
.mr-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--mr-ease); }
.mr-photo--warm::after { content: ''; position: absolute; inset: 0; background: rgba(252, 242, 227, .2); pointer-events: none; }
a.mr-photo:hover img, .mr-hover:hover .mr-photo img { transform: scale(1.04); }

/* ---------- wave divider (hand-drawn line between sections) ---------- */
.mr-wave { display: block; width: 100px; height: 20px; margin-inline: auto; color: var(--mr-muted); opacity: .45; }
.mr-wave--full { width: 100%; height: 20px; opacity: .25; }

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

/* ---------- scroll reveal ----------
   <html class="mr-js"> is set by an inline script in <head>; js/site.js adds .is-visible.
   Without JS everything stays visible (SEO / no-JS safe). */
.mr-js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--mr-ease), transform .9s var(--mr-ease); }
.mr-js [data-reveal].is-visible { opacity: 1; transform: none; }
.mr-js [data-reveal-delay="1"] { transition-delay: .12s; }
.mr-js [data-reveal-delay="2"] { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mr-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
