:root {
  /* Color Palette */
  --color-obsidian: #0E141B;
  --color-gunmetal: #1B2430;
  --color-dark-slate: #273244;
  --color-cool-gray: #364B63;
  --color-misty-steel: #4B607A;
  
  /* Natural accent colors for a flower shop */
  --color-sage: #7D9D9C;
  --color-cream: #F9F7F0;
  --color-petal-pink: #F1CFCD;
  --color-leaf-green: #5C8D76;
  
  /* 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;
  
  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  
  /* Shadows */
  --shadow-soft: 0 4px 6px rgba(14, 20, 27, 0.08);
  --shadow-medium: 0 6px 12px rgba(14, 20, 27, 0.12);
  
  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---------- 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);
  color: var(--color-obsidian);
  background-color: var(--color-cream);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: var(--space-md);
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 2rem;
}

h4 {
  font-size: 1.5rem;
}

h5 {
  font-size: 1.25rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: var(--space-md);
}

a {
  color: var(--color-cool-gray);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-leaf-green);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  margin-left: var(--space-lg);
  margin-bottom: var(--space-md);
}

button, .btn {
  display: inline-block;
  font-family: var(--font-secondary);
  font-weight: 500;
  padding: var(--space-sm) var(--space-lg);
  background-color: var(--color-leaf-green);
  color: var(--color-cream);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: center;
}

button:hover, .btn:hover {
  background-color: var(--color-sage);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

section {
  padding: var(--space-xl) 0;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ---------- HEADER ---------- */
.header {
  background-color: var(--color-cream);
  padding: var(--space-md) 0;
  position: relative;
  border-bottom: 1px solid rgba(75, 96, 122, 0.1);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--transition-medium);
}

.logo {
  font-family: var(--font-primary);
  font-size: 1.8rem;
  font-weight: 500;
  color: var(--color-obsidian);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--color-leaf-green);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--color-obsidian);
  font-size: 1.5rem;
  cursor: pointer;
  padding: var(--space-xs);
}

.nav {
  display: flex;
  align-items: center;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-item {
  margin-left: var(--space-lg);
}

.nav-link {
  position: relative;
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  padding: var(--space-xs) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-leaf-green);
  transition: width var(--transition-medium);
}

.nav-link:hover::after {
  width: 100%;
}

/* ---------- HERO SECTION ---------- */
.hero {
  height: 80vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-obsidian);
  opacity: 0.5;
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  color: var(--color-cream);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: var(--space-md);
  color: var(--color-cream);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: var(--space-lg);
  color: var(--color-cream);
}

.hero-btn {
  background-color: var(--color-cream);
  color: var(--color-obsidian);
  font-weight: 600;
}

.hero-btn:hover {
  background-color: var(--color-petal-pink);
  color: var(--color-obsidian);
}

/* ---------- FEATURES SECTION ---------- */
.features {
  background-color: var(--color-cream);
  padding: var(--space-xxl) 0;
}

.section-title {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-title h2 {
  display: inline-block;
  position: relative;
  padding-bottom: var(--space-sm);
}

.section-title h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background-color: var(--color-leaf-green);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.feature-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-medium);
}

.feature-icon {
  font-size: 3rem;
  color: var(--color-leaf-green);
  margin-bottom: var(--space-md);
}

.feature-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

/* ---------- PRODUCTS SECTION ---------- */
.products {
  background-color: var(--color-cream);
  padding: var(--space-xxl) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.product-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
}

.product-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-content {
  padding: var(--space-lg);
}

.product-title {
  font-size: 1.5rem;
  margin-bottom: var(--space-sm);
}

.product-price {
  font-weight: 600;
  color: var(--color-leaf-green);
  font-size: 1.25rem;
  margin-bottom: var(--space-md);
}

.product-description {
  margin-bottom: var(--space-lg);
  color: var(--color-dark-slate);
}

/* ---------- ABOUT SECTION ---------- */
.about {
  background-color: var(--color-obsidian);
  color: var(--color-cream);
  padding: var(--space-xxl) 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: center;
}

.about-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-medium);
}

.about-content h2 {
  color: var(--color-cream);
}

.about-content p {
  margin-bottom: var(--space-md);
}

/* ---------- TESTIMONIAL SECTION ---------- */
.testimonials {
  background-color: var(--color-cream);
  padding: var(--space-xxl) 0;
}

.testimonial-card {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
  margin: 0 var(--space-md);
  text-align: center;
}

.testimonial-text {
  font-size: 1.1rem;
  font-style: italic;
  margin-bottom: var(--space-lg);
}

.testimonial-author {
  font-weight: 600;
  color: var(--color-leaf-green);
}

/* ---------- CONTACT SECTION ---------- */
.contact {
  background-color: var(--color-cream);
  padding: var(--space-xxl) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.contact-info {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.contact-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: var(--space-lg);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--color-leaf-green);
  margin-right: var(--space-md);
}

.contact-form {
  background-color: white;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-soft);
}

.form-group {
  margin-bottom: var(--space-lg);
}

label {
  display: block;
  margin-bottom: var(--space-sm);
  font-weight: 500;
}

input, textarea {
  width: 100%;
  padding: var(--space-sm);
  border: 1px solid #ddd;
  border-radius: var(--radius-sm);
  font-family: var(--font-secondary);
  font-size: 1rem;
  transition: border-color var(--transition-fast);
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-leaf-green);
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox-group input {
  width: auto;
  margin-right: var(--space-sm);
}

/* ---------- MAP SECTION ---------- */
.map {
  height: 400px;
  width: 100%;
  margin-top: var(--space-xl);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
}

/* ---------- FOOTER ---------- */
.footer {
  background-color: var(--color-dark-slate);
  color: var(--color-cream);
  padding: var(--space-xl) 0;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-xl);
}

.footer-logo {
  font-family: var(--font-primary);
  font-size: 1.5rem;
  color: var(--color-cream);
  margin-bottom: var(--space-md);
}

.footer-about {
  margin-bottom: var(--space-lg);
}

.footer-title {
  font-size: 1.2rem;
  margin-bottom: var(--space-md);
  color: var(--color-cream);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-link {
  margin-bottom: var(--space-sm);
}

.footer-link a {
  color: var(--color-cream);
  opacity: 0.8;
  transition: opacity var(--transition-fast);
}

.footer-link a:hover {
  opacity: 1;
  color: var(--color-cream);
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.social-icon {
  color: var(--color-cream);
  font-size: 1.5rem;
  transition: color var(--transition-fast);
}

.social-icon:hover {
  color: var(--color-leaf-green);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: var(--space-xl);
  font-size: 0.9rem;
  opacity: 0.8;
}

/* ---------- COOKIES NOTICE ---------- */
.cookies-notice {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--color-obsidian);
  color: var(--color-cream);
  padding: var(--space-lg);
  z-index: 1000;
  display: none;
}

.cookies-notice.visible {
  display: block;
  animation: slideUp var(--transition-medium);
}

.cookies-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookies-text {
  flex: 1;
  min-width: 300px;
}

.cookies-buttons {
  display: flex;
  gap: var(--space-md);
}

/* ---------- 404 PAGE ---------- */
.error-page {
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-code {
  font-size: 8rem;
  font-weight: 700;
  color: var(--color-leaf-green);
  margin-bottom: var(--space-md);
  line-height: 1;
}

.error-message {
  font-size: 2rem;
  margin-bottom: var(--space-lg);
}

/* ---------- THANK YOU PAGE ---------- */
.thank-you {
  height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.thank-you-title {
  font-size: 3rem;
  margin-bottom: var(--space-lg);
  color: var(--color-leaf-green);
}

.thank-you-message {
  margin-bottom: var(--space-xl);
}

/* ---------- ANIMATIONS ---------- */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.fade-in {
  animation: fadeIn var(--transition-medium);
}

/* ---------- RESPONSIVE STYLES ---------- */
@media (max-width: 1024px) {
  html {
    font-size: 15px;
  }
  
  .hero-title {
    font-size: 3rem;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  .header-container {
    flex-wrap: wrap;
  }
  
  .nav-toggle {
    display: block;
  }
  
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 250px;
    background-color: var(--color-cream);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform var(--transition-medium);
    padding: var(--space-xl) var(--space-lg);
  }
  
  .nav.active {
    transform: translateX(0);
  }
  
  .nav-menu {
    flex-direction: column;
    width: 100%;
  }
  
  .nav-item {
    margin: var(--space-sm) 0;
    width: 100%;
    text-align: right;
  }
  
  .nav-link {
    display: block;
    padding: var(--space-sm);
  }
  
  .hero {
    height: 70vh;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .hero-subtitle {
    font-size: 1.2rem;
  }
  
  .features-grid,
  .products-grid,
  .footer-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  html {
    font-size: 13px;
  }
  
  .container {
    width: 95%;
  }
  
  .hero {
    height: 60vh;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
  
  .feature-card,
  .product-card,
  .contact-info,
  .contact-form {
    padding: var(--space-md);
  }
}
/* ---------- RESPONSIVE STYLES FOR 320px ---------- */
@media (max-width: 320px) {
  html {
    font-size: 12px; /* Reduced base font size for tighter spaces */
  }
  
  .container {
    width: 98%; /* Breathe to the edges */
    padding: 0 var(--space-xs);
  }
  
  /* Header refinements */
  .logo {
    font-size: 1.5rem; /* A more modest presence */
  }
  
  .nav {
    width: 220px; /* Narrower navigation panel */
  }
  
  /* Hero section adjustments */
  .hero {
    height: 50vh; /* Lower height, focused impact */
  }
  
  .hero-title {
    font-size: 1.8rem; /* More contained heading */
    margin-bottom: var(--space-sm);
  }
  
  .hero-subtitle {
    font-size: 1rem;
    margin-bottom: var(--space-md);
  }
  
  /* Section rhythm adjustments */
  section {
    padding: var(--space-lg) 0; /* Tighter vertical rhythm */
  }
  
  .section-title h2 {
    font-size: 1.8rem;
  }
  
  .section-title h2::after {
    width: 60px; /* Smaller decorative element */
  }
  
  /* Card system refinements */
  .feature-card,
  .product-card,
  .testimonial-card,
  .contact-info,
  .contact-form {
    padding: var(--space-sm);
    border-radius: var(--radius-sm); /* Gentler corners */
  }
  
  .feature-icon {
    font-size: 2.5rem;
    margin-bottom: var(--space-sm);
  }
  
  .product-image {
    height: 180px; /* Shorter product images */
  }
  
  /* Form elements */
  input, textarea {
    padding: calc(var(--space-sm) * 0.8);
    font-size: 0.9rem;
  }
  
  /* Footer refinements */
  .footer {
    padding: var(--space-lg) 0;
  }
  
  .footer-title {
    font-size: 1.1rem;
  }
  
  .footer-logo {
    font-size: 1.3rem;
  }
  
  /* Utility adjustments */
  .mt-5 { margin-top: var(--space-xl); } /* Reduced for tiny screens */
  .mb-5 { margin-bottom: var(--space-xl); }
  
  /* Error page */
  .error-code {
    font-size: 6rem;
  }
  
  .error-message {
    font-size: 1.5rem;
  }
}
/* Utility classes */
.text-center {
  text-align: center;
}

.mt-1 { margin-top: var(--space-sm); }
.mt-2 { margin-top: var(--space-md); }
.mt-3 { margin-top: var(--space-lg); }
.mt-4 { margin-top: var(--space-xl); }
.mt-5 { margin-top: var(--space-xxl); }

.mb-1 { margin-bottom: var(--space-sm); }
.mb-2 { margin-bottom: var(--space-md); }
.mb-3 { margin-bottom: var(--space-lg); }
.mb-4 { margin-bottom: var(--space-xl); }
.mb-5 { margin-bottom: var(--space-xxl); }