/* ============================================================
   Social Bite — Styles
   Warm palette drawn from the logo: cream, red, orange, brown
   ============================================================ */

:root {
  --orange: #e8641a;
  --orange-dark: #c2410c;
  --orange-soft: #f6e2d2;
  --brand-red: #c1272d;
  --cream: #f4eae1;       /* logo background */
  --cream-light: #fbf6f0; /* page background */
  --white: #ffffff;
  --ink: #3a1a10;         /* dark brown from the logo outline */
  --ink-soft: #7c5a4a;
  --line: #e7d6c6;
  --shadow: 0 10px 28px rgba(58, 26, 16, 0.10);
  --radius: 14px;
  --header-h: 72px;
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream-light);
  line-height: 1.6;
}

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

.container {
  width: min(1000px, 92%);
  margin-inline: auto;
}

/* ===== Typography helpers ===== */
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-dark);
  margin-bottom: 0.6rem;
}

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

.section-title {
  font-size: clamp(1.6rem, 3.6vw, 2.2rem);
  line-height: 1.2;
  text-align: center;
  margin-bottom: 2.25rem;
}

/* Underline that draws in when the title scrolls into view */
.section-title::after {
  content: "";
  display: block;
  width: 0;
  height: 3px;
  margin: 0.75rem auto 0;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--orange), #f5a623);
  transition: width 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.25s;
}

.section-title.in-view::after {
  width: 72px;
}

/* Animated gradient on the highlighted word */
.highlight {
  background: linear-gradient(90deg, var(--brand-red), var(--orange), #f5a623, var(--brand-red));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--brand-red);
  animation: gradient-slide 5s linear infinite;
}

@keyframes gradient-slide {
  to { background-position: -300% 0; }
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ===== Hero entrance ===== */
.hero-fade {
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-fade:nth-child(1) { animation-delay: 0.05s; }
.hero-fade:nth-child(2) { animation-delay: 0.18s; }
.hero-fade:nth-child(3) { animation-delay: 0.31s; }
.hero-fade:nth-child(4) { animation-delay: 0.44s; }

@keyframes hero-in {
  to { opacity: 1; transform: none; }
}

/* ===== Buttons ===== */
.btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 0.85rem 1.7rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.15s ease;
}

.btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(120deg, var(--orange), var(--orange-dark));
  color: var(--white);
  box-shadow: 0 8px 20px rgba(232, 100, 26, 0.32);
  animation: btn-glow 2.6s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(120deg, var(--orange-dark), var(--brand-red));
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 28px rgba(232, 100, 26, 0.45);
}

@keyframes btn-glow {
  0%, 100% { box-shadow: 0 8px 20px rgba(232, 100, 26, 0.28); }
  50% { box-shadow: 0 8px 30px rgba(232, 100, 26, 0.55); }
}

/* Sweeping shine across the primary button */
.btn-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.5) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: shine-sweep 3.4s ease-in-out infinite;
}

@keyframes shine-sweep {
  0%, 55% { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.btn-outline {
  border-color: var(--orange);
  color: var(--orange-dark);
  background: transparent;
}

.btn-outline:hover {
  background: var(--orange-soft);
  transform: translateY(-3px);
}

/* ===== Header / Nav ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 234, 225, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}

.site-header.scrolled {
  box-shadow: var(--shadow);
}

.nav {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
}

.logo-accent {
  color: var(--orange);
}

.site-header .logo img {
  height: 50px;
  width: auto;
  border-radius: 6px;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-link {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
  transition: color 0.15s ease;
}

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

.nav-cta {
  background: var(--orange);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
}

.nav-cta:hover {
  color: var(--white);
  background: var(--orange-dark);
}

/* Language switch */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-btn {
  background: none;
  border: 0;
  padding: 0.2rem 0.15rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
  letter-spacing: 0.03em;
  transition: color 0.15s ease;
}

.lang-btn:hover {
  color: var(--orange);
}

.lang-btn.active {
  color: var(--brand-red);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.lang-sep {
  color: var(--line);
  font-size: 0.85rem;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}

.nav-toggle .bar {
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open .bar:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.nav-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open .bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-light) 100%);
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  animation: blob-drift 16s ease-in-out infinite alternate;
}

.blob-1 {
  width: 380px;
  height: 380px;
  background: #f6b98a;
  top: -120px;
  left: -100px;
}

.blob-2 {
  width: 320px;
  height: 320px;
  background: #f4d9b0;
  bottom: -140px;
  right: -80px;
  animation-delay: 4s;
}

.blob-3 {
  width: 220px;
  height: 220px;
  background: #e79a6b;
  top: 20%;
  right: 28%;
  opacity: 0.3;
  animation-delay: 8s;
}

@keyframes blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(40px, 30px) scale(1.15); }
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(3rem, 8vw, 5.5rem);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  max-width: 44ch;
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero artwork */
.hero-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}

.hero-circle {
  position: relative;
  width: clamp(210px, 27vw, 300px);
  height: clamp(210px, 27vw, 300px);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--orange) 0%, var(--orange-dark) 70%, var(--brand-red) 110%);
  display: grid;
  place-items: center;
  box-shadow: 0 25px 55px rgba(194, 65, 12, 0.4);
  animation: circle-pulse 3s ease-in-out infinite;
}

/* Expanding pulse rings */
.hero-circle::before,
.hero-circle::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(232, 100, 26, 0.5);
  animation: ring-expand 3s ease-out infinite;
}

.hero-circle::after {
  animation-delay: 1.5s;
}

@keyframes circle-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

@keyframes ring-expand {
  from { transform: scale(1); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

.hero-emoji {
  font-size: clamp(4.5rem, 9vw, 7rem);
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
  animation: emoji-bob 3s ease-in-out infinite;
}

@keyframes emoji-bob {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-12px) rotate(3deg); }
}

/* Orbiting food emojis */
.hero-orbit {
  position: absolute;
  width: clamp(290px, 36vw, 420px);
  height: clamp(290px, 36vw, 420px);
  animation: orbit-spin 22s linear infinite;
  z-index: 1;
}

.orbit-item {
  position: absolute;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  animation: orbit-spin 22s linear infinite reverse; /* keep emojis upright */
  filter: drop-shadow(0 4px 8px rgba(194, 65, 12, 0.3));
}

.orbit-item:nth-child(1) { top: -4%; left: 50%; }
.orbit-item:nth-child(2) { top: 50%; right: -4%; }
.orbit-item:nth-child(3) { bottom: -4%; left: 50%; }
.orbit-item:nth-child(4) { top: 50%; left: -4%; }

@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--white);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  animation: floaty 4s ease-in-out infinite;
  z-index: 2;
}

.float-card-1 { top: 6%; left: 0; }
.float-card-2 { bottom: 12%; left: 2%; animation-delay: 1.3s; }
.float-card-3 { top: 28%; right: 0; animation-delay: 2.6s; }

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

/* ===== Sections ===== */
.section {
  padding-block: clamp(3rem, 7vw, 4.5rem);
}

.section-tint {
  background: var(--cream);
  border-block: 1px solid var(--line);
}

/* ===== Service cards ===== */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.card {
  position: relative;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.25rem;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Cursor-tracking glow (--mx / --my set from JS) */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), rgba(232, 100, 26, 0.16), transparent 65%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.card:hover {
  box-shadow: 0 16px 34px rgba(58, 26, 16, 0.14);
  border-color: var(--orange);
}

.card:hover::before {
  opacity: 1;
}

.card:hover .card-icon {
  transform: scale(1.18) rotate(-8deg);
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 0.75rem;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card > * {
  position: relative;
}

.card h3 {
  margin-bottom: 0.35rem;
  font-size: 1.1rem;
}

.card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* ===== About ===== */
.about-inner {
  max-width: 620px;
  margin-inline: auto;
  text-align: center;
}

.about-body {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.checklist {
  list-style: none;
  display: inline-grid;
  gap: 0.55rem;
  text-align: left;
}

.checklist li {
  padding-left: 1.8rem;
  position: relative;
  font-weight: 600;
}

.checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.25rem;
  height: 1.25rem;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
}

/* ===== Contact ===== */
.contact-inner {
  max-width: 520px;
  margin-inline: auto;
  text-align: center;
}

.contact-lead {
  color: var(--ink-soft);
  margin-bottom: 1.75rem;
}

.contact-list {
  list-style: none;
  display: inline-grid;
  gap: 0.85rem;
  text-align: left;
  font-weight: 600;
}

.contact-list li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.contact-list a {
  color: var(--ink);
  text-decoration: none;
}

.contact-list a:hover {
  color: var(--orange-dark);
}

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: var(--cream);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.footer-logo {
  color: var(--white);
  font-size: 1.2rem;
}

.footer-nav {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
}

.footer-nav a {
  color: var(--cream);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover {
  color: var(--orange);
}

.footer-copy {
  font-size: 0.84rem;
  opacity: 0.75;
}

/* ===== Back to top ===== */
.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: var(--white);
  font-size: 1.2rem;
  text-decoration: none;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.2s ease, transform 0.2s ease, background 0.15s ease;
  z-index: 90;
}

.back-to-top:hover {
  background: var(--orange-dark);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: btn-glow 2.6s ease-in-out infinite;
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal,
  .hero-fade {
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero-sub {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art {
    order: -1;
    min-height: 300px;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--cream);
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 0.5rem 1rem 1.25rem;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-130%);
    transition: transform 0.28s ease;
    z-index: -1;
  }

  .nav-menu.open {
    transform: translateY(0);
  }

  .nav-link {
    display: block;
    padding: 0.85rem;
    font-size: 1.05rem;
  }

  .nav-cta {
    margin-top: 0.4rem;
  }

  .nav-lang {
    margin-top: 0.75rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
