/* 
 * Bloemenwinkel - Artisanal Flower Shop Experience
 * A design system emphasizing botanical elegance and Dutch floral heritage
 */

/* ===== DESIGN SYSTEM VARIABLES ===== */
:root {
  /* Color Palette */
  --color-charcoal: #1C1C1C;
  --color-navy: #0B1D51;
  --color-slate: #2F4F4F;
  --color-burgundy: #4B000F;
  --color-forest: #0B3D2E;
  --color-cream: #F8F4E3;
  --color-petal-light: #F5E6E8;
  --color-stem-light: #D8E4C2;
  
  /* Neutral Palette */
  --color-white: #FFFFFF;
  --color-grey-100: #F5F5F5;
  --color-grey-200: #E6E6E6;
  --color-grey-300: #CCCCCC;
  --color-grey-400: #999999;
  --color-grey-500: #666666;
  --color-grey-600: #333333;
  --color-grey-700: #1A1A1A;
  --color-black: #000000;
  
  /* Typography */
  --font-primary: 'Playfair Display', serif;
  --font-secondary: 'Montserrat', sans-serif;
  
  /* Spacing System */
  --space-xxs: 0.25rem;
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-xxl: 3rem;
  --space-xxxl: 5rem;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 50%;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Container Width */
  --container-max: 1200px;
  --container-narrow: 900px;
}

/* ===== RESET & BASE STYLES ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-secondary);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-grey-600);
  background-color: var(--color-white);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-forest);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover, a:focus {
  color: var(--color-burgundy);
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  color: var(--color-charcoal);
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}


h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p, ul, ol {
  margin-bottom: var(--space-md);
}

/* ===== LAYOUT ===== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-xl) 0;
}

/* ===== GRID SYSTEM ===== */
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 calc(-1 * var(--space-md));
}

.col {
  padding: 0 var(--space-md);
  flex: 1 0 100%;
}

/* ===== UTILITIES ===== */
.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

/* ===== COMPONENTS ===== */

/* Button */
.button {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 600;
  font-size: 0.875rem;
  padding: var(--space-sm) var(--space-md);
  background-color: var(--color-forest);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
  text-align: center;
}

.button:hover, .button:focus {
  background-color: var(--color-slate);
  transform: translateY(-2px);
  color: var(--color-white);
}

.button-secondary {
  background-color: transparent;
  border: 2px solid var(--color-forest);
  color: var(--color-forest);
}

.button-secondary:hover, .button-secondary:focus {
  background-color: var(--color-forest);
  color: var(--color-white);
}

.button-burgundy {
  background-color: var(--color-burgundy);
}

.button-burgundy:hover, .button-burgundy:focus {
  background-color: #6d0015;
}

/* Card */
.card {
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-img {
  width: 100%;
  height: 0;
  padding-bottom: 66.67%; /* 3:2 Aspect Ratio */
  position: relative;
  overflow: hidden;
}

.card-img img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-normal);
}

.card:hover .card-img img {
  transform: scale(1.05);
}

.card-content {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-xs);
  font-family: var(--font-primary);
}

.card-price {
  font-weight: 600;
  color: var(--color-burgundy);
  margin-bottom: var(--space-sm);
}

.card-description {
  font-size: 0.9rem;
  margin-bottom: var(--space-md);
}

.card-footer {
  margin-top: auto;
}

/* Form Elements */
.form-group {
  margin-bottom: var(--space-md);
}

.form-label {
  display: block;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}

.form-input, 
.form-textarea, 
.form-select {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid var(--color-grey-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, 
.form-textarea:focus, 
.form-select:focus {
  outline: none;
  border-color: var(--color-forest);
  box-shadow: 0 0 0 3px rgba(11, 61, 46, 0.1);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-checkbox {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}

.form-checkbox input {
  margin-right: var(--space-xs);
}

/* Alert */
.alert {
  padding: var(--space-md);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
}

.alert-success {
  background-color: rgba(11, 61, 46, 0.1);
  color: var(--color-forest);
  border-left: 4px solid var(--color-forest);
}

.alert-error {
  background-color: rgba(75, 0, 15, 0.1);
  color: var(--color-burgundy);
  border-left: 4px solid var(--color-burgundy);
}

/* ===== HEADER ===== */
.site-header {
  padding: var(--space-md) 0;
  position: relative;
}

.header-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: var(--font-primary);
  font-weight: 700;
  color: var(--color-charcoal);
  display: flex;
  align-items: center;
}

.logo span {
  color: var(--color-burgundy);
}

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-xs);
}

.hamburger-line {
  display: block;
  width: 25px;
  height: 3px;
  margin: 5px 0;
  background-color: var(--color-charcoal);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

.nav-list {
  display: flex;
  list-style: none;
  margin: 0;
}

.nav-item {
  margin: 0 var(--space-sm);
}

.nav-link {
  font-weight: 500;
  position: relative;
  padding: var(--space-xs) var(--space-xs);
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 2px;
  background-color: var(--color-burgundy);
  transition: width var(--transition-normal);
}

.nav-link:hover::after,
.nav-link:focus::after,
.nav-link.active::after {
  width: 100%;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  height: 70vh;
  min-height: 500px;
  background-color: var(--color-cream);
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  color: var(--color-charcoal);
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: var(--space-lg);
  color: var(--color-slate);
}

/* ===== PRODUCT SECTION ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.product-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  padding: var(--space-xxs) var(--space-xs);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
}

.product-label-new {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.product-label-sale {
  background-color: var(--color-burgundy);
  color: var(--color-white);
}

.product-label-eco {
  background-color: var(--color-forest);
  color: var(--color-white);
}

/* ===== FEATURES SECTION ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--space-lg);
  margin: var(--space-xl) 0;
}

.feature-item {
  text-align: center;
  padding: var(--space-md);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.25rem;
  margin-bottom: var(--space-sm);
}

.feature-description {
  font-size: 0.95rem;
  color: var(--color-grey-500);
}

/* ===== TESTIMONIALS ===== */
.testimonial {
  background-color: var(--color-grey-100);
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  position: relative;
}

.testimonial::before {
  content: '"';
  font-family: var(--font-primary);
  font-size: 5rem;
  position: absolute;
  top: 15px;
  left: 15px;
  line-height: 1;
  color: var(--color-grey-300);
  opacity: 0.5;
}

.testimonial-content {
  position: relative;
  z-index: 1;
  font-style: italic;
  margin-bottom: var(--space-md);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-charcoal);
}

/* ===== CONTACT SECTION ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-icon {
  margin-right: var(--space-sm);
  color: var(--color-forest);
  font-size: 1.25rem;
}

.map-container {
  height: 400px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: var(--space-lg) 0;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: var(--color-charcoal);
  color: var(--color-white);
  padding: var(--space-xl) 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
}

.footer-title {
  color: var(--color-white);
  margin-bottom: var(--space-md);
  font-size: 1.25rem;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-item {
  margin-bottom: var(--space-sm);
}

.footer-link {
  color: var(--color-grey-300);
  transition: color var(--transition-fast);
}

.footer-link:hover, 
.footer-link:focus {
  color: var(--color-white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  text-align: center;
  color: var(--color-grey-400);
  font-size: 0.875rem;
}

/* Cookie Consent */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-white);
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  padding: var(--space-md);
  z-index: 1000;
  transform: translateY(100%);
  transition: transform var(--transition-normal);
}

.cookie-consent.active {
  transform: translateY(0);
}

.cookie-consent-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookie-text {
  flex: 1;
  min-width: 280px;
  margin: 0;
}

.cookie-buttons {
  display: flex;
  gap: var(--space-sm);
}

/* 404 Page */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.error-code {
  font-size: 6rem;
  font-weight: 700;
  color: var(--color-burgundy);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.error-title {
  font-size: 2rem;
  margin-bottom: var(--space-md);
}

/* Thank You Page */
.thank-you-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--color-cream);
  position: relative;
  overflow: hidden;
}

.thank-you-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.1;
  z-index: 0;
}

.thank-you-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
  padding: var(--space-xl);
}

.thank-you-icon {
  display: block;
  font-size: 4rem;
  color: var(--color-forest);
  margin-bottom: var(--space-md);
}

/* ===== MEDIA QUERIES ===== */
@media (max-width: 992px) {
  html {
    font-size: 15px;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .feature-item {
    padding: var(--space-sm);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .hamburger {
    display: block;
    z-index: 1001;
  }
  
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 250px;
    height: 100vh;
    background-color: var(--color-white);
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    padding: var(--space-xxl) var(--space-md) var(--space-md);
    z-index: 1000;
    transition: right var(--transition-normal);
  }
  
  .nav-menu.active {
    right: 0;
  }
  
  .nav-list {
    flex-direction: column;
  }
  
  .nav-item {
    margin: var(--space-sm) 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }
  
  .hamburger.active .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .hamburger.active .hamburger-line:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
  
  .section {
    padding: var(--space-lg) 0;
  }
  
  .features-grid,
  .product-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .hero-subtitle {
    font-size: 1.1rem;
  }
  
  .cookie-consent-content {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 576px) {
  html {
    font-size: 13px;
  }
  
  .container {
    padding: 0 var(--space-sm);
  }
  
  .hero {
    min-height: 400px;
  }
  
  .features-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .cookie-buttons {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-buttons .button {
    width: 100%;
    margin: var(--space-xxs) 0;
  }
  
  .card-img {
    padding-bottom: 75%; /* 4:3 Aspect Ratio */
  }
  
  .contact-form {
    padding: var(--space-md);
  }
}

@media (max-width: 320px) {
  .container {
    padding: 0 var(--space-xs);
  }
  
  .section {
    padding: var(--space-md) 0;
  }
  
  .hero {
    min-height: 350px;
  }
}