/* =====================================================
   Tabawa Catering Services — Stylesheet
   Signature element: the "plate mark" — a thin gold ring
   echoing a charger plate / place setting, used as an
   eyebrow marker above every section heading.
   ===================================================== */

:root {
  --red: #C62828;
  --red-dark: #8E1B1B;
  --gold: #D4AF37;
  --gold-light: #E8CE7D;
  --gold-dark: #A6841F;
  --ink: #222222;
  --cream: #FAFAFA;
}

* { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

body { overflow-x: hidden; }

/* ---------- Preloader ---------- */
#preloader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
#preloader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.preloader-mark { position: relative; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; }
.preloader-mark .ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(212,175,55,0.25);
  border-top-color: var(--gold);
  animation: spin 1s linear infinite;
}
.preloader-logo { width: 42px; height: 42px; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Navigation ---------- */
#navbar { background: transparent; }
#navbar.scrolled { background: rgba(255,255,255,0.92); backdrop-filter: blur(10px); box-shadow: 0 4px 24px rgba(0,0,0,0.06); }
.nav-link { color: #fff; font-weight: 500; font-size: 0.94rem; position: relative; transition: color 0.3s ease; }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width 0.3s ease; }
.nav-link:hover::after { width: 100%; }
#navbar.scrolled .nav-link { color: var(--ink); }
#navbar.scrolled .nav-link:hover { color: var(--red); }

.bar { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.35s ease; }
#navbar.scrolled .bar { background: var(--ink); }
#hamburger.active .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#hamburger.active .bar:nth-child(2) { opacity: 0; }
#hamburger.active .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#hamburger.active .bar { background: var(--ink); }

.mobile-menu {
  position: fixed; inset: 0; background: var(--cream);
  transform: translateY(-100%); transition: transform 0.5s cubic-bezier(.77,0,.18,1);
  z-index: 40;
}
.mobile-menu.open { transform: translateY(0); }
.mobile-link { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--ink); font-weight: 600; }

/* ---------- Hero ---------- */
.hero { background: var(--ink); }
.hero-bg {
  position: absolute; inset: 0;
  background-color: #1a1a1a;
  background-image:
    linear-gradient(160deg, rgba(42,13,13,0.55) 0%, rgba(26,26,26,0.75) 60%),
    radial-gradient(ellipse at 70% 30%, rgba(198,40,40,0.2), transparent 60%),
    url('../images/hero.png');
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply, normal, normal;
}
.hero-overlay { position: absolute; inset: 0; background: radial-gradient(ellipse at 20% 20%, rgba(0,0,0,0.1), rgba(0,0,0,0.65)); }

/* ---------- About banner ---------- */
.about-banner { width: 100%; border-radius: 20px; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,0.1); aspect-ratio: 21/8; background: #eee; }
.about-banner img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .about-banner { aspect-ratio: 4/3; } }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }

.scroll-indicator { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.5); border-radius: 20px; z-index: 10; }
.scroll-indicator span { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); width: 4px; height: 8px; background: var(--gold); border-radius: 2px; animation: scrollDot 1.6s ease-in-out infinite; }
@keyframes scrollDot { 0% { opacity: 1; top: 8px; } 70% { opacity: 0; top: 22px; } 100% { opacity: 0; top: 8px; } }

.glass-float {
  position: absolute; display: flex; align-items: center; gap: 14px;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px); border-radius: 18px; padding: 16px 20px;
  animation: floatY 5s ease-in-out infinite;
}
.glass-float i { color: var(--gold-light); font-size: 1.4rem; }
.gf-title { color: #fff; font-weight: 600; font-size: 0.92rem; }
.gf-sub { color: rgba(255,255,255,0.6); font-size: 0.76rem; }
.gf-1 { top: 6%; right: 4%; animation-delay: 0s; }
.gf-2 { top: 42%; left: -2%; animation-delay: 1.2s; }
.gf-3 { bottom: 10%; right: 10%; animation-delay: 2.4s; }
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------- Buttons ---------- */
.btn-ripple { position: relative; overflow: hidden; }
.btn-ripple::after {
  content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0;
  background: rgba(255,255,255,0.35); border-radius: 50%;
  transform: translate(-50%, -50%); opacity: 0;
}
.btn-ripple:active::after { width: 220%; padding-top: 220%; opacity: 1; transition: width 0.5s ease, opacity 0.8s ease; }

/* ---------- Sections & signature mark ---------- */
.section-pad { padding-block: 6.5rem; }
.section-head { max-width: 640px; }
.plate-mark {
  display: flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1.5px solid var(--gold);
  position: relative; margin-bottom: 18px; color: var(--gold-dark);
}
.plate-mark::before { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(212,175,55,0.35); }
.section-title { font-family: 'Playfair Display', serif; font-weight: 700; font-size: clamp(1.75rem, 3vw, 2.5rem); margin-top: 0.5rem; color: var(--ink); }

/* ---------- About ---------- */
.ceo-card { width: 260px; height: 320px; border-radius: 18px; overflow: hidden; box-shadow: 0 20px 45px rgba(0,0,0,0.14); border: 4px solid #fff; }
.ceo-card-tag { background: #fff; border-radius: 14px; padding: 12px 18px; box-shadow: 0 10px 30px rgba(0,0,0,0.1); width: fit-content; margin: -30px auto 0; position: relative; }
.value-card { background: #fff; border-radius: 16px; padding: 22px 18px; box-shadow: 0 8px 24px rgba(0,0,0,0.05); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.value-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(198,40,40,0.1); }
.value-card i { color: var(--red); font-size: 1.3rem; margin-bottom: 10px; }
.value-card h4 { font-family: 'Playfair Display', serif; font-weight: 600; margin-bottom: 6px; }
.value-card p { font-size: 0.86rem; color: rgba(34,34,34,0.65); line-height: 1.5; }

/* ---------- Why choose us ---------- */
.why-card { background: var(--cream); border: 1px solid rgba(0,0,0,0.05); border-radius: 18px; padding: 32px 26px; text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease, background 0.35s ease; }
.why-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); background: #fff; }
.why-card i { font-size: 2rem; color: var(--gold-dark); margin-bottom: 16px; }
.why-card h3 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { font-size: 0.88rem; color: rgba(34,34,34,0.6); line-height: 1.55; }

/* ---------- Services ---------- */
.service-card { background: #fff; border-radius: 18px; padding: 30px 22px; box-shadow: 0 6px 20px rgba(0,0,0,0.05); border: 1px solid rgba(0,0,0,0.04); transition: transform 0.3s ease, box-shadow 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: 0 18px 36px rgba(198,40,40,0.12); }
.service-card i { font-size: 1.6rem; color: var(--red); margin-bottom: 14px; }
.service-card h3 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.service-card p { font-size: 0.85rem; color: rgba(34,34,34,0.6); line-height: 1.5; }

/* ---------- Products ---------- */
.product-card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,0.06); transition: transform 0.35s ease, box-shadow 0.35s ease; }
.product-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.product-img-wrap { overflow: hidden; aspect-ratio: 4/3; background: #eee; }
.product-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.product-card:hover .product-img-wrap img { transform: scale(1.08); }
.product-card h3 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.product-card p { font-size: 0.85rem; color: rgba(34,34,34,0.6); line-height: 1.5; margin-bottom: 14px; }
.order-btn { color: var(--red); font-weight: 600; font-size: 0.86rem; display: inline-flex; align-items: center; gap: 6px; transition: gap 0.25s ease; }
.order-btn:hover { gap: 10px; }

/* ---------- Gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery-item { position: relative; display: block; width: 100%; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4/5; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-zoom { position: absolute; inset: 0; background: rgba(198,40,40,0.35); display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.3rem; opacity: 0; transition: opacity 0.3s ease; }
.gallery-item:hover .gallery-zoom { opacity: 1; }

.lightbox { position: fixed; inset: 0; background: rgba(10,10,10,0.92); z-index: 100; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: opacity 0.35s ease, visibility 0.35s ease; padding: 24px; }
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: absolute; top: 24px; right: 28px; color: #fff; font-size: 1.6rem; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,0.1); display: flex; align-items: center; justify-content: center; }

/* ---------- Team ---------- */
.team-card { background: rgba(255,255,255,0.6); border: 1px solid rgba(212,175,55,0.25); backdrop-filter: blur(8px); border-radius: 20px; padding: 34px 24px; text-align: center; transition: transform 0.35s ease, box-shadow 0.35s ease; }
.team-card:hover { transform: translateY(-8px); box-shadow: 0 22px 44px rgba(0,0,0,0.1); }
.team-img { width: 128px; height: 128px; border-radius: 50%; overflow: hidden; margin: 0 auto 18px; border: 3px solid var(--gold-light); }
.team-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card h3 { font-family: 'Playfair Display', serif; font-weight: 600; font-size: 1.15rem; }
.team-card p { color: var(--red); font-size: 0.86rem; font-weight: 500; margin-top: 4px; }

/* ---------- Statistics ---------- */
.stats-section { background: linear-gradient(135deg, var(--red-dark), var(--red)); padding-block: 4.5rem; }
.stat-num { font-family: 'Playfair Display', serif; font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 700; color: #fff; }
.stat-num::after { content: '+'; color: var(--gold-light); }
.stat-label { color: rgba(255,255,255,0.75); font-size: 0.86rem; letter-spacing: 0.02em; margin-top: 4px; }

/* ---------- Testimonials ---------- */
.testimonial-card { background: #fff; border-radius: 20px; padding: 36px 30px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); text-align: center; max-width: 640px; margin: 0 auto; }
.testimonial-card .stars { color: var(--gold); margin-bottom: 16px; font-size: 0.9rem; }
.testimonial-card p { font-family: 'Playfair Display', serif; font-style: italic; color: var(--ink); font-size: 1.05rem; line-height: 1.6; margin-bottom: 18px; }
.testimonial-card h4 { font-weight: 600; font-size: 0.95rem; }
.testimonial-card span { color: var(--red); font-size: 0.8rem; }
.testimonial-swiper .swiper-pagination-bullet-active { background: var(--red); }

/* ---------- Booking ---------- */
.booking-section { background: var(--ink); position: relative; }
.booking-form { background: rgba(255,255,255,0.04); border: 1px solid rgba(212,175,55,0.25); border-radius: 22px; padding: 40px clamp(20px, 5vw, 48px); }
.field label { display: block; color: rgba(255,255,255,0.75); font-size: 0.82rem; font-weight: 500; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 12px; padding: 12px 16px; color: #fff; font-size: 0.92rem; font-family: 'Poppins', sans-serif;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.35); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: rgba(255,255,255,0.1); }
.field select option { background: var(--ink); }

/* ---------- Contact ---------- */
.contact-card { background: var(--cream); border-radius: 18px; padding: 30px 22px; text-align: center; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.contact-card:hover { transform: translateY(-6px); box-shadow: 0 16px 32px rgba(0,0,0,0.07); }
.contact-card i { font-size: 1.4rem; color: var(--red); margin-bottom: 12px; }
.contact-card h4 { font-family: 'Playfair Display', serif; font-weight: 600; margin-bottom: 6px; }
.contact-card p { font-size: 0.86rem; color: rgba(34,34,34,0.65); }
.map-embed { height: 340px; border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.08); }
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Back to top ---------- */
#back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--red); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(198,40,40,0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s ease, background 0.3s ease;
}
#back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
#back-to-top:hover { background: var(--red-dark); }

/* ---------- Footer ---------- */
.footer { background: #161616; }
.footer-logo { filter: brightness(0) invert(1); opacity: 0.9; }
.footer-heading { font-family: 'Playfair Display', serif; color: #fff; font-weight: 600; margin-bottom: 16px; font-size: 1.02rem; }
.footer-list { display: flex; flex-direction: column; gap: 10px; }
.footer-list li { color: rgba(255,255,255,0.55); font-size: 0.88rem; display: flex; align-items: center; gap: 8px; }
.footer-list a { color: inherit; transition: color 0.25s ease; }
.footer-list a:hover { color: var(--gold-light); }
.footer-list i { color: var(--gold-dark); width: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); text-align: center; padding: 20px; color: rgba(255,255,255,0.4); font-size: 0.8rem; }
