:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-alt: #efeae0;
  --forest: #162e26;
  --forest-mid: #23463a;
  --amber: #c88a36;
  --amber-dark: #a66f24;
  --swiss-red: #d52b1e;
  --text: #1c2521;
  --text-muted: #5a6660;
  --border: #e2ddd2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 46, 38, 0.08);
  --shadow-lg: 0 20px 50px rgba(22, 46, 38, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Topbar */
.topbar {
  background: var(--forest);
  color: #e9ecea;
  font-size: 13px;
  padding: 8px 0;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-projects {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.project-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 600;
  transition: background 0.2s;
}

.project-pill:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 76px;
  gap: 20px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-link img {
  height: 48px;
  width: auto;
  border-radius: 8px;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  color: var(--forest);
  line-height: 1.2;
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 22px;
  align-items: center;
  font-weight: 600;
  font-size: 15px;
}

.nav-links a {
  color: var(--text);
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--forest);
  border-bottom-color: var(--amber);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s, background 0.2s, box-shadow 0.2s;
}

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

.btn-primary {
  background: var(--amber);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 138, 54, 0.3);
}

.btn-primary:hover {
  background: var(--amber-dark);
}

.btn-forest {
  background: var(--forest);
  color: #fff;
}

.btn-forest:hover {
  background: var(--forest-mid);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--forest);
  color: var(--forest);
}

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

.cart-btn {
  position: relative;
  background: var(--forest);
  color: #fff;
  padding: 10px 16px;
  border-radius: 99px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-count {
  background: var(--amber);
  color: #fff;
  border-radius: 99px;
  padding: 1px 8px;
  font-size: 12px;
}

/* Hero Section */
.hero {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  margin: 24px 0 48px;
  min-height: 510px;
  display: flex;
  align-items: center;
  background: #162e26 url('/images/brand/hero-engadin.jpg') center/cover no-repeat;
  box-shadow: var(--shadow-lg);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(16, 36, 29, 0.92) 0%, rgba(16, 36, 29, 0.72) 55%, rgba(16, 36, 29, 0.28) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 48px;
  color: #fff;
}

.hero-eyebrow {
  display: inline-block;
  background: rgba(200, 138, 54, 0.92);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 52px);
  line-height: 1.12;
  margin: 0 0 16px;
  font-weight: 800;
}

.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
  flex-wrap: wrap;
}

/* Sections */
.section {
  padding: 52px 0;
  scroll-margin-top: 90px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.section-eyebrow {
  color: var(--amber-dark);
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.section-title {
  font-size: clamp(24px, 3vw, 34px);
  color: var(--forest);
  margin: 4px 0 0;
  font-weight: 800;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card-img {
  position: relative;
  aspect-ratio: 1 / 1;
  height: auto;
  background: #ffffff;
  padding: 8px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
}

.card-img--photo {
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #eae5da;
}

.card-img--photo img {
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(22, 46, 38, 0.88);
  color: #fff;
  padding: 4px 11px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
}

.card-category-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  background: var(--surface-alt);
  color: var(--forest);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.card-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 18px;
  font-weight: 800;
  color: var(--forest);
  margin: 0 0 8px;
  line-height: 1.3;
}

.card-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0 0 16px;
  flex: 1;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  gap: 10px;
}

.price-tag {
  font-size: 18px;
  font-weight: 800;
  color: var(--forest);
}

/* Filter Tabs */
.filter-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 26px;
}

.filter-tab {
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}

.filter-tab.active {
  background: var(--forest);
  color: #fff;
  border-color: var(--forest);
}

/* Project Showcase Cards */
.project-card {
  background: linear-gradient(145deg, #162e26 0%, #214237 100%);
  color: #fff;
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.project-card.p25 {
  background: linear-gradient(145deg, #1f2e3d 0%, #2c4356 100%);
}

.project-card.p30 {
  background: linear-gradient(145deg, #3b2d1f 0%, #59412a 100%);
}

.project-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.16);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}

/* Testimonials */
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stars {
  color: #e69b22;
  font-size: 16px;
  margin-bottom: 10px;
}

/* Drawer & Modal */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 28, 23, 0.6);
  backdrop-filter: blur(4px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.backdrop.open {
  display: flex;
}

.modal-box {
  background: var(--surface);
  border-radius: 18px;
  max-width: 840px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.drawer {
  position: fixed;
  top: 0;
  right: -460px;
  width: 100%;
  max-width: 440px;
  height: 100vh;
  background: var(--surface);
  z-index: 110;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.28s ease;
}

.drawer.open {
  right: 0;
}

.drawer-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--forest);
  color: #fff;
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

.drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-alt);
}

/* Forms */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
}

.form-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--forest);
}

.form-control {
  padding: 10px 13px;
  border-radius: 9px;
  border: 1px solid var(--border);
  font-size: 14px;
  font-family: inherit;
  background: #fff;
}

.form-control:focus {
  outline: 2px solid var(--amber);
  border-color: transparent;
}

/* Article Content Styling */
.article-content {
  line-height: 1.75;
  font-size: 16px;
}

.article-content h1,
.article-content h2,
.article-content h3 {
  color: var(--forest);
  margin-top: 24px;
}

.article-content img {
  border-radius: 12px;
  margin: 16px 0;
  max-width: 100%;
  height: auto;
}

.visually-hidden,
.hidden-label,
.slideshow__pause {
  display: none !important;
}

.article-content svg {
  max-width: 24px;
  max-height: 24px;
}

.video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 14px;
  margin: 20px 0;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Footer */
.site-footer {
  background: var(--forest);
  color: #dce3df;
  padding: 56px 0 32px;
  margin-top: 64px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 40px;
}

.footer-title {
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  margin: 0 0 14px;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--amber);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .hero-content {
    padding: 28px;
  }
  .form-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
}
