/* =========================================================
   Rico's Catering — styles.css
   Premium event hospitality. Cream / charcoal / terracotta / forest.
   ========================================================= */

:root {
  --bg-cream: #FAF7F2;
  --bg-cream-deep: #F4EFE6;
  --text-charcoal: #1F1B17;
  --text-soft: #4A433C;
  --accent-terracotta: #B6452C;
  --accent-terracotta-dark: #983617;
  --accent-forest: #2D4A3E;
  --detail-taupe: #A89882;
  --highlight-gold: #C9A961;
  --hairline: rgba(31, 27, 23, 0.12);
  --shadow-soft: 0 1px 2px rgba(31, 27, 23, 0.04), 0 8px 24px rgba(31, 27, 23, 0.06);
  --shadow-lift: 0 2px 6px rgba(31, 27, 23, 0.06), 0 18px 40px rgba(31, 27, 23, 0.10);

  --font-display: 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1200px;
  --container-narrow: 720px;
  --section-pad-y: clamp(80px, 11vw, 160px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-cream);
  color: var(--text-charcoal);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, picture, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { padding: 0; margin: 0; list-style: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Type scale ---------- */
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.1; margin: 0; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent-terracotta);
  margin: 0 0 18px;
}
.eyebrow--forest { color: var(--accent-forest); }
.eyebrow--light { color: rgba(250, 247, 242, 0.95); }

/* ---------- Layout helpers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: var(--container-narrow); }

.section { padding-top: var(--section-pad-y); padding-bottom: var(--section-pad-y); }
.section--alt { background: var(--bg-cream-deep); }
.section__title { font-size: clamp(32px, 4vw, 48px); margin-bottom: 56px; max-width: 18ch; }
.section__sub { color: var(--text-soft); max-width: 60ch; margin-bottom: 56px; font-size: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 28px;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  white-space: nowrap;
}
.btn--terracotta { background: var(--accent-terracotta); color: #FAF7F2; }
.btn--terracotta:hover { background: var(--accent-terracotta-dark); transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn--ghost-light { background: transparent; color: #FAF7F2; border-color: rgba(250, 247, 242, 0.5); }
.btn--ghost-light:hover { background: rgba(250, 247, 242, 0.08); border-color: rgba(250, 247, 242, 0.85); }
.btn--small { padding: 10px 18px; font-size: 14px; }
.btn--block { display: flex; width: 100%; }
.btn--large { padding: 20px 32px; font-size: 16px; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: transparent;
  transition: background 200ms ease, backdrop-filter 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.85);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--hairline);
}
.nav__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.nav__brand {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  color: #FAF7F2;
}
.nav.is-scrolled .nav__brand { color: var(--text-charcoal); }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  text-decoration: none;
  font-size: 14px; font-weight: 500;
  color: rgba(250, 247, 242, 0.92);
  transition: color 180ms ease;
}
.nav__links a:hover { color: #FAF7F2; }
.nav.is-scrolled .nav__links a { color: var(--text-charcoal); }
.nav.is-scrolled .nav__links a:hover { color: var(--accent-terracotta); }
.nav__links .btn { color: #FAF7F2; }

@media (max-width: 720px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  margin-top: -72px;
  padding-top: 72px;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  background-image: url('assets/images/hero-truck-event-golden-hour.jpg');
  background-size: cover;
  background-position: center 40%;
  z-index: -2;
  background-color: #2a221c; /* fallback while loading */
}
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(31,27,23,0.78) 0%, rgba(31,27,23,0.45) 45%, rgba(31,27,23,0.05) 80%);
  z-index: -1;
}
.hero__content {
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 80px 24px 96px;
  color: #FAF7F2;
}
.hero__title {
  font-size: clamp(40px, 7vw, 80px);
  line-height: 1.05;
  max-width: 14ch;
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 56ch;
  color: rgba(250, 247, 242, 0.92);
  margin-bottom: 36px;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; }

@media (max-width: 720px) {
  .hero { min-height: 88vh; }
  .hero__content { padding: 60px 24px 72px; }
}

/* ---------- Trust strip ---------- */
.trust { background: var(--bg-cream); border-bottom: 1px solid var(--hairline); }
.trust__row {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 22px 24px;
}
.trust__item {
  position: relative;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-soft);
  padding: 0 24px;
  text-align: center;
  flex: 1 1 220px;
}
.trust__item + .trust__item::before {
  content: '';
  position: absolute; left: 0; top: 50%;
  width: 1px; height: 22px;
  background: var(--hairline);
  transform: translateY(-50%);
}
@media (max-width: 720px) {
  .trust__item + .trust__item::before { display: none; }
  .trust__item { flex-basis: 100%; padding: 4px 0; }
}

/* ---------- Packages ---------- */
.packages {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 980px) { .packages { grid-template-columns: 1fr; gap: 28px; } }

.pkg {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms ease, box-shadow 240ms ease;
}
.pkg:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.pkg__photo {
  aspect-ratio: 16 / 10;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-cream-deep);
}
.pkg__body { padding: 32px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.pkg__title { font-size: 30px; }
.pkg__lead { color: var(--text-soft); }
.pkg__price {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-charcoal);
  margin: 4px 0 0;
}
.pkg__fineprint { font-size: 13px; color: var(--detail-taupe); margin: 0 0 8px; min-height: 1.6em; }
.pkg__list { display: flex; flex-direction: column; gap: 6px; }
.pkg__list li {
  position: relative;
  padding-left: 18px;
  font-size: 15px;
  color: var(--text-soft);
}
.pkg__list li::before {
  content: '';
  position: absolute; left: 0; top: 0.7em;
  width: 8px; height: 1px;
  background: var(--accent-terracotta);
}
.pkg__addons { font-size: 14px; color: var(--text-soft); margin: 8px 0 0; min-height: 1.5em; }
.pkg__addonsLabel { color: var(--accent-forest); font-weight: 500; }
.pkg .btn { margin-top: auto; }

/* ---------- Steps (How It Works) ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  counter-reset: step;
}
@media (max-width: 980px) { .steps { grid-template-columns: 1fr; gap: 28px; } }
.step {
  position: relative;
  padding: 32px 24px 28px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
}
.step__num {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--accent-terracotta);
  margin-bottom: 12px;
  line-height: 1;
}
.step__title { font-size: 22px; margin-bottom: 10px; }
.step__body { color: var(--text-soft); font-size: 15px; }

/* ---------- Why Rico's ---------- */
.why {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
@media (max-width: 980px) { .why { grid-template-columns: 1fr; gap: 32px; } }
.why__photo {
  background-size: cover;
  background-position: center;
  border-radius: 4px;
  min-height: 560px;
  background-color: var(--bg-cream-deep);
  box-shadow: var(--shadow-soft);
}
@media (max-width: 980px) { .why__photo { min-height: 420px; } }
.why__list { display: flex; flex-direction: column; gap: 36px; justify-content: center; }
.why__item { padding-left: 20px; border-left: 2px solid var(--accent-terracotta); }
.why__title { font-size: 26px; margin-bottom: 8px; }
.why__body { color: var(--text-soft); }

/* ---------- Gallery ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 16px;
}
.gallery__cell {
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  background-color: var(--bg-cream-deep);
  transition: transform 320ms ease;
}
.gallery__cell:hover { transform: scale(1.01); }
.gallery__cell--wide { grid-column: span 2; }

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery__cell--wide { grid-column: span 2; grid-row: span 1; }
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; }
.faq__item { border-top: 1px solid var(--hairline); }
.faq__item:last-child { border-bottom: 1px solid var(--hairline); }
.faq__q {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-charcoal);
  transition: color 160ms ease;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent-terracotta); }
.faq__icon {
  flex: 0 0 auto;
  font-family: var(--font-body);
  font-size: 22px;
  color: var(--accent-terracotta);
  transition: transform 220ms ease;
}
.faq__item[open] .faq__icon { transform: rotate(45deg); }
.faq__a { padding: 0 0 24px; color: var(--text-soft); max-width: 64ch; }
.faq__a a { color: var(--accent-terracotta); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Inquiry form ---------- */
.section--inquiry {
  background: linear-gradient(180deg, var(--bg-cream) 0%, #ffffff 100%);
}
.form { display: flex; flex-direction: column; gap: 24px; margin-top: 8px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.form__row:has(> *:nth-child(3)) { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 720px) { .form__row, .form__row:has(> *:nth-child(3)) { grid-template-columns: 1fr; gap: 18px; } }

.form__field { display: flex; flex-direction: column; gap: 8px; min-width: 0; border: 0; padding: 0; margin: 0; }
.form__group { gap: 14px; }
.form__label {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-charcoal);
  display: inline-flex; align-items: baseline; gap: 8px;
}
.form__hint {
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--detail-taupe);
  font-weight: 400;
}

.form input[type="text"],
.form input[type="tel"],
.form input[type="email"],
.form input[type="number"],
.form input[type="date"],
.form input[type="time"],
.form textarea {
  width: 100%;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  font-size: 16px;
  color: var(--text-charcoal);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(182, 69, 44, 0.12);
}
.form input[aria-invalid="true"],
.form textarea[aria-invalid="true"] {
  border-color: var(--accent-terracotta);
  box-shadow: 0 0 0 3px rgba(182, 69, 44, 0.12);
}

.form__choices { display: flex; flex-wrap: wrap; gap: 12px; }
.form__choices--stack { flex-direction: column; gap: 10px; }
.choice {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 2px;
  cursor: pointer;
  font-size: 15px;
  transition: border-color 160ms ease, background 160ms ease;
}
.choice:hover { border-color: var(--accent-terracotta); }
.choice input { accent-color: var(--accent-terracotta); }
.choice--check { padding: 14px 16px; }
.choice--check:has(input:checked) { border-color: var(--accent-terracotta); background: #fff7f3; }
.choice:has(input:checked) { border-color: var(--accent-terracotta); }

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  margin-left: auto;
}
.badge--gold { background: rgba(201, 169, 97, 0.18); color: #8b7228; border: 1px solid rgba(201, 169, 97, 0.5); }

.form__error {
  color: var(--accent-terracotta);
  font-size: 14px;
  margin: 0;
}

.form__thanks {
  margin-top: 8px;
  padding: 40px 32px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 4px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.form__thanks h3 { font-size: 32px; margin-bottom: 12px; color: var(--accent-forest); }
.form__thanks p { color: var(--text-soft); max-width: 52ch; margin: 0 auto 12px; }
.form__thanks a { color: var(--accent-terracotta); }

/* ---------- Footer ---------- */
.footer {
  background: var(--text-charcoal);
  color: rgba(250, 247, 242, 0.78);
  padding: 80px 0 32px;
  margin-top: 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 56px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(250, 247, 242, 0.12);
}
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr; gap: 36px; } }
.footer__brand {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #FAF7F2;
  margin: 0 0 12px;
}
.footer__tag { color: #FAF7F2; margin-bottom: 16px; }
.footer__mission { font-size: 14px; color: rgba(250, 247, 242, 0.7); max-width: 38ch; }
.footer__heading {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--highlight-gold);
  margin: 0 0 16px;
}
.footer__list { display: flex; flex-direction: column; gap: 10px; }
.footer__list a { text-decoration: none; transition: color 160ms ease; }
.footer__list a:hover { color: #FAF7F2; }
.footer__cities { font-size: 13px; color: rgba(250, 247, 242, 0.55); margin-top: 12px; }
.footer__bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 32px;
  font-size: 13px;
  color: rgba(250, 247, 242, 0.55);
  flex-wrap: wrap; gap: 16px;
}
.footer__social { display: flex; gap: 20px; }
.footer__social a { text-decoration: none; }
.footer__social a:hover { color: #FAF7F2; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }
