/* ==========================================================================
   Base — reset, fonts, typography, layout primitives, shared components
   ========================================================================== */

/* ---- Font faces (self-hosted, no CDN) ---- */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-500-italic.woff2") format("woff2");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/fraunces-latin-600-italic.woff2") format("woff2");
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Work Sans";
  src: url("../fonts/work-sans-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100%; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- Base document ---- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-charcoal-900);
  background: var(--color-cream-50);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--leading-tight);
  color: var(--color-forest-900);
  letter-spacing: -0.01em;
}

p { color: var(--color-charcoal-600); }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-focus);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

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

.section {
  padding-block: var(--space-10);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--space-8);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-sand-600);
  margin-bottom: var(--space-4);
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
  display: inline-block;
}

.section-head h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-4);
}

.section-head p {
  font-size: var(--text-md);
  line-height: var(--leading-relaxed);
}

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

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.95rem 1.75rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.01em;
  border: 1.5px solid transparent;
  transition: background var(--duration-base) var(--ease-standard),
    color var(--duration-base) var(--ease-standard),
    border-color var(--duration-base) var(--ease-standard),
    transform var(--duration-fast) var(--ease-standard);
  white-space: nowrap;
}

.btn:active { transform: translateY(1px); }

.btn--primary {
  background: var(--color-sand-500);
  color: var(--color-ivory-0);
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover { background: var(--color-sand-600); }

.btn--ghost-light {
  background: transparent;
  border-color: rgba(251, 247, 239, 0.45);
  color: var(--color-ivory-0);
}
.btn--ghost-light:hover {
  background: rgba(251, 247, 239, 0.12);
  border-color: rgba(251, 247, 239, 0.8);
}

.btn--outline {
  background: transparent;
  border-color: var(--color-forest-700);
  color: var(--color-forest-700);
}
.btn--outline:hover {
  background: var(--color-forest-700);
  color: var(--color-ivory-0);
}

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-ivory-0);
}
.btn--whatsapp:hover { background: #256b42; }

.btn--sm { padding: 0.7rem 1.3rem; font-size: var(--text-xs); }

.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--color-forest-700);
  border-bottom: 1.5px solid var(--color-sand-300);
  padding-bottom: 2px;
  transition: border-color var(--duration-base) var(--ease-standard), gap var(--duration-base) var(--ease-standard);
}
.link-arrow:hover {
  border-color: var(--color-sand-600);
  gap: var(--space-3);
}
.link-arrow svg { width: 16px; height: 16px; }

/* ---- Scroll-reveal animation ----
   Only active once JS has added .js-reveal to <html> (progressive
   enhancement — if JS fails, content stays visible by default rather
   than getting stuck hidden). main.js observes elements and adds
   [data-reveal] + toggles .is-revealed via IntersectionObserver. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.js-reveal [data-reveal].is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-forest-900);
  color: var(--color-ivory-0);
  padding: var(--space-3) var(--space-5);
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Visually hidden ---- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Placeholder photography block ----
   No final photography has been supplied yet (see /assets/images/README.txt).
   These blocks hold the correct aspect ratio and layout position, and are
   clearly labelled so they cannot be mistaken for finished imagery. Swap the
   element's background-image (or replace with an <img>) once real photos
   from the client are available. */
.media-placeholder {
  position: relative;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(155deg, var(--color-forest-700) 0%, var(--color-forest-900) 100%);
  color: var(--color-ivory-0);
  overflow: hidden;
  isolation: isolate;
}
.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(251, 247, 239, 0.14), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(192, 129, 63, 0.28), transparent 46%);
  z-index: 0;
}
.media-placeholder__tag {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin: var(--space-4);
  padding: 0.5rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
  background: rgba(20, 43, 29, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 247, 239, 0.25);
  border-radius: var(--radius-pill);
  line-height: 1.3;
}
.media-placeholder__tag svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ---- Real photography ----
   Fills a placeholder-shaped box with an actual photo (object-fit: cover),
   keeping the same aspect-ratio containers used by media-placeholder so
   layout doesn't shift as real images replace placeholders. */
.media-photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.media-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.media-photo:hover img,
.media-photo:focus-within img {
  transform: scale(1.055);
}
@media (prefers-reduced-motion: reduce) {
  .media-photo img { transition: none; }
  .media-photo:hover img { transform: none; }
}
.media-photo__tag {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 0.85rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-ivory-0);
  background: rgba(20, 43, 29, 0.55);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(251, 247, 239, 0.25);
  border-radius: var(--radius-pill);
}
.media-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(20,43,29,0.55) 0%, rgba(20,43,29,0) 38%);
  z-index: 0;
  pointer-events: none;
}
.media-photo--no-caption::after { display: none; }

/* Warm variant for sand-toned placeholders */
.media-placeholder--sand {
  background: linear-gradient(155deg, #B87B3E 0%, #7C4F22 100%);
}

/* ---- Postcard photo frame ----
   A signature treatment: a slightly rotated white-bordered frame, like a
   printed photo pinned to a corkboard. Used sparingly on hero/feature
   images rather than every card, so it reads as a deliberate accent. */
.photo-frame {
  background: var(--color-ivory-0);
  padding: 10px 10px 34px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2.2deg);
  position: relative;
}
.photo-frame::after {
  content: attr(data-caption);
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--text-xs);
  color: var(--color-charcoal-600);
  text-align: center;
}
.photo-frame .media-photo,
.photo-frame .media-placeholder {
  border-radius: 2px;
  box-shadow: none;
}
.photo-frame--right { transform: rotate(2.4deg); }

/* ---- Stamp badge ----
   A rotated, dashed-ring circular badge in the style of a passport or
   postmark stamp — the site's recurring travel motif, used for trust
   signals instead of a generic pill badge. */
.stamp-badge {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  border: 2px solid var(--color-sand-500);
  color: var(--color-sand-600);
  background: var(--color-ivory-0);
  transform: rotate(-8deg);
  flex-shrink: 0;
  text-align: center;
  box-shadow: var(--shadow-md);
}
.stamp-badge::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--color-sand-300);
  border-radius: 50%;
}
.stamp-badge__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--color-forest-900);
}
.stamp-badge__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  margin-top: 3px;
  max-width: 80px;
  line-height: 1.25;
}
.stamp-badge .stars { color: var(--color-sand-500); margin-top: 2px; }
.stamp-badge .stars svg { width: 10px; height: 10px; }
