:root {
  --color-primary: #E62727;
  --color-secondary: #1E93AB;
  --color-light: #F3F2EC;
  --color-neutral: #DCDCDC;
  --color-dark: #333333;
  --color-white: #FFFFFF;

  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Montserrat', sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 16px;

  --shadow-soft: 0 4px 6px rgba(0, 0, 0, 0.05);
  --shadow-medium: 0 8px 15px rgba(0, 0, 0, 0.1);

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  color: var(--color-dark);
  background-color: var(--color-light);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.2;
}

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-sm);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  background-color: var(--color-primary);
  color: var(--color-white);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

.btn:hover {
  background-color: var(--color-secondary);
  color: var(--color-white);
}

.btn-secondary {
  background-color: var(--color-secondary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
}

.btn-outline {
  background-color: transparent;
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}

.header {
  background-color: var(--color-white);
  box-shadow: var(--shadow-soft);
  padding: var(--space-sm) 0;
  position: relative;
  z-index: 10;
  transition: transform var(--transition-medium);
}

.header.hidden {
  transform: translateY(-100%);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: block;
}

.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 {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-md);
}

.nav-link {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 1rem;
  color: var(--color-dark);
  position: relative;
}

.nav-link:hover {
  color: var(--color-primary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary);
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--color-dark);
  margin: 5px 0;
  transition: all var(--transition-fast);
}

.hero {
  padding: var(--space-xl) 0;
  text-align: center;
  background-color: var(--color-light);
  background-image: url('../images/hero.jpg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  font-size: 3rem;
}

.hero-subtitle {
  color: var(--color-dark);
  margin-bottom: var(--space-md);
  font-size: 1.5rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-primary);
  margin: var(--space-xs) auto;
}

.features {
  background-color: var(--color-white);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  transition: transform var(--transition-medium);
  background-color: var(--color-light);
  box-shadow: var(--shadow-soft);
}

.feature-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.feature-title {
  margin-bottom: var(--space-xs);
  font-weight: 700;
  color: var(--color-primary);
}

.products {
  background-color: var(--color-light);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}

.product-card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.product-content {
  padding: var(--space-md);
}

.product-title {
  color: var(--color-dark);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

.portfolio {
  background-color: var(--color-white);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-sm);
}

.portfolio-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  height: 280px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-medium);
}

.portfolio-item:hover .portfolio-image {
  transform: scale(1.05);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(230, 39, 39, 0.8);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-medium);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-title {
  color: var(--color-white);
  margin-bottom: var(--space-xs);
}

.portfolio-category {
  color: var(--color-light);
  font-style: italic;
}

.faqs {
  background-color: var(--color-light);
}

.faq-item {
  margin-bottom: var(--space-md);
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  box-shadow: var(--shadow-soft);
}

.faq-question {
  cursor: pointer;
  font-weight: 700;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: '\f078';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  transition: transform var(--transition-fast);
}

.faq-item.active .faq-question::after {
  transform: rotate(180deg);
}

.faq-answer {
  margin-top: var(--space-sm);
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.contact {
  background-color: var(--color-white);
}

.contact-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.contact-info {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  margin-right: var(--space-sm);
}

.contact-text h4 {
  margin-bottom: var(--space-xs);
  font-weight: 700;
}

.contact-form {
  background-color: var(--color-light);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-neutral);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  font-family: var(--font-secondary);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.form-checkbox input {
  margin-right: var(--space-xs);
  margin-top: 0.25rem;
}

.map-container {
  height: 300px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: var(--space-md);
}

.footer {
  background-color: var(--color-dark);
  color: var(--color-light);
  padding: var(--space-lg) 0 var(--space-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.footer-description {
  color: var(--color-neutral);
  margin-bottom: var(--space-md);
}

.footer-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-light);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-xs);
}

.footer-link a {
  color: var(--color-neutral);
  transition: color var(--transition-fast);
}

.footer-link a:hover {
  color: var(--color-primary);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-sm);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  color: var(--color-neutral);
  font-size: 0.875rem;
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--color-white);
  padding: var(--space-md);
  box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.privacy-popup.active {
  display: block;
}

.privacy-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.privacy-text {
  flex: 1;
}

.privacy-buttons {
  display: flex;
  gap: var(--space-xs);
}

.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
}

.error-title {
  font-size: 6rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.error-subtitle {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

.thank-you {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: var(--space-lg) var(--space-sm);
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.thank-you-title {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .nav-list {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background-color: var(--color-white);
    box-shadow: var(--shadow-medium);
    padding: var(--space-md) 0;
    z-index: 20;
  }

  .nav-list.active {
    display: flex;
  }

  .nav-item {
    margin: 0;
  }

  .nav-link {
    display: block;
    padding: var(--space-sm) var(--space-md);
  }

  .hamburger {
    display: block;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .contact-content {
    grid-template-columns: 1fr;
  }

  .privacy-content {
    flex-direction: column;
  }

  .privacy-buttons {
    margin-top: var(--space-sm);
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .features-grid,
  .products-grid,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .error-title {
    font-size: 4rem;
  }

  .error-subtitle {
    font-size: 1.5rem;
  }
}