/* ========================
   ESMERINDA DOCES - CSS
   Mobile-first | Pure CSS
======================== */

/* CSS Variables */
:root {
  --cream: #FAF6F0;
  --warm-beige: #F0E6D6;
  --terracotta: #C27B5B;
  --deep-brown: #5C3D2E;
  --soft-mauve: #D4A5A5;
  --blush-pink: #E8C4C4;
  --font-display: 'Playfair Display', serif;
  --font-body: 'Inter', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--cream);
  color: var(--deep-brown);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

ul {
  list-style: none;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5vw;
}

/* Typography */
.font-display {
  font-family: var(--font-display);
}

.font-body {
  font-family: var(--font-body);
}

.text-accent {
  color: var(--terracotta);
}

/* Labels */
.label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--terracotta);
  margin-bottom: 1rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 24px;
  border-radius: 100px;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--terracotta);
  color: var(--cream);
  box-shadow: 0 4px 16px rgba(194, 123, 91, 0.2);
}

.btn-primary:hover {
  background-color: #A8684A;
  box-shadow: 0 8px 24px rgba(194, 123, 91, 0.3);
  transform: scale(1.03);
}

.btn-lg {
  padding: 14px 32px;
}

.btn-block {
  width: 100%;
  padding: 16px 24px;
  border-radius: 12px;
}

/* Link arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--terracotta);
  transition: all 0.3s ease;
}

.link-arrow span {
  position: relative;
}

.link-arrow span::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--terracotta);
  transition: width 0.3s ease;
}

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

.link-arrow svg {
  transition: transform 0.3s ease;
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

/* ========================
   HEADER / NAVIGATION
======================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 72px;
  background: transparent;
  transition: all 0.3s ease;
}

.header.scrolled {
  background: rgba(250, 246, 240, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 12px rgba(92, 61, 46, 0.06);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  z-index: 102;
}

.brand-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--deep-brown);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--deep-brown);
  transition: color 0.3s ease;
}

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

.nav-cta {
  display: none;
}

/* Hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  z-index: 102;
  padding: 4px;
}

.hamburger {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--deep-brown);
  border-radius: 2px;
  transition: all 0.3s ease;
}

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

.menu-toggle.active .hamburger:nth-child(2) {
  opacity: 0;
}

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

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  z-index: 101;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.mobile-menu.active {
  opacity: 1;
  visibility: visible;
}

.mobile-link {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--deep-brown);
  transition: color 0.3s ease;
}

.mobile-link:hover {
  color: var(--terracotta);
}

.mobile-cta {
  margin-top: 1rem;
  padding: 14px 32px;
}

/* ========================
   HERO SECTION
======================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background-color: var(--cream);
  overflow: hidden;
  padding-top: 72px;
}

.hero-blobs {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.blob {
  position: absolute;
}

.blob-1 {
  top: 15%;
  left: 5%;
  width: 180px;
  height: 180px;
  opacity: 0.35;
  animation: floatBlob1 20s ease-in-out infinite;
}

.blob-2 {
  bottom: 10%;
  left: 10%;
  width: 140px;
  height: 140px;
  opacity: 0.25;
  animation: floatBlob2 16s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5rem;
  padding-top: 2rem;
  padding-bottom: 3rem;
}

.hero-text {
  text-align: center;
  max-width: 500px;
}

.hero-label {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.4s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.95;
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s forwards;
}

.title-line {
  color: var(--deep-brown);
}

.title-accent {
  color: var(--terracotta);
}

.hero-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-brown);
  opacity: 0.8;
  margin-bottom: 2rem;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.65s forwards;
}

.hero-btn {
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.8s forwards;
}

.hero-image-wrap {
  width: 100%;
  opacity: 0;
  transform: translateX(40px);
  animation: fadeRight 1s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

.hero-image {
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(92, 61, 46, 0.12);
}

.hero-image img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

/* ========================
   ABOUT SECTION
======================== */
.about {
  position: relative;
  background-color: var(--warm-beige);
  padding: 100px 0;
}

.wave-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transform: translateY(-99%);
  line-height: 0;
}

.wave-top svg {
  display: block;
  width: 100%;
  height: 40px;
}

.about-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4rem;
}

.about-image-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 320px;
}

.about-circle-deco {
  position: absolute;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  background: rgba(212, 165, 165, 0.3);
  bottom: -10px;
  right: -10px;
  animation: floatCircle 6s ease-in-out infinite;
  display: none;
}

.about-image {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 20px;
  overflow: hidden;
  border: 3px solid var(--terracotta);
  box-shadow: 0 12px 40px rgba(92, 61, 46, 0.15);
  z-index: 2;
}

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

.about-text {
  text-align: center;
}

.about-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--deep-brown);
  margin-bottom: 1.5rem;
}

.about-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-brown);
  opacity: 0.85;
  margin-bottom: 1rem;
}

/* ========================
   PRODUCTS SECTION
======================== */
.products {
  background-color: var(--cream);
  padding: 80px 0;
}

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

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--deep-brown);
}

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

/* Flip Card */
.flip-card {
  perspective: 1000px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border-radius: 20px;
}

.flip-card-inner.flipped {
  transform: rotateY(180deg);
}

.flip-card-inner:focus {
  outline: 2px solid var(--terracotta);
  outline-offset: 4px;
}

.flip-card-front,
.flip-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 20px;
  overflow: hidden;
}

.flip-card-front img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(92, 61, 46, 0.7) 0%, rgba(92, 61, 46, 0.2) 40%, transparent 70%);
}

.card-overlay h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--cream);
  padding: 1.25rem;
}

.flip-card-back {
  background-color: var(--warm-beige);
  border: 2px solid var(--terracotta);
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.5rem;
}

.flip-card-back h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--terracotta);
  margin-bottom: 0.75rem;
}

.flip-card-back p {
  font-family: var(--font-body);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--deep-brown);
  margin-bottom: 1rem;
}

.card-hint {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--terracotta);
}

/* ========================
   CONTACT SECTION
======================== */
.contact {
  position: relative;
  background-color: var(--warm-beige);
  padding: 100px 0;
}

.contact .wave-top svg {
  height: 40px;
}

.contact-content {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.contact-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.1;
  color: var(--deep-brown);
  margin-bottom: 1rem;
}

.contact-desc {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--deep-brown);
  opacity: 0.85;
}

/* Contact Links */
.contact-links {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-text {
  flex: 0 0 auto;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--cream);
  border-radius: 12px;
  transition: box-shadow 0.3s ease;
}

.contact-link:hover {
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.08);
}

.contact-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(194, 123, 91, 0.15);
  flex-shrink: 0;
}

.contact-label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--deep-brown);
  opacity: 0.6;
  margin-bottom: 2px;
}

.contact-value {
  display: block;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--deep-brown);
  line-height: 1.5;
}

/* Delivery Links */
.delivery-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: var(--cream);
  border-radius: 12px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.delivery-link:hover {
  box-shadow: 0 4px 16px rgba(92, 61, 46, 0.1);
  transform: translateY(-2px);
}

.delivery-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
}

.delivery-name {
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--deep-brown);
}

/* ========================
   FOOTER
======================== */
.footer {
  background-color: var(--deep-brown);
  color: var(--cream);
  padding-top: 4rem;
  padding-bottom: 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

.footer-brand h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.footer-brand p {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.7);
  line-height: 1.6;
}

.footer-links h4,
.footer-social h4 {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(250, 246, 240, 0.5);
  margin-bottom: 1.25rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: rgba(250, 246, 240, 0.7);
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--cream);
}

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

.social-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(250, 246, 240, 0.2);
  transition: background 0.3s ease;
}

.social-links a:hover {
  background: rgba(250, 246, 240, 0.1);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(250, 246, 240, 0.15);
}

.footer-bottom p {
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: rgba(250, 246, 240, 0.5);
}

/* ========================
   ANIMATIONS
======================== */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes floatBlob1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(20px, -15px) scale(1.05); }
  66% { transform: translate(-10px, 10px) scale(0.95); }
}

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

@keyframes floatCircle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatContactBlob1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(10px, -15px); }
}

@keyframes floatContactBlob2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-10px, 10px); }
}

/* Scroll Reveal */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.scroll-reveal[data-reveal="left"] {
  transform: translateX(-40px);
}

.scroll-reveal[data-reveal="left"].revealed {
  transform: translateX(0);
}

.scroll-reveal[data-reveal="right"] {
  transform: translateX(40px);
}

.scroll-reveal[data-reveal="right"].revealed {
  transform: translateX(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  
  .scroll-reveal {
    opacity: 1;
    transform: none;
  }
  
  .hero-label,
  .hero-title,
  .hero-desc,
  .hero-btn,
  .hero-image-wrap {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ========================
   TABLET (768px+)
======================== */
@media (min-width: 768px) {
  .container {
    padding: 0 4vw;
  }
  
  .nav-links {
    display: flex;
  }
  
  .nav-cta {
    display: inline-flex;
  }
  
  .menu-toggle {
    display: none;
  }
  
  .mobile-menu {
    display: none !important;
  }
  
  .hero {
    padding-top: 0;
  }
  
  .hero-content {
    flex-direction: row;
    gap: 3rem;
    padding-top: 4rem;
  }
  
  .hero-text {
    text-align: left;
    flex: 0 0 45%;
    max-width: 45%;
  }
  
  .hero-image-wrap {
    flex: 0 0 55%;
    max-width: 55%;
  }
  
  .about {
    padding: 120px 0;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: minmax(280px, 0.45fr) minmax(0, 1fr);
    gap: 4rem;
    align-items: center;
  }
  
  .about-image-wrap {
    max-width: 100%;
    min-width: 0;
  }
  
  .about-circle-deco {
    display: block;
  }
  
  .about-text {
    text-align: left;
    min-width: 0;
  }
  
  .products {
    padding: 100px 0;
  }
  
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
  
  .contact {
    padding: 120px 0;
  }
  
  .contact-content {
    flex-direction: row;
    gap: 4rem;
    align-items: flex-start;
  }
  
  .contact-text {
    flex: 0 0 42%;
  }
  
  .contact-links {
    flex: 1;
    max-width: none;
  }
  
  .footer-content {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 3rem;
  }
}

/* ========================
   DESKTOP (1024px+)
======================== */
@media (min-width: 1024px) {
  .hero-content {
    gap: 4rem;
  }
  
  .hero-title {
    font-size: clamp(4rem, 8vw, 7rem);
  }
  
  .products-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
  
  .about-content {
    display: grid;
    grid-template-columns: minmax(300px, 0.4fr) minmax(0, 1fr);
    gap: 5rem;
    align-items: center;
  }
  
  .about-image-wrap {
    max-width: 100%;
    min-width: 0;
    margin-right: 0;
  }
  
  .about-text {
    min-width: 0;
  }
  
  .about-circle-deco {
    width: 100%;
    border-radius: 20px;
  }
  
  .contact-content {
    gap: 5rem;
  }
  
  .contact-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
  
  .wave-top svg {
    height: 60px;
  }
}
