/* =============================================
   Catering by Matilda & Family — Stylesheet
   Colors from logo: #C52030 (red), #1A1A1A (dark), #FFFFFF (white)
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&family=Lato:wght@300;400;700&display=swap');

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

:root {
  --red:       #C52030;
  --red-dark:  #8B1520;
  --red-light: #E8384A;
  --black:     #1A1A1A;
  --gray:      #6B6B6B;
  --gray-light:#D4D4D4;
  --cream:     #FAF7F4;
  --white:     #FFFFFF;
  --nav-h:     80px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Lato', sans-serif;
  color: var(--black);
  background: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', Georgia, serif;
  line-height: 1.2;
}

img { display: block; max-width: 100%; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ─── Utility ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  color: var(--black);
  margin-bottom: 20px;
}

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

.divider {
  width: 56px;
  height: 3px;
  background: var(--red);
  margin: 20px 0 32px;
}

.btn {
  display: inline-block;
  padding: 14px 36px;
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: 2px;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  border-color: var(--red);
}
.btn-primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(197,32,48,0.35);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: var(--white);
}
.btn-outline:hover {
  background: var(--white);
  color: var(--red);
  transform: translateY(-2px);
}

/* ─── Navigation ─── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 54px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav-links a {
  font-family: 'Lato', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--black);
  position: relative;
  transition: color 0.2s;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--red);
  transition: width 0.3s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--red); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-links .btn {
  padding: 10px 24px;
  font-size: 0.78rem;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  background: none;
  border: none;
}
.hamburger span {
  display: block;
  width: 26px; height: 2px;
  background: var(--black);
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--white);
  border-top: 2px solid var(--red);
  padding: 32px 24px;
  z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.mobile-nav.open { display: flex; flex-direction: column; gap: 24px; }
.mobile-nav a {
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
  transition: color 0.2s;
}
.mobile-nav a:hover, .mobile-nav a.active { color: var(--red); }

/* ─── Page offset for fixed nav ─── */
main { padding-top: var(--nav-h); }

/* ─────────────────────────────────────
   HOME PAGE
───────────────────────────────────── */

/* Hero */
.hero {
  position: relative;
  height: calc(100vh - var(--nav-h));
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--black);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a0507 0%, #2d0c10 40%, #1a0507 100%);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(197,32,48,0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(197,32,48,0.1) 0%, transparent 40%);
}

.hero-content {
  position: relative;
  text-align: center;
  color: var(--white);
  max-width: 820px;
  padding: 40px 24px;
}

.hero-eyebrow {
  font-family: 'Lato', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.65);
  margin-bottom: 20px;
}

.hero-logo {
  width: 140px;
  height: auto;
  margin: 0 auto 32px;
  filter: brightness(1.1);
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 300;
  color: var(--white);
  margin-bottom: 8px;
}

.hero h1 strong {
  font-weight: 600;
  color: var(--red-light);
  display: block;
}

.hero-tagline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  font-style: italic;
  color: rgba(255,255,255,0.75);
  margin: 24px 0 40px;
}

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--red);
  margin: 0 auto 32px;
}

.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  animation: bounce 2.5s infinite;
}
.scroll-indicator svg { width: 20px; height: 20px; }

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* Welcome strip */
.welcome-strip {
  background: var(--red);
  color: var(--white);
  text-align: center;
  padding: 18px 24px;
}
.welcome-strip p {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.15rem;
  font-style: italic;
  letter-spacing: 0.03em;
}

/* Services section */
.services {
  padding: 96px 0;
  background: var(--white);
}

.services-header {
  text-align: center;
  margin-bottom: 64px;
}
.services-header .divider { margin: 20px auto 0; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 40px;
}

.service-card {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid var(--gray-light);
  border-top: 4px solid var(--red);
  transition: box-shadow 0.3s, transform 0.3s;
}
.service-card:hover {
  box-shadow: 0 16px 48px rgba(0,0,0,0.1);
  transform: translateY(-4px);
}

.service-icon {
  width: 64px; height: 64px;
  margin: 0 auto 24px;
  background: rgba(197,32,48,0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.service-icon svg { width: 28px; height: 28px; stroke: var(--red); fill: none; }

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.75;
}

/* Home gallery strip */
.home-gallery {
  padding: 80px 0;
  background: var(--cream);
}
.home-gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 16px;
}

.gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.gallery-strip-item {
  aspect-ratio: 1;
  overflow: hidden;
}
.gallery-strip-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-strip-item:hover img { transform: scale(1.07); }

/* CTA Banner */
.cta-banner {
  background: var(--black);
  padding: 88px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(197,32,48,0.2) 0%, transparent 70%);
}
.cta-banner-content { position: relative; }
.cta-banner h2 {
  color: var(--white);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  margin-bottom: 16px;
}
.cta-banner p {
  color: rgba(255,255,255,0.65);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 40px;
}

/* ─────────────────────────────────────
   ABOUT PAGE
───────────────────────────────────── */

.page-hero {
  height: 360px;
  background: linear-gradient(135deg, #1a0507 0%, #3d0f15 60%, #1a0507 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(197,32,48,0.2) 0%, transparent 65%);
}
.page-hero-content { position: relative; color: var(--white); }
.page-hero-content .section-label { color: rgba(255,255,255,0.6); }
.page-hero h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 500;
  color: var(--white);
}

.about-section {
  padding: 96px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.about-text .section-title { margin-bottom: 8px; }
.about-text p {
  font-size: 1rem;
  color: #444;
  line-height: 1.9;
  margin-bottom: 20px;
}
.about-text p:last-of-type { margin-bottom: 0; }

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 12px;
}

.about-img-main {
  grid-column: 1 / -1;
  aspect-ratio: 16/9;
  overflow: hidden;
  border-top: 4px solid var(--red);
}
.about-img-main img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-main:hover img { transform: scale(1.04); }

.about-img-side {
  aspect-ratio: 4/5;
  overflow: hidden;
}
.about-img-side img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.about-img-side:hover img { transform: scale(1.04); }

.mission-strip {
  background: var(--cream);
  padding: 72px 0;
  text-align: center;
}
.mission-strip blockquote {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-style: italic;
  color: var(--black);
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.5;
}
.mission-strip blockquote cite {
  display: block;
  margin-top: 24px;
  font-family: 'Lato', sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--red);
}

/* ─────────────────────────────────────
   GALLERY PAGE
───────────────────────────────────── */

.gallery-section {
  padding: 80px 0 96px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 4/3;
  background: var(--black);
}

.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, opacity 0.3s;
}

.gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(197,32,48,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-overlay svg {
  width: 40px; height: 40px;
  stroke: var(--white); fill: none;
}
.gallery-item:hover .gallery-overlay { opacity: 1; }
.gallery-item:hover img { transform: scale(1.06); opacity: 0.85; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0,0,0,0.94);
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }

.lightbox-content {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
}
.lightbox-content img {
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
  border: 2px solid rgba(197,32,48,0.4);
}

.lightbox-close {
  position: absolute;
  top: -44px; right: 0;
  background: none; border: none;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.lightbox-close:hover { color: var(--red-light); }

.lightbox-nav {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: var(--white);
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  font-size: 1.4rem;
}
.lightbox-nav:hover { background: var(--red); }
.lightbox-prev { left: -64px; }
.lightbox-next { right: -64px; }

/* ─────────────────────────────────────
   INQUIRIES PAGE
───────────────────────────────────── */

.inquiries-section {
  padding: 80px 0 96px;
  background: var(--cream);
}

.inquiries-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  align-items: start;
}

.inquiries-info h2 {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.inquiries-info p {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.8;
  margin-bottom: 32px;
}

.contact-detail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail svg {
  width: 20px; height: 20px;
  stroke: var(--red); fill: none;
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-detail span {
  font-size: 0.93rem;
  color: var(--black);
  font-weight: 400;
}
.contact-detail a { color: var(--red); }
.contact-detail a:hover { text-decoration: underline; }

.form-card {
  background: var(--white);
  padding: 48px;
  border-top: 4px solid var(--red);
  box-shadow: 0 8px 40px rgba(0,0,0,0.07);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }

.form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--black);
}
.form-group label .req { color: var(--red); margin-left: 3px; }

.form-group input,
.form-group select,
.form-group textarea {
  padding: 13px 16px;
  border: 1.5px solid var(--gray-light);
  background: var(--white);
  font-family: 'Lato', sans-serif;
  font-size: 0.95rem;
  color: var(--black);
  border-radius: 2px;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
  appearance: none;
  -webkit-appearance: none;
}
.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B6B6B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197,32,48,0.1);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(197,32,48,0.15);
}

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

.error-msg {
  font-size: 0.78rem;
  color: var(--red);
  display: none;
  margin-top: 2px;
}
.error-msg.show { display: block; }

.form-note {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 28px;
  margin-top: 4px;
}

.form-submit-wrap { text-align: right; margin-top: 8px; }
.form-submit-wrap .btn { width: 100%; text-align: center; }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 32px;
}
.form-success.show { display: block; }
.form-success svg {
  width: 56px; height: 56px;
  stroke: var(--red); fill: none;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}
.form-success p { color: var(--gray); }

/* ─── Footer ─── */
.footer {
  background: var(--black);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 52px;
  margin-bottom: 20px;
  filter: brightness(1.2);
}
.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: rgba(255,255,255,0.55);
  max-width: 300px;
}

.footer-col h4 {
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 20px;
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--red-light); }

.footer-col p {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.8;
}
.footer-col a { color: rgba(255,255,255,0.55); transition: color 0.2s; }
.footer-col a:hover { color: var(--red-light); }

.footer-social-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  font-size: 0.9rem;
}
.footer-social-link svg { flex-shrink: 0; opacity: 0.7; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.4); }
.footer-bottom .red { color: var(--red-light); }

/* ─── Animations ─── */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .inquiries-layout { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .lightbox-prev { left: -46px; }
  .lightbox-next { right: -46px; }
}

@media (max-width: 680px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 32px 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); }
  .home-gallery-header { flex-direction: column; align-items: flex-start; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
}
