/* ================================================
   PALÁCIO DIGITAL — Brand Style System
   Hotel de Luxo · Sintra, Portugal
   ================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;1,300;1,400;1,600&family=Montserrat:wght@300;400;500;600&display=swap');

/* ─── 1. Brand Tokens ───────────────────────────── */
:root {
  /* Palette */
  --clr-bg:           #F9F8F5;
  --clr-surface:      #FFFFFF;
  --clr-text:         #2C302E;
  --clr-text-muted:   #8A8D8B;
  --clr-text-light:   #B8BBB9;
  --clr-accent:       #8B7355;    /* Bronze matte profundo */
  --clr-accent-hover: #7A6347;
  --clr-moss:         #4A5240;    /* Verde musgo mate     */
  --clr-moss-light:   #6B7560;
  --clr-border:       rgba(44, 48, 46, 0.10);
  --clr-border-fine:  rgba(44, 48, 46, 0.055);
  --clr-overlay:      rgba(28, 30, 28, 0.52);

  /* Navbar */
  --nav-height:       72px;

  /* Typography */
  --ff-serif:         'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --ff-sans:          'Montserrat', system-ui, -apple-system, sans-serif;

  /* Type Scale */
  --fs-xs:            0.6875rem;   /* 11px */
  --fs-sm:            0.8125rem;   /* 13px */
  --fs-base:          1rem;        /* 16px */
  --fs-lg:            1.25rem;
  --fs-xl:            1.75rem;
  --fs-2xl:           2.5rem;
  --fs-3xl:           3.75rem;
  --fs-4xl:           5.25rem;
  --fs-5xl:           7.5rem;

  /* Letter Spacing */
  --ls-tight:         -0.02em;
  --ls-normal:         0em;
  --ls-wide:           0.06em;
  --ls-wider:          0.14em;
  --ls-widest:         0.24em;

  /* Spacing rhythm */
  --sp-xs:            0.5rem;
  --sp-sm:            1rem;
  --sp-md:            2rem;
  --sp-lg:            4rem;
  --sp-xl:            7rem;
  --sp-2xl:           11rem;

  /* Transitions */
  --ease-base:        cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-expo:        cubic-bezier(0.19, 1, 0.22, 1);
  --dur-fast:         200ms;
  --dur-base:         400ms;
  --dur-slow:         700ms;
  --dur-reveal:       1000ms;
}

/* ─── 2. Reset & Base ───────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-sans);
  font-weight: 300;
  font-size: var(--fs-base);
  line-height: 1.75;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: hidden;
  cursor: none; /* Custom cursor active */
}

/* Hide default cursor on interactive elements */
a, button, label, input, select, textarea, [role="button"] {
  cursor: none;
}

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

dl, ol, ul {
  margin-bottom: 0;
}

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

::selection {
  background-color: var(--clr-accent);
  color: var(--clr-surface);
}

/* ─── 3. Custom Cursor ──────────────────────────── */
.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition-property: transform, opacity, background-color, border-color, width, height;
  transition-timing-function: var(--ease-expo);
}

.cursor-dot {
  width: 5px;
  height: 5px;
  background-color: var(--clr-accent);
  transition-duration: 80ms;
}

.cursor-ring {
  width: 32px;
  height: 32px;
  border: 1px solid rgba(139, 115, 85, 0.55);
  background-color: transparent;
  transition-duration: 350ms;
}

/* Hover states */
body.cursor-hover .cursor-dot {
  transform: translate(-50%, -50%) scale(1.8);
  background-color: var(--clr-moss);
}

body.cursor-hover .cursor-ring {
  width: 52px;
  height: 52px;
  border-color: rgba(74, 82, 64, 0.4);
}

/* ─── 4. Typography Utilities ───────────────────── */
.t-serif     { font-family: var(--ff-serif); }
.t-sans      { font-family: var(--ff-sans); }
.t-muted     { color: var(--clr-text-muted); }
.t-accent    { color: var(--clr-accent); }
.t-moss      { color: var(--clr-moss); }
.t-overline  {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent);
}

/* ─── 5. Scroll Reveal (Intersection Observer) ──── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  var(--dur-reveal) var(--ease-expo),
    transform var(--dur-reveal) var(--ease-expo);
}

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

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 220ms; }
.reveal-delay-3 { transition-delay: 340ms; }
.reveal-delay-4 { transition-delay: 460ms; }

/* Fade only (no vertical movement) */
.reveal-fade {
  opacity: 0;
  transition: opacity var(--dur-reveal) var(--ease-expo);
}
.reveal-fade.visible { opacity: 1; }

/* ─── 6. Divider ────────────────────────────────── */
.rule {
  width: 40px;
  height: 0.5px;
  background-color: var(--clr-accent);
  display: inline-block;
}
.rule--wide { width: 80px; }

/* ─── 7. Buttons ────────────────────────────────── */
/* Ghost button — primary */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-surface);
  border: 0.75px solid rgba(249, 248, 245, 0.5);
  padding: 1rem 2.25rem;
  background: transparent;
  transition:
    background-color var(--dur-base) var(--ease-base),
    border-color     var(--dur-base) var(--ease-base),
    color            var(--dur-base) var(--ease-base);
  position: relative;
  overflow: hidden;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  inset: 0;
  background-color: rgba(249, 248, 245, 0.08);
  opacity: 0;
  transition: opacity var(--dur-base) var(--ease-base);
}

.btn-ghost:hover {
  border-color: rgba(249, 248, 245, 0.9);
}
.btn-ghost:hover::after { opacity: 1; }

/* Ghost button — dark (for light sections) */
.btn-ghost--dark {
  color: var(--clr-text);
  border-color: rgba(44, 48, 46, 0.3);
}
.btn-ghost--dark::after {
  background-color: rgba(44, 48, 46, 0.04);
}
.btn-ghost--dark:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* Solid accent button */
.btn-accent {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-surface);
  background-color: var(--clr-accent);
  border: 0.75px solid var(--clr-accent);
  padding: 1rem 2.25rem;
  transition:
    background-color var(--dur-base) var(--ease-base),
    border-color     var(--dur-base) var(--ease-base);
}

.btn-accent:hover {
  background-color: var(--clr-accent-hover);
  border-color: var(--clr-accent-hover);
  color: var(--clr-surface);
}

/* ─── 8. Navbar ─────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition:
    background-color var(--dur-slow) var(--ease-base),
    box-shadow       var(--dur-slow) var(--ease-base);
  background-color: transparent;
}

#navbar.scrolled {
  background-color: var(--clr-bg);
  box-shadow: 0 0.5px 0 var(--clr-border);
}

.nav-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav-logo {
  font-family: var(--ff-serif);
  font-size: 1.375rem;
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  color: var(--clr-surface);
  transition: color var(--dur-base) var(--ease-base);
  line-height: 1;
}

#navbar.scrolled .nav-logo { color: var(--clr-text); }

.nav-logo span {
  font-weight: 300;
  font-style: italic;
  color: var(--clr-accent);
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
}

.nav-links a {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.75);
  transition: color var(--dur-base) var(--ease-base);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 0.5px;
  background-color: var(--clr-accent);
  transition: width var(--dur-slow) var(--ease-expo);
}

.nav-links a:hover { color: var(--clr-surface); }
.nav-links a:hover::after { width: 100%; }

#navbar.scrolled .nav-links a {
  color: var(--clr-text-muted);
}
#navbar.scrolled .nav-links a:hover {
  color: var(--clr-text);
}

/* Reservar CTA in nav */
.nav-cta {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: var(--clr-surface);
  border: 0.5px solid rgba(249, 248, 245, 0.4);
  padding: 0.55rem 1.4rem;
  transition:
    color         var(--dur-base) var(--ease-base),
    border-color  var(--dur-base) var(--ease-base),
    background    var(--dur-base) var(--ease-base);
}
.nav-cta:hover {
  border-color: var(--clr-surface);
  background: rgba(249, 248, 245, 0.08);
  color: var(--clr-surface);
}

#navbar.scrolled .nav-cta {
  color: var(--clr-accent);
  border-color: rgba(139, 115, 85, 0.4);
}
#navbar.scrolled .nav-cta:hover {
  background: rgba(139, 115, 85, 0.07);
  border-color: var(--clr-accent);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: var(--sp-xs);
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 0.5px;
  background-color: var(--clr-surface);
  transition: transform var(--dur-base) var(--ease-expo), opacity var(--dur-base);
}

#navbar.scrolled .nav-toggle span { background-color: var(--clr-text); }

/* ─── 9. Hero ───────────────────────────────────── */
#hero {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background-color: var(--clr-text);
}

/* Background image — replace src in HTML */
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('assets/images/hero.jpg');
  background-size: cover;
  background-position: center 30%;
  transform: scale(1.04);
  transition: transform 8s var(--ease-base);
}

body.loaded .hero-bg { transform: scale(1); }

/* Overlay */
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(24, 26, 24, 0.45) 0%,
    rgba(24, 26, 24, 0.55) 60%,
    rgba(24, 26, 24, 0.75) 100%
  );
}

/* Fallback gradient when no image */
.hero-bg--gradient {
  background-image:
    radial-gradient(ellipse at 30% 40%, rgba(74, 82, 64, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 70%, rgba(139, 115, 85, 0.2) 0%, transparent 50%),
    linear-gradient(160deg, #1C1E1B 0%, #252820 45%, #1A1D19 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 860px;
  padding-inline: var(--sp-md);
}

.hero-overline {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent-hover);
  color: rgba(196, 173, 142, 0.85);
  margin-bottom: var(--sp-md);
  display: block;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-expo) 0.3s forwards;
}

.hero-title {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-3xl), 8vw, var(--fs-5xl));
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: var(--ls-tight);
  color: var(--clr-surface);
  margin-bottom: var(--sp-md);
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-expo) 0.5s forwards;
}

.hero-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(249, 248, 245, 0.82);
}

.hero-subtitle {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: rgba(249, 248, 245, 0.6);
  max-width: 480px;
  margin-inline: auto;
  margin-bottom: calc(var(--sp-lg) * 1.2);
  line-height: 1.9;
  opacity: 0;
  animation: fadeUp 1.4s var(--ease-expo) 0.75s forwards;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-expo) 1s forwards;
}

/* Scroll indicator */
.hero-scroll {
  position: absolute;
  bottom: var(--sp-md);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  opacity: 0;
  animation: fadeIn 1s var(--ease-expo) 2s forwards;
}

.hero-scroll span {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.4);
}

.scroll-line {
  width: 0.5px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(249,248,245,0.4), transparent);
  animation: scrollPulse 2s var(--ease-base) infinite 2.5s;
}

/* ─── 10. Section Base ──────────────────────────── */
.section {
  padding-block: var(--sp-xl);
}

.section--sm { padding-block: var(--sp-lg); }

.section-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.section-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-sm);
}

.section-title {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-2xl), 4vw, var(--fs-3xl));
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: var(--ls-tight);
  color: var(--clr-text);
}

.section-title em {
  font-style: italic;
  color: var(--clr-accent);
}

.section-lead {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.9;
  color: var(--clr-text-muted);
  max-width: 480px;
}

/* ─── 11. About / Heritage ──────────────────────── */
#sobre {
  background-color: var(--clr-bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: center;
}

.about-visual {
  position: relative;
  aspect-ratio: 4 / 5;
}

.about-visual-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
}

/* Decorative accent frame */
.about-visual::before {
  content: '';
  position: absolute;
  inset: -18px -18px auto auto;
  width: 55%;
  height: 55%;
  border-top: 0.5px solid var(--clr-accent);
  border-right: 0.5px solid var(--clr-accent);
  opacity: 0.4;
  pointer-events: none;
}

.about-visual::after {
  content: '';
  position: absolute;
  inset: auto auto -18px -18px;
  width: 55%;
  height: 55%;
  border-bottom: 0.5px solid var(--clr-moss);
  border-left: 0.5px solid var(--clr-moss);
  opacity: 0.3;
  pointer-events: none;
}

.about-stat-row {
  display: flex;
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.about-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: var(--ff-serif);
  font-size: var(--fs-3xl);
  font-weight: 300;
  line-height: 1;
  color: var(--clr-text);
}

.stat-label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

/* ─── 12. Rooms ─────────────────────────────────── */
#quartos {
  background-color: var(--clr-surface);
}

.rooms-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px; /* hairline grid */
  background-color: var(--clr-border-fine);
}

.room-card {
  background-color: var(--clr-surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform var(--dur-slow) var(--ease-expo);
}

.room-card:hover { transform: translateY(-4px); }

.room-card__img {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
}

.room-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform var(--dur-slow) var(--ease-expo), filter var(--dur-slow) var(--ease-base);
}

.room-card:hover .room-card__img img {
  transform: scale(1.04);
  filter: saturate(1);
}

/* Image placeholder */
.room-card__img-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(145deg, #D8D5CF, #C8C4BC);
  display: flex;
  align-items: center;
  justify-content: center;
}
.room-card__img-placeholder i {
  font-size: 2rem;
  color: rgba(44, 48, 46, 0.2);
}

.room-card__body {
  padding: var(--sp-md) var(--sp-md) var(--sp-lg);
  display: flex;
  flex-direction: column;
  flex: 1;
}

.room-card__category {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent);
  margin-bottom: var(--sp-xs);
}

.room-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  line-height: 1.2;
  color: var(--clr-text);
  margin-bottom: var(--sp-sm);
}

.room-card__desc {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.8;
  color: var(--clr-text-muted);
  flex: 1;
  margin-bottom: var(--sp-md);
}

.room-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--sp-md);
  border-top: 0.5px solid var(--clr-border-fine);
}

.room-card__price {
  display: flex;
  flex-direction: column;
}

.price-value {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1;
}

.price-unit {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--clr-text-muted);
  letter-spacing: var(--ls-wide);
  margin-top: 3px;
}

.room-link {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base) var(--ease-expo), color var(--dur-base) var(--ease-base);
}

.room-link:hover { gap: 10px; color: var(--clr-accent-hover); }

/* ─── 13. Services / Experiências ───────────────── */
#servicos {
  background-color: var(--clr-bg);
  border-top: 0.5px solid var(--clr-border-fine);
}

.services-intro {
  max-width: 560px;
  margin-bottom: var(--sp-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--clr-border);
}

.service-item {
  padding: var(--sp-lg) var(--sp-md);
  border-right: 0.5px solid var(--clr-border-fine);
  transition: background-color var(--dur-slow) var(--ease-base);
}

.service-item:last-child { border-right: none; }

.service-item:hover { background-color: rgba(255, 255, 255, 0.6); }

.service-icon {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-md);
  color: var(--clr-accent);
}

.service-icon i {
  font-size: 1.5rem;
}

.service-name {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 400;
  color: var(--clr-text);
  margin-bottom: var(--sp-xs);
  line-height: 1.3;
}

.service-desc {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.8;
  color: var(--clr-text-muted);
}

/* ─── 14. Reservas ──────────────────────────────── */
#reservas {
  background-color: var(--clr-text);
  padding-block: var(--sp-xl);
  position: relative;
  overflow: hidden;
}

#reservas::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(74, 82, 64, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(139, 115, 85, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

.reservas-inner {
  max-width: 720px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  text-align: center;
  position: relative;
  z-index: 1;
}

.reservas-inner .section-label { color: rgba(196, 173, 142, 0.7); }

.reservas-inner .section-title { color: var(--clr-surface); }
.reservas-inner .section-lead {
  color: rgba(249, 248, 245, 0.5);
  margin-inline: auto;
  margin-block: var(--sp-md) var(--sp-xl);
  max-width: 400px;
}

/* Booking form */
.booking-form {
  background: rgba(249, 248, 245, 0.04);
  border: 0.5px solid rgba(249, 248, 245, 0.1);
  padding: var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background-color: rgba(249, 248, 245, 0.07);
}

.booking-form-row {
  grid-column: 1 / -1;
}

.form-field {
  display: flex;
  flex-direction: column;
  background-color: var(--clr-text);
  padding: var(--sp-sm) var(--sp-md);
  border: none;
  border-bottom: 0.5px solid rgba(249, 248, 245, 0.1);
  position: relative;
}

.form-field label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.38);
  margin-bottom: 6px;
}

.form-field input,
.form-field select {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--clr-surface);
  background: transparent;
  border: none;
  outline: none;
  appearance: none;
  padding: 0;
  line-height: 1.5;
}

.form-field input::placeholder { color: rgba(249, 248, 245, 0.3); }

.form-field select option {
  background-color: var(--clr-text);
  color: var(--clr-surface);
}

.booking-form-submit {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding-top: var(--sp-lg);
}

/* ─── 15. Gallery teaser ────────────────────────── */
#galeria {
  background-color: var(--clr-surface);
  padding-block: var(--sp-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 260px;
  gap: 4px;
}

.gallery-item {
  overflow: hidden;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.75);
  transition: transform var(--dur-slow) var(--ease-expo), filter var(--dur-slow) var(--ease-base);
}

.gallery-item:hover img {
  transform: scale(1.05);
  filter: saturate(1);
}

/*
  Mosaico explícito — 5 peças, 3 linhas, 0 espaços vazios
  ┌──────────────────────┬─────────────────┐
  │  A  (col 1-7, r 1-2) │  B (col 8-12)   │
  │                      ├─────────────────┤
  │                      │  C (col 8-12)   │
  ├───────────────┬───────────────────────┤
  │  D (col 1-5)  │       E (col 6-12)    │
  └───────────────┴───────────────────────┘
*/
.gallery-item--a { grid-column: 1 / 8;  grid-row: 1 / 3; } /* tall left  */
.gallery-item--b { grid-column: 8 / 13; grid-row: 1 / 2; } /* top right  */
.gallery-item--c { grid-column: 8 / 13; grid-row: 2 / 3; } /* mid right  */
.gallery-item--d { grid-column: 1 / 6;  grid-row: 3 / 4; } /* bottom left  */
.gallery-item--e { grid-column: 6 / 13; grid-row: 3 / 4; } /* bottom right */

/* Image placeholder for gallery */
.img-placeholder {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: linear-gradient(145deg, #D8D5CF 0%, #C5C0B8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.img-placeholder span {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(44, 48, 46, 0.25);
}

/* ─── 16. Contatos ──────────────────────────────── */
#contatos {
  background-color: var(--clr-bg);
  border-top: 0.5px solid var(--clr-border-fine);
}

.contatos-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  gap: var(--sp-xl);
  align-items: start;
}

.contatos-divider {
  background-color: var(--clr-border);
  align-self: stretch;
}

.contact-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-xs);
}

.contact-value {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 400;
  color: var(--clr-text);
  line-height: 1.3;
  display: block;
  margin-bottom: var(--sp-md);
  transition: color var(--dur-base) var(--ease-base);
}

.contact-value:hover { color: var(--clr-accent); }

.contact-map {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  border: 0.5px solid var(--clr-border-fine);
  margin-top: var(--sp-md);
}

.contact-map iframe {
  width: 100%;
  height: 100%;
  min-height: 360px;
  border: 0;
  display: block;
  filter: grayscale(1) sepia(0.35) contrast(0.85) brightness(1.04);
  transition: filter var(--dur-slow) var(--ease-base);
}

.contact-map:hover iframe {
  filter: grayscale(0.4) sepia(0.2) contrast(0.88) brightness(1.05);
}

.contact-map span {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-wider);
  text-transform: uppercase;
  color: rgba(44, 48, 46, 0.3);
}

/* ─── 17. Footer ────────────────────────────────── */
#footer {
  background-color: var(--clr-text);
  padding-block: var(--sp-lg);
  border-top: 0.5px solid rgba(249, 248, 245, 0.06);
}

.footer-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--sp-md);
}

.footer-logo {
  font-family: var(--ff-serif);
  font-size: 1.125rem;
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: rgba(249, 248, 245, 0.6);
}

.footer-logo em {
  font-style: italic;
  color: var(--clr-accent);
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-md);
  list-style: none;
}

.footer-links a {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: rgba(249, 248, 245, 0.28);
  transition: color var(--dur-base) var(--ease-base);
}

.footer-links a:hover { color: rgba(249, 248, 245, 0.65); }

.footer-copy {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: rgba(249, 248, 245, 0.28);
  letter-spacing: var(--ls-wide);
  text-align: center;
  margin: 0;
}

/* ─── 18. Scroll Top ────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--clr-bg);
  border: 0.5px solid var(--clr-border);
  color: var(--clr-text-muted);
  font-size: 1.125rem;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity      var(--dur-base) var(--ease-base),
    transform    var(--dur-base) var(--ease-base),
    border-color var(--dur-base) var(--ease-base),
    color        var(--dur-base) var(--ease-base);
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

#scrollTop:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

/* ─── 19. Keyframes ─────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.4; transform: scaleY(1); }
  50%       { opacity: 0.9; transform: scaleY(1.15); }
}

/* ─── 19. Responsive ────────────────────────────── */
@media (max-width: 1200px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .service-item:nth-child(2) { border-right: none; }
  .service-item:nth-child(3) { border-top: 0.5px solid var(--clr-border-fine); }
  .service-item:nth-child(4) { border-top: 0.5px solid var(--clr-border-fine); border-right: none; }
}

@media (max-width: 992px) {
  :root {
    --sp-xl: 5rem;
    --sp-2xl: 7rem;
  }

  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }

  .about-grid { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .about-visual { max-width: 480px; }

  .rooms-grid { grid-template-columns: 1fr; }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 220px;
  }
  .gallery-item--a { grid-column: 1 / 2; grid-row: 1 / 3; }
  .gallery-item--b { grid-column: 2 / 3; grid-row: 1 / 2; }
  .gallery-item--c { grid-column: 2 / 3; grid-row: 2 / 3; }
  .gallery-item--d { grid-column: 1 / 2; grid-row: 3 / 4; }
  .gallery-item--e { grid-column: 2 / 3; grid-row: 3 / 4; }

  .booking-form { grid-template-columns: 1fr; }
  .booking-form-row { grid-column: 1; }

  .contatos-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .contatos-divider { display: none; }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: var(--sp-sm);
  }
  .footer-links { justify-content: center; }
}

@media (max-width: 600px) {
  :root {
    --sp-xl: 4rem;
    --fs-5xl: 5rem;
  }

  .section-inner,
  .nav-inner,
  .reservas-inner,
  .footer-inner { padding-inline: var(--sp-md); }

  .hero-title { font-size: clamp(2.5rem, 12vw, 4rem); }

  .services-grid { grid-template-columns: 1fr; }
  .service-item { border-right: none; border-top: 0.5px solid var(--clr-border-fine); }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 260px;
  }
  .gallery-item--a,
  .gallery-item--b,
  .gallery-item--c,
  .gallery-item--d,
  .gallery-item--e { grid-column: 1; grid-row: auto; }

  .about-stat-row { gap: var(--sp-md); }

  .booking-form { padding: var(--sp-md); }
}

/* ================================================
   PÁGINAS DE QUARTO — Room Detail
   ================================================ */

/* ─── Breadcrumb ────────────────────────────────── */
.breadcrumb-bar {
  padding-block: 1.25rem;
  border-bottom: 0.5px solid var(--clr-border-fine);
  background-color: var(--clr-bg);
}

.breadcrumb-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  color: var(--clr-text-muted);
}

.breadcrumb-inner a {
  color: var(--clr-text-muted);
  transition: color var(--dur-base) var(--ease-base);
}
.breadcrumb-inner a:hover { color: var(--clr-accent); }

.breadcrumb-sep {
  color: var(--clr-border);
  font-size: 0.6rem;
}

/* ─── Room Hero ─────────────────────────────────── */
.room-hero {
  position: relative;
  height: 92svh;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background-color: var(--clr-text);
}

.room-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 9s var(--ease-base);
}
body.loaded .room-hero__bg { transform: scale(1); }

.room-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(20, 22, 20, 0.88) 0%,
    rgba(20, 22, 20, 0.35) 50%,
    rgba(20, 22, 20, 0.15) 100%
  );
}

.room-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  padding-bottom: var(--sp-xl);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-lg);
}

.room-hero__text { max-width: 640px; }

.room-hero__category {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: rgba(196, 173, 142, 0.8);
  margin-bottom: var(--sp-sm);
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 0.3s forwards;
}

.room-hero__title {
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-3xl), 6vw, var(--fs-4xl));
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--clr-surface);
  margin-bottom: var(--sp-md);
  opacity: 0;
  animation: fadeUp 1.2s var(--ease-expo) 0.5s forwards;
}
.room-hero__title em { font-style: italic; color: rgba(249,248,245,0.75); }

.room-hero__meta {
  display: flex;
  gap: var(--sp-lg);
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 0.75s forwards;
}

.room-hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.room-hero__meta-item span:first-child {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: rgba(249,248,245,0.4);
  text-transform: uppercase;
}

.room-hero__meta-item span:last-child {
  font-family: var(--ff-serif);
  font-size: var(--fs-lg);
  font-weight: 300;
  color: rgba(249,248,245,0.85);
}

.room-hero__price {
  text-align: right;
  opacity: 0;
  animation: fadeUp 1s var(--ease-expo) 0.9s forwards;
}

.room-hero__price-label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: rgba(249,248,245,0.35);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.room-hero__price-value {
  display: block;
  font-family: var(--ff-serif);
  font-size: clamp(var(--fs-2xl), 3vw, var(--fs-3xl));
  font-weight: 300;
  color: var(--clr-surface);
  line-height: 1;
}

.room-hero__price-unit {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: rgba(249,248,245,0.35);
  letter-spacing: var(--ls-wide);
  margin-top: 4px;
}

/* ─── Room Overview ─────────────────────────────── */
.room-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-2xl);
  align-items: start;
  padding-block: var(--sp-xl);
}

.room-overview__gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-auto-rows: 220px;
  gap: 4px;
}

.room-overview__img { overflow: hidden; }
.room-overview__img--tall { grid-row: span 2; }

.room-overview__img .img-placeholder,
.room-overview__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.82);
  transition: transform var(--dur-slow) var(--ease-expo), filter var(--dur-slow);
}
.room-overview__img:hover img { transform: scale(1.04); filter: saturate(1); }

.room-overview__body { padding-top: var(--sp-sm); }

.room-overview__desc {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 300;
  line-height: 1.9;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-lg);
}

/* Specs bar */
.room-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 0.5px solid var(--clr-border-fine);
  border-left: 0.5px solid var(--clr-border-fine);
  margin-bottom: var(--sp-lg);
}

.room-spec {
  padding: var(--sp-sm) var(--sp-md);
  border-right: 0.5px solid var(--clr-border-fine);
  border-bottom: 0.5px solid var(--clr-border-fine);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.room-spec i {
  font-size: 1.125rem;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.room-spec__text { display: flex; flex-direction: column; gap: 2px; }

.room-spec__label {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-text-muted);
}

.room-spec__value {
  font-family: var(--ff-serif);
  font-size: var(--fs-base);
  font-weight: 400;
  color: var(--clr-text);
}

/* ─── Amenities ─────────────────────────────────── */
.amenities-section {
  background-color: var(--clr-surface);
  border-top: 0.5px solid var(--clr-border-fine);
  border-bottom: 0.5px solid var(--clr-border-fine);
  padding-block: var(--sp-xl);
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: var(--sp-lg);
  border-top: 0.5px solid var(--clr-border-fine);
}

.amenity-item {
  padding: var(--sp-md);
  border-right: 0.5px solid var(--clr-border-fine);
  border-bottom: 0.5px solid var(--clr-border-fine);
  display: flex;
  align-items: flex-start;
  gap: var(--sp-sm);
}

.amenity-item:nth-child(4n) { border-right: none; }

.amenity-item i {
  font-size: 1.25rem;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.amenity-item__text { display: flex; flex-direction: column; gap: 2px; }

.amenity-item__name {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--clr-text);
}

.amenity-item__detail {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 1.5;
}

/* ─── Room Gallery ──────────────────────────────── */
.room-gallery-section {
  background-color: var(--clr-bg);
  padding-block: var(--sp-xl);
}

.room-gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 240px;
  gap: 4px;
  margin-top: var(--sp-lg);
}

.rg-item { overflow: hidden; position: relative; }
.rg-item .img-placeholder,
.rg-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8);
  transition: transform var(--dur-slow) var(--ease-expo), filter var(--dur-slow);
}
.rg-item:hover img { transform: scale(1.05); filter: saturate(1); }

/* Layout: A(8) B(4) / C(4) D(4) E(4) */
.rg-a { grid-column: 1 / 9; grid-row: 1; }
.rg-b { grid-column: 9 / 13; grid-row: 1; }
.rg-c { grid-column: 1 / 5; grid-row: 2; }
.rg-d { grid-column: 5 / 9; grid-row: 2; }
.rg-e { grid-column: 9 / 13; grid-row: 2; }

/* ─── Related Rooms ─────────────────────────────── */
.related-rooms {
  background-color: var(--clr-text);
  padding-block: var(--sp-xl);
}

.related-rooms .section-label { color: rgba(196,173,142,0.7); }
.related-rooms .section-title { color: var(--clr-surface); }

.related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5px;
  background-color: rgba(249,248,245,0.05);
  margin-top: var(--sp-lg);
}

.related-card {
  background-color: var(--clr-text);
  padding: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  transition: background-color var(--dur-base) var(--ease-base);
  text-decoration: none;
}

.related-card:hover { background-color: #323530; }

.related-card__cat {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-accent);
}

.related-card__name {
  font-family: var(--ff-serif);
  font-size: var(--fs-xl);
  font-weight: 300;
  color: var(--clr-surface);
  line-height: 1.2;
}

.related-card__price {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: rgba(249,248,245,0.3);
  margin-top: auto;
  padding-top: var(--sp-sm);
  border-top: 0.5px solid rgba(249,248,245,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.related-card__price i {
  font-size: 0.875rem;
  color: rgba(249,248,245,0.2);
  transition: color var(--dur-base), transform var(--dur-base) var(--ease-expo);
}
.related-card:hover .related-card__price i {
  color: var(--clr-accent);
  transform: translateX(4px);
}

/* ─── Room Page Responsive ──────────────────────── */
@media (max-width: 992px) {
  .room-overview { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .room-hero__content { flex-direction: column; align-items: flex-start; }
  .room-hero__price { text-align: left; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-item:nth-child(4n) { border-right: 0.5px solid var(--clr-border-fine); }
  .amenity-item:nth-child(2n) { border-right: none; }
  .room-gallery-grid { grid-auto-rows: 180px; }
  .related-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .room-hero__meta { flex-wrap: wrap; gap: var(--sp-md); }
  .amenities-grid { grid-template-columns: 1fr 1fr; }
  .room-overview__gallery { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .room-overview__img--tall { grid-row: span 1; }
  .room-gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 160px;
  }
  .rg-a { grid-column: 1 / 3; grid-row: 1; }
  .rg-b { grid-column: 1 / 2; grid-row: 2; }
  .rg-c { grid-column: 2 / 3; grid-row: 2; }
  .rg-d { grid-column: 1 / 2; grid-row: 3; }
  .rg-e { grid-column: 2 / 3; grid-row: 3; }
  .breadcrumb-inner { padding-inline: var(--sp-md); }
}

/* ================================================
   PÁGINAS LEGAIS
   ================================================ */

/* Header */
.legal-header {
  padding-top: calc(var(--nav-height) + var(--sp-xl));
  padding-bottom: var(--sp-lg);
  border-bottom: 0.5px solid var(--clr-border-fine);
  background-color: var(--clr-bg);
}

.legal-header-inner {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
}

.legal-updated {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  letter-spacing: var(--ls-wide);
  color: var(--clr-text-muted);
  margin-top: var(--sp-sm);
}

/* Body — two-column layout */
.legal-body {
  background-color: var(--clr-bg);
  padding-block: var(--sp-xl);
}

.legal-layout {
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: var(--sp-lg);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: var(--sp-2xl);
  align-items: start;
}

/* Sidebar — sticky index */
.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + var(--sp-lg));
}

.legal-nav {
  background-color: var(--clr-surface);
  border: 0.5px solid var(--clr-border-fine);
  padding: var(--sp-md);
}

.legal-nav__label {
  display: block;
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  padding-bottom: var(--sp-sm);
  border-bottom: 0.5px solid var(--clr-border-fine);
}

.legal-nav ol {
  padding-left: 1.25rem;
  margin: 0;
}

.legal-nav ol li {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 300;
  color: var(--clr-text-muted);
  line-height: 2.2;
}

.legal-nav ol li a {
  color: var(--clr-text-muted);
  text-decoration: none;
  transition: color var(--dur-base) var(--ease-base);
}
.legal-nav ol li a:hover { color: var(--clr-accent); }

/* Related links in sidebar */
.legal-related {
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 0.5px solid var(--clr-border-fine);
  display: flex;
  flex-direction: column;
  gap: var(--sp-xs);
}

.legal-related a {
  font-family: var(--ff-sans);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--clr-accent);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: gap var(--dur-base) var(--ease-expo), color var(--dur-base);
}
.legal-related a:hover { gap: 10px; color: var(--clr-accent-hover); }

/* Main content */
.legal-content {
  min-width: 0; /* prevent grid blowout */
}

.legal-section {
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 0.5px solid var(--clr-border-fine);
}

.legal-section:last-of-type {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.legal-section h2 {
  font-family: var(--ff-serif);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--clr-text);
  margin-bottom: var(--sp-lg);
  line-height: 1.2;
}

.legal-section h3 {
  font-family: var(--ff-sans);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-wide);
  color: var(--clr-text);
  margin-top: var(--sp-lg);
  margin-bottom: var(--sp-sm);
  text-transform: uppercase;
}

.legal-section p {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.9;
  color: var(--clr-text-muted);
  margin-bottom: var(--sp-sm);
  max-width: 72ch;
}

.legal-section p:last-child { margin-bottom: 0; }

.legal-section ul,
.legal-section ol:not(.legal-nav ol) {
  padding-left: 1.5rem;
  margin-bottom: var(--sp-sm);
}

.legal-section ul li,
.legal-section ol:not(.legal-nav ol) li {
  font-family: var(--ff-sans);
  font-size: var(--fs-base);
  font-weight: 300;
  line-height: 1.9;
  color: var(--clr-text-muted);
  margin-bottom: 0.35rem;
  max-width: 72ch;
}

.legal-section a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-decoration-thickness: 0.5px;
  text-underline-offset: 3px;
  transition: color var(--dur-base) var(--ease-base);
}
.legal-section a:hover { color: var(--clr-accent-hover); }

.legal-highlight {
  background-color: rgba(139, 115, 85, 0.05);
  border-left: 2px solid var(--clr-accent);
  padding: var(--sp-md) var(--sp-lg);
  margin-bottom: var(--sp-xl);
}

.legal-highlight p {
  margin-bottom: 0;
  max-width: 100%;
}

/* Responsive */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 220px 1fr;
    gap: var(--sp-lg);
  }
}

@media (max-width: 768px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: var(--sp-lg);
  }
  .legal-sidebar { position: static; }
  .legal-nav { margin-bottom: 0; }
}

@media (max-width: 600px) {
  .legal-header-inner,
  .legal-layout { padding-inline: var(--sp-md); }
}
