/* Chalet template — fullscreen hero slideshow + vacation rental styling */
:root {
  --ch-primary: var(--color-primary, #1e3a5f);
  --ch-accent: var(--color-accent, #c8a97e);
  --ch-bg: var(--color-bg, #faf9f6);
  --ch-text: var(--color-text, #2d3436);
  --ch-muted: #636e72;
  --ch-surface: #fff;
  --ch-border: rgba(0,0,0,.08);
  --ch-radius: 8px;
  --ch-font: var(--font-body, 'Segoe UI', system-ui, -apple-system, sans-serif);
  --ch-font-heading: var(--font-heading, Georgia, 'Times New Roman', serif);
  --ch-header-h: 72px;
}

body { font-family: var(--ch-font); color: var(--ch-text); background: var(--ch-bg); margin: 0; scroll-behavior: smooth; }
h1, h2, h3, h4 { font-family: var(--ch-font-heading); font-weight: 700; letter-spacing: -.01em; }

/* ── Header (transparent → solid on scroll) ── */
.ch-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--ch-header-h);
  transition: background .3s, box-shadow .3s, backdrop-filter .3s;
}
.ch-header.is-scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(0,0,0,.08);
}
.ch-header.is-scrolled .ch-brand__name,
.ch-header.is-scrolled .ch-nav__link { color: var(--ch-text); }
.ch-header.is-scrolled .ch-burger span { background: var(--ch-text); }

.ch-header__inner { display: flex; align-items: center; justify-content: space-between; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; height: 100%; }

.ch-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: #fff; }
.ch-brand__logo { height: 40px; width: auto; }
.ch-brand__name { font-family: var(--ch-font-heading); font-size: 1.3rem; font-weight: 700; letter-spacing: .02em; }

.ch-nav__list { list-style: none; display: flex; gap: 0; margin: 0; padding: 0; }
.ch-nav__link {
  display: block; padding: .6rem 1rem; color: rgba(255,255,255,.9);
  text-decoration: none; font-size: .88rem; font-weight: 500;
  letter-spacing: .03em; text-transform: uppercase;
  transition: color .2s;
}
.ch-nav__link:hover { color: var(--ch-accent); }

.ch-burger { display: none; background: none; border: none; cursor: pointer; padding: .5rem; }
.ch-burger span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; transition: transform .2s, opacity .2s; }

/* ── Hero slideshow ── */
.ch-hero { position: relative; height: 100vh; min-height: 600px; overflow: hidden; }
.ch-hero__slides { position: relative; width: 100%; height: 100%; }

.ch-slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  transition: opacity 1s ease;
}
.ch-slide.is-active { opacity: 1; }
.ch-slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.5) 100%);
}

.ch-slide__overlay {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  height: 100%; text-align: center; color: #fff;
  padding: 2rem;
}
.ch-slide__overlay h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-family: var(--ch-font-heading);
  margin: 0 0 .75rem; line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,.3);
}
.ch-slide__overlay h2 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 400; margin: 0 0 .5rem; opacity: .9;
  font-family: var(--ch-font);
}
.ch-slide__lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  max-width: 600px; margin: 0 0 1.5rem; opacity: .85; line-height: 1.6;
}
.ch-slide__btn {
  display: inline-block; padding: .8rem 2rem;
  background: var(--ch-accent); color: #fff;
  text-decoration: none; font-weight: 600; font-size: .95rem;
  border-radius: 4px; letter-spacing: .05em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.ch-slide__btn:hover { background: #b8965e; transform: translateY(-2px); }

/* Dots */
.ch-hero__dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); z-index: 10;
  display: flex; gap: .5rem;
}
.ch-hero__dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: rgba(255,255,255,.4); border: none; cursor: pointer;
  transition: background .2s, transform .2s;
}
.ch-hero__dot.is-active { background: var(--ch-accent); transform: scale(1.25); }

/* Scroll indicator */
.ch-hero__scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); z-index: 10;
  animation: ch-bounce 2s infinite;
}
.ch-hero__scroll a { color: rgba(255,255,255,.7); }
@keyframes ch-bounce { 0%,100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(8px); } }

/* ── Sections ── */
.ch-section { padding: 5rem 1.5rem; }
.ch-section--alt { background: var(--ch-surface); }
.ch-section__inner { max-width: 960px; margin: 0 auto; }
.ch-section__inner--narrow { max-width: 720px; }
.ch-section__title {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center; margin: 0 0 2rem;
  color: var(--ch-primary);
}
.ch-section__title::after {
  content: ''; display: block; width: 60px; height: 3px;
  background: var(--ch-accent); margin: .75rem auto 0; border-radius: 2px;
}
.ch-section__body { font-size: 1.05rem; line-height: 1.8; color: var(--ch-muted); }
.ch-section__body h3 { color: var(--ch-text); margin: 1.5rem 0 .75rem; }
.ch-section__body img { max-width: 100%; border-radius: var(--ch-radius); margin: 1rem 0; }

/* ── Page hero (detail pages) ── */
.ch-page-hero {
  height: 45vh; min-height: 300px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: #fff; padding: 2rem;
  background: var(--ch-primary) center/cover no-repeat;
  position: relative;
}
.ch-page-hero::before { content: ''; position: absolute; inset: 0; background: rgba(0,0,0,.4); }
.ch-page-hero h1 { position: relative; z-index: 1; font-size: clamp(1.8rem, 4vw, 3rem); margin: 0; }
.ch-page-hero p { position: relative; z-index: 1; font-size: 1.1rem; opacity: .85; margin: .5rem 0 0; max-width: 600px; }

/* ── Grid helpers (for amenities, features) ── */
.ch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 2rem; margin: 2rem 0; }
.ch-card {
  padding: 1.5rem; background: var(--ch-surface); border: 1px solid var(--ch-border);
  border-radius: var(--ch-radius); text-align: center;
  transition: transform .2s, box-shadow .2s;
}
.ch-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.ch-card__icon { font-size: 2rem; margin-bottom: .75rem; }
.ch-card h3 { font-size: 1.1rem; margin: 0 0 .5rem; color: var(--ch-text); font-family: var(--ch-font-heading); }
.ch-card p { font-size: .9rem; color: var(--ch-muted); margin: 0; line-height: 1.6; }

/* ── CTA band ── */
.ch-cta {
  padding: 4rem 1.5rem; text-align: center;
  background: var(--ch-primary); color: #fff;
}
.ch-cta h2 { font-size: 1.8rem; margin: 0 0 1rem; }
.ch-cta p { font-size: 1.05rem; opacity: .85; max-width: 600px; margin: 0 auto 1.5rem; }
.ch-btn {
  display: inline-block; padding: .7rem 1.8rem;
  background: var(--ch-accent); color: #fff;
  text-decoration: none; border: none; border-radius: 4px;
  font-size: .95rem; font-weight: 600; cursor: pointer;
  letter-spacing: .03em; text-transform: uppercase;
  transition: background .2s, transform .15s;
}
.ch-btn:hover { background: #b8965e; transform: translateY(-2px); }

/* ── Comments ── */
.ch-comment { padding: 1rem 0; border-bottom: 1px solid var(--ch-border); }
.ch-comment:last-child { border-bottom: 0; }
.ch-comment-form { display: flex; flex-direction: column; gap: .75rem; margin-top: 1.5rem; max-width: 500px; }
.ch-comment-form input, .ch-comment-form textarea {
  padding: .6rem .8rem; border: 1px solid rgba(0,0,0,.15); border-radius: var(--ch-radius);
  font: inherit; font-size: .92rem;
}

/* ── Footer ── */
.ch-footer { background: #1a1a2e; color: rgba(255,255,255,.7); padding: 3rem 1.5rem; }
.ch-footer__inner { max-width: 960px; margin: 0 auto; text-align: center; }
.ch-footer__brand { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-bottom: 1rem; }
.ch-footer__brand img { height: 28px; }
.ch-footer__brand span { color: #fff; font-family: var(--ch-font-heading); font-weight: 600; }
.ch-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-bottom: 1rem; font-size: .85rem; }
.ch-footer__links a { color: rgba(255,255,255,.6); text-decoration: none; }
.ch-footer__links a:hover { color: var(--ch-accent); }
.ch-footer__copy { font-size: .78rem; opacity: .5; margin: 0; }

/* ── Flash ── */
.ch-flash { position: fixed; top: var(--ch-header-h); left: 50%; transform: translateX(-50%); z-index: 999; max-width: 500px; width: 90%; }

/* ── Mobile ── */
@media (max-width: 768px) {
  .ch-nav { position: fixed; inset: 0; top: var(--ch-header-h); background: rgba(0,0,0,.95); transform: translateX(100%); transition: transform .3s; z-index: 999; }
  .ch-nav.is-open { transform: translateX(0); }
  .ch-nav__list { flex-direction: column; padding: 2rem; gap: 0; }
  .ch-nav__link { font-size: 1.1rem; padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .ch-burger { display: block; }
  .ch-section { padding: 3rem 1rem; }
  .ch-hero { min-height: 500px; }
}

/* ── Dark mode ── */
@media (prefers-color-scheme: dark) {
  :root {
    --ch-bg: #0f172a; --ch-surface: #1e293b; --ch-text: #e2e8f0;
    --ch-muted: #94a3b8; --ch-border: rgba(255,255,255,.08);
  }
  .ch-header.is-scrolled { background: rgba(15,23,42,.92); }
  .ch-header.is-scrolled .ch-brand__name,
  .ch-header.is-scrolled .ch-nav__link { color: #e2e8f0; }
  .ch-header.is-scrolled .ch-burger span { background: #e2e8f0; }
  .ch-card { background: #1e293b; border-color: rgba(255,255,255,.06); }
}
