:root {
  --primary: #FCD8CD;
  --secondary: #FEEBF6;
  --accent: #EBD6FB;
  --highlight: #687FE5;
  --text-dark: #333333;
  --text-light: #FFFFFF;
  --bg-light: #F8F8F8;
  --bg-dark: #222222;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 4rem;

  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Karla', sans-serif;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.5rem;
  --fs-xxl: 2rem;
  --fs-xxxl: 3rem;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.15);
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: var(--highlight);
  transition: var(--transition);
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: var(--fs-xxxl);
}

h2 {
  font-size: var(--fs-xxl);
}

h3 {
  font-size: var(--fs-xl);
}

p {
  margin-bottom: var(--space-md);
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

.btn {
  display: inline-block;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--highlight);
  color: var(--text-light);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: var(--fs-md);
  cursor: pointer;
  transition: var(--transition);
}

.btn:hover {
  background-color: var(--accent);
  color: var(--text-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--highlight);
  color: var(--highlight);
}

.btn-outline:hover {
  background-color: var(--highlight);
  color: var(--text-light);
}

header {
  position: relative;
  z-index: 1000;
  padding: var(--space-sm) 0;
  background-color: rgba(255, 255, 255, 0.95);
  transition: var(--transition);
}

.header-container {
  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;
  }
}

header.scrolled {
  transform: translateY(-100%);
}

header.visible {
  transform: translateY(0);
}

.nav-desktop {
  display: none;
}

.nav-desktop ul {
  display: flex;
  list-style: none;
}

.nav-desktop li {
  margin-left: var(--space-lg);
}

.nav-desktop a {
  font-family: var(--font-primary);
  font-size: var(--fs-md);
  color: var(--text-dark);
}

.nav-desktop a:hover {
  color: var(--highlight);
}

.mobile-menu-toggle {
  background: none;
  border: none;
  color: var(--text-dark);
  font-size: var(--fs-xl);
  cursor: pointer;
  z-index: 1001;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--bg-light);
  padding: var(--space-xl) var(--space-lg);
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
}

.mobile-menu ul {
  list-style: none;
  margin-top: var(--space-xl);
}

.mobile-menu li {
  margin-bottom: var(--space-md);
}

.mobile-menu a {
  font-family: var(--font-primary);
  font-size: var(--fs-lg);
  color: var(--text-dark);
  display: block;
  padding: var(--space-sm) 0;
}

.mobile-menu-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: none;
  border: none;
  font-size: var(--fs-xl);
  cursor: pointer;
}

.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: url('../images/hero-texture.jpg') no-repeat center center/cover;
  position: relative;
  overflow: hidden;
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--text-dark);
  margin-bottom: var(--space-lg);
}

.hero p {
  font-size: var(--fs-lg);
  max-width: 600px;
  margin: 0 auto var(--space-lg);
}

.section {
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 2px;
  background-color: var(--highlight);
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.about-image {
  flex: 1;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.about-text {
  flex: 1;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-lg);
}

.feature-card {
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.feature-icon {
  font-size: var(--fs-xxl);
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-lg);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.product-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.product-image {
  height: 200px;
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-details {
  padding: var(--space-lg);
}

.product-title {
  margin-bottom: var(--space-sm);
}

.product-price {
  font-size: var(--fs-lg);
  color: var(--highlight);
  margin-bottom: var(--space-md);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: var(--space-md);
}

.portfolio-item {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 250px;
}

.portfolio-image {
  width: 100%;
  height: 100%;
}

.portfolio-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.portfolio-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(104, 127, 229, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: var(--transition);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-item:hover .portfolio-image img {
  transform: scale(1.1);
}

.portfolio-title {
  color: white;
  text-align: center;
  padding: 0 var(--space-md);
}

.contact-section {
  background-color: var(--primary);
  padding: var(--space-xl) 0;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-info {
  flex: 1;
}

.contact-info-item {
  display: flex;
  align-items: center;
  margin-bottom: var(--space-md);
}

.contact-info-icon {
  font-size: var(--fs-lg);
  color: var(--highlight);
  margin-right: var(--space-md);
}

.contact-form {
  flex: 1;
  background-color: white;
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-weight: 600;
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: var(--fs-md);
}

textarea.form-control {
  min-height: 150px;
  resize: vertical;
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.form-check-input {
  margin-top: 0.25rem;
}

footer {
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-lg) 0;
}

.footer-container {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-links a {
  color: var(--text-light);
  font-size: var(--fs-sm);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-bottom {
  text-align: center;
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: var(--fs-sm);
}

.privacy-popup {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--bg-dark);
  color: var(--text-light);
  padding: var(--space-lg);
  z-index: 1000;
  transform: translateY(100%);
  transition: var(--transition);
}

.privacy-popup.show {
  transform: translateY(0);
}

.privacy-popup-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.privacy-popup-text {
  flex: 1;
}

.privacy-popup-actions {
  display: flex;
  gap: var(--space-sm);
}

.error-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-content h1 {
  font-size: 6rem;
  color: var(--highlight);
  margin-bottom: var(--space-sm);
}

.thank-you-page {
  min-height: 80vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thank-you-content {
  max-width: 600px;
}

.map-container {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 576px) {

  .features-grid,
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .about-content {
    flex-direction: row;
  }

  .contact-content {
    flex-direction: row;
  }

  .portfolio-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-container {
    flex-direction: row;
    justify-content: space-between;
  }
}

@media (min-width: 992px) {
  .nav-desktop {
    display: block;
  }

  .mobile-menu-toggle {
    display: none;
  }

  .features-grid,
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.texture-bg {
  background-color: var(--primary);
  background-image: url('../images/plaster-texture.jpg');
  background-blend-mode: overlay;
}

.wallpaper-accent {
  position: relative;
  overflow: hidden;
}

.wallpaper-accent:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../images/wallpaper-texture.jpg') no-repeat center center/cover;
  opacity: 0.15;
  z-index: -1;
}

.text-center {
  text-align: center;
}

.text-highlight {
  color: var(--highlight);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-accent {
  background-color: var(--accent);
}

.mt-1 {
  margin-top: var(--space-sm);
}

.mt-2 {
  margin-top: var(--space-md);
}

.mt-3 {
  margin-top: var(--space-lg);
}

.mt-4 {
  margin-top: var(--space-xl);
}

.mb-1 {
  margin-bottom: var(--space-sm);
}

.mb-2 {
  margin-bottom: var(--space-md);
}

.mb-3 {
  margin-bottom: var(--space-lg);
}

.mb-4 {
  margin-bottom: var(--space-xl);
}