@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Poppins:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #ffffff;
  --panel: #f8f9fa;
  --panel-hover: #e9ecef;
  --muted: #6c757d;
  --text: #212529;
  --text-light: #000000;
  --brand: #0066cc;
  --brand2: #0052a3;
  --brand-dark: #003d7a;
  --accent: #ff6b35;
  --accent-hover: #e55a2b;
  --border: #dee2e6;
  --border-light: #ced4da;
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Ubuntu, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text-light);
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 1.25rem;
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 600;
  margin-bottom: 1rem;
}

a {
  color: var(--brand2);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--brand);
  text-decoration: none;
  opacity: 0.9;
}

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(20px) saturate(180%);
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-light);
}

.brand img {
  height: 42px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.brand:hover img {
  transform: scale(1.05);
}

.brand span {
  white-space: nowrap;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  align-items: center;
}

nav a {
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  color: var(--text);
}

nav a:hover {
  background: var(--panel);
  color: var(--brand);
  transform: translateY(-1px);
}

nav a[style*="background"] {
  background: var(--panel) !important;
  color: var(--brand) !important;
}

.cta {
  background: var(--brand);
  color: #fff;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
  display: inline-block;
  text-align: center;
  font-size: 0.95rem;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--brand-dark);
  color: #fff;
  opacity: 1;
}

.cta.alt {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}

.cta.alt:hover {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.badge {
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
  margin-right: 0.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  transition: all 0.2s ease;
}

.badge:hover {
  background: var(--panel-hover);
  border-color: var(--brand);
  color: var(--brand);
  transform: translateY(-1px);
}

/* Main sections */
main section {
  padding: 5rem 0;
  border-top: 1px solid var(--border);
}

main section:first-child {
  border-top: none;
}

/* Hero section */
.hero {
  position: relative;
  background-image: url('mountain-bg.jpg');
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  padding: 5rem 0;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.85) 0%, rgba(255, 255, 255, 0.75) 50%, rgba(248, 249, 250, 0.8) 100%);
  z-index: 0;
}

@media (max-width: 768px) {
  .hero {
    background-attachment: scroll;
    min-height: 70vh;
    padding: 3rem 0;
  }
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero-wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, var(--text-light) 0%, var(--brand2) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.1rem;
  line-height: 1.8;
  margin-bottom: 2rem;
  max-width: 600px;
}

.hero-card {
  background: linear-gradient(180deg, var(--panel) 0%, var(--bg) 100%);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
}

.hero-card h2 {
  font-size: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
  color: var(--text-light);
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.card {
  grid-column: span 4;
  background: #fff;
  border: 1px solid var(--border);
  padding: 2rem;
  border-radius: 8px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}

.card h3 {
  margin-bottom: 1rem;
  color: var(--text-light);
}

.card p {
  margin: 0;
  line-height: 1.7;
}

.muted {
  color: var(--muted);
  font-size: 0.95rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

.product-img {
  width: 100%;
  max-width: 300px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  margin: 0 auto 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  display: block;
  transition: transform 0.3s ease;
}

.product-img:hover {
  transform: scale(1.02);
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  background: var(--panel);
  margin-top: 4rem;
}

footer a {
  color: var(--muted);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--brand2);
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.gallery .main {
  grid-column: span 8;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem;
  box-shadow: var(--shadow-md);
}

.gallery .main img {
  max-width: 100%;
  max-height: 400px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.gallery .thumbs {
  grid-column: span 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.gallery img {
  width: 100%;
  border-radius: 8px;
  display: block;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.gallery .thumbs img:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  cursor: pointer;
}

.lightbox img {
  max-width: 92vw;
  max-height: 88vh;
  border-radius: 16px;
  border: 2px solid var(--border-light);
  box-shadow: var(--shadow-xl);
}

/* Cookie consent */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--panel);
  color: var(--text);
  border-top: 1px solid var(--border);
  display: none;
  z-index: 1100;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.5);
}

.cookie-inner {
  width: min(1100px, 92%);
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.cookie-banner .actions {
  display: flex;
  gap: 0.75rem;
}

.cookie-banner button {
  border: 0;
  border-radius: 10px;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cookie-accept {
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
}

.cookie-accept:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.cookie-decline {
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-light);
}

.cookie-decline:hover {
  background: var(--panel);
}

/* Founder section */
#founder-message {
  opacity: 0;
  animation: fadeInUp 1.5s ease forwards;
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(50px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Menu toggle */
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  font-size: 0;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.menu-toggle:hover {
  background: var(--panel);
  border-color: var(--brand);
}

.menu-toggle:before,
.menu-toggle:after,
.menu-toggle span {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.25s ease;
}

.menu-toggle:before {
  top: 13px;
}

.menu-toggle span {
  top: 21px;
}

.menu-toggle:after {
  top: 29px;
}

.menu-toggle[aria-expanded="true"]:before {
  top: 21px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"]:after {
  top: 21px;
  transform: rotate(-45deg);
}

/* Mobile nav */
@media (max-width: 768px) {
  .brand {
    flex-direction: row;
    align-items: center;
    text-align: left;
  }

  .brand img {
    height: 36px;
  }

  .brand span {
    font-size: 0.85rem;
    display: block;
  }

  .menu-toggle {
    display: inline-block;
  }

  header nav {
    display: block;
    width: 100%;
    margin-top: 1rem;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: max-height 0.35s ease, opacity 0.25s ease, transform 0.35s ease;
  }

  header nav.open {
    max-height: 500px;
    opacity: 1;
    transform: translateY(0);
  }

  header nav ul {
    flex-direction: column;
    gap: 0.5rem;
    align-items: stretch;
  }

  header nav a {
    display: block;
    width: 100%;
    text-align: center;
    padding: 0.75rem 1rem;
    background: var(--panel);
    border-radius: 6px;
    color: var(--text);
  }

  header nav a:hover {
    background: var(--panel-hover);
    color: var(--brand);
  }
}

/* Mobile scrim */
.mobile-scrim {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: none;
  z-index: 900;
}

@media (max-width: 768px) {
  body.menu-open .mobile-scrim {
    display: block;
  }

  header {
    z-index: 1001;
  }
}

/* Sticky contact buttons */
.sticky-contact {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1202;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  will-change: transform, opacity;
  transition: transform 0.45s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.3s ease;
  transform: translateY(0);
  opacity: 1;
}

.sticky-contact a.fab {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 1.25rem;
  border-radius: 50px;
  background: linear-gradient(135deg, var(--brand), var(--brand2));
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: 0;
  box-shadow: var(--shadow-lg);
  text-decoration: none;
  transition: all 0.3s ease;
}

.sticky-contact a.fab:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: var(--shadow-xl);
  color: #fff;
}

.sticky-contact a.quote {
  background: linear-gradient(135deg, var(--accent), var(--accent-hover));
  color: #fff;
}

.sticky-contact .icon {
  width: 20px;
  height: 20px;
  display: inline-block;
}

@media (max-width: 768px) {
.sticky-contact {
    display: flex;
  }
}

body.hide-sticky .sticky-contact {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}

/* Product cards */
.product-card,
.product-item {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  overflow: hidden;
  border-radius: 12px;
  transition: opacity 0.3s ease;
}

.product-card img:not(.product-img),
.product-item img:not(.product-img) {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.3s ease;
}

.product-card:hover img:not(.product-img),
.product-item:hover img:not(.product-img) {
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.product-card h3,
.product-item h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-align: center;
}

@media (max-width: 768px) {
  .product-card h3,
  .product-item h3 {
    font-size: 1.1rem;
  }
}

/* Forms */
form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-light);
  font-size: 0.95rem;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: var(--panel-hover);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button[type="submit"] {
  margin-top: 0.5rem;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-wrap {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cards .card {
    grid-column: span 6;
  }

  .hero {
    padding: 3rem 0;
    min-height: auto;
    background-attachment: scroll;
  }
}

@media (max-width: 640px) {
  .cards .card {
    grid-column: span 12;
  }

  main section {
    padding: 2.5rem 0;
  }

  .container {
    padding: 0 1rem;
  }

  .gallery {
    grid-template-columns: 1fr;
  }

  .gallery .main,
  .gallery .thumbs {
    grid-column: span 12;
  }

  .gallery .thumbs {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Search page */
#searchForm {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
  max-width: 800px;
}

#searchForm input {
  flex: 1;
  min-width: 250px;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

#searchForm input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
  background: var(--panel-hover);
}

#searchForm button {
  white-space: nowrap;
}

/* Utility classes */
.center {
  text-align: center;
}

.text-center {
  text-align: center;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

/* Smooth scroll behavior */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

/* Print styles */
@media print {
  .sticky-contact,
  .cookie-banner,
  .mobile-scrim {
    display: none !important;
  }
}
