/* ============================================
   Deluxe Fine Catering — Premium Design
   ============================================ */

:root {
  --color-bg: #0a0e14;
  --color-bg-soft: #0f1419;
  --color-surface: #151b23;
  --color-surface-elevated: #1a2129;
  --color-text: #f8f6f2;
  --color-text-muted: #a8a49c;
  --color-accent: #e67e22;
  --color-accent-light: #f5b041;
  --color-accent-glow: rgba(230, 126, 34, 0.35);
  --color-border: rgba(230, 126, 34, 0.2);
  --color-border-strong: rgba(230, 126, 34, 0.4);
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-3xl: 8rem;
  --radius: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.35);
  --transition: 0.3s ease;
  --transition-smooth: 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--color-accent-glow);
  color: var(--color-text);
}

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

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

a:hover {
  color: var(--color-accent-light);
}

/* ========== Header & Nav ========== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 4px var(--space-lg);
  background: var(--color-bg);
  transition: box-shadow var(--transition);
}

.header.scrolled {
  box-shadow: 0 1px 0 var(--color-border), var(--shadow-sm);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text) !important;
  display: inline-flex;
  align-items: center;
}

.logo img {
  display: block;
  height: 110px;
  width: auto;
  max-width: 700px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
}

.logo:hover {
  color: var(--color-accent-light) !important;
}

.logo:hover img {
  opacity: 0.9;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.03em;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-cta {
  color: var(--color-accent) !important;
  padding: var(--space-xs) var(--space-md);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius);
}

.nav-cta:hover {
  background: rgba(230, 126, 34, 0.12);
  color: var(--color-accent-light) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--color-text);
  transition: var(--transition);
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

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

  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--color-bg-soft);
    flex-direction: column;
    justify-content: center;
    gap: var(--space-md);
    padding: var(--space-xl);
    transform: translateX(100%);
    transition: transform var(--transition);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.1rem;
  }
}

/* ========== Layout ========== */

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
}

.section-label::before {
  content: "";
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--color-accent), transparent);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

.section-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}

.section-title--center {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Scroll reveal: when body has .reveal-ready, hide section content until .reveal */
body.reveal-ready section:not(.reveal) .container {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

body.reveal-ready section.reveal .container {
  opacity: 1;
  transform: translateY(0);
}

.nav-links a:focus-visible,
.logo:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 4px;
}


/* ========== Buttons ========== */

.btn {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-align: center;
  border-radius: var(--radius);
  transition: all var(--transition-smooth);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-accent) 0%, #d35400 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: var(--shadow-sm), 0 2px 0 rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--color-accent-light) 0%, var(--color-accent) 100%);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 4px 0 rgba(0, 0, 0, 0.1);
}

.btn-primary:focus-visible {
  outline: 2px solid var(--color-accent-light);
  outline-offset: 2px;
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border-strong);
}

.btn-outline:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  background: rgba(230, 126, 34, 0.06);
}

.btn-outline:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

.btn-full {
  width: 100%;
}

.btn--success {
  background: #2d4a2d !important;
  border-color: #2d4a2d !important;
  color: var(--color-text) !important;
}

/* ========== Hero ========== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--color-bg);
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  transition: transform 12s ease-out;
}

.hero:hover .hero-bg-img {
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(10, 14, 20, 0.92) 0%, rgba(10, 14, 20, 0.78) 45%, rgba(10, 14, 20, 0.65) 100%);
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e67e22' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.9;
}

.hero-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 55%;
  background: linear-gradient(to top, var(--color-bg) 0%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
  text-align: center;
}

.hero-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-md);
  opacity: 0.95;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6.5vw, 4.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--space-lg);
}

.hero-title em {
  font-style: italic;
  color: var(--color-accent);
  font-weight: 500;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  margin: 0 auto var(--space-xl);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--color-accent), transparent);
  animation: scrollPulse 2.2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%, 100% { opacity: 0.35; transform: scaleY(0.7); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ========== About ========== */

.about {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-soft);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.about-content .section-title {
  margin-bottom: var(--space-lg);
}

.about-text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

.about-features {
  list-style: none;
  margin-top: var(--space-xl);
}

.about-features li {
  position: relative;
  padding-left: var(--space-lg);
  margin-bottom: var(--space-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.about-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--color-accent-glow);
}

.about-image-frame {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  box-shadow: var(--shadow-lg);
}

.about-image-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.6s ease;
}

.about-image-frame:hover img {
  transform: scale(1.03);
}

@media (max-width: 768px) {
  .about-grid {
    grid-template-columns: 1fr;
  }

  .about-visual {
    order: -1;
  }

  .about-image-frame {
    aspect-ratio: 16/10;
  }
}

/* ========== Services ========== */

.services {
  padding: var(--space-3xl) 0;
}

.services .section-title--center {
  margin-bottom: var(--space-xl);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  padding: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth), box-shadow var(--transition-smooth);
  min-height: 300px;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  border-color: var(--color-border-strong);
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}

.service-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  transition: transform 0.7s ease, opacity var(--transition-smooth);
}

.service-card:hover .service-card-bg {
  transform: scale(1.06);
  opacity: 0.55;
}

.service-card--wedding .service-card-bg {
  background-image: url("assets/photos/wedding-buffets-card.jpeg");
}

.service-card--corporate .service-card-bg {
  background-image: url("assets/photos/embassy-card.jpeg");
}

.service-card--private .service-card-bg {
  background-image: url("assets/photos/house-party-card.jpeg");
}

.service-card-inner {
  position: relative;
  padding: var(--space-lg);
  background: linear-gradient(to top, rgba(10, 14, 20, 0.96) 35%, transparent);
  width: 100%;
}

.service-icon {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.02em;
}

.service-card h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-text);
}

.service-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Gallery ========== */

.gallery {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-soft);
}

.gallery .section-title--center {
  margin-bottom: var(--space-xl);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-smooth), transform var(--transition-smooth);
}

.gallery-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 1;
  transition: transform 0.6s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item--tall {
  grid-row: span 2;
}

.gallery-item--tall img {
  aspect-ratio: auto;
  height: 100%;
  min-height: 280px;
}

.gallery-item--wide {
  grid-column: span 2;
}

.gallery-item--wide img {
  aspect-ratio: 2/1;
}

.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-md) var(--space-lg);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-text);
  background: linear-gradient(to top, rgba(10, 14, 20, 0.9), transparent);
  opacity: 0.95;
  transition: opacity var(--transition);
}

.gallery-item:hover .gallery-caption {
  opacity: 1;
  background: linear-gradient(to top, rgba(10, 14, 20, 0.95), transparent);
}

/* Fallback when image fails to load */
.gallery-item img.img-failed {
  opacity: 0;
  min-height: 180px;
}

.gallery-item:has(img.img-failed) {
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.about-image-frame img.img-failed {
  opacity: 0;
}

.about-image-frame:has(img.img-failed) {
  background: linear-gradient(145deg, var(--color-surface) 0%, var(--color-bg) 100%);
}

.gallery-cta {
  text-align: center;
  color: var(--color-text-muted);
}

.gallery-cta a {
  font-weight: 600;
  transition: color var(--transition);
}

@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-item--tall {
    grid-row: span 1;
  }

  .gallery-item--tall img {
    min-height: 220px;
  }

  .gallery-item--wide {
    grid-column: span 1;
  }

  .gallery-item--wide img {
    aspect-ratio: 1;
  }
}

/* ========== Testimonials ========== */

.testimonials {
  padding: var(--space-3xl) 0;
}

.testimonials .section-title--center {
  margin-bottom: var(--space-xl);
}

.testimonials-slider {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.testimonial {
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-style: normal;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition-smooth);
}

.testimonial:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.testimonial p {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.65;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.testimonial p::before {
  content: "\201C";
  display: block;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--color-accent);
  opacity: 0.5;
  margin-bottom: var(--space-xs);
}

.testimonial cite {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  font-style: normal;
}

@media (max-width: 768px) {
  .testimonials-slider {
    grid-template-columns: 1fr;
  }
}

/* ========== Contact ========== */

.contact {
  padding: var(--space-3xl) 0;
  background: var(--color-bg-soft);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-info .section-title {
  margin-bottom: var(--space-md);
}

.contact-info > p {
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.contact-meta {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin: 0;
}

.contact-meta.contact-phone {
  margin-top: var(--space-sm);
  font-weight: 500;
  color: var(--color-text);
}

.contact-address {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin: var(--space-xs) 0 0;
  max-width: 280px;
  line-height: 1.55;
}

.contact-link {
  font-weight: 500;
  display: inline-block;
  transition: color var(--transition);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.contact-form label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.875rem var(--space-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--color-text);
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact-form input[type="date"] {
  color-scheme: dark;
  cursor: pointer;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: var(--color-text-muted);
  opacity: 0.75;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

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

.contact-form .btn {
  margin-top: var(--space-sm);
}

@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */

.footer {
  padding: var(--space-2xl) 0;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}

.footer-inner {
  text-align: center;
  max-width: 480px;
  margin: 0 auto;
}

.footer .logo {
  display: inline-block;
  margin-bottom: var(--space-sm);
}

.footer .logo img {
  height: 120px;
  max-width: 740px;
  object-fit: contain;
  object-position: center;
  mix-blend-mode: screen;
}

.footer-tagline {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  letter-spacing: 0.02em;
}

.footer-meta {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.footer-meta a {
  font-weight: 500;
}

.footer-contact {
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.footer-contact a {
  font-weight: 500;
}

.footer-address {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.5;
}

.footer-instagram {
  display: inline-block;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  transition: color var(--transition);
}

.footer-copy {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}
