:root {
  --color-dark: #37353E;
  --color-secondary: #44444E;
  --color-accent: #715A5A;
  --color-light: #D3DAD9;
  --color-white: #ffffff;
  --color-black: #000000;

  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Montserrat', sans-serif;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
  --transition: all 0.3s ease;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-dark);
  line-height: 1.6;
  background-color: var(--color-white);
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
  color: var(--color-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

.container {
  width: 100%;
  max-width: 1200px;
  padding: 0 var(--space-md);
  margin: 0 auto;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  background-color: var(--color-dark);
  color: var(--color-white);
  border: none;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--color-accent);
}

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

.btn-outline:hover {
  background-color: var(--color-dark);
  color: var(--color-white);
}

.header {
  position: relative;
  z-index: 100;
  background-color: var(--color-white);
  padding: var(--space-md) 0;
}

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

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

.logo img {
  width: 4rem;
  position: relative;
  z-index: 20;
}

.logo img {
  display: inline-block;
  transform: rotate(-5deg);
  transition: transform var(--transition-normal);
}

.logo:hover img {
  transform: rotate(0);
}

@media (max-width: 992px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 768px) {
  .logo img {
    width: 3rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 576px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

@media (max-width: 400px) {
  .logo img {
    width: 2rem;
    position: relative;
    z-index: 20;
  }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--color-dark);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 102;
  position: relative;
  padding: var(--space-xs);
  transition: var(--transition);
}

.nav-toggle:hover {
  color: var(--color-accent);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  margin-right: var(--space-lg);
}

.nav-links li {
  margin-left: var(--space-lg);
}

.nav-links a {
  color: var(--color-dark);
  position: relative;
}

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

.nav-links a:hover {
  color: var(--color-accent);
}

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

.hero {
  position: relative;
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  background-color: var(--color-light);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: var(--space-lg);
}

.hero h1 {
  margin-bottom: var(--space-md);
  font-size: 3rem;
  color: var(--color-dark);
}

.hero p {
  margin-bottom: var(--space-lg);
  font-size: 1.2rem;
  color: var(--color-secondary);
}

.hero-image {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 50%;
  background-size: cover;
  background-position: center;
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0% 100%);
}

.mosaic-bg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  background-image: linear-gradient(135deg, var(--color-light) 25%, var(--color-accent) 25%, var(--color-accent) 50%, var(--color-light) 50%, var(--color-light) 75%, var(--color-accent) 75%);
  background-size: 50px 50px;
  opacity: 0.1;
  z-index: 0;
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background-color: var(--color-accent);
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-light);
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-accent);
}

.feature h3 {
  margin-bottom: var(--space-sm);
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product {
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-light);
  transition: var(--transition);
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  height: 250px;
  position: relative;
  background-color: var(--color-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.product-content {
  padding: var(--space-lg);
}

.product-title {
  margin-bottom: var(--space-sm);
}

.product-price {
  color: var(--color-accent);
  font-weight: bold;
  font-size: 1.2rem;
  margin-top: var(--space-md);
}

.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-lg);
}

.team-member {
  text-align: center;
}

.team-image {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  margin: 0 auto var(--space-md);
  overflow: hidden;
  background-color: var(--color-light);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.faq {
  margin-bottom: var(--space-lg);
}

.faq-question {
  background-color: var(--color-light);
  padding: var(--space-md);
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  position: relative;
  font-weight: bold;
}

.faq-answer {
  padding: var(--space-md);
  display: none;
}

.faq.active .faq-answer {
  display: block;
}

.contact-form {
  max-width: 600px;
  margin: 0 auto;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 500;
}

.form-control {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-light);
  border-radius: var(--border-radius-sm);
  font-family: inherit;
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.form-checkbox input {
  margin-right: var(--space-sm);
  margin-top: 0.25rem;
}

textarea.form-control {
  resize: vertical;
  min-height: 150px;
}

.map-container {
  height: 400px;
  margin-top: var(--space-lg);
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-container #map {
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  z-index: 0;
}

.leaflet-container {
  height: 100%;
  width: 100%;
  font-family: inherit;
}

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--space-lg) 0;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-title {
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer-links li {
  margin-bottom: var(--space-sm);
}

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

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--space-md);
  margin-top: var(--space-lg);
  text-align: center;
  font-size: 0.9rem;
}

.cookie-popup {
  position: fixed;
  bottom: -100%;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--space-md);
  z-index: 1000;
  transition: var(--transition);
}

.cookie-popup.show {
  bottom: 0;
}

.cookie-popup-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cookie-popup-text {
  margin-right: var(--space-md);
}

.error-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: bold;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  font-family: var(--font-primary);
}

.error-message {
  margin-bottom: var(--space-lg);
}

.thank-you {
  text-align: center;
  padding: var(--space-xl) 0;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

@media (max-width: 992px) {
  .hero {
    height: auto;
    padding: var(--space-xl) 0;
  }

  .hero-image {
    position: relative;
    width: 100%;
    height: 400px;
    clip-path: none;
    margin-top: var(--space-lg);
  }

  .mosaic-bg {
    width: 100%;
  }

  .hero-content {
    max-width: 100%;
    padding: 0;
  }
}

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .nav-toggle {
    display: block;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    max-width: 300px;
    height: 100vh;
    background-color: var(--color-white);
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-xl) var(--space-lg);
    padding-top: calc(var(--space-xl) + 60px);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
    z-index: 101;
  }

  .nav.active {
    right: 0;
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    margin: 0;
    margin-top: var(--space-xl);
  }

  body.nav-active {
    overflow: hidden;
  }

  body.nav-active::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 100;
    animation: fadeIn 0.3s ease;
  }

  @keyframes fadeIn {
    from {
      opacity: 0;
    }

    to {
      opacity: 1;
    }
  }

  .nav-toggle i {
    transition: transform 0.3s ease;
  }

  .nav-links li {
    margin: 0;
    margin-bottom: var(--space-md);
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: var(--space-sm) 0;
    width: 100%;
  }

  /* Ensure enough space for mobile */
  .section {
    padding: var(--space-lg) 0;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .cookie-popup-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .cookie-popup-text {
    margin-right: 0;
    margin-bottom: var(--space-md);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-sm);
  }

  .btn {
    display: block;
    width: 100%;
    text-align: center;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
  }

}