@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;1,400&family=Work+Sans:wght@300;400;500;600&display=swap');

:root {
  --color-almond: #F3EDE2;
  --color-olive: #9C9F84;
  --color-blush: #E7C3C3;
  --color-cocoa: #7A5C4A;
  --color-sky: #A7CBE7;
  --color-stone: #D4D1CC;
  
  --font-primary: 'Crimson Text', serif;
  --font-secondary: 'Work Sans', sans-serif;
  
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 3rem;
  --space-xl: 4rem;
  
  --radius-sm: 0.75rem;
  --radius-md: 1.5rem;
  --radius-lg: 2rem;
  
  --shadow-soft: 0 4px 20px rgba(122, 92, 74, 0.1);
  --shadow-medium: 0 8px 30px rgba(122, 92, 74, 0.15);
  --shadow-strong: 0 12px 40px rgba(122, 92, 74, 0.2);
  
  --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 62.5%;
}

body {
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  line-height: 1.6;
  color: var(--color-cocoa);
  background: linear-gradient(135deg, var(--color-almond) 0%, var(--color-stone) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

a {
  color: var(--color-olive);
  text-decoration: none;
  transition: var(--transition-smooth);
  position: relative;
}

a:hover {
  color: var(--color-cocoa);
}

a:visited {
  color: var(--color-olive);
}

a:active {
  color: var(--color-cocoa);
  transform: scale(0.98);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(3rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gentleFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-1rem);
  }
}

@keyframes softPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: var(--shadow-soft);
  }
  50% {
    transform: scale(1.05);
    box-shadow: var(--shadow-medium);
  }
}

@keyframes organicWave {
  0%, 100% {
    border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
    transform: rotate(0deg);
  }
  25% {
    border-radius: 40% 60% 70% 30% / 40% 70% 30% 60%;
    transform: rotate(90deg);
  }
  50% {
    border-radius: 70% 30% 40% 60% / 70% 40% 60% 30%;
    transform: rotate(180deg);
  }
  75% {
    border-radius: 30% 70% 60% 40% / 30% 60% 40% 70%;
    transform: rotate(270deg);
  }
}

@keyframes textReveal {
  from {
    clip-path: polygon(0 0, 0 0, 0 100%, 0% 100%);
  }
  to {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  }
}

.animate-in {
  animation: fadeInUp 0.8s ease-out forwards;
}

.float-gentle {
  animation: gentleFloat 4s ease-in-out infinite;
}

.pulse-soft {
  animation: softPulse 3s ease-in-out infinite;
}

.wave-organic {
  animation: organicWave 8s ease-in-out infinite;
}

.text-reveal {
  animation: textReveal 1.2s ease-out forwards;
}

.container {
  max-width: 120rem;
  margin: 0 auto;
  padding: 0 var(--space-sm);
}

.header {
  position: relative;
  padding: var(--space-md) 0;
  background: rgba(243, 237, 226, 0.95);
  backdrop-filter: blur(1rem);
  border-bottom: 1px solid rgba(156, 159, 132, 0.2);
  z-index: 1000;
}

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

.logo {
  font-family: var(--font-primary);
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--color-cocoa);
  text-decoration: none;
  letter-spacing: -0.5px;
  position: relative;
  overflow: hidden;
}

.logo::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: -100%;
  background: linear-gradient(90deg, var(--color-blush), var(--color-sky));
  transition: var(--transition-smooth);
}

.logo:hover::before {
  left: 0;
}

.nav {
  display: flex;
  list-style: none;
  gap: var(--space-md);
}

.nav-link {
  text-decoration: none;
  color: var(--color-olive);
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  transition: var(--transition-smooth);
  overflow: hidden;
}

.nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-blush), var(--color-sky));
  opacity: 0;
  z-index: -1;
  transition: var(--transition-smooth);
  transform: scale(0.8);
}

.nav-link:hover {
  color: var(--color-cocoa);
  transform: translateY(-2px);
}

.nav-link:hover::before {
  opacity: 0.1;
  transform: scale(1);
}

.burger-menu {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: var(--space-xs);
  background: none;
  border: none;
  position: relative;
  z-index: 1001;
}

.burger-line {
  width: 2.5rem;
  height: 3px;
  background: var(--color-cocoa);
  margin: 3px 0;
  transition: var(--transition-smooth);
  border-radius: 2px;
}

.burger-menu.active .burger-line:nth-child(1) {
  transform: rotate(-45deg) translate(-6px, 6px);
}

.burger-menu.active .burger-line:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-line:nth-child(3) {
  transform: rotate(45deg) translate(-6px, -6px);
}

.hero {
  padding: var(--space-xl) 0;
  min-height: 60vh;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-color: var(--color-almond);
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(243, 237, 226, 0.85) 0%, rgba(212, 209, 204, 0.75) 50%, rgba(167, 203, 231, 0.6) 100%);
  z-index: 1;
}

.hero::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -25%;
  width: 60rem;
  height: 60rem;
  background: radial-gradient(circle, rgba(167, 203, 231, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  animation: gentleFloat 6s ease-in-out infinite;
  z-index: 1;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-family: var(--font-primary);
  font-size: clamp(3.2rem, 5vw, 5.6rem);
  font-weight: 600;
  color: var(--color-cocoa);
  margin-bottom: var(--space-md);
  line-height: 1.2;
  position: relative;
  z-index: 2;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.5);
  animation: fadeInUp 1s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.6rem, 2.5vw, 2.4rem);
  color: var(--color-cocoa);
  margin-bottom: var(--space-lg);
  max-width: 60rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
  text-shadow: 0 1px 5px rgba(255, 255, 255, 0.5);
  font-weight: 400;
  animation: fadeInUp 1.2s ease-out;
}

.hero-home {
  background-image: url('../visuals/bg-image-1.webp');
}

.hero-fabric {
  background-image: url('../visuals/bg-image-2.webp');
}

.hero-shop {
  background-image: url('../visuals/bg-image-3.webp');
}

.hero .btn {
  margin-top: var(--space-md);
  padding: var(--space-sm) var(--space-lg);
  font-size: clamp(1.6rem, 2vw, 1.8rem);
  backdrop-filter: blur(0.5rem);
  box-shadow: 0 4px 15px rgba(122, 92, 74, 0.3);
  animation: fadeInUp 1.4s ease-out;
}

.hero .btn:hover {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 8px 25px rgba(122, 92, 74, 0.4);
}

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

.section-title {
  font-family: var(--font-primary);
  font-size: clamp(2.4rem, 4vw, 4rem);
  font-weight: 600;
  color: var(--color-cocoa);
  text-align: center;
  margin-bottom: var(--space-lg);
  position: relative;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -1rem;
  left: 50%;
  transform: translateX(-50%);
  width: 8rem;
  height: 3px;
  background: linear-gradient(90deg, var(--color-blush), var(--color-sky));
  border-radius: var(--radius-sm);
}

.card {
  background: rgba(255, 255, 255, 0.8);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
  border: 1px solid rgba(156, 159, 132, 0.1);
  backdrop-filter: blur(1rem);
  position: relative;
  overflow: hidden;
}



.card:hover {
  transform: translateY(-0.5rem);
  box-shadow: var(--shadow-medium);
}

.card:hover::before {
  opacity: 1;
}

.experience-card {
  transition: var(--transition-smooth);
}

.experience-card:hover {
  transform: translateY(-0.8rem) scale(1.02);
}

.experience-icon {
  transition: var(--transition-smooth);
}

.experience-card:hover .experience-icon {
  transform: scale(1.1) rotate(5deg);
  background: rgba(122, 92, 74, 0.15);
}

.experience-visuals {
  transition: var(--transition-smooth);
}

.experience-visuals:hover {
  transform: translateY(-0.8rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-sm) var(--space-md);
  background: linear-gradient(135deg, var(--color-cocoa), var(--color-olive));
  color: var(--color-almond);
  text-decoration: none;
  border-radius: var(--radius-md);
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: var(--transition-bounce);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  color: white !important;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: var(--transition-smooth);
}

.btn:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-strong);
}

.btn:hover::before {
  left: 100%;
}

.btn-secondary {
  background: linear-gradient(135deg, var(--color-blush), var(--color-sky));
  color: var(--color-cocoa);
}

.grid {
  display: grid;
  gap: var(--space-md);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(30rem, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
}

.contact-form {
  background: rgba(255, 255, 255, 0.9);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
  max-width: 60rem;
  margin: 0 auto;
}

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

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

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(156, 159, 132, 0.3);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1.6rem;
  background: rgba(255, 255, 255, 0.8);
  transition: var(--transition-smooth);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-sky);
  box-shadow: 0 0 0 3px rgba(167, 203, 231, 0.2);
  background: rgba(255, 255, 255, 1);
}

.form-textarea {
  min-height: 12rem;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-xs);
  margin: var(--space-md) 0;
}

.checkbox {
  margin-top: 0.2rem;
}

.footer {
  background: rgba(156, 159, 132, 0.1);
  padding: var(--space-md) 0;
  text-align: center;
  border-top: 1px solid rgba(156, 159, 132, 0.2);
  margin-top: var(--space-xl);
}

.footer-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
  margin: var(--space-lg) 0;
}

.map-container iframe {
  width: 100%;
  height: 30rem;
  border: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(28rem, 1fr));
  gap: var(--space-lg);
  margin-top: var(--space-lg);
}

.product-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-0.8rem);
  box-shadow: var(--shadow-strong);
}

.product-image {
  width: 100%;
  height: 25rem;
  background: linear-gradient(135deg, var(--color-almond), var(--color-stone));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--color-olive);
  overflow: hidden;
}

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

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

.product-title {
  font-family: var(--font-primary);
  font-size: 2rem;
  font-weight: 600;
  color: var(--color-cocoa);
  margin-bottom: var(--space-xs);
}

.product-price {
  font-size: 2.4rem;
  font-weight: 600;
  color: var(--color-olive);
  margin-top: var(--space-sm);
}

.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  backdrop-filter: blur(0.5rem);
}

.popup {
  background: var(--color-almond);
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  max-width: 50rem;
  margin: var(--space-sm);
  box-shadow: var(--shadow-strong);
  position: relative;
  animation: fadeInUp 0.5s ease-out;
}

.popup-close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  background: none;
  border: none;
  font-size: 2.4rem;
  cursor: pointer;
  color: var(--color-cocoa);
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
}

.popup-close:hover {
  background: var(--color-stone);
}

@media (max-width: 768px) {
  :root {
    --space-xs: 0.4rem;
    --space-sm: 0.8rem;
    --space-md: 1.6rem;
    --space-lg: 2.4rem;
    --space-xl: 3.2rem;
  }
  
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(243, 237, 226, 0.98);
    flex-direction: column;
    padding: var(--space-md);
    box-shadow: var(--shadow-medium);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    backdrop-filter: blur(1rem);
  }
  
  .nav.active {
    display: flex;
  }
  
  .burger-menu {
    display: flex;
  }
  
  .hero {
    padding: var(--space-lg) 0;
    min-height: 50vh;
    background-attachment: scroll;
  }
  
  .hero-title {
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.7);
  }
  
  .hero-subtitle {
    text-shadow: 0 1px 4px rgba(255, 255, 255, 0.7);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-form {
    margin: 0 var(--space-sm);
  }
  
  .header-content {
    position: relative;
  }
  
  .logo {
    font-size: 2.4rem;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 56%;
  }
  
  .container {
    padding: 0 var(--space-xs);
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-subtitle {
    font-size: 1.6rem;
  }
  
  .card {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 50%;
  }
  
  :root {
    --space-xs: 0.3rem;
    --space-sm: 0.6rem;
    --space-md: 1.2rem;
    --space-lg: 2rem;
    --space-xl: 2.8rem;
  }
  
  .logo {
    font-size: 2rem;
  }
  
  .hero-title {
    font-size: 2.4rem;
  }
}