/* ============================================
   Dociê Confeitaria Artesanal - Styles
   Palette: Dark Brown #2D1214, Pink #F2A6B8,
   Light Pink #FBDCE2, Blush #FDF0F3, White #FFF
   ============================================ */

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

:root {
  --brown: #2D1214;
  --brown-light: #4A2428;
  --pink: #F2A6B8;
  --pink-medium: #E8899F;
  --pink-light: #FBDCE2;
  --pink-blush: #FDF0F3;
  --white: #FFFFFF;
  --beige: #F5E6D8;
  --text-dark: #2D1214;
  --text-body: #4A3035;
  --text-light: #FBDCE2;

  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-body: 'Lato', 'Helvetica Neue', Arial, sans-serif;

  --container-max: 1200px;
  --section-padding: 100px 0;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

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

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

a {
  text-decoration: none;
  color: inherit;
  transition: color var(--transition);
}

ul {
  list-style: none;
}

.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* --- Typography --- */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  font-weight: 600;
  line-height: 1.2;
}

.section-description {
  font-size: 1.125rem;
  color: var(--text-body);
  max-width: 560px;
  margin: 0 auto;
  line-height: 1.8;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header--left {
  text-align: left;
}

.section-header .section-title {
  margin-bottom: 16px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 16px 40px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-align: center;
  letter-spacing: 0.5px;
}

.btn--primary {
  background-color: var(--brown);
  color: var(--pink-light);
}

.btn--primary:hover {
  background-color: var(--brown-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 18, 20, 0.3);
}

.btn--cta {
  background-color: var(--brown);
  color: var(--pink-light);
  font-size: 1.25rem;
  padding: 18px 48px;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.btn--cta:hover {
  background-color: var(--brown-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(45, 18, 20, 0.3);
}

/* --- Logo Text --- */
.logo-text {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--brown);
  letter-spacing: 1px;
}

.logo-text--light {
  color: var(--pink);
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all var(--transition);
  border-bottom: 1px solid transparent;
}

.header--scrolled {
  box-shadow: 0 2px 20px rgba(45, 18, 20, 0.08);
  border-bottom: 1px solid var(--pink-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.header__menu {
  display: flex;
  align-items: center;
  gap: 36px;
}

.header__link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-body);
  position: relative;
  padding: 4px 0;
  letter-spacing: 0.3px;
}

.header__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--pink);
  transition: width var(--transition);
}

.header__link:hover::after,
.header__link--active::after {
  width: 100%;
}

.header__link--cta {
  background-color: var(--brown);
  color: var(--pink-light);
  padding: 10px 28px;
  border-radius: 50px;
  font-weight: 600;
}

.header__link--cta::after {
  display: none;
}

.header__link--cta:hover {
  background-color: var(--brown-light);
  color: var(--white);
}

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

.header__toggle span {
  display: block;
  width: 28px;
  height: 2px;
  background-color: var(--brown);
  transition: all var(--transition);
  border-radius: 2px;
}

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

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

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

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--white);
  overflow: hidden;
  padding-top: 80px;
}

.hero__shape {
  position: absolute;
  border-radius: 50%;
}

.hero__shape--1 {
  width: 500px;
  height: 500px;
  background-color: var(--pink-light);
  top: -150px;
  right: -100px;
  opacity: 0.7;
}

.hero__shape--2 {
  width: 600px;
  height: 600px;
  background-color: var(--brown);
  bottom: -200px;
  left: -200px;
  opacity: 0.15;
}

.hero__shape--3 {
  width: 300px;
  height: 300px;
  background-color: var(--pink);
  top: 20%;
  left: -80px;
  opacity: 0.3;
}

.hero__content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__brand {
  margin-bottom: 32px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 8rem);
  color: var(--brown);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hero__subtitle {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.5rem);
  color: var(--brown);
  font-weight: 500;
  letter-spacing: 6px;
  text-transform: uppercase;
}

.hero__tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-body);
  max-width: 500px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

/* --- Products Section --- */
.products {
  padding: var(--section-padding);
  background-color: var(--pink-blush);
}

.products__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  justify-items: center;
}

.product-card {
  text-align: center;
  max-width: 240px;
  transition: transform var(--transition);
}

.product-card:hover {
  transform: translateY(-8px);
}

.product-card__image {
  width: 180px;
  height: 180px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 5px solid var(--pink);
  box-shadow: 0 8px 30px rgba(242, 166, 184, 0.3);
  transition: all var(--transition);
}

.product-card:hover .product-card__image {
  border-color: var(--pink-medium);
  box-shadow: 0 12px 40px rgba(242, 166, 184, 0.45);
}

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

.product-card__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--brown);
  font-weight: 600;
  margin-bottom: 8px;
  letter-spacing: 1px;
}

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

/* --- About Section --- */
.about {
  position: relative;
  padding: var(--section-padding);
  background-color: var(--white);
  overflow: hidden;
}

.about__shape {
  position: absolute;
}

.about__shape--1 {
  width: 200px;
  height: 400px;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  top: 10%;
  left: -60px;
  transform: rotate(-20deg);
  opacity: 0.5;
}

.about__shape--2 {
  width: 150px;
  height: 300px;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  bottom: 15%;
  right: -40px;
  transform: rotate(15deg);
  opacity: 0.4;
}

.about__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.about__text p {
  font-size: 1.1rem;
  margin-bottom: 18px;
  line-height: 1.85;
  color: var(--text-body);
}

.about__text strong {
  color: var(--brown);
  font-weight: 700;
}

.about__images {
  position: relative;
  display: flex;
  justify-content: center;
}

.about__image--main {
  width: 380px;
  height: 380px;
  border-radius: 50%;
  overflow: hidden;
  border: 6px solid var(--pink);
  box-shadow: 0 12px 40px rgba(242, 166, 184, 0.25);
}

.about__image--main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about__image--secondary {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--pink);
  bottom: -20px;
  left: 10px;
  box-shadow: 0 8px 25px rgba(242, 166, 184, 0.3);
}

.about__image--secondary img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Gallery Section --- */
.gallery {
  padding: var(--section-padding);
  background-color: var(--pink-blush);
}

.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  cursor: pointer;
  position: relative;
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 18, 20, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.gallery__item:hover::after {
  opacity: 1;
}

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

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item--large {
  grid-column: 1 / 3;
  grid-row: 1 / 3;
  aspect-ratio: auto;
}

/* --- CTA Section --- */
.cta {
  position: relative;
  padding: var(--section-padding);
  background-color: var(--white);
  overflow: hidden;
}

.cta__shape {
  position: absolute;
}

.cta__shape--1 {
  width: 250px;
  height: 500px;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  bottom: 10%;
  left: 5%;
  transform: rotate(-10deg);
  opacity: 0.4;
}

.cta__shape--2 {
  width: 180px;
  height: 360px;
  border: 2px solid var(--pink-light);
  border-radius: 50%;
  bottom: 15%;
  left: 8%;
  transform: rotate(10deg);
  opacity: 0.3;
}

.cta__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.cta__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--brown);
  line-height: 1.3;
  margin-bottom: 20px;
  font-weight: 500;
}

.cta__title strong {
  font-weight: 700;
  color: var(--pink-medium);
}

.cta__description {
  font-size: 1.15rem;
  color: var(--text-body);
  margin-bottom: 36px;
  line-height: 1.8;
}

.cta__description strong {
  color: var(--brown);
  font-weight: 700;
}

.cta__image {
  display: flex;
  justify-content: center;
}

.cta__image img {
  max-height: 500px;
  object-fit: contain;
  border-radius: var(--radius);
}

/* --- Footer --- */
.footer {
  background-color: var(--brown);
  color: var(--pink-light);
  padding: 60px 0 30px;
  position: relative;
}

.footer__stripe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: repeating-linear-gradient(
    90deg,
    var(--pink) 0px,
    var(--pink) 20px,
    var(--brown) 20px,
    var(--brown) 40px
  );
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}

.footer__tagline {
  font-family: var(--font-display);
  font-size: 0.95rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--pink);
  margin-top: 4px;
}

.footer__links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer__links a {
  color: var(--pink-light);
  font-size: 0.95rem;
  transition: color var(--transition);
}

.footer__links a:hover {
  color: var(--pink);
}

.footer__social {
  display: flex;
  gap: 16px;
}

.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--pink);
  color: var(--pink);
  transition: all var(--transition);
}

.footer__social-link:hover {
  background-color: var(--pink);
  color: var(--brown);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(251, 220, 226, 0.6);
  margin-top: 12px;
}

/* --- Animations --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-animate].animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children */
.products__grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.products__grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.products__grid [data-animate]:nth-child(3) { transition-delay: 0.2s; }
.products__grid [data-animate]:nth-child(4) { transition-delay: 0.3s; }
.products__grid [data-animate]:nth-child(5) { transition-delay: 0.4s; }

.gallery__grid [data-animate]:nth-child(1) { transition-delay: 0s; }
.gallery__grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.gallery__grid [data-animate]:nth-child(3) { transition-delay: 0.15s; }
.gallery__grid [data-animate]:nth-child(4) { transition-delay: 0.2s; }
.gallery__grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }

/* --- Responsive --- */
@media (max-width: 1024px) {
  :root {
    --section-padding: 80px 0;
  }

  .about__content {
    gap: 50px;
  }

  .about__image--main {
    width: 300px;
    height: 300px;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 60px 0;
  }

  /* Mobile Nav */
  .header__toggle {
    display: flex;
  }

  .header__nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -4px 0 20px rgba(45, 18, 20, 0.1);
    transition: right 0.4s ease;
    padding: 100px 40px 40px;
    z-index: 999;
  }

  .header__nav--open {
    right: 0;
  }

  .header__menu {
    flex-direction: column;
    gap: 24px;
    align-items: flex-start;
  }

  .header__link {
    font-size: 1.1rem;
  }

  .header__link--cta {
    margin-top: 12px;
  }

  /* Hero */
  .hero {
    min-height: 80vh;
    padding-top: 100px;
  }

  .hero__shape--1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -80px;
  }

  .hero__shape--2 {
    width: 350px;
    height: 350px;
    bottom: -120px;
    left: -120px;
  }

  .hero__shape--3 {
    width: 180px;
    height: 180px;
  }

  /* Products */
  .products__grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 30px;
  }

  .product-card__image {
    width: 140px;
    height: 140px;
  }

  /* About */
  .about__content {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .section-header--left {
    text-align: center;
  }

  .about__images {
    order: -1;
  }

  .about__image--main {
    width: 280px;
    height: 280px;
  }

  .about__image--secondary {
    width: 120px;
    height: 120px;
    bottom: -10px;
    left: -10px;
  }

  /* Gallery */
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery__item--large {
    grid-column: 1 / -1;
    grid-row: auto;
    aspect-ratio: 16/9;
  }

  /* CTA */
  .cta__content {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .cta__image {
    order: -1;
  }

  .cta__image img {
    max-height: 350px;
  }
}

@media (max-width: 480px) {
  .hero__title {
    font-size: 3.5rem;
  }

  .hero__subtitle {
    letter-spacing: 3px;
    font-size: 0.9rem;
  }

  .products__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .product-card__image {
    width: 120px;
    height: 120px;
    border-width: 4px;
  }

  .product-card__description {
    display: none;
  }

  .gallery__grid {
    grid-template-columns: 1fr;
  }

  .gallery__item--large {
    grid-column: auto;
  }

  .btn--cta {
    padding: 14px 32px;
    font-size: 1rem;
  }

  .footer__links {
    gap: 20px;
  }
}

/* --- Print Styles --- */
@media print {
  .header,
  .footer__social,
  .btn {
    display: none;
  }

  body {
    color: #000;
    background: #fff;
  }

  .hero {
    min-height: auto;
    padding: 40px 0;
  }
}
