/* ==========================================================================
   Wallegg-Stube — Lenk im Simmental
   ========================================================================== */

:root {
  --charcoal: #211b16;
  --charcoal-soft: #2c241d;
  --cream: #f6f0e4;
  --parchment: #efe6d3;
  --parchment-dark: #e4d8bd;
  --wood: #5c3d29;
  --rust: #a2502e;
  --pine: #3e4c37;
  --gold: #ad8a4e;
  --ink: #2c2620;
  --ink-soft: #5a5145;
  --line: rgba(44, 36, 29, 0.14);

  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-script: "Dancing Script", cursive;
  --font-body: "EB Garamond", Georgia, serif;

  --max-width: 1180px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  font-size: 1.08rem;
  -webkit-font-smoothing: antialiased;
}

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

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

ul {
  list-style: none;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.75rem;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--charcoal);
  letter-spacing: 0.01em;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-script);
  font-size: 1.7rem;
  color: var(--rust);
  margin-bottom: 0.35rem;
}

.section-title {
  font-size: clamp(2rem, 3.4vw, 2.9rem);
  margin-bottom: 1.1rem;
}

.divider {
  width: 100%;
  height: 34px;
  color: var(--gold);
  opacity: 0.85;
}

.divider svg {
  width: 100%;
  height: 100%;
}

.lede {
  max-width: 620px;
  color: var(--ink-soft);
  font-size: 1.1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.98rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.85rem 1.9rem;
  border: 1px solid currentColor;
  border-radius: 2px;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--rust);
  border-color: var(--rust);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--charcoal);
  border-color: var(--charcoal);
}

.btn-ghost {
  background: transparent;
  color: var(--cream);
  border-color: rgba(246, 240, 228, 0.55);
}
.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(246, 240, 228, 0.08);
}

.btn-outline {
  background: transparent;
  color: var(--charcoal);
  border-color: var(--charcoal);
}
.btn-outline:hover {
  background: var(--charcoal);
  color: var(--cream);
}

/* ---------------------------------- Header ------------------------------ */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
  padding: 1.4rem 0;
}

.site-header.is-scrolled {
  background: var(--charcoal);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  padding: 0.75rem 0;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  line-height: 0;
}

.logo img {
  height: 64px;
  width: auto;
  transition: height 0.3s ease;
}

.site-header.is-scrolled .logo img {
  height: 48px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2.1rem;
}

.main-nav a {
  font-size: 0.92rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: 0.88;
  position: relative;
  padding-bottom: 4px;
}

.main-nav a:hover {
  opacity: 1;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.main-nav a:hover::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  color: var(--cream);
  opacity: 0.85;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(246, 240, 228, 0.3);
  border-radius: 50%;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}
.social-links a:hover {
  opacity: 1;
  border-color: var(--gold);
}
.social-links svg {
  width: 15px;
  height: 15px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.4rem;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--cream);
  position: relative;
  transition: 0.25s ease;
}
.nav-toggle span::before {
  position: absolute;
  top: -8px;
}
.nav-toggle span::after {
  position: absolute;
  top: 8px;
}

/* ----------------------------------- Hero -------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, #241d17 0%, #2f2419 45%, #4a3323 100%);
  overflow: hidden;
}

.hero-mountains {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  line-height: 0;
  z-index: 1;
}

.hero-texture {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.05), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(255, 255, 255, 0.04), transparent 45%);
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
  padding-top: 6rem;
  padding-bottom: 8rem;
}

.hero-content {
  max-width: 620px;
}

.hero-content .eyebrow {
  color: var(--gold);
  font-size: 2.1rem;
}

.hero-content h1 {
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  color: var(--cream);
  line-height: 1.1;
  margin-bottom: 1.2rem;
}

.hero-content p {
  color: rgba(246, 240, 228, 0.82);
  font-size: 1.18rem;
  max-width: 480px;
  margin-bottom: 2.2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-note {
  margin-top: 2.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: rgba(246, 240, 228, 0.65);
  font-size: 0.92rem;
  letter-spacing: 0.03em;
}

.hero-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* --------------------------------- Sections ------------------------------ */

section {
  position: relative;
}

.section-pad {
  padding: 6.5rem 0;
}

.bg-cream { background: var(--cream); }
.bg-parchment { background: var(--parchment); }
.bg-charcoal { background: var(--charcoal); color: var(--cream); }
.bg-charcoal h2 { color: var(--cream); }

.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 4rem;
  align-items: center;
}

.split.reverse {
  grid-template-columns: 0.95fr 1.05fr;
}
.split.reverse .split-visual {
  order: -1;
}

.split-text p {
  color: var(--ink-soft);
  margin-bottom: 1.1rem;
  max-width: 520px;
}

.split-text p:last-of-type {
  margin-bottom: 0;
}

.split-visual {
  position: relative;
}

.frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background: var(--parchment-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.frame::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid var(--gold);
  opacity: 0.4;
  pointer-events: none;
}

.frame svg {
  width: 46%;
  color: var(--wood);
  opacity: 0.85;
}

.frame.rounded {
  aspect-ratio: 1;
  border-radius: 50%;
}
.frame.rounded::before {
  border-radius: 50%;
}

/* Feature strip — three pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.pillar {
  text-align: center;
  padding: 0 1rem;
}

.pillar-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 1.2rem;
  color: var(--rust);
}

.pillar h3 {
  font-size: 1.4rem;
  margin-bottom: 0.6rem;
}

.pillar p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* Opening hours */

.hours-wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
}

.hours-table tr {
  border-bottom: 1px solid var(--line);
}

.hours-table tr:last-child {
  border-bottom: none;
}

.hours-table td {
  padding: 0.85rem 0;
  font-size: 1.05rem;
}

.hours-table td:first-child {
  color: var(--charcoal);
  font-weight: 600;
}

.hours-table td:last-child {
  text-align: right;
  color: var(--ink-soft);
}

.hours-table .closed td:last-child {
  color: var(--rust);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}

.hours-note {
  margin-top: 1.5rem;
  padding: 1.2rem 1.4rem;
  background: var(--parchment);
  border-left: 3px solid var(--rust);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.hours-season {
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

/* CTA banner */

.cta-banner {
  background: var(--pine);
  color: var(--cream);
  text-align: center;
  padding: 5rem 0;
}

.cta-banner h2 {
  color: var(--cream);
  margin-bottom: 0.8rem;
}

.cta-banner p {
  color: rgba(246, 240, 228, 0.8);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Contact / Footer */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-block h3 {
  color: var(--cream);
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.contact-list li {
  display: flex;
  gap: 0.8rem;
  margin-bottom: 0.9rem;
  color: rgba(246, 240, 228, 0.85);
  font-size: 0.98rem;
  align-items: flex-start;
}

.contact-list svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--gold);
}

.contact-list a:hover {
  color: var(--gold);
}

.map-embed {
  border: 1px solid rgba(246, 240, 228, 0.15);
  aspect-ratio: 16/10;
  overflow: hidden;
}
.map-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: grayscale(0.15) contrast(1.05);
}

.site-footer {
  background: var(--charcoal);
  padding-top: 5rem;
}

.footer-bottom {
  border-top: 1px solid rgba(246, 240, 228, 0.12);
  margin-top: 4rem;
  padding: 1.6rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.85rem;
  color: rgba(246, 240, 228, 0.55);
}

.footer-legal {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-legal a:hover {
  color: var(--gold);
}

/* Reveal animation */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Legal pages */

.legal-page {
  padding-top: 9rem;
  padding-bottom: 6rem;
  max-width: 760px;
}
.legal-page h1 {
  font-size: 2.4rem;
  margin-bottom: 2rem;
}
.legal-page h2 {
  font-size: 1.4rem;
  margin: 2.2rem 0 0.8rem;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.legal-page a {
  color: var(--rust);
  text-decoration: underline;
}
.legal-page ul {
  list-style: disc;
  padding-left: 1.4rem;
}

/* --------------------------------- Responsive ----------------------------- */

@media (max-width: 980px) {
  .split, .split.reverse {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .split.reverse .split-visual {
    order: 0;
  }
  .frame {
    max-width: 380px;
    margin: 0 auto;
  }
  .hours-wrap {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pillars {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: min(320px, 80vw);
    background: var(--charcoal);
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.35s ease;
    box-shadow: -8px 0 24px rgba(0,0,0,0.25);
  }
  .main-nav.is-open {
    transform: translateX(0);
  }
  .nav-toggle {
    display: block;
  }
  .social-links {
    display: none;
  }
  .header-actions .btn-primary {
    display: none;
  }
}

@media (max-width: 600px) {
  .section-pad {
    padding: 4.5rem 0;
  }
  .hero-content h1 {
    font-size: 2.4rem;
  }
  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
  .logo {
    font-size: 1.5rem;
  }
}
