:root {
  --color-primary: #2C5F6F;
  --color-secondary: #D4A574;
  --color-accent: #B67352;
  --color-light: #F5F1E8;
  --color-dark: #1A2E35;
  --color-white: #FFFFFF;
  --color-text: #3A3A3A;
  --color-border: #E0D5C7;

  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Manrope', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;

  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;

  --shadow-sm: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-md: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 1rem 2rem rgba(0, 0, 0, 0.15);

  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  border: none;
  outline: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-dark);
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.1rem;
}

h6 {
  font-size: 1rem;
}

.container {
  width: 90%;
  max-width: 75rem;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.header-wrapper {
  position: relative;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%);
  padding: var(--space-sm) 0;
  transition: var(--transition-normal);
  border-bottom: 0.25rem solid var(--color-secondary);
}

.header-wrapper.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
}

.brand-logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-white);
  letter-spacing: 0.05em;
  transition: var(--transition-fast);
  white-space: nowrap;
  display: inline-block;
}

.brand-logo:hover {
  color: var(--color-secondary);
  transform: scale(1.05);
}

.nav-toggle {
  display: none;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-md);
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.nav-toggle:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.main-nav ul {
  display: flex;
  list-style: none;
  gap: var(--space-md);
  align-items: center;
}

.main-nav a {
  color: var(--color-light);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-fast);
  display: block;
}

.main-nav a:hover {
  background: var(--color-secondary);
  color: var(--color-dark);
}

.section-block {
  padding: var(--space-lg) 0;
}

.section-alt {
  background-color: var(--color-light);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-md);
}

.section-title {
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.section-subtitle {
  color: var(--color-text);
  font-size: 1rem;
  max-width: 50rem;
  margin: 0 auto;
}

.hero-section {
  background: linear-gradient(135deg, rgba(44, 95, 111, 0.9) 0%, rgba(26, 46, 53, 0.9) 100%),
    url('../pictures/bg.webp') center/cover no-repeat;
  color: var(--color-white);
  padding: var(--space-xl) 0;
  text-align: center;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-content {
  max-width: 50rem;
  margin: 0 auto;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.hero-description {
  font-size: 1.1rem;
  margin-bottom: var(--space-md);
  color: var(--color-light);
}

.btn-primary {
  display: inline-block;
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
  box-shadow: var(--shadow-md);
}

.btn-primary:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-0.125rem);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--color-primary);
  padding: var(--space-sm) var(--space-md);
  border: 0.125rem solid var(--color-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition-fast);
}

.btn-secondary:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-md);
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: var(--space-md);
}

.feature-card {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-normal);
  border: 0.0625rem solid var(--color-border);
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.feature-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.feature-text {
  font-size: 0.9rem;
  color: var(--color-text);
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
  border: 0.0625rem solid var(--color-border);
}

.product-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-0.25rem);
}

.product-image {
  width: 100%;
  height: 12rem;
  object-fit: cover;
}

.product-info {
  padding: var(--space-sm);
}

.product-name {
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.product-description {
  font-size: 0.85rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.contact-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  gap: var(--space-lg);
  align-items: start;
}

.contact-form {
  background: var(--color-light);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-dark);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  transition: var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 0.1875rem rgba(212, 165, 116, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 8rem;
}

.checkbox-group {
  display: flex;
  align-items: start;
  gap: var(--space-xs);
  font-size: 0.85rem;
}

.checkbox-group input[type="checkbox"] {
  margin-top: 0.25rem;
  cursor: pointer;
}

.contact-info {
  background: var(--color-white);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.info-item {
  display: flex;
  align-items: start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.info-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  min-width: 2rem;
}

.info-content h4 {
  font-size: 1rem;
  margin-bottom: var(--space-xs);
  color: var(--color-primary);
}

.info-content p {
  font-size: 0.9rem;
  color: var(--color-text);
}

.map-container {
  margin-top: var(--space-md);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container iframe {
  width: 100%;
  height: 20rem;
  border: none;
}

.footer-block {
  background: var(--color-dark);
  color: var(--color-light);
  padding: var(--space-md) 0 var(--space-sm);
  text-align: center;
  font-size: 0.85rem;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  justify-content: center;
}

.footer-links a {
  color: var(--color-light);
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-secondary);
}

.footer-text {
  color: var(--color-light);
  opacity: 0.8;
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-dark);
  color: var(--color-white);
  padding: var(--space-sm);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition-normal);
}

.privacy-popup.active {
  transform: translateY(0);
}

.popup-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  max-width: 75rem;
  margin: 0 auto;
}

.popup-text {
  font-size: 0.85rem;
  flex: 1;
  min-width: 15rem;
}

.popup-text a {
  color: var(--color-secondary);
  text-decoration: underline;
}

.popup-actions {
  display: flex;
  gap: var(--space-sm);
}

.btn-accept {
  background: var(--color-secondary);
  color: var(--color-dark);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.btn-accept:hover {
  background: var(--color-accent);
  color: var(--color-white);
}

.error-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
}

.error-content {
  max-width: 40rem;
  margin: 0 auto;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-secondary);
  line-height: 1;
  margin-bottom: var(--space-sm);
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.error-text {
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.thankyou-page {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) 0;
  background: var(--color-light);
}

.thankyou-content {
  max-width: 40rem;
  background: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  margin: 0 auto;
}

.thankyou-icon {
  font-size: 4rem;
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

.policy-content {
  max-width: 50rem;
  margin: 0 auto;
}

.policy-content h2 {
  margin-top: var(--space-md);
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.policy-content h3 {
  margin-top: var(--space-sm);
  margin-bottom: var(--space-xs);
  color: var(--color-dark);
}

.policy-content p {
  margin-bottom: var(--space-sm);
  line-height: 1.7;
}

.policy-content ul {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.policy-content li {
  margin-bottom: var(--space-xs);
}

@media (max-width: 51rem) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-dark);
    max-height: 0;
    overflow: hidden;
    transition: var(--transition-normal);
  }

  .main-nav.active {
    max-height: 25rem;
    border-top: 0.0625rem solid var(--color-secondary);
  }

  .main-nav ul {
    flex-direction: column;
    padding: var(--space-sm) 0;
    gap: 0;
  }

  .main-nav a {
    padding: var(--space-sm) var(--space-md);
    width: 100%;
  }

  .hero-title {
    font-size: 2rem;
  }

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .contact-wrapper {
    grid-template-columns: 1fr;
  }

  .popup-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 30rem) {
  body {
    font-size: 0.85rem;
  }

  .grid-2 {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));

  }

  .brand-logo {
    font-size: 1.2rem;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.3rem;
  }

  .section-block {
    padding: var(--space-md) 0;
  }

  .btn-primary,
  .btn-secondary {
    padding: var(--space-xs) var(--space-sm);
    font-size: 0.85rem;
  }
}