/* ============================================================
   Jerusalem Catering — styles.css
   Colors: Navy #0B162A · Orange #E64100 · Cream #FAF7F2
   Fonts: Playfair Display (headings) · Inter (body/UI)
   ============================================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: #FAF7F2;
  color: #1A1A1A;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* ---------- CSS Variables ---------- */
:root {
  --navy:   #0B162A;
  --orange: #E64100;
  --cream:  #FAF7F2;
  --dark:   #1A1A1A;
  --border: #E8E0D5;
  --shadow: 0 4px 24px rgba(11,31,65,0.10);
}

/* ---------- Typography ---------- */
h1, h2, h3 {
  font-family: 'Playfair Display', serif;
  line-height: 1.2;
}

/* ---------- Utility Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  padding: 0.75rem 1.75rem;
  border-radius: 4px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--orange);
  color: var(--cream);
  border-color: var(--orange);
}
.btn-primary:hover {
  background: #a83003;
  border-color: #a83003;
  color: var(--cream);
}

.btn-outline {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
}
.btn-outline:hover {
  background: var(--cream);
  color: var(--navy);
}

.btn-outline-light {
  background: transparent;
  color: var(--cream);
  border-color: rgba(250,247,242,0.55);
  margin-top: 0.5rem;
}
.btn-outline-light:hover {
  background: rgba(250,247,242,0.12);
  border-color: var(--cream);
  color: var(--cream);
}

.btn-large {
  font-size: 1.05rem;
  padding: 0.9rem 2rem;
  width: 100%;
  justify-content: center;
}

.btn-submit {
  margin-top: 0.5rem;
  width: fit-content;
}

/* ---------- Section containers ---------- */
.section-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 2.5rem;
  position: relative;
  padding-bottom: 1rem;
}

.section-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: var(--orange);
  border-radius: 2px;
}

.section-heading.light { color: var(--cream); }
.section-heading.dark  { color: var(--navy); }


/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(11,31,65,0.07);
}

.nav-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo img {
  height: 32px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-links a {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  letter-spacing: 0.01em;
  transition: color 0.18s ease;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

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

.nav-links .nav-cta {
  background: var(--orange);
  color: var(--cream);
  padding: 0.45rem 1.2rem;
  border-radius: 4px;
  border-bottom: none;
  font-weight: 600;
  font-size: 0.875rem;
}

.nav-links .nav-cta:hover {
  background: #a83003;
  color: var(--cream);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  width: 36px;
  height: 36px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 80px 80px;
}

/* subtle diagonal texture */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    -45deg,
    rgba(255,255,255,0.012) 0px,
    rgba(255,255,255,0.012) 1px,
    transparent 1px,
    transparent 12px
  );
  pointer-events: none;
}

.hero-inner {
  max-width: 1160px;
  width: 100%;
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 3.5rem;
  align-items: center;
  position: relative;
}

.hero-text {
  text-align: left;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 1.25rem;
}

.hero-headline {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  color: var(--cream);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

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

.hero-sub {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  color: rgba(250,247,242,0.78);
  margin-bottom: 2.5rem;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-start;
}

.hero-photo {
  height: 380px;
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: block;
}


/* ============================================================
   ABOUT & SERVICES
   ============================================================ */
.about {
  background: var(--navy);
}

.about-intro {
  color: rgba(250,247,242,0.85);
  font-size: 1.05rem;
  max-width: 820px;
  margin-bottom: 3.5rem;
  line-height: 1.8;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.service-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2rem 1.5rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-icon {
  color: var(--orange);
  margin-bottom: 1.1rem;
}

.service-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.65rem;
}

.service-card p {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.65;
}


/* ============================================================
   MENU + PHOTOS
   ============================================================ */
.menu-section {
  background: var(--cream);
}

.menu-layout {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 3rem;
  align-items: start;
}

/* Menu Card */
.menu-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 2.25rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 88px;
}

.menu-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.menu-card > p {
  font-size: 0.92rem;
  color: #555;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.menu-note {
  font-size: 0.8rem;
  color: #888;
  margin-top: 1rem;
  text-align: center;
}

.menu-contacts {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
}

.menu-contact-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.18s ease;
}

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

.contact-icon {
  font-size: 1rem;
  flex-shrink: 0;
}

/* Photo Grid */
.photo-grid {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.photo-row {
  display: grid;
  gap: 0.6rem;
}

/* Row 1: food-1 (554px square) + food-2 (1194px wide) → ratio ~1:2.15 */
.row-2 {
  grid-template-columns: 1fr 2fr;
}

/* Row 2: 3 equal squares */
.row-3 {
  grid-template-columns: 1fr 1fr 1fr;
}

/* Row 3: food-6 (1194px wide) + food-7 (554px square) → ratio ~2.15:1 */
.row-2-rev {
  grid-template-columns: 2fr 1fr;
}

.photo-row {
  height: 300px;
}

.photo-wrap {
  overflow: hidden;
  border-radius: 6px;
  height: 100%;
}

.photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.photo-wrap:hover img {
  transform: scale(1.05);
}


/* ============================================================
   KOSHER CERT
   ============================================================ */
.kosher {
  background: var(--navy);
}

.kosher-layout {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4rem;
  align-items: center;
}

.kosher-seal-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kosher-seal {
  width: 220px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 0 0 6px rgba(250,247,242,0.12), 0 0 0 10px rgba(250,247,242,0.06);
  background: rgba(250,247,242,0.06);
  padding: 12px;
}

.kosher-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.9rem;
  color: var(--cream);
  margin-bottom: 1rem;
}

.kosher-text p {
  color: rgba(250,247,242,0.82);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 0.75rem;
}

.kosher-text strong {
  color: var(--cream);
}

.kosher-subheading {
  font-size: 1rem;
  color: rgba(250,247,242,0.65);
  margin-top: -1.75rem;
  margin-bottom: 2.5rem;
}

.cert-note {
  font-size: 0.82rem !important;
  color: rgba(250,247,242,0.55) !important;
  margin-top: 0.25rem;
}


/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  background: var(--cream);
}

.contact-info-row {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 3rem;
}

.contact-info-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  transition: color 0.18s ease;
}

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

/* Form */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.form-group label span {
  color: var(--orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: var(--dark);
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  outline: none;
  width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #aaa;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(11,31,65,0.08);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%230B1F41' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  padding-right: 2.2rem;
  cursor: pointer;
}

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

/* Formspree error messages */
.fs-global-error:not(:empty) {
  color: #c0392b;
  font-size: 0.88rem;
  margin-bottom: 1rem;
}

.fs-field-error:not(:empty) {
  color: #c0392b;
  font-size: 0.78rem;
  margin-top: 0.25rem;
}

/* Thank-you card */
.contact-thankyou {
  margin-top: 2rem;
}

.thankyou-card {
  background: var(--navy);
  color: var(--cream);
  border-radius: 10px;
  padding: 2.5rem;
  text-align: center;
  max-width: 480px;
}

.thankyou-icon {
  width: 52px;
  height: 52px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  margin: 0 auto 1rem;
}

.thankyou-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--cream);
}

.thankyou-card p {
  font-size: 0.95rem;
  color: rgba(250,247,242,0.8);
  line-height: 1.65;
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--navy);
  color: var(--cream);
}

.footer-container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 2.5rem 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(250,247,242,0.1);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-col {
  color: rgba(250,247,242,0.75);
}

.footer-tagline {
  font-size: 0.8rem;
  color: rgba(250,247,242,0.55);
}

.footer-center {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,247,242,0.55);
  padding-top: calc(32px + 0.4rem);
}

.footer-right {
  text-align: right;
  font-size: 0.8rem;
  color: rgba(250,247,242,0.55);
  padding-top: calc(32px + 0.4rem);
}

.footer-bottom {
  padding-top: 1.1rem;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(250,247,242,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: rgba(250,247,242,0.65);
  transition: color 0.18s ease;
}

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


/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}


/* ============================================================
   RESPONSIVE — Tablet (≤ 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .menu-layout {
    grid-template-columns: 1fr;
  }

  .menu-card {
    position: static;
  }

  .kosher-layout {
    gap: 2.5rem;
  }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-right {
    text-align: center;
  }
}


/* ============================================================
   RESPONSIVE — Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {

  /* Nav */
  .nav-hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.5rem 0 1rem;
    box-shadow: 0 4px 16px rgba(11,31,65,0.12);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-bottom: none;
  }

  .nav-links .nav-cta {
    margin: 0.5rem 2rem 0;
    padding: 0.6rem 1.2rem;
    display: inline-block;
    width: auto;
  }

  /* Hero */
  .hero {
    padding: 60px 32px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-headline {
    font-size: 2.2rem;
  }

  .hero-photo {
    display: none;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
  }

  /* Menu */
  .menu-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  /* Photo grid: collapse to 2-column */
  .photo-row {
    grid-template-columns: 1fr 1fr !important;
    height: 200px;
  }

  .row-3 .photo-wrap:last-child {
    grid-column: span 2;
  }

  /* Kosher */
  .kosher-layout {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .kosher-seal {
    width: 170px;
  }

  .section-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }

  /* Contact form */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Section padding */
  .section-container {
    padding: 3.5rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .photo-row {
    grid-template-columns: 1fr !important;
    height: 220px;
  }

  .row-3 .photo-wrap:last-child {
    grid-column: span 1;
  }

  .contact-info-row {
    flex-direction: column;
    gap: 1rem;
  }
}
