/* ===== CSS RESET & VARIABLES ===== */
:root {
  --main-dark: #7C4A4A;
  --main-medium: #A6686A;
  --main-light: #C08387;
  --main-pale: #E6BABB;
  --white: #fff;
  --black: #000;
  --shadow: rgba(124, 74, 74, 0.08);
  --shadow-medium: rgba(124, 74, 74, 0.15);
  --shadow-strong: rgba(124, 74, 74, 0.25);
  
  /* Typography */
  --font-primary: 'Montserrat', Arial, sans-serif;
  --font-display: 'Playfair Display', serif;
  
  /* Spacing */
  --container-max-width: 1200px;
  --container-padding: 2rem;
  --section-spacing: 4rem;
  --element-spacing: 2rem;
  
  /* Border radius */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-xl: 2rem;
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.4s ease;
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  font-family: var(--font-primary);
  background: var(--main-pale);
  color: var(--main-dark);
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== UTILITY CLASSES ===== */
.container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

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

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--main-medium);
  margin: 0 0 2rem 0;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.8s ease-out;
}

.fade-in-left {
  animation: fadeInLeft 0.8s ease-out;
}

.fade-in-right {
  animation: fadeInRight 0.8s ease-out;
}

/* ===== HEADER SECTION ===== */
.site-header {
  background: var(--white);
  padding: 1rem 0;
  box-shadow: 0 2px 12px var(--shadow);
  position: relative;
  z-index: 100;
}

.header-container {
  max-width: var(--container-max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.header-banner {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: contain;
  display: block;
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 16px var(--shadow-medium);
}

/* ===== INTRO SECTION ===== */
.intro-section {
  background: linear-gradient(135deg, var(--white) 0%, var(--main-pale) 100%);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
}

.intro-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(124,74,74,0.03)"/><circle cx="75" cy="75" r="1" fill="rgba(124,74,74,0.03)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
  pointer-events: none;
}

.intro-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.intro-photo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.intro-image {
  width: 100%;
  height: auto;
  max-width: 400px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--shadow-medium);
  background: var(--main-pale);
  padding: 1rem;
  transition: transform var(--transition-normal);
}

.intro-image:hover {
  transform: scale(1.05);
}

.intro-text {
  text-align: center;
  padding: 0 1rem;
}

.intro-description {
  font-size: 1.1rem;
  color: var(--main-dark);
  margin-bottom: 1.5rem;
  line-height: 1.7;
  font-weight: 400;
}
/* ===== ABOUT SECTION ===== */
.about-section {
  background: linear-gradient(135deg, var(--main-pale) 0%, var(--main-light) 100%);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  position: relative;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: center;
}

.about-photo {
  display: flex;
  justify-content: center;
}

.about-image {
  width: 100%;
  max-width: 350px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--border-radius-xl);
  box-shadow: 0 12px 40px var(--shadow-strong);
  border: 4px solid var(--white);
  transition: transform var(--transition-normal);
}

.about-image:hover {
  transform: scale(1.02);
}

.about-text {
  color: var(--main-dark);
}

.about-description {
  font-size: 1.1rem;
  line-height: 1.8;
  color: var(--main-dark);
  margin: 0;
  text-align: center;
}

/* ===== PRODUCTS SECTION ===== */
.products-section {
  background: linear-gradient(135deg, var(--main-light) 0%, var(--main-medium) 100%);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  color: var(--main-dark);
}

.products-section .section-title {
  color: var(--main-dark);
  margin-bottom: 3rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  justify-items: center;
}

.product-card {
  background: var(--main-pale);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--shadow-medium);
  overflow: hidden;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  width: 100%;
  max-width: 350px;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px var(--shadow-strong);
}

.product-image-wrapper {
  position: relative;
  overflow: hidden;
}

.product-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(124, 74, 74, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.product-card:hover .product-image {
  transform: scale(1.1);
}

.overlay-text {
  color: var(--white);
  font-weight: 600;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-info {
  padding: 1.5rem;
  text-align: center;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--main-dark);
  margin: 0 0 0.5rem 0;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--main-medium);
}
/* ===== GALLERY SECTION ===== */
.gallery-section {
  background: linear-gradient(135deg, var(--main-medium) 0%, var(--main-dark) 100%);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.gallery-section .section-title {
  color: var(--white);
  margin-bottom: 3rem;
}

.gallery-wrapper {
  margin-bottom: 3rem;
}

.gallery-wrapper:last-child {
  margin-bottom: 0;
}

.gallery-subtitle {
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  margin: 0 0 1.5rem 0;
  letter-spacing: 0.02em;
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}

.gallery-btn {
  background: linear-gradient(135deg, var(--white) 0%, var(--main-pale) 100%);
  color: var(--main-dark);
  border: 2px solid var(--white);
  border-radius: 50%;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 6px 20px var(--shadow-medium);
  z-index: 10;
  position: relative;
  overflow: hidden;
}

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

.gallery-btn:hover {
  background: linear-gradient(135deg, var(--main-pale) 0%, var(--main-light) 100%);
  transform: scale(1.15);
  box-shadow: 0 8px 30px var(--shadow-strong);
  border-color: var(--main-light);
  color: var(--main-dark);
}

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

.gallery-btn:active {
  transform: scale(1.05);
  transition: transform 0.1s ease;
}

.gallery-btn:active {
  transform: scale(0.95);
}

.gallery-btn--left {
  position: absolute;
  left: -1.75rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--main-pale) 100%);
}

.gallery-btn--left::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-60%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-right: 12px solid var(--main-dark);
  transition: all var(--transition-normal);
}

.gallery-btn--left:hover::after {
  border-right-color: var(--main-dark);
  transform: translate(-65%, -50%);
}

.gallery-btn--right {
  position: absolute;
  right: -1.75rem;
  background: linear-gradient(135deg, var(--white) 0%, var(--main-pale) 100%);
}

.gallery-btn--right::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-40%, -50%);
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--main-dark);
  transition: all var(--transition-normal);
}

.gallery-btn--right:hover::after {
  border-left-color: var(--main-dark);
  transform: translate(-35%, -50%);
}

.btn-icon {
  font-size: 0;
  opacity: 0;
  pointer-events: none;
}

.gallery-scroll {
  position: relative;
  height: 320px;
  width: 400px;
  overflow: hidden;
  border-radius: var(--border-radius-lg);
  box-shadow: 0 8px 32px var(--shadow-strong);
  border: 3px solid var(--white);
}

.gallery {
  display: flex;
  height: 100%;
  transition: transform var(--transition-slow);
  will-change: transform;
}

.gallery-item {
  min-width: 400px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

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

.gallery-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.video-controls {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  padding: 1rem;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.gallery-item:hover .video-controls {
  opacity: 1;
}

.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 4rem;
  height: 4rem;
  font-size: 1.5rem;
  color: var(--main-dark);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
}

.play-button:hover {
  background: var(--white);
  transform: translate(-50%, -50%) scale(1.1);
}

.play-button.playing {
  opacity: 0;
  pointer-events: none;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--main-dark);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  box-shadow: 0 4px 24px var(--shadow);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
}

.feature-card {
  text-align: center;
  padding: 2rem 1rem;
  background: var(--main-pale);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 16px var(--shadow);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  border: 2px solid var(--main-medium);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px var(--shadow-medium);
  border-color: var(--main-light);
  background: var(--white);
}

.feature-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
  color: var(--main-medium);
}

.feature-title {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 1rem 0;
  color: var(--main-dark);
}

.feature-description {
  color: var(--main-dark);
  font-size: 1rem;
  margin: 0;
  line-height: 1.6;
}

/* ===== CONTACT SECTION ===== */
.contact-section {
  background: var(--main-dark);
  padding: var(--section-spacing) 0;
  margin-top: 2rem;
  text-align: center;
  box-shadow: 0 4px 24px var(--shadow);
}

.contact-text {
  font-size: 1.2rem;
  color: var(--white);
  margin: 0;
  line-height: 1.6;
}

.contact-section .section-title {
  color: var(--white);
}

.contact-link {
  color: var(--main-pale);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 2px solid var(--main-pale);
  transition: all var(--transition-normal);
  padding-bottom: 2px;
}

.contact-link:hover {
  color: var(--main-dark);
  border-bottom-color: var(--white);
  background: var(--white);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  border-bottom: none;
}

/* ===== FOOTER ===== */
.site-footer {
  background: var(--main-dark);
  padding: 2rem 0;
  text-align: center;
  margin-top: 2rem;
}

.footer-text {
  color: var(--white);
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.footer-text:last-child {
  margin-bottom: 0;
}

.footer-text a {
  color: var(--main-pale);
  text-decoration: none;
  transition: color var(--transition-normal);
}

.footer-text a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large screens */
@media (min-width: 1400px) {
  .container {
    max-width: 1400px;
  }
  
  .intro-image {
    max-width: 500px;
  }
  
  .about-image {
    max-width: 400px;
  }
}

/* Medium screens */
@media (max-width: 1200px) {
  :root {
    --container-padding: 1.5rem;
    --section-spacing: 3rem;
  }
  
  .intro-content {
    gap: 2rem;
  }
  
  .about-content {
    gap: 3rem;
  }
  
  .product-grid {
    gap: 2rem;
  }
}

/* Small laptops and tablets */
@media (max-width: 992px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 2.5rem;
  }
  
  .intro-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .about-content {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  
  .intro-image,
  .about-image {
    max-width: 300px;
  }
  
  .gallery-wrapper {
    margin-bottom: 2rem;
  }
  
  .gallery-controls {
    gap: 1rem;
  }
  
  .gallery-scroll {
    width: 320px;
    height: 280px;
    border-width: 2px;
  }
  
  .gallery-item {
    min-width: 320px;
  }
  
  .gallery-btn--left {
    left: -1.25rem;
  }
  
  .gallery-btn--right {
    right: -1.25rem;
  }
  
  .gallery-btn {
    width: 3rem;
    height: 3rem;
  }
  
  .gallery-btn--left::after {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-right: 10px solid var(--main-dark);
  }
  
  .gallery-btn--right::after {
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid var(--main-dark);
  }
  
  .play-button {
    width: 3rem;
    height: 3rem;
    font-size: 1.2rem;
  }
}

/* Mobile devices */
@media (max-width: 768px) {
  :root {
    --container-padding: 1rem;
    --section-spacing: 2rem;
  }
  
  .header-banner {
    max-height: 200px;
  }
  
  .intro-content {
    gap: 1.5rem;
  }
  
  .intro-image,
  .about-image {
    max-width: 250px;
  }
  
  .product-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .gallery-wrapper {
    margin-bottom: 2rem;
  }
  
  .gallery-subtitle {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  
  .gallery-scroll {
    width: 280px;
    height: 240px;
    border-width: 2px;
  }
  
  .gallery-item {
    min-width: 280px;
  }
  
  .gallery-btn {
    width: 2.75rem;
    height: 2.75rem;
  }
  
  .gallery-btn--left {
    left: -1rem;
  }
  
  .gallery-btn--right {
    right: -1rem;
  }
  
  .gallery-btn--left::after {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-right: 8px solid var(--main-dark);
  }
  
  .gallery-btn--right::after {
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
    border-left: 8px solid var(--main-dark);
  }
  
  .play-button {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1rem;
  }
  
  .about-description,
  .intro-description {
    font-size: 1rem;
  }
  
  .contact-text {
    font-size: 1.1rem;
  }
}

/* Small mobile devices */
@media (max-width: 480px) {
  :root {
    --container-padding: 0.75rem;
    --section-spacing: 1.5rem;
  }
  
  .intro-image,
  .about-image {
    max-width: 200px;
  }
  
  .gallery-scroll {
    width: 240px;
    height: 200px;
    border-width: 2px;
  }
  
  .gallery-item {
    min-width: 240px;
  }
  
  .gallery-btn--left,
  .gallery-btn--right {
    position: relative;
    left: auto;
    right: auto;
  }
  
  .gallery-btn {
    width: 2.5rem;
    height: 2.5rem;
  }
  
  .gallery-btn--left::after {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-right: 7px solid var(--main-dark);
  }
  
  .gallery-btn--right::after {
    border-top: 4px solid transparent;
    border-bottom: 4px solid transparent;
    border-left: 7px solid var(--main-dark);
  }
  
  .gallery-controls {
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
  }
  
  .feature-card {
    padding: 1.5rem 1rem;
  }
  
  .contact-link:hover {
    padding: 0.25rem 0.5rem;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .intro-image,
  .about-image,
  .product-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .fade-in-up,
  .fade-in-left,
  .fade-in-right {
    animation: none;
  }
}

/* Focus states for accessibility */
.gallery-btn:focus,
.contact-link:focus {
  outline: 3px solid var(--main-pale);
  outline-offset: 3px;
}

.gallery-btn:focus {
  outline-color: var(--white);
  box-shadow: 0 0 0 4px var(--main-pale), 0 8px 30px var(--shadow-strong);
}

.contact-link:focus {
  outline-color: var(--main-pale);
}

/* Print styles */
@media print {
  .gallery-btn,
  .product-overlay {
    display: none;
  }
  
  .intro-section,
  .about-section,
  .products-section,
  .features-section,
  .contact-section {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
}
