:root {
  --red: #e5402a;
  --red-dark: #c22f1d;
  --yellow: #f6c915;
  --yellow-dark: #d9a70f;
  --ink: #2a221e;
  --cream: #fff8ef;
  --cream-2: #fffdf9;
  --muted: #7a6c62;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(42, 34, 30, 0.08);
  --shadow-strong: 0 14px 34px rgba(42, 34, 30, 0.16);
  --radius: 18px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Cairo", "Segoe UI", Tahoma, sans-serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 24px;
}

.section-title {
  font-size: clamp(1.6rem, 4vw, 2.1rem);
  font-weight: 800;
  text-align: center;
  margin: 0 0 8px;
  color: var(--red-dark);
  position: relative;
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 14px auto 0;
  background: var(--yellow);
  border-radius: 4px;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
  background:
    radial-gradient(circle at 30% 20%, rgba(246, 201, 21, 0.16), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(229, 64, 42, 0.12), transparent 55%),
    var(--cream);
  position: relative;
}

.hero-inner {
  max-width: 560px;
}

.hero-logo {
  width: min(300px, 68vw);
  margin: 0 auto 8px;
  filter: drop-shadow(0 8px 18px rgba(42, 34, 30, 0.16));
}

.hero-title {
  font-size: clamp(1.7rem, 5vw, 2.5rem);
  font-weight: 800;
  margin: 8px 0 10px;
  color: var(--ink);
}

.hero-subtitle {
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  color: var(--muted);
  margin: 0 0 28px;
}

.hero-cta {
  display: inline-block;
  background: var(--red);
  color: var(--white);
  font-weight: 700;
  padding: 14px 32px;
  border-radius: 999px;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hero-cta:hover {
  background: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-strong);
}

.scroll-hint {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
}

.scroll-hint span {
  display: block;
  width: 22px;
  height: 22px;
  border-right: 3px solid var(--red);
  border-bottom: 3px solid var(--red);
  transform: rotate(45deg);
  opacity: 0.55;
  animation: hint-bob 2.6s ease-in-out infinite;
}

@keyframes hint-bob {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.35; }
  50% { transform: rotate(45deg) translate(6px, 6px); opacity: 0.7; }
}

/* entrance reveal on load */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: reveal-in 0.8s ease forwards;
  animation-delay: var(--delay, 0s);
}

@keyframes reveal-in {
  to { opacity: 1; transform: translateY(0); }
}

/* scroll-triggered fade for sections */
.fade-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-section.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal, .fade-section {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
  .scroll-hint span { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Social ---------- */
.social-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.social-link {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: transform 0.25s ease, color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.social-link svg { width: 26px; height: 26px; }

.social-link:hover {
  transform: translateY(-4px) scale(1.08);
  box-shadow: var(--shadow-strong);
}

.social-link.facebook:hover { background: #1877f2; color: #fff; }
.social-link.instagram:hover {
  background: radial-gradient(circle at 30% 110%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%);
  color: #fff;
}
.social-link.tiktok:hover { background: #000; color: #fff; }

/* ---------- Message ---------- */
.message-section { padding-top: 0; }

.message-box {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px clamp(20px, 5vw, 48px);
  text-align: center;
  font-size: clamp(1rem, 2.4vw, 1.15rem);
  color: var(--ink);
  border-top: 4px solid var(--yellow);
}

/* ---------- Menu ---------- */
.menu-gallery {
  display: flex;
  justify-content: center;
  margin-top: 36px;
}

.menu-item {
  border: none;
  padding: 0;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  cursor: zoom-in;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  max-width: 100%;
  opacity: 0;
  transform: translateY(24px) scale(0.98);
}

.menu-item.in-view {
  animation: menu-in 0.7s ease forwards;
}

@keyframes menu-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.menu-item:hover, .menu-item:focus-visible {
  transform: translateY(-6px) scale(1.01);
  box-shadow: var(--shadow-strong);
}

.menu-item img {
  width: 100%;
  transition: transform 0.5s ease;
}

.menu-item:hover img { transform: scale(1.03); }

@media (prefers-reduced-motion: reduce) {
  .menu-item { opacity: 1; transform: none; animation: none; }
  .menu-item img { transition: none; }
  .menu-item:hover img { transform: none; }
}

/* ---------- Branches ---------- */
.branches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.branch-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.branch-card h3 {
  margin: 0 0 16px;
  font-size: 1.2rem;
  color: var(--red-dark);
}

.phone-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 6px;
  font-weight: 600;
  font-size: 1.02rem;
  border-radius: 10px;
  transition: background 0.2s ease, color 0.2s ease;
  direction: ltr;
}

.phone-link svg { width: 19px; height: 19px; flex-shrink: 0; }

.phone-link:hover { background: rgba(229, 64, 42, 0.08); color: var(--red-dark); }

.phone-link.whatsapp:hover { background: rgba(37, 211, 102, 0.1); color: #1da851; }

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 20px 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
}

.footer-logo {
  width: 110px;
  margin: 0 auto 14px;
}

.footer-domain {
  margin: 0 0 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
  direction: ltr;
}

.footer-copy {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 12, 0.92);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.32s ease, visibility 0s linear 0.32s;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.32s ease, visibility 0s linear 0s;
}

.lightbox-scroll {
  max-width: 100%;
  max-height: 100%;
  overflow: auto;
  touch-action: pinch-zoom;
  border-radius: 8px;
}

.lightbox-scroll img {
  max-width: none;
  width: min(1400px, 90vw);
  border-radius: 8px;
  transform: scale(0.94);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
}

.lightbox.is-open .lightbox-scroll img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  left: 18px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--white);
  color: var(--ink);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
}

.lightbox.is-open .lightbox-close {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox-scroll img, .lightbox-close {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  .section { padding: 48px 18px; }
  .lightbox-scroll img { width: 94vw; }
}
