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

:root {
  --pink:        #d4617a;
  --pink-light:  #f9c6ce;
  --pink-mid:    #f48fb1;
  --blush:       #fdf0f3;
  --caramel:     #e8a87c;
  --dark:        #3d1515;
  --mid:         #7a3535;
  --white:       #fff9f5;
  --wa-green:    #25d366;
  --wa-dark:     #128c7e;
  --ig-grad:     linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  --shadow-sm:   0 2px 12px rgba(61,21,21,.10);
  --shadow-md:   0 4px 24px rgba(61,21,21,.14);
  --shadow-lg:   0 8px 40px rgba(61,21,21,.18);
  --radius:      16px;
  --radius-sm:   10px;
  --font-serif:  'Frank Ruhl Libre', Georgia, serif;
  --font-sans:   'Heebo', system-ui, sans-serif;
  --transition:  .25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans);
  background: var(--white);
  color: var(--dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Container ── */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .85rem 1.8rem;
  border-radius: 50px;
  font-family: var(--font-sans);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-whatsapp {
  background: var(--wa-green);
  color: #fff;
  box-shadow: 0 4px 18px rgba(37,211,102,.35);
}
.btn-whatsapp:hover {
  background: var(--wa-dark);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
}

.btn-outline {
  background: transparent;
  color: var(--pink);
  border: 2px solid var(--pink);
}
.btn-outline:hover {
  background: var(--pink);
  color: #fff;
}

.btn-instagram {
  background: var(--ig-grad);
  color: #fff;
  box-shadow: 0 4px 18px rgba(220,39,67,.30);
}
.btn-instagram:hover {
  opacity: .9;
  box-shadow: 0 8px 28px rgba(220,39,67,.40);
}

.btn-large {
  padding: 1.1rem 2.6rem;
  font-size: 1.05rem;
}

.btn-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* ── Eyebrow ── */
.eyebrow {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--pink);
  margin-bottom: .75rem;
}

/* ── Header ── */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,240,243,.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(212,97,122,.15);
  padding: .9rem 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: .7rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.logo-icon {
  font-size: 1.9rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pink);
}

.logo-sub {
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--mid);
}

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

.nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: .9rem;
  font-weight: 500;
  transition: color var(--transition);
}
.nav a:hover { color: var(--pink); }

.menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--dark);
  padding: .25rem;
  line-height: 1;
}

/* ── Mobile Nav ── */
.mobile-nav {
  display: none;
  flex-direction: column;
  background: var(--blush);
  padding: .5rem 1rem 1rem;
  gap: .25rem;
  border-bottom: 1px solid var(--pink-light);
  position: sticky;
  top: 62px;
  z-index: 99;
}
.mobile-nav.open { display: flex; }

.mobile-nav a {
  text-decoration: none;
  color: var(--dark);
  font-size: 1rem;
  font-weight: 500;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.mobile-nav a:hover { background: var(--pink-light); }

/* ── Hero ── */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--blush) 0%, #fff0f6 50%, #fde8d8 100%);
  padding: 7rem 5% 5rem;
  text-align: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  width: 100%;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1.1;
  color: var(--dark);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--pink);
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--mid);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

/* ── Floating cake decoration (hero) ── */
@keyframes float-cake {
  0%   { transform: translateY(0px)   rotate(-4deg); }
  33%  { transform: translateY(-22px) rotate(3deg);  }
  66%  { transform: translateY(-10px) rotate(-2deg); }
  100% { transform: translateY(0px)   rotate(-4deg); }
}

.hero-decoration {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.float-cake {
  position: absolute;
  line-height: 1;
  user-select: none;
  animation: float-cake ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(212,97,122,.18));
}

/* Each cake: position, size, speed, delay */
.fc-1  { left: 4%;   top: 12%;    font-size: 3.2rem; animation-duration: 7s;   animation-delay: 0s;    opacity: .70; }
.fc-2  { right: 5%;  top: 10%;    font-size: 2.4rem; animation-duration: 6s;   animation-delay: 1s;    opacity: .65; }
.fc-3  { left: 7%;   bottom: 20%; font-size: 2.2rem; animation-duration: 8s;   animation-delay: 2s;    opacity: .60; }
.fc-4  { right: 6%;  bottom: 18%; font-size: 2.8rem; animation-duration: 7.5s; animation-delay: 0.5s;  opacity: .70; }
.fc-5  { left: 17%;  top: 28%;    font-size: 1.5rem; animation-duration: 5.5s; animation-delay: 1.5s;  opacity: .50; }
.fc-6  { right: 15%; top: 33%;    font-size: 1.8rem; animation-duration: 6.5s; animation-delay: 3s;    opacity: .55; }
.fc-7  { left: 2%;   top: 55%;    font-size: 1.6rem; animation-duration: 9s;   animation-delay: 0.8s;  opacity: .50; }
.fc-8  { right: 3%;  top: 52%;    font-size: 1.4rem; animation-duration: 5s;   animation-delay: 2.5s;  opacity: .50; }
.fc-9  { left: 24%;  top: 6%;     font-size: 1.3rem; animation-duration: 6s;   animation-delay: 1.2s;  opacity: .45; }
.fc-10 { right: 22%; bottom: 8%;  font-size: 1.6rem; animation-duration: 7s;   animation-delay: 0.3s;  opacity: .50; }
.fc-11 { left: 11%;  top: 76%;    font-size: 1.2rem; animation-duration: 5s;   animation-delay: 3.5s;  opacity: .40; }
.fc-12 { right: 10%; top: 70%;    font-size: 1.3rem; animation-duration: 8s;   animation-delay: 1.8s;  opacity: .40; }

@media (max-width: 600px) {
  .fc-5, .fc-6, .fc-9, .fc-10 { display: none; }
}

/* ── Features ── */
.features {
  padding: 5.5rem 5%;
  background: #fff;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
}

.feature-card {
  text-align: center;
  padding: 2.5rem 1.75rem;
  background: var(--blush);
  border-radius: var(--radius);
  border: 1px solid rgba(212,97,122,.12);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: block;
  font-size: 2.8rem;
  margin-bottom: 1rem;
  line-height: 1;
}

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--dark);
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--mid);
  line-height: 1.6;
}

/* ── Section Header ── */
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--dark);
  margin-bottom: .6rem;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--mid);
}

/* ── Gallery ── */
.gallery-section {
  padding: 6rem 5%;
  background: #fff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.gallery-item {
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(61,21,21,.10);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gallery-item:hover {
  transform: scale(1.03) translateY(-3px);
  box-shadow: 0 12px 36px rgba(61,21,21,.22);
  z-index: 2;
}

/* Image fill */
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .4s ease;
}
.gallery-item:hover img {
  transform: scale(1.07);
}

/* Hover overlay */
.gallery-item::after {
  content: attr(data-label);
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(61,21,21,.72) 0%, rgba(61,21,21,.18) 55%, transparent 100%);
  color: #fff;
  font-family: var(--font-sans);
  font-size: .82rem;
  font-weight: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: .85rem;
  opacity: 0;
  transition: opacity .3s ease;
  text-align: center;
  padding-inline: .5rem;
}
.gallery-item:hover::after {
  opacity: 1;
}

.gallery-cta {
  text-align: center;
  margin-top: 3rem;
}

/* ── Order Section ── */
.order-section {
  padding: 6rem 5%;
  background: #fff;
}

.order-card {
  text-align: center;
  background: linear-gradient(135deg, #fff0f6, var(--blush));
  border-radius: 24px;
  padding: 5rem 2rem;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(212,97,122,.12);
}

.order-card .section-title {
  margin: .6rem 0 1rem;
}

.order-desc {
  font-size: 1.05rem;
  color: var(--mid);
  max-width: 460px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  background: var(--dark);
  color: #fff;
  padding: 4rem 5% 2.5rem;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.75rem;
  text-align: center;
}

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

.footer-logo {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--pink-light);
  display: block;
}

.footer-brand p {
  color: rgba(255,255,255,.55);
  font-size: .9rem;
}

.footer-links {
  display: flex;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.75);
  text-decoration: none;
  font-size: .9rem;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--pink-light); }

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

.footer-copy {
  color: rgba(255,255,255,.35);
  font-size: .78rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.1);
  width: 100%;
  text-align: center;
}

/* ── Gallery Filters ── */
.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  justify-content: center;
  margin-bottom: 2rem;
}

.filter-btn {
  padding: .55rem 1.3rem;
  border-radius: 50px;
  border: 1.5px solid var(--pink-light);
  background: #fff;
  color: var(--mid);
  font-family: var(--font-sans);
  font-size: .88rem;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.filter-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
  transform: translateY(-1px);
}
.filter-btn.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}

/* ── Gallery hide/show ── */
.gallery-item.hidden {
  display: none;
}
.gallery-item.fade-out {
  opacity: 0;
  transform: scale(.95);
  pointer-events: none;
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,.92);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 1rem;
}
.lightbox.open {
  display: flex;
}

.lb-img-wrap {
  max-width: min(90vw, 860px);
  max-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 60px rgba(0,0,0,.6);
  transition: opacity .2s ease;
}
.lb-img.loading { opacity: 0; }

.lb-close,
.lb-prev,
.lb-next {
  position: fixed;
  background: rgba(255,255,255,.12);
  border: none;
  color: #fff;
  cursor: pointer;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: background var(--transition), transform var(--transition);
  backdrop-filter: blur(4px);
}
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover {
  background: rgba(255,255,255,.25);
  transform: scale(1.1);
}

.lb-close { top: 1.25rem; left: 1.25rem; font-size: 1.1rem; }
.lb-prev  { top: 50%; transform: translateY(-50%); right: 1.25rem; font-size: 1.8rem; }
.lb-next  { top: 50%; transform: translateY(-50%); left:  1.25rem; font-size: 1.8rem; }
.lb-prev:hover { transform: translateY(-50%) scale(1.1); }
.lb-next:hover { transform: translateY(-50%) scale(1.1); }

.lb-counter {
  color: rgba(255,255,255,.65);
  font-size: .85rem;
  margin-top: .75rem;
  font-family: var(--font-sans);
}

/* ── Order Form ── */
.order-form {
  margin-top: 2.5rem;
  text-align: right;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: .45rem;
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: .9rem;
  font-weight: 600;
  color: var(--dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid rgba(212,97,122,.25);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: .95rem;
  color: var(--dark);
  background: #fff;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: right;
  direction: rtl;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(212,97,122,.15);
}

.form-group input.invalid,
.form-group select.invalid,
.form-group textarea.invalid {
  border-color: #e53935;
  box-shadow: 0 0 0 3px rgba(229,57,53,.12);
}

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

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23d4617a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 1rem center;
  padding-left: 2.5rem;
}

.btn-full { width: 100%; justify-content: center; }

@media (max-width: 560px) {
  .form-row { grid-template-columns: 1fr; }
}

/* ── Scroll Reveal ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */
@media (max-width: 1024px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 768px) {
  .nav      { display: none; }
  .menu-btn { display: block; }
  .gallery-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; }
}

@media (max-width: 560px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero { padding: 5rem 5% 4rem; }
}

/* ── RTL adjustments ── */
[dir="rtl"] .hero-content { text-align: center; }
[dir="rtl"] .hero-actions { justify-content: center; }
[dir="rtl"] .logo-text    { text-align: right; }
[dir="rtl"] .header-inner { flex-direction: row-reverse; }
[dir="rtl"] .nav          { flex-direction: row-reverse; }
[dir="rtl"] .features-grid { direction: rtl; }
[dir="rtl"] .section-header { text-align: center; }
[dir="rtl"] .footer-links { flex-direction: row-reverse; }
[dir="rtl"] .footer-inner { direction: rtl; }
