/* ==========================================================================
   Conchita's Bakery - Static HTML Styles
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Variables / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Mexican Bakery Warm Colors */
  --background: 48 100% 97%;
  --foreground: 14 60% 25%;

  --card: 0 0% 100%;
  --card-foreground: 14 60% 25%;

  /* Rosa Mexicano - Primary */
  --primary: 340 100% 70%;
  --primary-foreground: 0 0% 100%;

  /* Amarillo Mantequilla - Secondary */
  --secondary: 42 100% 68%;
  --secondary-foreground: 14 60% 25%;

  --muted: 48 50% 92%;
  --muted-foreground: 14 30% 50%;

  /* Terracota - Accent */
  --accent: 18 70% 52%;
  --accent-foreground: 0 0% 100%;

  --border: 42 40% 88%;
  --ring: 340 100% 70%;

  --radius: 0.75rem;

  /* Additional Colors */
  --mexican-green: 140 45% 65%;
  --mexican-red: 0 60% 50%;

  /* Shadows */
  --shadow-soft: 0 4px 20px -4px hsl(340 100% 70% / 0.15);
  --shadow-hover: 0 8px 30px -6px hsl(340 100% 70% / 0.25);
}

/* --------------------------------------------------------------------------
   Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

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

ul {
  list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Dancing Script', cursive;
  font-weight: 700;
  line-height: 1.2;
}

.section-title {
  font-size: clamp(2.5rem, 5vw, 4rem);
  color: hsl(var(--foreground));
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.25rem;
  color: hsl(var(--muted-foreground));
}

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

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: hsl(var(--background) / 0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.nav-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  font-weight: 700;
  color: hsl(var(--primary));
}

.nav-menu {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-weight: 500;
  color: hsl(var(--foreground));
  transition: color 0.3s;
  position: relative;
}

.nav-link:hover {
  color: hsl(var(--primary));
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: hsl(var(--primary));
  transition: width 0.3s;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* Language Switcher */
.language-switcher {
  display: flex;
  gap: 0.25rem;
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  padding: 0.25rem;
}

.lang-btn {
  padding: 0.5rem 0.75rem;
  border: none;
  background: transparent;
  border-radius: calc(var(--radius) - 4px);
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.lang-btn.active {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

/* Mobile Menu Toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background-color: hsl(var(--foreground));
  transition: all 0.3s;
}

/* Mobile Navigation */
@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 80px;
    left: 0;
    right: 0;
    background-color: hsl(var(--background));
    flex-direction: column;
    align-items: center;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: transform 0.3s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.active {
    transform: translateY(0);
  }

  .nav-toggle {
    display: flex;
  }

  .nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .nav-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }
}

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s;
  text-decoration: none;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: var(--shadow-soft);
}

.btn-primary:hover {
  background-color: hsl(340 100% 65%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
  box-shadow: var(--shadow-soft);
}

.btn-secondary:hover {
  background-color: hsl(42 100% 60%);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background-color: hsl(0 0% 100% / 0.1);
  backdrop-filter: blur(8px);
  border: 2px solid hsl(0 0% 100% / 0.3);
  color: white;
}

.btn-outline:hover {
  background-color: hsl(0 0% 100% / 0.2);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

.btn-full {
  width: 100%;
}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.6),
    rgba(0, 0, 0, 0.4),
    rgba(0, 0, 0, 0.6)
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
}

.hero-title {
  font-size: clamp(3rem, 8vw, 6rem);
  color: white;
  margin-bottom: 1rem;
  animation: fadeInUp 0.7s ease-out;
}

.hero-subtitle {
  font-size: clamp(1.25rem, 3vw, 2rem);
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 2.5rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.7s ease-out 0.15s both;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  animation: fadeInUp 0.7s ease-out 0.3s both;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s infinite;
}

.scroll-mouse {
  width: 24px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 6px;
  height: 12px;
  background-color: white;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about {
  background-color: hsl(var(--background));
}

.about-text {
  font-size: 1.125rem;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 4rem;
  line-height: 1.8;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  background-color: hsl(var(--primary) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon svg {
  width: 32px;
  height: 32px;
  color: hsl(var(--primary));
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.feature-card p {
  color: hsl(var(--muted-foreground));
}

/* --------------------------------------------------------------------------
   Products Section
   -------------------------------------------------------------------------- */
.products {
  background: linear-gradient(180deg, hsl(var(--background)), hsl(48 100% 95%));
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.5rem;
}

.product-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  transition: all 0.3s;
}

.product-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

.product-emoji {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
}

.product-card p {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   Cakes Section
   -------------------------------------------------------------------------- */
.cakes {
  background-color: hsl(var(--background));
}

.cakes-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .cakes-content {
    grid-template-columns: 1fr;
  }

  .cakes-image {
    order: -1;
  }
}

.cakes-description {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 2rem;
}

.occasions h3 {
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.occasions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.occasion-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: hsl(var(--primary) / 0.1);
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
}

.occasion-item .check {
  color: hsl(var(--primary));
  font-size: 1.25rem;
}

.occasion-item span:last-child {
  font-weight: 500;
}

.cakes-image img {
  border-radius: 1rem;
  box-shadow: var(--shadow-hover);
}

/* --------------------------------------------------------------------------
   Menu Section
   -------------------------------------------------------------------------- */
.menu {
  background: linear-gradient(180deg, hsl(48 100% 95%), hsl(var(--background)));
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.menu-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
  overflow: hidden;
}

.menu-card-image {
  margin: -1.5rem -1.5rem 1.5rem;
  height: 160px;
  object-fit: cover;
  width: calc(100% + 3rem);
}

.menu-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

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

.menu-card h3 {
  font-size: 1.5rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.menu-items li {
  padding: 0.5rem 0;
  border-bottom: 1px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

.menu-items li:last-child {
  border-bottom: none;
}

/* --------------------------------------------------------------------------
   Order Section
   -------------------------------------------------------------------------- */
.order {
  background: linear-gradient(180deg, hsl(var(--primary) / 0.1), hsl(var(--background)));
}

.order-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.order-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  transition: all 0.3s;
  text-decoration: none;
}

.order-card:hover {
  transform: scale(1.05);
}

.order-card svg {
  width: 48px;
  height: 48px;
}

.order-card h3 {
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
}

.order-card p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.order-card-primary {
  background-color: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
}

.order-card-secondary {
  background-color: hsl(var(--secondary));
  color: hsl(var(--secondary-foreground));
}

.order-card-outline {
  background-color: hsl(var(--card));
  border: 2px solid hsl(var(--border));
  color: hsl(var(--foreground));
}

/* --------------------------------------------------------------------------
   Reviews Section
   -------------------------------------------------------------------------- */
.reviews {
  background-color: hsl(var(--background));
}

.overall-rating {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.overall-rating .stars {
  color: hsl(var(--secondary));
  font-size: 1.5rem;
  letter-spacing: 2px;
}

.overall-rating span {
  font-weight: 600;
  color: hsl(var(--foreground));
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.review-card {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 1.5rem;
}

.review-stars {
  color: hsl(var(--secondary));
  font-size: 1.25rem;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.review-text {
  font-style: italic;
  color: hsl(var(--foreground));
  margin-bottom: 1rem;
  line-height: 1.7;
}

.review-author {
  font-weight: 600;
  color: hsl(var(--primary));
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact {
  background: linear-gradient(180deg, hsl(var(--background)), hsl(48 100% 95%));
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
  }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.contact-item svg {
  width: 24px;
  height: 24px;
  color: hsl(var(--primary));
  flex-shrink: 0;
  margin-top: 4px;
}

.contact-item h3 {
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.contact-item a {
  color: hsl(var(--foreground));
  transition: color 0.3s;
}

.contact-item a:hover {
  color: hsl(var(--primary));
}

.contact-item .closed {
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
}

.map-container {
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 1rem;
}

.map-container iframe {
  display: block;
}

/* Contact Form */
.contact-form-container {
  background-color: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 1rem;
  padding: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

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

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

.form-group input,
.form-group textarea {
  padding: 0.75rem 1rem;
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  background-color: hsl(var(--background));
  color: hsl(var(--foreground));
  transition: border-color 0.3s, box-shadow 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: hsl(var(--ring));
  box-shadow: 0 0 0 3px hsl(var(--ring) / 0.2);
}

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

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
  background-color: hsl(var(--foreground));
  color: hsl(var(--background));
  padding: 4rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.footer-logo {
  font-family: 'Dancing Script', cursive;
  font-size: 2rem;
  margin-bottom: 1rem;
}

.footer-brand p {
  opacity: 0.9;
  margin-bottom: 1.5rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-links a {
  width: 40px;
  height: 40px;
  background-color: hsl(var(--background) / 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-links a:hover {
  background-color: hsl(var(--background) / 0.2);
}

.social-links svg {
  width: 20px;
  height: 20px;
}

.footer-contact h4,
.footer-hours h4 {
  font-size: 1.25rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  margin-bottom: 1rem;
}

.footer-contact a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.footer-contact a:hover {
  opacity: 1;
}

.footer-contact svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.footer-hours p {
  opacity: 0.9;
}

.footer-hours .closed {
  opacity: 0.7;
}

.footer-bottom {
  border-top: 1px solid hsl(var(--background) / 0.2);
  padding-top: 2rem;
  text-align: center;
  opacity: 0.8;
}

/* --------------------------------------------------------------------------
   Animations
   -------------------------------------------------------------------------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateX(-50%) translateY(0);
  }
  40% {
    transform: translateX(-50%) translateY(-10px);
  }
  60% {
    transform: translateX(-50%) translateY(-5px);
  }
}

/* --------------------------------------------------------------------------
   Utility Classes
   -------------------------------------------------------------------------- */
.text-center {
  text-align: center;
}

.hidden {
  display: none;
}

/* Smooth scrolling for anchor links */
html {
  scroll-padding-top: 100px;
}
