/* ==========================================
   Google Fonts Import
   ========================================== */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Lato:wght@300;400;700&display=swap');

/* ==========================================
   CSS Custom Properties - Design System
   ========================================== */
:root {
  /* Color Palette - Warm Bakery Theme */
  --color-cream: #FFF8F0;
  --color-brown: #5C3D2E;
  --color-brown-light: #8B6F4E;
  --color-gold: #C8A96E;
  --color-gold-light: #D4B87A;
  --color-white: #FFFFFF;
  --color-dark: #2D1B0E;
  --color-text: #3D2B1F;
  --color-text-light: #6B5B4F;
  --color-bg: #FFF8F0;
  --color-overlay: rgba(44, 27, 14, 0.5);

  /* Typography */
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Lato', 'Segoe UI', sans-serif;

  /* Transitions */
  --transition-base: all 0.3s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);

  /* Border Radius */
  --border-radius: 12px;

  /* Layout */
  --max-width: 1200px;
}

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

/* ==========================================
   Base Styles
   ========================================== */
html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================
   Skip Link - Accessibility
   ========================================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-brown);
  color: var(--color-white);
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 8px 8px;
  z-index: 9999;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

/* ==========================================
   Typography
   ========================================== */
h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--color-dark);
  font-weight: 700;
  line-height: 1.2;
}

h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  margin-bottom: 0.875rem;
}

h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

h4 {
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}

/* ==========================================
   Images
   ========================================== */
img {
  max-width: 100%;
  height: auto;
  display: block;
  content-visibility: auto;
}

/* ==========================================
   Text Selection
   ========================================== */
::selection {
  background-color: var(--color-gold);
  color: var(--color-dark);
}

/* ==========================================
   Links
   ========================================== */
a {
  color: var(--color-brown);
  text-decoration: none;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-gold);
}

a:focus-visible {
  outline: 2px solid var(--color-brown);
  outline-offset: 2px;
}

/* ==========================================
   Layout Components
   ========================================== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}

/* ==========================================
   Section Base Styles
   ========================================== */
section {
  padding: 4rem 0;
}

/* ==========================================
   Utility Classes
   ========================================== */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ==========================================
   Button Styles
   ========================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--color-brown);
  color: var(--color-white);
  border-color: var(--color-brown);
}

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

.btn-secondary {
  background-color: transparent;
  color: var(--color-brown);
  border-color: var(--color-brown);
}

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

.btn:focus-visible {
  outline: 2px solid var(--color-gold);
  outline-offset: 2px;
}

/* ==========================================
   Responsive Media Queries
   ========================================== */

/* Tablet and up */
@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }

  section {
    padding: 5rem 0;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  h3 {
    font-size: 1.75rem;
  }

  h4 {
    font-size: 1.5rem;
  }
}

/* Desktop and up */
@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }

  section {
    padding: 6rem 0;
  }

  h1 {
    font-size: 3.5rem;
  }

  h2 {
    font-size: 3rem;
  }

  h3 {
    font-size: 2rem;
  }

  h4 {
    font-size: 1.75rem;
  }
}

/* ==========================================
   Header / Navigation Styles
   ========================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(255, 248, 240, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-base);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-brown);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__logo-icon {
  color: var(--color-gold);
}

.nav__hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}

.nav__hamburger-line {
  width: 25px;
  height: 2px;
  background-color: var(--color-brown);
  transition: var(--transition-base);
}

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

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

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

.nav__menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 300px;
  height: 100vh;
  background-color: var(--color-cream);
  padding: 5rem 2rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
  transition: right 0.3s ease;
  box-shadow: var(--shadow-lg);
  z-index: 1000;
}

.nav__menu.active {
  right: 0;
}

.nav__overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav__overlay.active {
  opacity: 1;
  visibility: visible;
}

.nav__link {
  font-weight: 600;
  color: var(--color-text);
  transition: var(--transition-base);
  font-size: 1.1rem;
}

.nav__link:hover {
  color: var(--color-gold);
}

.nav__cta {
  padding: 0.6rem 1.2rem;
  font-size: 0.9rem;
}

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

.hero__image-wrapper {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(44, 27, 14, 0.3) 0%, rgba(44, 27, 14, 0.55) 50%, rgba(255, 248, 240, 0.85) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 6rem 1rem 3rem;
}

.hero__title {
  font-size: 3rem;
  color: var(--color-white);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.5rem;
}

.hero__tagline {
  font-size: 1.25rem;
  color: var(--color-white);
  font-weight: 300;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  margin-bottom: 0.75rem;
}

.hero__subtitle {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 500px;
  margin: 0 auto 2rem;
}

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

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.1rem;
}

.hero__btn-secondary {
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero__btn-secondary:hover {
  background-color: var(--color-white);
  color: var(--color-brown);
}

/* ==========================================
   Responsive Navigation and Hero - Tablet
   ========================================== */
@media (min-width: 768px) {
  .nav__hamburger {
    display: none;
  }

  .nav__menu {
    position: static;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: row;
    align-items: center;
    padding: 0;
    box-shadow: none;
    background: transparent;
  }

  .nav__overlay {
    display: none;
  }

  .hero__title {
    font-size: 4rem;
  }

  .hero__tagline {
    font-size: 1.5rem;
  }

  .hero__cta-group {
    flex-direction: row;
    justify-content: center;
  }
}

/* ==========================================
   Responsive Navigation and Hero - Desktop
   ========================================== */
@media (min-width: 1024px) {
  .hero__title {
    font-size: 5rem;
  }

  .hero__tagline {
    font-size: 1.75rem;
  }

  .hero__subtitle {
    font-size: 1.15rem;
  }
}

/* ==========================================
   Section Header - Reusable
   ========================================== */
.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2rem;
  color: var(--color-dark);
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background-color: var(--color-gold);
  margin: 0.75rem auto 0;
  border-radius: 2px;
}

.section-subtitle {
  color: var(--color-text-light);
  font-size: 1rem;
  max-width: 600px;
  margin: 1rem auto 0;
  line-height: 1.7;
}

/* ==========================================
   Products Section
   ========================================== */
.products {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.products__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.product-card {
  background-color: var(--color-cream);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-card__image-wrapper {
  overflow: hidden;
  aspect-ratio: 4/3;
}

.product-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card__content {
  padding: 1.25rem;
}

.product-card__name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-dark);
  margin-bottom: 0.5rem;
}

.product-card__description {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ==========================================
   Products Section - Tablet
   ========================================== */
@media (min-width: 768px) {
  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

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

/* ==========================================
   Products Section - Desktop
   ========================================== */
@media (min-width: 1024px) {
  .products__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================
   About Us Section
   ========================================== */
.about {
  padding: 5rem 0;
  background-color: var(--color-bg);
}

.about__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
}

.about__text p {
  margin-bottom: 1rem;
  line-height: 1.8;
  color: var(--color-text);
}

.about__lead {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--color-dark);
}

.about__image-wrapper {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.about__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 300px;
}

.about__stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  text-align: center;
  padding: 2.5rem;
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-sm);
}

.about__stat {
  padding: 1rem;
}

.about__stat-number {
  display: block;
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-gold);
  line-height: 1.2;
}

.about__stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================
   About Us Section - Tablet
   ========================================== */
@media (min-width: 768px) {
  .about__content {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .about__stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .about__stat-number {
    font-size: 3rem;
  }
}

/* ==========================================
   About Us Section - Desktop
   ========================================== */
@media (min-width: 1024px) {
  .about__content {
    gap: 4rem;
  }
}

/* ==========================================
   Contact and Location Section
   ========================================== */
.contact {
  padding: 5rem 0;
  background-color: var(--color-white);
}

.contact__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

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

.contact__icon {
  font-size: 1.25rem;
  color: var(--color-gold);
  margin-top: 0.25rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.contact__item h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-dark);
  margin-bottom: 0.25rem;
}

.contact__item p {
  color: var(--color-text-light);
  line-height: 1.6;
  font-size: 0.95rem;
}

.contact__item a {
  color: var(--color-brown);
  font-weight: 600;
}

.contact__item a:hover {
  color: var(--color-gold);
}

.contact__cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.btn-whatsapp {
  background-color: #25D366;
  color: var(--color-white);
  border: none;
}

.btn-whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}

.contact__map {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  min-height: 300px;
}

.contact__map iframe {
  display: block;
  width: 100%;
  min-height: 300px;
}

/* ==========================================
   Contact and Location Section - Tablet
   ========================================== */
@media (min-width: 768px) {
  .contact__content {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

  .contact__map iframe {
    min-height: 400px;
  }
}

/* ==========================================
   Contact and Location Section - Desktop
   ========================================== */
@media (min-width: 1024px) {
  .contact__content {
    gap: 3rem;
  }
}

/* ==========================================
   Testimonials Section
   ========================================== */
.testimonials {
  padding: 5rem 0;
  background-color: var(--color-cream);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.testimonial-card {
  background-color: var(--color-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.testimonial-card__quote-icon {
  font-size: 1.5rem;
  color: var(--color-gold);
  opacity: 0.4;
  margin-bottom: 0.75rem;
}

.testimonial-card__stars {
  display: flex;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.testimonial-card__stars i {
  color: var(--color-gold);
  font-size: 0.9rem;
}

.testimonial-card__text {
  color: var(--color-text);
  line-height: 1.8;
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 1.5rem;
}

.testimonial-card__author {
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--color-dark);
  font-size: 1rem;
}

.testimonial-card__role {
  color: var(--color-text-light);
  font-size: 0.85rem;
  margin-top: 0.15rem;
}

/* ==========================================
   Testimonials Section - Tablet
   ========================================== */
@media (min-width: 768px) {
  .testimonials__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* ==========================================
   Footer Section
   ========================================== */
.footer {
  background-color: var(--color-dark);
  color: var(--color-cream);
  padding: 4rem 0 0;
  margin-top: 0;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 248, 240, 0.15);
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--color-white);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.footer__logo i {
  color: var(--color-gold);
}

.footer__tagline {
  color: rgba(255, 248, 240, 0.7);
  line-height: 1.7;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.footer__social {
  display: flex;
  gap: 1rem;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 248, 240, 0.1);
  color: var(--color-cream);
  font-size: 1.1rem;
  transition: var(--transition-base);
}

.footer__social-link:hover {
  background-color: var(--color-gold);
  color: var(--color-dark);
  transform: scale(1.1);
}

.footer__heading {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--color-white);
  margin-bottom: 1rem;
}

.footer__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer__list li {
  color: rgba(255, 248, 240, 0.7);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__list a {
  color: rgba(255, 248, 240, 0.7);
  transition: var(--transition-base);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.footer__list a:hover {
  color: var(--color-gold);
}

.footer__list i {
  font-size: 0.85rem;
  width: 16px;
  color: var(--color-gold);
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255, 248, 240, 0.5);
}

/* ==========================================
   Footer Section - Tablet
   ========================================== */
@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
