/* ============================================================
   SANDWICH DELIVERY SYSTEMS — Main Stylesheet
   Colors: light grey bg, green accents, dark text
   ============================================================ */

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

:root {
  --bg:          #f4f5f3;
  --bg-white:    #ffffff;
  --green:       #3a7d44;
  --green-light: #56a85f;
  --green-pale:  #e8f5e9;
  --green-mid:   #c8e6c9;
  --dark:        #1e2a1e;
  --text:        #2c3e2c;
  --text-muted:  #5a6e5a;
  --border:      #d0dbd0;
  --accent:      #2e6b38;
  --shadow:      rgba(58,125,68,0.10);
  --shadow-card: 0 2px 16px rgba(30,42,30,0.08);
  --radius:      10px;
  --radius-lg:   18px;
  --font-sans:   'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --nav-h:       64px;
}

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

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  min-height: 100vh;
}

img { max-width: 100%; height: auto; display: block; }
a  { color: var(--green); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; }

/* --- Typography --- */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  color: var(--dark);
  line-height: 1.25;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.1rem; }
p  { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* --- Layout Helpers --- */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 72px 0; }
.section-alt { background: var(--bg-white); }

/* --- Navigation --- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-white);
  border-bottom: 2px solid var(--green);
  height: var(--nav-h);
  box-shadow: 0 2px 12px var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--dark);
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-logo span { color: var(--green); }
.nav-logo svg { flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  transition: background 0.18s, color 0.18s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--green-pale);
  color: var(--green);
  text-decoration: none;
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: all 0.25s;
}

/* --- Breadcrumb --- */
.breadcrumb {
  background: var(--green-pale);
  border-bottom: 1px solid var(--green-mid);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--green); font-weight: 600; }
.breadcrumb span { margin: 0 6px; color: var(--green-light); }

/* --- Hero Section --- */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2e4d2e 60%, var(--green) 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2356a85f' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.hero-text h1 { color: #fff; margin-bottom: 20px; }
.hero-text .lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.65;
}
.hero-text .disclaimer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.80);
}
.hero-image-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0,0,0,0.35);
  border: 3px solid rgba(255,255,255,0.12);
}

/* --- Page Hero (inner pages) --- */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, #2a4a2a 100%);
  color: #fff;
  padding: 52px 0 44px;
}
.page-hero h1 { color: #fff; margin-bottom: 12px; }
.page-hero .subtitle {
  color: rgba(255,255,255,0.75);
  font-size: 1.05rem;
  max-width: 640px;
}

/* --- Cards --- */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(58,125,68,0.13); }
.card-body { padding: 28px; }
.card-icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
  color: var(--green);
  font-size: 1.5rem;
}
.card-title { margin-bottom: 10px; font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.93rem; }

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

/* --- Section Headers --- */
.section-header { margin-bottom: 48px; }
.section-header .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 10px;
}
.section-header h2 { margin-bottom: 14px; }
.section-header p { color: var(--text-muted); font-size: 1.05rem; max-width: 620px; }

/* --- Diagram Image Block --- */
.diagram-block {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 40px 0;
}
.diagram-block img { width: 100%; }
.diagram-caption {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.diagram-caption svg { flex-shrink: 0; color: var(--green); }

/* --- Process Steps --- */
.steps { display: flex; flex-direction: column; gap: 24px; }
.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-card);
}
.step-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  background: var(--green);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1rem;
}
.step-body h4 { margin-bottom: 6px; }
.step-body p  { color: var(--text-muted); font-size: 0.93rem; margin: 0; }

/* --- Info Box --- */
.info-box {
  background: var(--green-pale);
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px 24px;
  margin: 32px 0;
}
.info-box p { color: var(--text); font-size: 0.95rem; margin: 0; }
.info-box strong { color: var(--green); }

/* --- Disclaimer Box --- */
.disclaimer-box {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f9a825;
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 18px 22px;
  font-size: 0.88rem;
  color: #5a4e00;
  margin: 32px 0;
}

/* --- FAQ --- */
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 22px 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-q:hover { color: var(--green); }
.faq-q svg {
  flex-shrink: 0;
  transition: transform 0.25s;
  color: var(--green);
}
.faq-item.open .faq-q svg { transform: rotate(180deg); }
.faq-a {
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease, padding 0.25s;
  color: var(--text-muted);
  font-size: 0.97rem;
  line-height: 1.75;
}
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 22px; }

/* --- Contact Cards --- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.contact-card {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.contact-icon {
  width: 60px; height: 60px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
  color: var(--green);
}
.contact-card h3 { margin-bottom: 10px; font-size: 1rem; }
.contact-card p, .contact-card a { color: var(--text-muted); font-size: 0.95rem; }
.contact-card a:hover { color: var(--green); }

/* --- Stat Row --- */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background: var(--green);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 48px 0;
}
.stat-item {
  padding: 32px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.15);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  display: block;
  font-size: 2.2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.80);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* --- Table --- */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  margin: 32px 0;
}
.data-table th {
  background: var(--green);
  color: #fff;
  padding: 14px 20px;
  text-align: left;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.93rem;
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--bg); }
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-green { background: var(--green-pale); color: var(--green); }
.badge-grey  { background: #eee; color: #555; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--dark), #2e4d2e);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin: 48px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 10px; }
.cta-banner p  { color: rgba(255,255,255,0.78); margin: 0; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.btn-white { background: #fff; color: var(--dark); }
.btn-white:hover { background: var(--green-pale); color: var(--green); text-decoration: none; }
.btn-green { background: var(--green); color: #fff; }
.btn-green:hover { background: var(--accent); text-decoration: none; }

/* --- Footer --- */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.88rem; line-height: 1.7; margin-top: 12px; max-width: 280px; }
.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col ul li + li { margin-top: 9px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.88rem;
  transition: color 0.18s;
}
.footer-col ul li a:hover { color: var(--green-light); text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,0.5); }
.footer-bottom a:hover { color: var(--green-light); }

/* --- Privacy / About content --- */
.prose h2 { margin: 36px 0 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.prose h2:first-child { border-top: none; margin-top: 0; }
.prose h3 { margin: 28px 0 10px; }
.prose p, .prose li { color: var(--text-muted); font-size: 0.97rem; line-height: 1.8; }
.prose ul, .prose ol { padding-left: 24px; margin-bottom: 1rem; }
.prose li + li { margin-top: 6px; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .hero-inner       { grid-template-columns: 1fr; }
  .hero-image-wrap  { max-width: 540px; }
  .grid-3           { grid-template-columns: repeat(2, 1fr); }
  .stat-row         { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .footer-grid      { grid-template-columns: 1fr 1fr; }
  .contact-grid     { grid-template-columns: 1fr; }
  .cta-banner       { flex-direction: column; text-align: center; }
}
@media (max-width: 700px) {
  .section          { padding: 48px 0; }
  .grid-3, .grid-2  { grid-template-columns: 1fr; }
  .stat-row         { grid-template-columns: 1fr 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .nav-links        { display: none; flex-direction: column; position: absolute;
                      top: var(--nav-h); left: 0; right: 0; background: var(--bg-white);
                      border-bottom: 2px solid var(--green); padding: 16px 24px; gap: 4px; }
  .nav-links.open   { display: flex; }
  .nav-toggle       { display: flex; }
  .data-table       { font-size: 0.82rem; }
  .data-table th,
  .data-table td    { padding: 10px 12px; }
}
@media (max-width: 480px) {
  .hero { padding: 52px 0 40px; }
  .cta-banner { padding: 36px 24px; }
  .stat-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); }
  .stat-item:last-child { border-bottom: none; }
}