/*
Theme Name: FoodustrySA
Theme URI: https://foodustrysa.com
Author: FoodustrySA Team
Author URI: https://foodustrysa.com
Description: Custom theme for Foodusty - South Africa's all-in-one food delivery platform connecting customers, restaurants, drivers, agents, and admins.
Requires at least: 6.7
Tested up to: 7.0
Requires PHP: 7.2
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: foodustrysa
Template: twentytwentyfive
*/

/* ===== Foodusty Custom Styles ===== */
:root {
  --primary: #1A6B1A;
  --on-primary: #FFFFFF;
  --accent: #4ade80;
  --on-accent: #0d3d0d;
  --bg: #FAFAF7;
  --fg: #0F1A0F;
  --muted: #E8EFE8;
  --border: #D1E0D1;
  --card: #FFFFFF;
  --text-2: #3D5C3D;
  --r: 8px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Nunito', sans-serif;
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

/* ===== Navigation ===== */
.foodustry-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  background: rgba(250,250,247,0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 62px;
  transition: box-shadow 200ms;
}
.foodustry-nav .logo {
  display: flex; align-items: center; gap: 9px; text-decoration: none;
}
.foodustry-nav .logo-mark {
  width: 32px; height: 32px; border-radius: 7px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.foodustry-nav .logo-mark svg { width: 17px; height: 17px; }
.foodustry-nav .logo-text {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.15rem;
  color: var(--fg); letter-spacing: -0.4px;
}
.foodustry-nav .logo-text span { color: var(--primary); }
.foodustry-nav .nav-links {
  display: flex; align-items: center; gap: 28px;
  list-style: none; margin: 0; padding: 0;
}
.foodustry-nav .nav-links a {
  font-size: 0.85rem; font-weight: 600;
  color: var(--text-2); text-decoration: none;
  transition: color 150ms; white-space: nowrap;
}
.foodustry-nav .nav-links a:hover { color: var(--primary); }
.foodustry-nav .nav-right {
  display: flex; align-items: center; gap: 10px;
}
.foodustry-nav .btn-nav {
  font-family: 'Poppins', sans-serif;
  font-size: 0.82rem; font-weight: 600;
  padding: 7px 18px; border-radius: var(--r);
  background: var(--primary); color: #fff;
  text-decoration: none;
  transition: transform 160ms, background 160ms;
  white-space: nowrap;
}
.foodustry-nav .btn-nav:hover { transform: scale(1.03); background: #145614; }

/* ===== Hero Section ===== */
.hero-section {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 90px 5vw 64px;
  background: var(--bg);
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--border); border-radius: 100px;
  padding: 4px 13px; font-size: 0.72rem;
  font-weight: 700; color: var(--primary);
  letter-spacing: 0.4px; margin-bottom: 20px;
  animation: heroUp .6s both;
}
.hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero-section h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.1; letter-spacing: -1.2px;
  animation: heroUp .6s 80ms both;
  margin: 0 0 18px;
}
.hero-section h1 em { color: var(--primary); font-style: normal; }
.hero-sub {
  font-size: 1.05rem; color: var(--text-2);
  max-width: 480px; margin: 0 0 32px;
  animation: heroUp .6s 180ms both;
}
.hero-buttons {
  display: flex; flex-wrap: wrap; gap: 11px;
  animation: heroUp .6s 260ms both;
  margin-bottom: 36px;
}
.btn-primary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 26px; border-radius: var(--r);
  background: var(--primary); color: #fff;
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 160ms, background 160ms;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-primary:hover { transform: scale(1.03); background: #145614; }
.btn-secondary {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 11px 26px; border-radius: var(--r);
  background: transparent; color: var(--primary);
  border: 1.5px solid var(--primary);
  text-decoration: none; cursor: pointer;
  transition: transform 160ms, background 160ms;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-secondary:hover { transform: scale(1.03); background: var(--muted); }
.hero-roles {
  display: flex; flex-wrap: wrap; gap: 8px;
  animation: heroUp .6s 340ms both;
}
.role-chip {
  font-size: 0.75rem; font-weight: 700;
  padding: 5px 13px; border-radius: 100px;
  border: 1px solid var(--border);
  color: var(--text-2); background: var(--card);
  letter-spacing: 0.2px;
}
.hero-image-wrap { position: relative; animation: heroUp .6s 100ms both; }
.hero-image {
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
.hero-image img {
  width: 100%; height: 500px;
  object-fit: cover; display: block;
}
.hero-badge {
  position: absolute; bottom: 18px; left: 18px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px;
  display: flex; align-items: center; gap: 9px;
}
.hb-icon {
  width: 34px; height: 34px; border-radius: 7px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.hb-icon svg { width: 17px; height: 17px; }
.hb-lbl { font-size: 0.68rem; font-weight: 600; color: var(--text-2); }
.hb-val { font-family: 'Poppins', sans-serif; font-weight: 800; font-size: 1.05rem; color: var(--fg); }

@keyframes heroUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Trust Strip ===== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--card);
  padding: 26px 5vw;
  display: flex; align-items: center;
  justify-content: center; gap: 48px;
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 9px;
}
.trust-item svg {
  width: 20px; height: 20px;
  color: var(--primary); flex-shrink: 0;
}
.trust-item .trust-label {
  font-size: 0.82rem; font-weight: 600; color: var(--text-2);
}
.trust-item .trust-label strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-size: 1.1rem; font-weight: 800; color: var(--fg);
}

/* ===== Section Common ===== */
.section-block {
  padding: 80px 5vw;
}
.section-block.bg-card {
  background: var(--card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-label {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--primary); margin-bottom: 10px;
}
.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.6px;
  line-height: 1.15;
  color: var(--fg);
  max-width: 620px;
  margin: 0;
}
.section-sub {
  font-size: 0.97rem; color: var(--text-2);
  max-width: 540px; margin-top: 10px;
}
.section-header {
  margin-bottom: 52px;
}

/* ===== Roles Grid ===== */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}
.role-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex; flex-direction: column; gap: 12px;
  opacity: 0; transform: translateY(22px);
  transition: opacity .5s, transform .5s, border-color 200ms;
  cursor: default;
}
.role-card.visible { opacity: 1; transform: translateY(0); }
.role-card:hover { border-color: var(--primary); }
.rc-icon {
  width: 44px; height: 44px; border-radius: 9px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
}
.rc-icon svg { width: 22px; height: 22px; color: var(--primary); }
.rc-role {
  font-size: 0.65rem; font-weight: 800;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--primary);
}
.rc-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
  color: var(--fg);
}
.rc-desc {
  font-size: 0.83rem; color: var(--text-2);
  line-height: 1.6; flex: 1;
}
.rc-list {
  list-style: none; padding: 0; margin: 4px 0 0;
  display: flex; flex-direction: column; gap: 6px;
}
.rc-list li {
  font-size: 0.8rem; color: var(--text-2);
  display: flex; align-items: flex-start; gap: 7px;
}
.rc-list li::before {
  content: '';
  display: block; width: 5px; height: 5px;
  border-radius: 50%; background: var(--accent);
  margin-top: 7px; flex-shrink: 0;
}

/* ===== 2-Column Split ===== */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split-layout.flip .split-image { order: 2; }
.split-layout.flip .split-content { order: 1; }
.split-image {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.split-image img {
  width: 100%; height: 400px;
  object-fit: cover; display: block;
}
.features-list {
  display: flex; flex-direction: column; gap: 22px;
}
.feature-item {
  display: flex; gap: 14px; align-items: flex-start;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s, transform .45s;
}
.feature-item.visible { opacity: 1; transform: translateY(0); }
.feature-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--primary); }
.feature-item h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--fg); margin: 0 0 3px;
}
.feature-item p {
  font-size: 0.84rem; color: var(--text-2);
  margin: 0;
}

/* ===== Stats Grid ===== */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.stat-box {
  background: var(--muted);
  border-radius: 10px;
  padding: 18px;
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s, transform .45s;
}
.stat-box.visible { opacity: 1; transform: translateY(0); }
.stat-value {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.7rem;
  letter-spacing: -0.8px;
  color: var(--fg);
}
.stat-label {
  font-size: 0.78rem; font-weight: 600;
  color: var(--text-2); margin-top: 2px;
}

/* ===== Feature Rows (Admin) ===== */
.feature-rows {
  display: flex; flex-direction: column; gap: 14px;
}
.feature-row {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--card);
  opacity: 0; transform: translateY(18px);
  transition: opacity .45s, transform .45s, border-color 200ms;
}
.feature-row.visible { opacity: 1; transform: translateY(0); }
.feature-row:hover { border-color: var(--primary); }
.fr-icon {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fr-icon svg { width: 19px; height: 19px; color: var(--primary); }
.feature-row h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.9rem;
  color: var(--fg); margin: 0 0 3px;
}
.feature-row p {
  font-size: 0.82rem; color: var(--text-2);
  margin: 0;
}

/* ===== How It Works Tabs ===== */
.tab-buttons {
  display: flex;
  border: 1px solid var(--border);
  border-radius: var(--r);
  width: fit-content;
  overflow: hidden;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.tab-btn {
  padding: 9px 22px;
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.82rem;
  border: none; cursor: pointer;
  background: transparent;
  color: var(--text-2);
  transition: background 140ms, color 140ms;
}
.tab-btn.active { background: var(--primary); color: #fff; }
.steps-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.steps-grid.active { display: grid; }
.step-number {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 2.8rem;
  color: var(--border);
  letter-spacing: -1.5px; line-height: 1;
}
.step-icon {
  width: 42px; height: 42px; border-radius: 9px;
  background: var(--muted);
  display: flex; align-items: center; justify-content: center;
  margin: 10px 0;
}
.step-icon svg { width: 20px; height: 20px; color: var(--primary); }
.step-item h4 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  color: var(--fg); margin: 0 0 4px;
}
.step-item p {
  font-size: 0.84rem; color: var(--text-2);
  margin: 0;
}

/* ===== Download App Section ===== */
.app-download-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.dl-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  letter-spacing: -0.5px;
  color: var(--fg);
}
.dl-sub {
  font-size: 0.97rem; color: var(--text-2);
  margin-top: 10px;
}
.store-buttons {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-top: 28px;
}
.store-btn {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 22px;
  border: 1.5px solid var(--border); border-radius: 10px;
  text-decoration: none;
  background: var(--fg); color: #fff;
  transition: transform 160ms, border-color 160ms;
}
.store-btn:hover { transform: scale(1.03); border-color: var(--primary); }
.store-btn svg { width: 24px; height: 24px; flex-shrink: 0; }
.store-btn-text small {
  display: block;
  font-size: 0.65rem;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.3px;
}
.store-btn-text strong {
  display: block;
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 1rem;
}
.dl-image {
  border-radius: 14px; overflow: hidden;
  border: 1px solid var(--border);
}
.dl-image img {
  width: 100%; height: 340px;
  object-fit: cover; display: block;
}

/* ===== FAQ ===== */
.faq-list {
  display: flex; flex-direction: column; gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  margin-top: 40px;
}
.faq-item {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%; text-align: left;
  background: none; border: none;
  padding: 18px 22px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.92rem; font-weight: 600;
  color: var(--fg); cursor: pointer;
  display: flex; justify-content: space-between;
  align-items: center; gap: 12px;
  transition: background 150ms;
}
.faq-question:hover { background: var(--muted); }
.faq-question svg {
  width: 16px; height: 16px; color: var(--primary);
  flex-shrink: 0; transition: transform 250ms;
}
.faq-question.open svg { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.faq-answer-inner {
  padding: 0 22px 18px;
  font-size: 0.88rem; color: var(--text-2);
  line-height: 1.7;
}

/* ===== CTA Band ===== */
.cta-band {
  background: var(--fg);
  padding: 80px 5vw;
  text-align: center;
}
.cta-kicker {
  display: inline-block;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.cta-band h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  letter-spacing: -0.6px;
  color: #fff; margin: 0;
}
.cta-band p {
  font-size: 0.97rem; color: rgba(255,255,255,.55);
  margin-top: 10px;
}
.cta-buttons {
  display: flex; justify-content: center;
  flex-wrap: wrap; gap: 12px;
  margin-top: 32px;
}
.btn-accent {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 12px 28px; border-radius: var(--r);
  background: var(--accent); color: var(--on-accent);
  text-decoration: none; border: none; cursor: pointer;
  transition: transform 160ms, opacity 160ms;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-accent:hover { transform: scale(1.03); opacity: .9; }
.btn-ghost {
  font-family: 'Poppins', sans-serif;
  font-weight: 600; font-size: 0.88rem;
  padding: 12px 28px; border-radius: var(--r);
  background: transparent; color: #fff;
  border: 1.5px solid rgba(255,255,255,.28);
  text-decoration: none; cursor: pointer;
  transition: transform 160ms, border-color 160ms;
  display: inline-flex; align-items: center; gap: 7px;
}
.btn-ghost:hover { transform: scale(1.03); border-color: rgba(255,255,255,.6); }

/* ===== Footer ===== */
.foodustry-footer {
  background: var(--fg);
  padding: 52px 5vw 28px;
  color: #fff;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 44px;
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-logo { display: flex; align-items: center; gap: 9px; }
.footer-mark {
  width: 30px; height: 30px; border-radius: 6px;
  background: var(--primary);
  display: flex; align-items: center; justify-content: center;
}
.footer-mark svg { width: 16px; height: 16px; }
.footer-name {
  font-family: 'Poppins', sans-serif;
  font-weight: 800; font-size: 1.05rem; color: #fff;
}
.footer-brand p {
  font-size: 0.82rem; color: rgba(255,255,255,.45);
  line-height: 1.65; max-width: 240px;
}
.footer-col h5 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700; font-size: 0.82rem;
  color: #fff; margin: 0 0 14px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 9px;
}
.footer-col ul li a {
  font-size: 0.82rem; color: rgba(255,255,255,.45);
  text-decoration: none; transition: color 140ms;
}
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 0.78rem; color: rgba(255,255,255,.35);
}
.footer-bottom a { color: rgba(255,255,255,.35); text-decoration: none; }
.footer-bottom a:hover { color: var(--accent); }
.footer-links { display: flex; gap: 18px; }

/* ===== Page Content ===== */
.page-content {
  padding: 90px 5vw 64px;
  max-width: 800px;
  margin: 0 auto;
}
.page-content h1 {
  font-family: 'Poppins', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  color: var(--fg);
  margin-bottom: 1rem;
}
.page-content p {
  font-size: 1rem; color: var(--text-2);
  line-height: 1.8;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
  .roles-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 860px) {
  .hero-section { grid-template-columns: 1fr; padding-top: 90px; }
  .hero-image-wrap { display: none; }
  .split-layout, .app-download-inner { grid-template-columns: 1fr; }
  .split-image img, .dl-image img { height: 280px; }
  .roles-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid.active { grid-template-columns: 1fr 1fr; }
  .foodustry-nav .nav-links { display: none; }
}
@media (max-width: 560px) {
  .roles-grid { grid-template-columns: 1fr; }
  .steps-grid.active { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .tab-buttons { width: 100%; }
  .tab-btn { flex: 1; text-align: center; padding: 9px 12px; }
}
