/* ============================================
   CSS Variables & Base Styles
   ============================================ */

:root {
  /* Colors */
  --color-primary: #4C2E3F;
  --color-secondary: #F8F6F2;
  --color-accent: #E9C7C1;
  --color-highlight: #8E9A79;
  --color-gold: #D6A94E;
  --color-grey: #D9D9D9;
  --color-text: #2C2C2C;
  --color-text-light: #6B6B6B;
  --color-white: #FFFFFF;
  
  /* Typography */
  --font-heading: 'Cormorant Garamond', serif;
  --font-body: 'Inter', sans-serif;
  --font-ui: 'Montserrat', sans-serif;
  
  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-xxl: 4rem;
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 18px;
  --radius-lg: 26px;
  
  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(76, 46, 63, 0.08);
  --shadow-md: 0 4px 16px rgba(76, 46, 63, 0.12);
  --shadow-lg: 0 8px 32px rgba(76, 46, 63, 0.16);
  --shadow-glow: 0 0 20px rgba(233, 199, 193, 0.3);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  
  /* Glass Effect */
  --glass-bg: rgba(248, 246, 242, 0.7);
  --glass-blur: blur(20px);
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  transition: var(--transition-base);
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

p {
  margin-bottom: var(--space-md);
  color: var(--color-text-light);
}

/* ============================================
   Header
   ============================================ */

.site-header {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-md) var(--space-lg);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: 1000;
  transition: transform var(--transition-base);
}

.site-header.hidden {
  transform: translateY(-100%);
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-lg);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--color-primary);
  letter-spacing: 0.5px;
}

.nav-menu {
  display: flex;
  list-style: none;
  gap: var(--space-lg);
  align-items: center;
}

.nav-link {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.nav-link:hover {
  color: var(--color-primary);
  background: rgba(233, 199, 193, 0.2);
}

.burger-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 30px;
  height: 24px;
  cursor: pointer;
  z-index: 1001;
}

.burger-line {
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  transition: var(--transition-base);
}

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

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

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

/* ============================================
   Main Content
   ============================================ */

main {
  min-height: calc(100vh - 200px);
  padding: var(--space-xl) var(--space-lg);
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================================
   Banner Section
   ============================================ */

.hero-banner {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-xxl);
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-highlight) 100%);
}

.banner-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
  z-index: 1;
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(233, 199, 193, 0.6) 0%, rgba(142, 154, 121, 0.4) 100%);
  z-index: 2;
}

.banner-content {
  position: relative;
  z-index: 3;
  text-align: center;
  padding: var(--space-xl);
  color: var(--color-white);
}

.banner-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 700;
  margin-bottom: var(--space-md);
  text-shadow: 2px 2px 8px rgba(76, 46, 63, 0.3);
  color: var(--color-white);
}

.banner-subtitle {
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  font-weight: 300;
  opacity: 0.95;
}

.petal-animation {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--color-white);
  border-radius: 50% 0 50% 0;
  opacity: 0.6;
  animation: fall 15s infinite linear;
  z-index: 2;
}

@keyframes fall {
  0% {
    transform: translateY(-100px) rotate(0deg);
    opacity: 0.6;
  }
  100% {
    transform: translateY(600px) rotate(360deg);
    opacity: 0;
  }
}

/* ============================================
   Section Styles
   ============================================ */

.content-section {
  margin-bottom: var(--space-xxl);
  padding: var(--space-xl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
  position: relative;
  padding-bottom: var(--space-md);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), var(--color-highlight));
  border-radius: 2px;
}

/* ============================================
   Card Components
   ============================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.card-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
}

.card-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  background: var(--color-grey);
}

.card-content {
  padding: var(--space-lg);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.card-description {
  color: var(--color-text-light);
  margin-bottom: var(--space-md);
  flex-grow: 1;
}

.card-price {
  font-family: var(--font-ui);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-gold);
  margin-top: auto;
}

/* ============================================
   Bouquet Builder
   ============================================ */

.builder-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.builder-controls {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.builder-preview {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 500px;
  position: sticky;
  top: var(--space-lg);
}

.control-group {
  margin-bottom: var(--space-lg);
}

.control-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: var(--space-md);
}

.option-button {
  padding: var(--space-md);
  border: 2px solid var(--color-grey);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
  text-align: center;
}

.option-button:hover {
  border-color: var(--color-accent);
  background: rgba(233, 199, 193, 0.1);
}

.option-button.active {
  border-color: var(--color-primary);
  background: var(--color-accent);
  color: var(--color-white);
}

.slider-container {
  margin: var(--space-md) 0;
}

.slider-input {
  width: 100%;
  height: 8px;
  border-radius: 4px;
  background: var(--color-grey);
  outline: none;
  -webkit-appearance: none;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
}

.slider-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--color-primary);
  cursor: pointer;
  border: none;
}

.price-display {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  text-align: center;
  margin-top: var(--space-lg);
}

.price-label {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  opacity: 0.9;
  margin-bottom: var(--space-sm);
}

.price-value {
  font-family: var(--font-ui);
  font-size: 2rem;
  font-weight: 700;
}

.preview-image {
  max-width: 100%;
  max-height: 400px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Catalog Grid
   ============================================ */

.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  justify-content: center;
}

.filter-button {
  padding: var(--space-sm) var(--space-lg);
  border: 2px solid var(--color-grey);
  border-radius: var(--radius-sm);
  background: var(--color-white);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition-base);
}

.filter-button:hover,
.filter-button.active {
  border-color: var(--color-primary);
  background: var(--color-primary);
  color: var(--color-white);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.catalog-item {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: var(--transition-base);
}

.catalog-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.catalog-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.catalog-info {
  padding: var(--space-lg);
}

.catalog-name {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
  color: var(--color-primary);
}

.catalog-details {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-sm);
}

/* ============================================
   Contact Form
   ============================================ */

.contact-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.contact-info {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.contact-item {
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.contact-details h3 {
  font-size: 1.1rem;
  margin-bottom: var(--space-xs);
}

.contact-details p {
  color: var(--color-text-light);
  margin: 0;
}

.form-container {
  background: var(--color-white);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

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

.form-label {
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  display: block;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--color-grey);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(76, 46, 63, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.checkbox-input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.5;
}

.submit-button {
  width: 100%;
  padding: var(--space-md) var(--space-lg);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition-base);
}

.submit-button:hover {
  background: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.map-container {
  margin-top: var(--space-xl);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 400px;
}

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

/* ============================================
   Footer
   ============================================ */

.site-footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-xl) var(--space-lg);
  margin-top: var(--space-xxl);
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-xl);
}

.footer-section h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
  color: var(--color-white);
}

.footer-menu {
  list-style: none;
}

.footer-link {
  display: block;
  padding: var(--space-xs) 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  transition: var(--transition-base);
}

.footer-link:hover {
  color: var(--color-white);
  padding-left: var(--space-sm);
}

.footer-copyright {
  text-align: center;
  padding-top: var(--space-lg);
  margin-top: var(--space-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* ============================================
   Privacy Popup
   ============================================ */

.privacy-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(76, 46, 63, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.privacy-overlay.active {
  display: flex;
}

.privacy-popup {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.popup-close {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-base);
  font-size: 1.2rem;
  color: var(--color-text);
}

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

.popup-title {
  margin-bottom: var(--space-lg);
  padding-right: var(--space-xl);
}

.popup-content {
  color: var(--color-text-light);
  line-height: 1.8;
}

/* ============================================
   Thank You Page
   ============================================ */

.thank-you-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 800px;
  margin: 0 auto;
}

.thank-you-icon {
  font-size: 4rem;
  color: var(--color-highlight);
  margin-bottom: var(--space-lg);
}

.thank-you-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: var(--space-md);
}

.thank-you-message {
  font-size: 1.1rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-xl);
}

/* ============================================
   404 Page
   ============================================ */

.error-container {
  text-align: center;
  padding: var(--space-xxl) var(--space-lg);
  max-width: 600px;
  margin: 0 auto;
}

.error-code {
  font-family: var(--font-ui);
  font-size: clamp(4rem, 10vw, 8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: var(--space-md);
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: var(--color-white);
    flex-direction: column;
    padding: var(--space-xxl) var(--space-lg);
    box-shadow: var(--shadow-lg);
    transition: right var(--transition-base);
    z-index: 1000;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .nav-menu.active {
    right: 0;
  }

  .burger-toggle {
    display: flex;
  }

  .builder-container {
    grid-template-columns: 1fr;
  }

  .builder-preview {
    position: static;
    min-height: 300px;
  }

  .contact-container {
    grid-template-columns: 1fr;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .option-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }

  main {
    padding: var(--space-lg) var(--space-md);
  }

  .hero-banner {
    min-height: 400px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }

  .header-container {
    padding: var(--space-sm) 0;
  }

  .brand-name {
    font-size: 1.25rem;
  }

  .hero-banner {
    min-height: 300px;
  }

  .banner-content {
    padding: var(--space-lg);
  }

  .content-section {
    padding: var(--space-lg) 0;
  }

  .card-grid,
  .catalog-grid {
    gap: var(--space-md);
  }

  .builder-controls,
  .form-container,
  .contact-info {
    padding: var(--space-lg);
  }
}

@media (max-width: 320px) {
  html {
    font-size: 12px;
  }

  .option-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================
   Utility Classes
   ============================================ */

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

.mt-lg {
  margin-top: var(--space-lg);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.btn-primary {
  display: inline-block;
  padding: var(--space-md) var(--space-xl);
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: var(--transition-base);
}

.btn-primary:hover {
  background: var(--color-highlight);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

