/* ===== CORE VARIABLES ===== */
:root {
  /* Color Palette */
  --color-background: #1A0B0B; /* dark burgundy */
  --color-primary: #731717; /* wine red */
  --color-secondary: #F26B8A; /* muted rose pink */
  --color-text: #F8EDED; /* warm ivory */
  --color-accent: #3C8D61; /* muted green */
  
  /* Typography */
  --font-primary: 'Cormorant Garamond', serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 5rem;
  
  /* Borders & Shadows */
  --border-radius-sm: 0.25rem;
  --border-radius-md: 0.5rem;
  --border-radius-lg: 1rem;
  --shadow-soft: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-medium: 0 6px 16px rgba(0, 0, 0, 0.15);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ===== RESET & BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  background-color: var(--color-background);
  color: var(--color-text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--color-secondary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  margin-bottom: var(--space-md);
  font-weight: 600;
  line-height: 1.3;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.75rem;
}

h4 {
  font-size: 1.5rem;
}

p {
  margin-bottom: var(--space-md);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, .btn {
  display: inline-block;
  background: var(--color-primary);
  color: var(--color-text);
  padding: var(--space-sm) var(--space-lg);
  border: none;
  border-radius: var(--border-radius-md);
  font-family: var(--font-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

button:hover, .btn:hover {
  background: var(--color-secondary);
  transform: translateY(-2px);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-md);
}

section {
  padding: var(--space-xl) 0;
}

/* ===== HEADER ===== */
header {
  position: relative;
  padding: var(--space-md) 0;
  z-index: 100;
  transition: transform var(--transition-medium);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-text);
}

.logo span {
  color: var(--color-secondary);
}

/* Hide header on scroll down, show on scroll up */
.header-hidden {
  transform: translateY(-100%);
}

/* ===== NAVIGATION ===== */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-text);
  font-size: 1.5rem;
  cursor: pointer;
  z-index: 200;
}

.nav-menu {
  display: flex;
  list-style: none;
}

.nav-item {
  margin-left: var(--space-lg);
}

.nav-link {
  position: relative;
  color: var(--color-text);
  font-weight: 500;
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: var(--color-secondary);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-secondary);
  transition: width var(--transition-medium);
}

.nav-link:hover::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background: linear-gradient(rgba(26, 11, 11, 0.7), rgba(26, 11, 11, 0.8));
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 650px;
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  font-weight: 400;
}

.hero-btn {
  background: var(--color-secondary);
  padding: var(--space-md) var(--space-xl);
  font-size: 1.1rem;
  box-shadow: var(--shadow-medium);
}

.hero-btn:hover {
  background: var(--color-accent);
}

/* ===== FEATURED SECTION ===== */
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.featured-card {
  background: rgba(115, 23, 23, 0.1);
  border-radius: var(--border-radius-md);
  padding: var(--space-lg);
  transition: all var(--transition-medium);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.featured-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.featured-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--color-secondary);
  transition: all var(--transition-medium);
}

.featured-card:hover::before {
  width: 8px;
  background: var(--color-accent);
}

.featured-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
}

.featured-title {
  margin-bottom: var(--space-sm);
}

/* ===== ABOUT SECTION ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-content h2 {
  margin-bottom: var(--space-md);
}

.about-content p {
  margin-bottom: var(--space-md);
}

/* ===== PRODUCT SECTION ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.product-card {
  background: rgba(115, 23, 23, 0.1);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: all var(--transition-medium);
  box-shadow: var(--shadow-soft);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  height: 250px;
  width: 100%;
  object-fit: cover;
}

.product-content {
  padding: var(--space-lg);
}

.product-title {
  margin-bottom: var(--space-xs);
}

.product-price {
  color: var(--color-secondary);
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.product-description {
  margin-bottom: var(--space-md);
}

/* ===== CONTACT SECTION ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.contact-info {
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.contact-icon {
  margin-right: var(--space-sm);
  font-size: 1.5rem;
  color: var(--color-secondary);
}

.contact-form {
  background: rgba(115, 23, 23, 0.1);
  padding: var(--space-lg);
  border-radius: var(--border-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: 500;
}

.form-control {
  width: 100%;
  padding: var(--space-sm);
  border: 2px solid rgba(115, 23, 23, 0.3);
  background: rgba(248, 237, 237, 0.05);
  border-radius: var(--border-radius-sm);
  color: var(--color-text);
  font-family: var(--font-secondary);
  transition: all var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-secondary);
  background: rgba(248, 237, 237, 0.1);
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-md);
}

.form-checkbox input {
  margin-right: var(--space-sm);
  margin-top: 0.3em;
}

.form-btn {
  width: 100%;
  padding: var(--space-md);
  font-size: 1.1rem;
}

/* ===== FOOTER ===== */
.footer {
  background: rgba(26, 11, 11, 0.9);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xxl);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
}

.footer-logo span {
  color: var(--color-secondary);
}

.footer-heading {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  position: relative;
  padding-bottom: var(--space-xs);
}

.footer-heading::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background-color: var(--color-secondary);
}

.footer-links {
  list-style: none;
}

.footer-link {
  margin-bottom: var(--space-sm);
}

.footer-link a {
  color: var(--color-text);
  opacity: 0.8;
  transition: all var(--transition-fast);
}

.footer-link a:hover {
  opacity: 1;
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  gap: var(--space-sm);
  margin-top: var(--space-md);
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(115, 23, 23, 0.5);
  color: var(--color-text);
  border-radius: 50%;
  transition: all var(--transition-fast);
}

.social-icon:hover {
  background: var(--color-secondary);
  transform: translateY(-3px);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(248, 237, 237, 0.1);
}

.copyright {
  opacity: 0.7;
  font-size: 0.9rem;
}

/* ===== COOKIES NOTICE ===== */
.cookies-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(26, 11, 11, 0.95);
  padding: var(--space-md);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.2);
  z-index: 999;
  display: none;
}

.cookies-notice.show {
  display: block;
}

.cookies-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookies-text {
  flex: 1;
  min-width: 280px;
}

.cookies-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ===== 404 PAGE ===== */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-content {
  max-width: 600px;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  margin-bottom: var(--space-md);
  color: var(--color-secondary);
  line-height: 1;
}

.error-message {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

/* ===== THANK YOU PAGE ===== */
.thank-you {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.thank-you-content {
  max-width: 700px;
}

.thank-you-icon {
  font-size: 5rem;
  color: var(--color-accent);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
}

.thank-you-message {
  font-size: 1.2rem;
  margin-bottom: var(--space-xl);
}

/* ===== RESPONSIVE STYLES ===== */
@media (max-width: 992px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--color-background);
    flex-direction: column;
    justify-content: center;
    padding: var(--space-xl);
    transition: right var(--transition-medium);
    z-index: 100;
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-item {
    margin: var(--space-md) 0;
  }
  
  .nav-link {
    font-size: 1.2rem;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 14px;
  }
  
  .container {
    width: 95%;
  }
  
  section {
    padding: var(--space-lg) 0;
  }
  
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .error-code {
    font-size: 6rem;
  }
  
  .error-message {
    font-size: 1.5rem;
  }
}