/* ===== CSS Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --background: #fef0f3;
  --foreground: #b91c1c;
  --primary: #c53030;
  --primary-hover: #9b2c2c;
  --card: #ffdce5;
  --input-bg: #ffffff;
  --border: #f8bbd9;
  --shadow: rgba(185, 28, 28, 0.1);
  --shadow-hover: rgba(185, 28, 28, 0.15);
  --radius: 9999px;
  --radius-lg: 1.5rem;
  --font-sans: 'Caprasimo', serif;
  --font-serif: 'Caprasimo', soft-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  min-height: 100vh;
}

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


section {
  scroll-margin-top: 120px;
}


/* ===== Utilities ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.hidden {
  display: none !important;
}

/* ===== Floating Hearts ===== */
.floating-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart {
  position: absolute;
  color: var(--foreground);
  opacity: 0.15;
  font-size: 1rem;
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-20px) rotate(10deg);
  }
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: rgba(254, 240, 243, 0.95);
  backdrop-filter: blur(8px);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
}

.logo img {
  width: 128px;
  height: 128px;
  border-radius: 50%;
  object-fit: cover;
}

.menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--foreground);
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle svg {
  width: 24px;
  height: 24px;
}

.nav {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: var(--background);
  padding: 1rem;
  flex-direction: column;
  gap: 0.5rem;
  box-shadow: 0 4px 6px var(--shadow);
}

.nav.open {
  display: flex;
}

.nav-link {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s;
}

.nav-link:hover {
  background-color: var(--card);
}

/* Desktop navigation */
@media (min-width: 768px) {
  .logo img {
    width: 160px;
    height: 160px;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
    flex-direction: row;
    background: none;
    padding: 0;
    box-shadow: none;
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.5rem 1rem;
  }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  box-shadow: 0 6px 16px var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--foreground);
}

.btn-outline:hover {
  background-color: var(--foreground);
  color: white;
}

.btn-full {
  width: 100%;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 4rem 0 6rem;
  text-align: center;
}

.hero-content {
  max-width: 600px;
  margin: 0 auto;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 600;
  font-style: italic;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero-subtitle {
  font-size: 1.125rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: center;
}

@media (min-width: 480px) {
  .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }
}

@media (min-width: 768px) {
  .hero {
    padding: 6rem 0 8rem;
  }

  .hero-title {
    font-size: 3.5rem;
  }

  .hero-subtitle {
    font-size: 1.25rem;
  }
}

/* ===== Products Section ===== */
.products {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  text-align: center;
  margin-bottom: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

.heart-icon {
  font-size: 2rem;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }

  .section-title {
    font-size: 2rem;
  }
}

.product-card {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 12px var(--shadow);
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 24px var(--shadow-hover);
}

.product-image {
  width: 100%;
  aspect-ratio: 1;
  margin-bottom: 1rem;
  border-radius: 1rem;
  overflow: hidden;
  background-color: rgba(255, 255, 255, 0.5);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-title {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.25rem;
}

.product-price {
  font-size: 1rem;
  opacity: 0.8;
}

/* ===== About & Order Section ===== */
.about-order {
  position: relative;
  z-index: 1;
  padding: 4rem 0;
}

.about-order-grid {
  display: grid;
  gap: 3rem;
}

@media (min-width: 768px) {
  .about-order-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
  }
}

.about {
  text-align: center;
}

.about-title {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.about-text {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.heart-decoration {
  color: var(--border);
  font-size: 1rem;
  letter-spacing: 0.25rem;
  margin-bottom: 2rem;
}

.order-cta {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.brand-tagline {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
}

.brand-slogan {
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== Order Form ===== */
.order-form-container {
  background-color: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 8px 24px var(--shadow);
}

.form-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.order-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background-color: var(--input-bg);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

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

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

/* ===== Footer ===== */
.footer {
  position: relative;
  z-index: 1;
  padding: 2rem 0;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.8;
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Focus styles for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
