:root {
  --bg: #E5E1DA;
  --ink: #3a2f27;
  --ink-muted: #6b5f52;
  --accent: #9D7655;
  --accent-hover: #b58e6e;
  --accent-dark-hover: #7d5a41;
  --dark: #362a21;
  --sand: #dbd6c8;
  --sand-2: #dcd6c7;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Work Sans', sans-serif;
  overflow-x: hidden;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

::selection { background: var(--accent); color: #fff; }

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

h1, h2 { font-family: 'Cormorant Garamond', serif; font-weight: 600; margin: 0; }

.eyebrow {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
}
.eyebrow-light { color: #fff; opacity: 0.9; }
.eyebrow-accent { color: var(--accent); }
.eyebrow-accent-light { color: #d9c3ab; }

.h-md { font-size: clamp(32px, 4vw, 52px); line-height: 1.1; margin-bottom: 20px; }
.h-lg { font-size: clamp(36px, 4.5vw, 58px); line-height: 1.1; margin-bottom: 26px; }
.h-xl { font-size: clamp(40px, 5vw, 60px); line-height: 1.1; margin-bottom: 28px; }

.body-text { font-size: 17px; line-height: 1.8; color: var(--ink-muted); margin: 0 0 32px; max-width: 460px; }

/* Buttons */
.btn {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

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

.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: var(--sand-2); color: var(--ink); }

.btn-outline-light { border-color: rgba(255,255,255,0.7); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,0.15); color: #fff; }

.btn-outline-dark { border-color: #d9c3ab; color: var(--bg); padding: 13px 24px; }
.btn-outline-dark:hover { background: rgba(255,255,255,0.08); color: var(--bg); }

.link-underline {
  display: inline-block;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 4px;
  font-size: 14px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink);
}
.link-underline:hover { color: var(--accent); border-color: var(--accent); }

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, backdrop-filter 0.35s;
  background: transparent;
}
.site-header.is-scrolled {
  background: rgba(54,42,33,0.82);
  backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.header-inner {
  max-width: 1500px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.logo-link { display: flex; align-items: center; flex-shrink: 0; }
.logo-img { height: 44px; width: auto; filter: brightness(0) invert(1); }

.main-nav { display: flex; align-items: center; gap: 26px; flex-shrink: 1; min-width: 0; }
.nav-link {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.92;
  white-space: nowrap;
}
.nav-link:hover { color: #fff; opacity: 1; }

.nav-item-dropdown { position: relative; }
.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 14px;
  min-width: 220px;
  background: rgba(54,42,33,0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.nav-item-dropdown:hover .nav-dropdown,
.nav-item-dropdown:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-dropdown a {
  display: block;
  padding: 10px 22px;
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: none;
  font-weight: 500;
  opacity: 0.85;
  white-space: nowrap;
}
.nav-dropdown a:hover { opacity: 1; background: rgba(255,255,255,0.06); }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}
.nav-toggle span { display: block; height: 2px; width: 100%; background: #fff; transition: transform 0.25s, opacity 0.25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero {
  position: relative;
  height: 100vh;
  min-height: 640px;
  display: flex;
  align-items: flex-end;
  color: #fff;
}
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(38,28,20,0.35) 0%, rgba(38,28,20,0.15) 40%, rgba(38,28,20,0.75) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px 80px;
  width: 100%;
}
.hero-title { font-size: clamp(42px, 7vw, 96px); line-height: 1.02; margin-bottom: 22px; }
.hero-dates { font-size: 16px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 36px; opacity: 0.9; }

/* Award strip */
.award-strip {
  max-width: 1400px;
  margin: 0 auto;
  padding: 90px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.award-badge-row { display: flex; align-items: center; gap: 20px; margin-bottom: 28px; }
.award-circle {
  height: 64px; width: 64px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px; font-weight: 700;
  color: var(--accent);
  flex-shrink: 0;
}
.award-label { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: var(--accent); max-width: 180px; line-height: 1.5; }
.award-text { margin-bottom: 20px; }
.discount-pill { display: inline-block; background: var(--sand-2); color: var(--ink); padding: 10px 20px; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600; }

.award-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.award-img { width: 100%; height: 340px; object-fit: cover; }
.award-img-b { margin-top: 60px; }

/* Generic split sections */
.section-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split-section, .rooms-section { padding: 110px 40px; }
.section-img { width: 100%; height: 480px; object-fit: cover; }
.section-img-tall { height: 520px; }

.restaurant-section { background: var(--dark); color: var(--bg); padding: 110px 40px; }
.restaurant-section .body-text,
.restaurant-section .hours-list { color: var(--bg); }
.hours-list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 36px; font-size: 16px; line-height: 1.7; }

.rooms-section { background: var(--sand); }
.offset-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.offset-img { width: 100%; height: 300px; object-fit: cover; }
.offset-img-b { margin-top: 50px; }

/* Family */
.family-section { position: relative; padding: 140px 40px; color: #fff; text-align: center; }
.family-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.family-overlay { position: absolute; inset: 0; z-index: 1; background: rgba(38,28,20,0.55); }
.family-content { position: relative; z-index: 2; max-width: 700px; margin: 0 auto; }
.family-content .eyebrow { margin-bottom: 22px; }
.family-text { font-size: 18px; line-height: 1.7; opacity: 0.92; margin: 0; }

/* Contact */
.contact-section {
  max-width: 1400px;
  margin: 0 auto;
  padding: 110px 40px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 80px;
}
.address { font-size: 16px; line-height: 2; color: var(--ink-muted); margin-bottom: 8px; }
.contact-links { font-size: 16px; line-height: 2; margin-bottom: 28px; }
.contact-links a { color: var(--ink); }
.contact-links a:hover { color: var(--accent); }
.map-frame { width: 100%; height: 260px; border: 0; }

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 24px;
  max-width: 560px;
}
.form-field { display: block; grid-column: span 1; }
.form-field-full { grid-column: span 2; }
.form-label {
  display: block;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 8px;
}
.form-field input,
.form-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 2px;
  border: none;
  border-bottom: 1px solid #c7bda8;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
}
.form-field textarea { resize: vertical; }
.form-field input:focus,
.form-field textarea:focus { outline: none; border-bottom-color: var(--accent); }

.form-consent {
  grid-column: span 2;
  font-size: 13px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 4px;
}
.form-consent input { margin-top: 3px; }
.form-consent a { color: var(--accent); }

.form-submit {
  grid-column: span 2;
  border: none;
  padding: 16px 32px;
  justify-self: start;
  margin-top: 8px;
}
.form-submit:disabled { opacity: 0.6; cursor: not-allowed; }

.contact-form__status,
.contact-form__error {
  grid-column: span 2;
  font-size: 14px;
  padding: 14px 18px;
  margin-top: 4px;
}
.contact-form__status { background: rgba(157,118,85,0.1); color: var(--ink); border: 1px solid var(--accent); }
.contact-form__error { background: rgba(178,35,24,0.08); color: #b42318; border: 1px solid #b42318; }

/* Footer */
.site-footer { background: var(--dark); color: #d9cdbd; padding: 70px 40px 40px; }
.footer-grid {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}
.footer-logo { height: 52px; width: auto; filter: brightness(0) invert(1); margin-bottom: 20px; }
.footer-address { font-size: 14px; line-height: 1.8; }
.footer-heading { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600; color: #d9c3ab; margin-bottom: 18px; }
.footer-links { font-size: 14px; line-height: 2; }
.footer-links a, .footer-legal a { color: #d9cdbd; }
.footer-links a:hover, .footer-legal a:hover { color: #fff; }
.footer-legal { font-size: 14px; line-height: 2; display: flex; flex-direction: column; }
.lang-switch { display: flex; align-items: center; gap: 6px; font-size: 12px; letter-spacing: 0.05em; margin-top: 16px; }
.lang-switch a { color: #d9cdbd; opacity: 0.7; }
.lang-switch .lang-active { color: #fff; opacity: 1; font-weight: 700; }
.lang-switch span { opacity: 0.4; color: #d9cdbd; }
.footer-copy { max-width: 1400px; margin: 0 auto; padding-top: 30px; font-size: 13px; opacity: 0.6; }

/* Responsive */
@media (max-width: 1000px) {
  .award-strip,
  .section-grid,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .award-images { order: -1; }
  .footer-grid { grid-template-columns: 1fr; gap: 40px; }
  .section-img, .section-img-tall { height: 360px; }
  .award-img, .award-img-b { height: 260px; margin-top: 0; }
  .offset-img, .offset-img-b { height: 240px; margin-top: 0; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0; right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: rgba(54,42,33,0.97);
    backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 28px;
    padding: 40px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
  }
  .main-nav.is-open { transform: translateX(0); }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }

  .nav-item-dropdown { display: flex; flex-direction: column; gap: 16px; }
  .nav-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    background: none;
    backdrop-filter: none;
    box-shadow: none;
    padding: 0 0 0 16px;
    margin-top: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
  }
  .nav-dropdown a { padding: 0; font-size: 12px; }
}

@media (max-width: 640px) {
  .header-inner { padding: 14px 20px; }
  .contact-form { grid-template-columns: 1fr; max-width: none; }
  .form-field, .form-field-full, .form-consent, .form-submit { grid-column: span 1; }
  .btn-row { gap: 12px; }
}

/* ===== Subpages (DB-driven sections) ===== */

/* Sticky solid header used on every non-home page */
.site-header.header--subpage {
  position: sticky;
  background: var(--dark);
  backdrop-filter: none;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.nav-link.is-active { opacity: 1; border-bottom: 1px solid #fff; padding-bottom: 2px; }

/* split-section background variants */
.split-section--dark { background: var(--dark); color: var(--bg); }
.split-section--dark .body-text,
.split-section--dark .hours-list,
.split-section--dark .room-row-body { color: var(--bg); }
.split-section--sand { background: var(--sand); }

.split-quote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.5;
  font-weight: 500;
  margin: 0;
}

.link-underline-light { color: var(--bg); border-color: var(--bg); }
.link-underline-light:hover { color: var(--accent); border-color: var(--accent); }

.btn-outline-brown { border-color: var(--ink); color: var(--ink); padding: 13px 24px; }
.btn-outline-brown:hover { background: rgba(0,0,0,0.05); }

/* Page hero (Rooms / Events / Galerie titles) */
.page-hero { max-width: 1400px; margin: 0 auto; padding: 100px 40px 60px; text-align: center; }
.page-hero-title { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; }

/* Single full-width image banner */
.image-banner { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; }
.image-banner img { width: 100%; height: 560px; object-fit: cover; }

/* Photo grids (Events / Gallery / room detail) */
.photo-grid { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; display: grid; gap: 18px; }
.photo-grid img { width: 100%; height: 100%; min-height: 230px; object-fit: cover; display: block; }
.photo-grid-3 { grid-template-columns: repeat(3, 1fr); }
.photo-grid-3 img { height: 260px; min-height: 0; }
.photo-grid-4 { grid-template-columns: repeat(4, 1fr); }
.photo-grid-4 img { height: 230px; }
.photo-grid-item-tall { grid-row: span 2; min-height: 490px !important; height: 100% !important; }

/* Room rows (Rooms overview listing) */
.room-rows { padding: 100px 40px; }
.room-rows--sand { background: var(--sand); }
.room-rows-inner { max-width: 1400px; margin: 0 auto; }
.room-rows-images { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 40px; }
.room-rows-images img { width: 100%; height: 360px; object-fit: cover; }
.room-rows-texts { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.h-room { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3vw, 38px); margin: 0 0 14px; font-weight: 600; }
.room-row-body { font-size: 16px; line-height: 1.7; margin: 0 0 18px; max-width: none; }
.room-row-specs { font-size: 14px; line-height: 2; color: var(--ink-muted); margin-bottom: 22px; }

/* Centered text block */
.text-center-block { max-width: 900px; margin: 0 auto; padding: 110px 40px; text-align: center; }
.text-center-body { margin: 0 auto 32px; max-width: none; }
.btn-row-center { justify-content: center; }

/* Quote section */
.quote-section { background: var(--dark); color: var(--bg); padding: 120px 40px; text-align: center; }
.quote-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.5; font-weight: 500; max-width: 820px; margin: 0 auto 24px; }
.quote-attribution { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: #d9c3ab; }

/* Standalone map section */
.map-section { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; }
.map-frame-standalone { width: 100%; height: 340px; border: 0; }

/* Room detail header */
.room-header-back { max-width: 1400px; margin: 0 auto; padding: 60px 40px 0; }
.back-link { font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.room-header {
  max-width: 1400px; margin: 0 auto; padding: 24px 40px 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.room-header-title { font-size: clamp(38px, 5.5vw, 64px); line-height: 1.05; }
.room-header-cta { display: inline-flex; align-items: center; gap: 12px; padding: 16px 28px; }
.room-header-badge { background: rgba(255,255,255,0.25); padding: 4px 10px; border-radius: 2px; font-size: 11px; }

/* Room detail info */
.room-info { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 80px; }
.h-room-info { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3vw, 36px); margin: 0 0 22px; font-weight: 600; }
.room-info-paragraph { max-width: none; margin: 0 0 20px; }
.room-amenities-box { background: var(--sand); padding: 36px; }
.h-amenities { font-family: 'Cormorant Garamond', serif; font-size: 22px; margin: 0 0 18px; font-weight: 600; }
.amenities-list { display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--ink-muted); }

/* Related rooms */
.related-rooms { max-width: 1400px; margin: 0 auto; padding: 0 40px 120px; }
.h-related { font-family: 'Cormorant Garamond', serif; font-size: clamp(26px, 3vw, 34px); margin: 0 0 34px; font-weight: 600; text-align: center; }
.related-rooms-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.related-room-card { display: block; }
.related-room-card img { width: 100%; height: 220px; margin-bottom: 16px; object-fit: cover; }
.related-room-title { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.related-room-meta { font-size: 14px; color: var(--ink-muted); }

/* Bottom CTA banner (room detail) */
.cta-center { background: var(--dark); color: var(--bg); padding: 90px 40px; text-align: center; }
.h-cta-center { font-family: 'Cormorant Garamond', serif; font-size: clamp(28px, 3.5vw, 40px); margin: 0 0 26px; font-weight: 600; }

@media (max-width: 1000px) {
  .room-rows-images,
  .room-rows-texts,
  .room-info { grid-template-columns: 1fr; gap: 32px; }
  .room-rows-images img { height: 280px; }
  .photo-grid-3, .photo-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .photo-grid-item-tall { grid-row: span 1; min-height: 230px !important; }
  .related-rooms-grid { grid-template-columns: 1fr; }
  .room-header { flex-direction: column; align-items: flex-start; }
}

/* Legal pages (Impressum / Datenschutz) */
.legal-text-block { padding: 100px 40px 120px; }
.legal-text-container { max-width: 800px; margin: 0 auto; }
.legal-text-updated { font-size: 14px; color: var(--ink-muted); margin: 0 0 40px; }
.legal-text-body { font-size: 16px; line-height: 1.8; color: var(--ink-muted); }
.legal-text-body h2 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 600; color: var(--ink); margin: 40px 0 14px; }
.legal-text-body h2:first-child { margin-top: 0; }
.legal-text-body p, .legal-text-body ul { margin: 0 0 18px; }
.legal-text-body ul { padding-left: 22px; }
.legal-text-body a { color: var(--accent); text-decoration: underline; }
.legal-text-body strong { color: var(--ink); font-weight: 600; }

/* Image carousel (room detail pages) */
.carousel-block { max-width: 1400px; margin: 0 auto; padding: 0 40px 100px; }
.carousel { position: relative; overflow: hidden; }
.carousel-track { position: relative; width: 100%; height: 560px; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s cubic-bezier(.22,1,.36,1);
}
.carousel-slide.is-active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }

.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px;
  border: none; border-radius: 50%;
  background: rgba(54,42,33,0.55);
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
  z-index: 2;
}
.carousel-arrow:hover { background: rgba(54,42,33,0.85); }
.carousel-arrow-prev { left: 20px; }
.carousel-arrow-next { right: 20px; }

.carousel-dots {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 2;
}
.carousel-dot {
  width: 9px; height: 9px; border-radius: 50%;
  border: none; padding: 0;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.carousel-dot.is-active { background: #fff; transform: scale(1.2); }

@media (max-width: 640px) {
  .carousel-track { height: 340px; }
  .carousel-arrow { width: 38px; height: 38px; font-size: 20px; }
}

/* Scroll-triggered reveal (site-wide) */
.sm-reveal {
  opacity: 0;
  transform: translateY(40px);
  filter: blur(3px);
  transition:
    opacity .8s cubic-bezier(.22,1,.36,1),
    transform .8s cubic-bezier(.22,1,.36,1),
    filter .8s cubic-bezier(.22,1,.36,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
.sm-reveal.is-visible { opacity: 1; transform: translateY(0); filter: blur(0); }

/* Hero + header entrance */
.hero-content > * { animation: sm-fade-up .9s cubic-bezier(.22,1,.36,1) both; }
.hero-content > *:nth-child(2) { animation-delay: .1s; }
.hero-content > *:nth-child(3) { animation-delay: .2s; }
.hero-content > *:nth-child(4) { animation-delay: .3s; }
.page-hero { animation: sm-fade-up .9s cubic-bezier(.22,1,.36,1) both; }
.site-header { animation: sm-fade-down .6s cubic-bezier(.22,1,.36,1) both; }

@keyframes sm-fade-up {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes sm-fade-down {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .sm-reveal, .hero-content > *, .page-hero, .site-header {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .carousel-slide { transition: none !important; }
}
