/* =========================================================
   Chalet Rrusta — Design System
   ========================================================= */

:root {
  --forest: #3f5d45;
  --forest-dark: #2a3f2e;
  --terracotta: #b5652d;
  --terracotta-dark: #96521f;
  --cream: #faf6ee;
  --cream-dark: #f0e8d8;
  --charcoal: #2a2723;
  --grey: #6b6459;
  --border: #e3dbc9;
  --gold: #c9a132;

  --font-head: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --radius: 10px;
  --shadow: 0 4px 20px rgba(42, 39, 35, 0.08);
  --shadow-lg: 0 12px 40px rgba(42, 39, 35, 0.14);
  --max-width: 1140px;
  --transition: 0.25s ease;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--charcoal);
  background: var(--cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

ul { list-style: none; }

button { font-family: inherit; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.2;
  color: var(--forest-dark);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: 1.3rem; }

p { color: var(--charcoal); }

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

.section {
  padding: 80px 0;
}

.section-alt {
  background: var(--cream-dark);
}

.section-header {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin-bottom: 12px;
}

.lead {
  font-size: 1.1rem;
  color: var(--grey);
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
}

.btn:hover { transform: translateY(-2px); }

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

.btn-outline {
  background: transparent;
  border-color: currentColor;
  color: var(--forest-dark);
}
.btn-outline:hover { background: var(--forest-dark); color: #fff; border-color: var(--forest-dark); }

.btn-light {
  background: #fff;
  color: var(--forest-dark);
}
.btn-light:hover { background: var(--cream-dark); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 246, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--forest-dark);
}

.logo svg { width: 34px; height: 34px; flex-shrink: 0; }

.logo-sub {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey);
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--charcoal);
  position: relative;
  padding: 4px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: var(--terracotta);
  transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after { width: 100%; }

.nav-links a[aria-current="page"] { color: var(--terracotta); }

/* Language switcher */
.lang-switch {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
}

.lang-btn:hover { border-color: var(--terracotta); }

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  min-width: 150px;
  padding: 6px;
  display: none;
  flex-direction: column;
}

.lang-switch.open .lang-menu { display: flex; }

.lang-menu button {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  padding: 9px 10px;
  border-radius: 6px;
  font-size: 0.88rem;
  text-align: left;
  width: 100%;
}

.lang-menu button:hover { background: var(--cream-dark); }
.lang-menu button[aria-current="true"] { font-weight: 700; color: var(--terracotta); }

.flag { font-size: 1.1rem; line-height: 1; }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--charcoal);
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 100px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text .eyebrow { color: var(--forest); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-art {
  position: relative;
}

.hero-art svg {
  width: 100%;
  height: auto;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-badge svg { width: 26px; height: 26px; color: var(--terracotta); flex-shrink: 0; }

.hero-badge strong { display: block; font-size: 0.95rem; }
.hero-badge span { font-size: 0.82rem; color: var(--grey); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 64px 0 56px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
  text-align: center;
}

.page-hero .eyebrow { color: var(--forest); }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--grey);
  margin-bottom: 16px;
}

.breadcrumb a { color: var(--forest); font-weight: 600; }

/* ---------- Cards / Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
  align-items: center;
}

.card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.card .icon {
  width: 46px;
  height: 46px;
  color: var(--terracotta);
  margin-bottom: 18px;
}

.card h3 { margin-bottom: 10px; }

.card p { color: var(--grey); font-size: 0.96rem; }

/* ---------- Media / illustration blocks ---------- */
.media-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-dark);
}

.media-frame svg { width: 100%; height: 100%; display: block; }

.photo-caption {
  font-size: 0.78rem;
  color: var(--grey);
  margin-top: 10px;
  text-align: center;
}

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gallery figure {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 1/1;
  cursor: pointer;
  background: var(--cream-dark);
}

.gallery figure svg { width: 100%; height: 100%; }

/* ---------- Testimonials ---------- */
.testimonial-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--terracotta);
}

.testimonial p { font-style: italic; color: var(--charcoal); margin-bottom: 16px; }

.testimonial .who { font-weight: 700; font-size: 0.9rem; color: var(--forest-dark); }
.testimonial .where { font-size: 0.8rem; color: var(--grey); }

.stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; letter-spacing: 2px; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.team-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.team-photo {
  aspect-ratio: 4/3;
  background: var(--forest);
}

.team-photo svg { width: 100%; height: 100%; }

.team-body { padding: 24px; }

.team-body h3 { margin-bottom: 8px; }

.team-body p { color: var(--grey); font-size: 0.95rem; }

/* ---------- FAQ Accordion ---------- */
.accordion { max-width: 760px; margin: 0 auto; }

.accordion-item {
  border-bottom: 1px solid var(--border);
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--forest-dark);
}

.accordion-trigger .plus {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  position: relative;
}

.accordion-trigger .plus::before,
.accordion-trigger .plus::after {
  content: "";
  position: absolute;
  background: var(--terracotta);
  transition: transform var(--transition);
}

.accordion-trigger .plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.accordion-trigger .plus::after { left: 50%; top: 0; width: 2px; height: 100%; margin-left: -1px; }

.accordion-item.open .plus::after { transform: rotate(90deg); opacity: 0; }

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
}

.accordion-panel p { padding: 0 4px 22px; color: var(--grey); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--forest-dark);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
}

.contact-info-card h3 { color: #fff; margin-bottom: 6px; }
.contact-info-card .lead { color: #d9e2da; }

.contact-list {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

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

.contact-list strong { display: block; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b9c7bb; }

.social-row { display: flex; gap: 12px; margin-top: 30px; }

.social-row a {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  transition: background var(--transition);
}
.social-row a:hover { background: var(--terracotta); }
.social-row svg { width: 20px; height: 20px; }

/* Form */
.form-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
}

.form-row { margin-bottom: 20px; }

.form-row label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--forest-dark);
}

.form-row input,
.form-row textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.95rem;
  background: var(--cream);
  transition: border-color var(--transition);
}

.form-row input:focus,
.form-row textarea:focus {
  outline: none;
  border-color: var(--terracotta);
}

.form-row textarea { resize: vertical; min-height: 120px; }

.field-error {
  color: var(--terracotta-dark);
  font-size: 0.8rem;
  margin-top: 6px;
  display: none;
}

.form-row.invalid input,
.form-row.invalid textarea { border-color: #c0392b; }

.form-row.invalid .field-error { display: block; }

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 0.9rem;
  display: none;
}

.form-status.show { display: block; }

.form-status.success { background: #e6f0e6; color: var(--forest-dark); }

/* ---------- Map ---------- */
.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-top: 20px;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--forest-dark);
  color: #fff;
  text-align: center;
  padding: 72px 0;
}

.cta-band h2 { color: #fff; }
.cta-band .lead { color: #cdd8ce; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-band .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--charcoal);
  color: #cfc9bd;
  padding: 56px 0 28px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  color: #fff;
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-logo svg { width: 28px; height: 28px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}

.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: #fff; }
.footer-col p { color: #b3ac9f; font-size: 0.9rem; }

.footer-bottom {
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #9a927f;
}

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 420px; margin: 0 auto; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .testimonial-track { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .header-inner { padding: 12px 20px; }
  .logo { font-size: 1.1rem; }
  .logo svg { width: 30px; height: 30px; }
  /* Dropdown panel under the header (absolute, so it isn't broken by the header's backdrop-filter) */
  .nav-desktop { position: absolute; top: 100%; left: 0; right: 0; background: var(--cream); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 20px 24px; border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(42,39,35,.12); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity var(--transition), transform var(--transition), visibility var(--transition); }
  .nav-desktop.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links li { border-bottom: 1px solid var(--border); }
  .nav-links a { display: block; padding: 16px 4px; font-size: 1.05rem; }
  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .lang-switch { align-self: stretch; margin-top: 20px; }
  .lang-btn { width: 100%; justify-content: center; padding: 12px 14px; }
  .lang-menu { position: static; box-shadow: none; margin-top: 8px; min-width: 0; width: 100%; }
  .grid-3 { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
  .hero { padding: 56px 0 64px; }
}

/* ---------- Rebuild additions ---------- */
.container.narrow { max-width: 780px; }
.container.narrow p { margin-bottom: 18px; }
.container.narrow h2 { margin-bottom: 20px; }
.note { font-size: .88rem; }
.note a { color: var(--grey); text-decoration: underline; }
.photo-hero { padding: 120px 0 100px; text-align: center; background-size: cover; background-position: center; }
.photo-hero h1 { color: #fff; }
.gallery { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.gallery .g-item { display: block; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--cream-dark); }
.gallery .g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery .g-item:hover img { transform: scale(1.05); }
.lightbox { position: fixed; inset: 0; background: rgba(20,18,15,.92); display: none; align-items: center; justify-content: center; z-index: 999; padding: 24px; cursor: zoom-out; }
.lightbox.show { display: flex; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.team-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top; }
.testimonial blockquote { font-style: italic; margin-bottom: 16px; }
.testimonial figcaption .who { display: block; }
.map-img { width: 100%; max-width: 760px; margin: 32px auto 0; border-radius: var(--radius); box-shadow: var(--shadow); }
.video-link { display: inline-block; position: relative; max-width: 560px; }
.video-link img { border-radius: var(--radius); box-shadow: var(--shadow); }
.video-link .btn { position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); }
.contact-cards { display: grid; gap: 16px; }
.contact-cards li { background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: var(--shadow); }
.contact-cards strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--terracotta); margin-bottom: 4px; }
.contact-cards a { font-size: 1.1rem; font-weight: 600; word-break: break-all; }
.footer-simple { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: .9rem; padding-bottom: 8px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }
.site-footer { padding: 32px 0; }
.page-hero h1 { max-width: 760px; margin: 0 auto; }
@media (max-width: 720px) { .photo-hero { padding: 80px 0 64px; } }
