/* =====================================================
   NAMIREMBE GUESTHOUSE -- MAIN GLOBAL STYLES
   Typography, layout utilities, page structure
   ===================================================== */

/* "-"- PAGE WRAPPER "-"- */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-main {
  flex: 1;
  padding-top: var(--header-height);
}

/* "-"- CONTAINER "-"- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-4);
}

.container--sm   { max-width: var(--container-sm); }
.container--md   { max-width: var(--container-md); }
.container--lg   { max-width: var(--container-lg); }
.container--2xl  { max-width: var(--container-2xl); }
.container--full { max-width: 100%; padding-inline: 0; }

@media (min-width: 768px) {
  .container { padding-inline: var(--space-6); }
}

@media (min-width: 1024px) {
  .container { padding-inline: var(--space-8); }
}

/* "-"- TYPOGRAPHY base "-"- */
body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-normal);
  line-height: var(--leading-normal);
  color: var(--color-earth);
}

/* Display headings -- use for heroes and section titles */
.display-1 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 8vw, var(--text-6xl));
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.display-2 {
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
  font-weight: var(--weight-normal);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
}

.display-3 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl));
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
}

/* Standard headings */
h1 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-2xl), 5vw, var(--text-4xl));
  font-weight: var(--weight-light);
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-tight);
}

h2 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-xl), 3.5vw, var(--text-3xl));
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
}

h3 {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl));
  font-weight: var(--weight-normal);
  line-height: var(--leading-snug);
}

h4 {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

h5 {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  line-height: var(--leading-snug);
}

h6 {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
}

p {
  line-height: var(--leading-relaxed);
  color: var(--color-earth-mid);
}

p + p {
  margin-top: var(--space-4);
}

/* Eyebrow / label text */
.eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  color: var(--color-ochre);
}

/* Lead / intro text */
.lead {
  font-family: var(--font-heading);
  font-size: clamp(var(--text-md), 2vw, var(--text-xl));
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  font-style: italic;
  color: var(--color-earth-mid);
}

/* Caption */
.caption {
  font-size: var(--text-xs);
  color: var(--color-earth-light);
  line-height: var(--leading-normal);
}

/* Quote / pullquote */
blockquote {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-style: italic;
  font-weight: var(--weight-light);
  line-height: var(--leading-relaxed);
  padding-left: var(--space-6);
  border-left: 3px solid var(--color-ochre);
  color: var(--color-earth);
}

/* "-"- LINKS "-"- */
a {
  color: var(--color-ochre);
  transition: var(--transition-color);
}

a:hover {
  color: var(--color-ochre-dark);
}

.link-underline {
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--color-ochre) 40%, transparent);
  text-underline-offset: 3px;
  transition: text-decoration-color var(--duration-base) var(--ease-in-out);
}

.link-underline:hover {
  text-decoration-color: var(--color-ochre);
}

/* "-"- SECTION LAYOUT "-"- */
.section {
  padding-block: var(--space-16);
}

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

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

.section--dark {
  background-color: var(--color-earth);
  color: var(--color-ivory);
}

.section--dark p {
  color: var(--color-ivory-dark);
}

.section--forest {
  background-color: var(--color-forest);
  color: var(--color-ivory);
}

.section--ivory {
  background-color: var(--color-ivory-warm);
}

.section--pattern {
  background-color: var(--color-ivory-warm);
  background-image: var(--texture-grain);
  background-size: 256px 256px;
}

/* Section header */
.section-header {
  margin-bottom: var(--space-12);
}

.section-header--center {
  text-align: center;
}

.section-header .eyebrow {
  display: inline-block;
  margin-bottom: var(--space-3);
}

.section-header h2,
.section-header h3 {
  margin-bottom: var(--space-4);
}

.section-header p {
  max-width: 60ch;
}

.section-header--center p {
  margin-inline: auto;
}

/* Decorative rule */
.section-rule {
  width: 48px;
  height: 2px;
  background: var(--gradient-gold);
  margin-bottom: var(--space-6);
  border: none;
}

.section-header--center .section-rule {
  margin-inline: auto;
}

/* "-"- GRID UTILITIES "-"- */
.grid {
  display: grid;
  gap: var(--space-6);
}

.grid-2  { grid-template-columns: repeat(2, 1fr); }
.grid-3  { grid-template-columns: repeat(3, 1fr); }
.grid-4  { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid-auto-sm { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }

@media (max-width: 1023px) {
  .grid-4  { grid-template-columns: repeat(2, 1fr); }
  .grid-3  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .grid-2,
  .grid-3,
  .grid-4 { grid-template-columns: 1fr; }
  .grid   { gap: var(--space-4); }

  /* No fixed header on mobile, so no offset needed */
  .page-main { padding-top: 0; }
}

/* "-"- FLEX UTILITIES "-"- */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.flex-wrap  { flex-wrap: wrap; }
.items-center   { align-items: center; }
.items-start    { align-items: flex-start; }
.items-end      { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between{ justify-content: space-between; }
.justify-end    { justify-content: flex-end; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* "-"- SPACING UTILITIES "-"- */
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mx-auto { margin-inline: auto; }

/* "-"- TEXT UTILITIES "-"- */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.text-primary { color: var(--color-ochre); }
.text-dark    { color: var(--color-earth); }
.text-muted   { color: var(--color-earth-light); }
.text-white   { color: var(--color-white); }
.text-forest  { color: var(--color-forest); }
.uppercase    { text-transform: uppercase; }
.italic       { font-style: italic; }
.font-display { font-family: var(--font-display); }
.font-heading { font-family: var(--font-heading); }

/* "-"- DISPLAY UTILITIES "-"- */
.hidden   { display: none; }
.sr-only  {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* "-"- DIVIDERS "-"- */
.divider {
  border: none;
  border-top: var(--border-thin);
  margin-block: var(--space-6);
}

.divider--gold {
  border-color: var(--color-ochre);
  opacity: 0.4;
}

/* "-"- PAGE HERO (shared base) "-"- */
.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding-bottom: var(--space-12);
  overflow: hidden;
  background-color: var(--color-earth);
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.55;
  transform: scale(1.05);
  transition: transform 8s var(--ease-out);
}

.page-hero:hover .page-hero__bg {
  transform: scale(1.08);
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--gradient-hero);
}

.page-hero__content {
  position: relative;
  z-index: var(--z-raised);
  width: 100%;
}

.page-hero .eyebrow {
  color: var(--color-ochre-light);
  margin-bottom: var(--space-3);
}

.page-hero h1 {
  color: var(--color-ivory);
  font-family: var(--font-display);
  font-size: clamp(var(--text-3xl), 6vw, var(--text-5xl));
}

.page-hero .lead {
  color: var(--glass-text-hover);
  margin-top: var(--space-4);
}

/* "-"- BREADCRUMB "-"- */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-earth-light);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--color-earth-light);
  transition: var(--transition-color);
}

.breadcrumb a:hover {
  color: var(--color-ochre);
}

.breadcrumb__sep {
  color: var(--color-cloud);
}

.breadcrumb__current {
  color: var(--color-earth);
  font-weight: var(--weight-medium);
}

/* "-"- LOADING / SKELETON "-"- */
.skeleton {
  background: linear-gradient(90deg,
    var(--color-ivory-dark) 25%,
    var(--color-ivory-warm) 50%,
    var(--color-ivory-dark) 75%
  );
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* "-"- PAGE TRANSITIONS "-"- */
.page-enter {
  animation: page-enter var(--duration-slow) var(--ease-out) forwards;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* "-"- STAGGER ANIMATIONS "-"- */
.stagger > * {
  opacity: 0;
  transform: translateY(24px);
  animation: stagger-in var(--duration-slow) var(--ease-out) forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.12s; }
.stagger > *:nth-child(3) { animation-delay: 0.20s; }
.stagger > *:nth-child(4) { animation-delay: 0.28s; }
.stagger > *:nth-child(5) { animation-delay: 0.36s; }
.stagger > *:nth-child(6) { animation-delay: 0.44s; }

@keyframes stagger-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Intersection observer revealed items */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal-left.is-visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity var(--duration-slower) var(--ease-out),
              transform var(--duration-slower) var(--ease-out);
}

.reveal-right.is-visible {
  opacity: 1;
  transform: translateX(0);
}

/* "-"- PRICE DISPLAY "-"- */
.price {
  font-family: var(--font-price);
  font-weight: var(--weight-semibold);
  color: var(--color-ochre-dark);
}

.price--lg {
  font-size: var(--text-2xl);
}

.price--xl {
  font-size: var(--text-3xl);
}

.price__currency {
  font-size: 0.6em;
  vertical-align: super;
  line-height: 1;
  font-weight: var(--weight-normal);
}

.price__period {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-normal);
  color: var(--color-earth-light);
  margin-left: 2px;
}

/* "-"- RATING STARS "-"- */
.stars {
  display: flex;
  gap: 2px;
  color: var(--color-ochre);
}

.stars svg {
  width: 16px;
  height: 16px;
}

/* "-"- IMAGE RATIO HELPERS "-"- */
.aspect-4-3   { aspect-ratio: 4 / 3; }
.aspect-16-9  { aspect-ratio: 16 / 9; }
.aspect-3-2   { aspect-ratio: 3 / 2; }
.aspect-1-1   { aspect-ratio: 1 / 1; }
.aspect-1-2   { aspect-ratio: 1 / 2; }

.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* "-"- MAP CONTAINER "-"- */
.map-container {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  min-height: 400px;
  border: none;
}

/* "-"- EMPTY STATE "-"- */
.empty-state {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--color-earth-light);
}

.empty-state__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.4;
}

.empty-state__title {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  color: var(--color-earth-mid);
  margin-bottom: var(--space-2);
}

.empty-state__desc {
  font-size: var(--text-sm);
}

/* "-"- ACCESSIBILITY "-"- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  z-index: var(--z-top);
  padding: var(--space-2) var(--space-4);
  background: var(--color-ochre);
  color: var(--color-white);
  font-weight: var(--weight-semibold);
  border-radius: var(--radius-md);
  transition: top var(--duration-fast);
}

.skip-link:focus {
  top: var(--space-4);
}

/* "-"- PRINT "-"- */
@media print {
  .no-print { display: none !important; }
  body { background: white; color: black; }
  a { color: black; }
}


