/* =============================================
   Eat On Catering — Bates City, MO
   Confident corporate · Charcoal + Coral
   ============================================= */

/* ---------- RESET ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #faf9f7;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }
input, select, textarea { font: inherit; }

/* ---------- SKIP LINK ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: #1a1a1a;
  color: #fff;
  padding: .5rem 1rem;
  border-radius: 0 0 6px 6px;
  z-index: 200;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ---------- CUSTOM PROPERTIES ---------- */
:root {
  --charcoal:    #1a1a1a;
  --charcoal-lt: #2e2e2e;
  --warm-gray:   #3d3d3d;
  --mid-gray:    #6b6b6b;
  --light-gray:  #e8e6e3;
  --off-white:   #faf9f7;
  --cream:       #f3f0ec;
  --coral:       #FF6B4A;
  --coral-dark:  #e5553a;
  --coral-light: #ff8a72;
  --white:       #ffffff;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius:      8px;
  --radius-lg:   12px;
  --shadow-sm:   0 1px 3px rgba(0,0,0,.08);
  --shadow-md:   0 4px 20px rgba(0,0,0,.10);
  --shadow-lg:   0 8px 40px rgba(0,0,0,.14);
  --transition:  .25s ease;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; color: var(--charcoal); }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
p { color: var(--warm-gray); }

/* ---------- LAYOUT ---------- */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.grid { display: grid; gap: 2rem; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: 1fr 1fr; }

@media (max-width: 900px) {
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid--3 { grid-template-columns: 1fr; }
}

/* ---------- SECTION HEADER ---------- */
.section__header { max-width: 680px; margin-bottom: 3.5rem; }
.section__eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: .75rem;
}
.section__title { margin-bottom: .75rem; }
.section__sub { font-size: 1.05rem; color: var(--mid-gray); line-height: 1.7; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 600;
  font-size: .9375rem;
  padding: .8125rem 1.75rem;
  border-radius: var(--radius);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(255,107,74,.35);
}
.btn--primary:hover { background: var(--coral-dark); box-shadow: 0 6px 20px rgba(255,107,74,.45); }
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn--outline:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--white {
  background: var(--white);
  color: var(--charcoal);
}
.btn--white:hover { background: var(--cream); box-shadow: var(--shadow-md); }
.btn--full { width: 100%; justify-content: center; }

/* ---------- NAV ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(26,26,26,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background var(--transition);
}
.nav__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav__brand {
  display: flex;
  align-items: baseline;
  gap: .35rem;
  flex-shrink: 0;
}
.nav__logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--white);
}
.nav__tag {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
}
.nav__links {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex: 1;
}
.nav__links a {
  color: rgba(255,255,255,.75);
  font-size: .875rem;
  font-weight: 500;
  padding: .375rem .75rem;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.08); }
.nav__cta {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--coral);
  font-size: .875rem;
  font-weight: 600;
  padding: .5rem 1rem;
  border: 1.5px solid var(--coral);
  border-radius: var(--radius);
  transition: background var(--transition), color var(--transition);
  flex-shrink: 0;
}
.nav__cta:hover { background: var(--coral); color: var(--white); }
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: .5rem;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}
.overlay.active { opacity: 1; pointer-events: all; }

@media (max-width: 860px) {
  .nav__links {
    position: fixed;
    top: 68px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--charcoal);
    flex-direction: column;
    align-items: stretch;
    padding: 2rem 1.5rem;
    gap: .25rem;
    transform: translateX(100%);
    transition: transform .35s cubic-bezier(.4,0,.2,1);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links a { font-size: 1.1rem; padding: .75rem .5rem; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--charcoal);
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,.88) 0%, rgba(26,26,26,.60) 50%, rgba(26,26,26,.40) 100%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8rem 1.5rem 4rem;
  width: 100%;
}
.hero__eyebrow {
  display: inline-block;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: 1.25rem;
  padding: .375rem .875rem;
  background: rgba(255,107,74,.15);
  border: 1px solid rgba(255,107,74,.3);
  border-radius: 50px;
}
.hero__headline {
  color: var(--white);
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.05;
  margin-bottom: 1.5rem;
  max-width: 800px;
}
.hero__accent { color: var(--coral); }
.hero__sub {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 2.25rem;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.5);
  animation: bobble 2s ease-in-out infinite;
}
@keyframes bobble {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ---------- SERVICES ---------- */
.services {
  padding: 6rem 0;
  background: var(--off-white);
}
.card {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--coral);
}
.card__icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,74,.1);
  border-radius: var(--radius);
  color: var(--coral);
  margin-bottom: 1.25rem;
}
.card__title { margin-bottom: .625rem; }
.card__body { font-size: .9375rem; color: var(--mid-gray); line-height: 1.7; }

/* ---------- ABOUT ---------- */
.about {
  padding: 6rem 0;
  background: var(--white);
}
.about__images { position: relative; }
.about__img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.about__img-main img { width: 100%; height: 100%; object-fit: cover; }
.about__img-stack {
  position: absolute;
  bottom: -2rem;
  right: -1rem;
  display: flex;
  gap: .75rem;
}
.about__img-stack img {
  width: 55%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--white);
  object-fit: cover;
}
.about__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 3rem;
}
.about__content p { margin-bottom: 1rem; line-height: 1.75; }
.about__stats {
  display: flex;
  gap: 2.5rem;
  margin: 2rem 0 2.25rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--light-gray);
  border-bottom: 1px solid var(--light-gray);
}
.stat__number {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1;
  margin-bottom: .375rem;
}
.stat__number .stat__unit { font-size: 1rem; color: var(--coral); font-family: var(--font-body); }
.stat__label { font-size: .8125rem; color: var(--mid-gray); text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }

@media (max-width: 900px) {
  .about__content { padding-left: 0; padding-top: 3rem; }
  .about__img-stack { position: relative; bottom: auto; right: auto; margin-top: .75rem; }
  .about__img-stack img { width: 48%; }
}

/* ---------- GALLERY ---------- */
.gallery {
  padding: 6rem 0;
  background: var(--off-white);
}
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 1rem;
}
.gallery__item {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4/3;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16/9; }
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.gallery__item:hover img { transform: scale(1.05); }

@media (max-width: 640px) {
  .gallery__grid { grid-template-columns: 1fr; }
  .gallery__item--wide { grid-column: span 1; }
}

/* ---------- TESTIMONIALS ---------- */
.testimonials {
  padding: 6rem 0;
  background: var(--charcoal);
}
.testimonials .section__header { margin-left: auto; margin-right: auto; }
.testimonials .section__title { color: var(--white); }
.testimonials .section__sub { color: rgba(255,255,255,.6); }
.testimonial {
  background: var(--charcoal-lt);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: border-color var(--transition);
}
.testimonial:hover { border-color: var(--coral); }
.testimonial__quote { color: var(--coral); opacity: .6; flex-shrink: 0; }
.testimonial__body {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,.82);
  flex: 1;
}
.testimonial__footer { margin-top: auto; }
.testimonial__author {
  font-size: .875rem;
  font-weight: 600;
  color: var(--coral);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 6rem 0;
  overflow: hidden;
}
.cta__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cta__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,26,26,.92) 0%, rgba(26,26,26,.72) 100%);
}
.cta__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
}
.cta__content .section__title { color: var(--white); margin-bottom: 1rem; }
.cta__sub { font-size: 1.05rem; color: rgba(255,255,255,.72); margin-bottom: 2rem; line-height: 1.7; }
.cta__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 1rem; }

/* ---------- CONTACT ---------- */
.contact {
  padding: 6rem 0;
  background: var(--off-white);
}
.contact__body { font-size: 1.05rem; line-height: 1.75; margin-bottom: 2rem; }
.contact__details { display: flex; flex-direction: column; gap: 1.25rem; }
.contact__detail { display: flex; align-items: flex-start; gap: .875rem; }
.contact__detail dt {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,107,74,.1);
  border-radius: var(--radius);
  color: var(--coral);
}
.contact__detail dd {
  font-size: .9375rem;
  color: var(--warm-gray);
  line-height: 1.6;
  padding-top: .3rem;
}
.contact__detail a { color: var(--coral); font-weight: 600; transition: color var(--transition); }
.contact__detail a:hover { color: var(--coral-dark); }

/* ---------- FORM ---------- */
.contact__form {
  background: var(--white);
  border: 1px solid var(--light-gray);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow-md);
}
.form__group { margin-bottom: 1.25rem; }
.form__group label {
  display: block;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: .375rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.form__group input,
.form__group select,
.form__group textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1.5px solid var(--light-gray);
  border-radius: var(--radius);
  background: var(--off-white);
  color: var(--charcoal);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255,107,74,.15);
}
.form__group input::placeholder,
.form__group textarea::placeholder { color: var(--mid-gray); opacity: .6; }
.form__success {
  display: flex;
  align-items: center;
  gap: .625rem;
  margin-top: 1rem;
  padding: .875rem 1rem;
  background: rgba(255,107,74,.08);
  border: 1px solid rgba(255,107,74,.25);
  border-radius: var(--radius);
  color: var(--coral-dark);
  font-weight: 500;
  font-size: .9375rem;
}
.form__success svg { flex-shrink: 0; color: var(--coral); }

/* ---------- FOOTER ---------- */
.footer {
  background: var(--charcoal);
  padding: 4rem 0 0;
}
.footer__top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer__brand p { color: rgba(255,255,255,.5); font-size: .9rem; margin-top: .75rem; line-height: 1.7; max-width: 280px; }
.footer__nav { display: flex; flex-direction: column; gap: .5rem; }
.footer__nav a {
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  padding: .25rem 0;
  transition: color var(--transition);
}
.footer__nav a:hover { color: var(--coral); }
.footer__contact { display: flex; flex-direction: column; gap: .75rem; }
.footer__contact p {
  display: flex;
  align-items: center;
  gap: .5rem;
  color: rgba(255,255,255,.55);
  font-size: .875rem;
}
.footer__contact a { color: var(--coral); font-weight: 600; transition: color var(--transition); }
.footer__contact a:hover { color: var(--coral-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 0;
  font-size: .8125rem;
  color: rgba(255,255,255,.35);
}

@media (max-width: 768px) {
  .footer__top { grid-template-columns: 1fr; gap: 2rem; }
  .footer__bottom { flex-direction: column; gap: .5rem; text-align: center; }
}

/* ---------- SCROLL REVEAL (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .6s ease, transform .6s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: translateY(0);
  }
}
/* If JS doesn't run, content stays visible (default opacity 1 is not set — see script.js for JS-only class addition) */
