/* ===== CSS Custom Properties ===== */
:root {
  --navy: #0f1b61;
  --navy-dark: #0a1245;
  --navy-light: #f0f1f8;
  --red: #c8102e;
  --red-dark: #a30d25;
  --red-light: #fdf0f2;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.2s ease;
  --max-width: 1140px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--gray-800);
  background: var(--white);
}

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

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

a:hover {
  color: var(--red);
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  color: var(--gray-900);
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 700; }
h3 { font-size: 1.5rem; font-weight: 600; }
h4 { font-size: 1.25rem; font-weight: 600; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.header-top {
  background: var(--gray-900);
  color: var(--white);
  padding: 6px 0;
  font-size: 0.8125rem;
}

.header-top .container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
}

.header-top a {
  color: var(--white);
  font-weight: 500;
}

.header-top a:hover {
  color: var(--gray-200);
}

.header-main {
  padding: 12px 0;
}

.header-main .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img {
  height: 50px;
  width: auto;
}

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

.nav a {
  padding: 8px 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--gray-800);
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.nav a:hover {
  color: var(--red);
  background: transparent;
}

.nav a.active {
  color: var(--navy);
  background: var(--navy-light);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--gray-800);
  margin: 6px 0;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -6px);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-bg-deli {
  background-image: url('/images/hero-deli.jpg');
  background-image: -webkit-image-set(
    url('/images/hero-deli.webp') type('image/webp'),
    url('/images/hero-deli.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('/images/hero-deli.webp') type('image/webp'),
    url('/images/hero-deli.jpg') type('image/jpeg')
  );
}

.hero-bg-produce {
  background-image: url('/images/hero-produce.jpg');
  background-image: -webkit-image-set(
    url('/images/hero-produce.webp') type('image/webp'),
    url('/images/hero-produce.jpg') type('image/jpeg')
  );
  background-image: image-set(
    url('/images/hero-produce.webp') type('image/webp'),
    url('/images/hero-produce.jpg') type('image/jpeg')
  );
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 27, 97, 0.75), rgba(17, 24, 39, 0.55));
  z-index: -1;
}

.hero-content {
  max-width: 700px;
  padding: 48px 24px;
}

.hero h1 {
  color: var(--white);
  font-size: 2.5rem;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 28px;
  opacity: 0.95;
  line-height: 1.7;
}

.hero-small {
  min-height: 30vh;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-size: 0.9375rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  letter-spacing: 0.01em;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-primary {
  background: var(--red);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--red-dark);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--gray-100);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid var(--white);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-lg {
  padding: 14px 36px;
  font-size: 1rem;
}

/* ===== Sections ===== */
.section {
  padding: 80px 0;
}

.section-gray {
  background: var(--gray-50);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
}

.section-navy h2,
.section-navy h3,
.section-navy h4 {
  color: var(--white);
}

.section-red {
  background: var(--gray-900);
  color: var(--gray-200);
}

.section-red h2,
.section-red h3,
.section-red h4 {
  color: var(--white);
}

.section-red .service-card {
  background: var(--white);
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 650px;
  margin: 0 auto;
}

.section-navy .section-header p,
.section-red .section-header p {
  color: rgba(255, 255, 255, 0.7);
}

/* ===== Services Grid ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.service-card {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}

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

.service-card .icon {
  width: 52px;
  height: 52px;
  background: var(--navy-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.4rem;
  color: var(--navy);
}

.service-card h4 {
  margin-bottom: 10px;
  color: var(--navy);
}

.service-card p {
  font-size: 0.9375rem;
  color: var(--gray-600);
}

/* ===== Two-Column Layout ===== */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.two-col-text h2 {
  margin-bottom: 20px;
}

.two-col-text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

.two-col-text .btn {
  margin-top: 12px;
}

.two-col-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ===== CTA Banner ===== */
.cta-banner {
  background: var(--navy);
  color: var(--white);
  text-align: center;
  padding: 60px 24px;
}

.cta-banner h2 {
  color: var(--white);
  margin-bottom: 12px;
  font-size: 2rem;
}

.cta-banner p {
  font-size: 1.2rem;
  margin-bottom: 28px;
  opacity: 0.9;
}

.cta-banner .phone-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  display: block;
  margin-bottom: 24px;
}

.cta-banner .phone-number:hover {
  color: var(--gray-200);
}

/* ===== Contact Info ===== */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.contact-item .contact-icon {
  width: 42px;
  height: 42px;
  background: var(--navy-light);
  color: var(--navy);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item h4 {
  margin-bottom: 4px;
  font-size: 1rem;
}

.contact-item p,
.contact-item a {
  color: var(--gray-600);
  font-size: 0.9375rem;
}

/* ===== Forms ===== */
.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-800);
}

.form-group input,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(3, 5, 114, 0.1);
}

.form-group input.error,
.form-group textarea.error {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(219, 0, 22, 0.1);
}

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

.form .btn {
  align-self: flex-start;
}

.form-message {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  display: none;
}

.form-message.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-message.error-msg {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* ===== Partners ===== */
.partners-section .partners-image {
  max-width: 500px;
  margin: 0 auto;
}

.partners-list {
  text-align: center;
  font-size: 1rem;
  color: var(--gray-600);
  margin-top: 20px;
  line-height: 2;
}

/* ===== Map ===== */
.map-container {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.map-container {
  margin-top: 32px;
}

.map-container iframe {
  width: 100%;
  height: 350px;
  border: 0;
}

/* ===== Contact CTA Card ===== */
.contact-cta-card {
  background: var(--navy-light);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 48px 36px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.contact-cta-card h2,
.contact-cta-card h3 {
  margin-bottom: 16px;
}

.contact-cta-card p {
  color: var(--gray-600);
  margin-bottom: 28px;
  max-width: 400px;
  font-size: 1.05rem;
}

/* ===== Apply / Careers Page ===== */
.careers-redirect {
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 24px;
}

.careers-redirect h2 {
  margin-bottom: 20px;
}

.careers-redirect p {
  font-size: 1.1rem;
  color: var(--gray-600);
  margin-bottom: 32px;
}

/* ===== Footer ===== */
.footer {
  background: var(--gray-900);
  color: rgba(255, 255, 255, 0.75);
  padding: 60px 0 30px;
}

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

.footer h4 {
  color: var(--white);
  margin-bottom: 16px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer p {
  font-size: 0.9375rem;
  line-height: 1.8;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--white);
}

.footer p a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition);
}

.footer p a:hover {
  color: var(--white);
}

.footer-grid p + p {
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

/* ===== About Section (Home) ===== */
.two-col-text h2 ~ h2 {
  margin-top: 32px;
}

.about-text h2 {
  margin-bottom: 20px;
}

.about-text p {
  margin-bottom: 16px;
  color: var(--gray-600);
}

/* ===== Tech Features ===== */
.tech-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.tech-feature {
  text-align: center;
  padding: 24px;
}

.tech-feature .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.tech-feature h4 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.tech-feature p {
  font-size: 0.875rem;
  opacity: 0.85;
}

/* ===== 404 Page ===== */
.section-centered {
  min-height: 50vh;
  display: flex;
  align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.75rem; }
  .hero h1 { font-size: 2.5rem; }
  .section { padding: 60px 0; }
  .two-col { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--shadow-md);
    gap: 4px;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    width: 100%;
    text-align: center;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: block;
  }

  .hero { min-height: 40vh; }
  .hero h1 { font-size: 1.75rem; }
  .hero p { font-size: 0.95rem; }
  .hero-small { min-height: 25vh; }

  .two-col {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .two-col-image {
    order: -1;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .section { padding: 50px 0; }

  .cta-banner .phone-number {
    font-size: 1.5rem;
  }

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

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

  .hero h1 { font-size: 1.75rem; }

  .btn-lg {
    padding: 14px 28px;
    font-size: 1rem;
  }
}
