/* ==========================================================================
   SA FOOD MERCHANTS (GRFP) - YOUR ROUTE TO MARKET
   Classic GRFP Seafood & Poultry Food Brokerage Hero & Red Brand Styling
   ========================================================================== */

:root {
  --bg-dark: #0a0d14;
  --bg-main: #0f141f;
  --bg-card: #161c2b;
  --bg-card-hover: #1e263b;
  --bg-glass: rgba(15, 20, 31, 0.88);
  --border-color: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(229, 57, 53, 0.4);
  
  /* Classic GRFP Red Brand Palette */
  --grfp-red: #e53935;
  --grfp-red-dark: #b71c1c;
  --grfp-red-bright: #ff3333;
  --grfp-red-glow: rgba(229, 57, 53, 0.45);
  
  --accent-gold: #f4a261;
  --accent-ice: #e2e8f0;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;

  --font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-pill: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-red-glow: 0 0 25px rgba(229, 57, 53, 0.3);
}

/* Light Mode Variables */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-main: #ffffff;
  --bg-card: #f1f5f9;
  --bg-card-hover: #e2e8f0;
  --bg-glass: rgba(248, 250, 252, 0.92);
  --border-color: rgba(15, 23, 42, 0.12);
  --border-glow: rgba(229, 57, 53, 0.4);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dark: #f8fafc;

  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.12);
  --shadow-red-glow: 0 0 25px rgba(229, 57, 53, 0.25);
}

/* Theme Toggle Button */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: var(--transition);
  font-size: 1.1rem;
}

.theme-toggle:hover {
  background: var(--bg-card-hover);
  border-color: var(--grfp-red);
  color: var(--grfp-red);
  transform: scale(1.05);
}

.theme-toggle .icon-sun {
  display: none;
}

[data-theme="light"] .theme-toggle .icon-sun {
  display: block;
}

[data-theme="light"] .theme-toggle .icon-moon {
  display: none;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Typography Utilities */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--text-main);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--grfp-red-bright);
}

.text-red { color: var(--grfp-red); }
.text-gold { color: var(--accent-gold); }
.text-muted { color: var(--text-muted); }

/* Header & Nav */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 3px solid var(--grfp-red);
  padding: 0.85rem 0;
  transition: var(--transition);
}

.site-header.scrolled {
  padding: 0.65rem 0;
  box-shadow: var(--shadow-card);
}

.nav-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand-logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-red-glow);
}

.brand-text-wrap {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  text-transform: uppercase;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--grfp-red);
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--grfp-red);
  border-radius: var(--radius-pill);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 700;
  border-radius: var(--radius-pill);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--grfp-red), var(--grfp-red-dark));
  color: #fff;
  box-shadow: 0 4px 15px var(--grfp-red-glow);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--grfp-red-bright), var(--grfp-red));
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(229, 57, 53, 0.6);
  color: #fff;
}

.btn-outline {
  background: rgba(15, 20, 31, 0.6);
  border: 1px solid var(--border-color);
  color: var(--text-main);
}

.btn-outline:hover {
  border-color: var(--grfp-red);
  background: rgba(229, 57, 53, 0.15);
  color: var(--text-main);
}

/* Mobile Nav Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  position: relative;
  padding: 10rem 0 6rem;
  min-height: 90vh;
  display: flex;
  align-items: center;
  background: var(--bg-dark);
  overflow: hidden;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, var(--bg-dark) 0%, rgba(15, 20, 31, 0.65) 60%, var(--bg-dark) 100%), url('../img/hero_bg.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.85;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-pill);
  background: rgba(229, 57, 53, 0.2);
  border: 1px solid var(--grfp-red);
  font-size: 0.82rem;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(229, 57, 53, 0.25);
}

.hero-title {
  font-size: 3.8rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 1rem;
  color: var(--text-main);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--grfp-red-bright);
  margin-bottom: 2rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
}

/* Callout Box in Hero */
.hero-callout-card {
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--grfp-red);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card), var(--shadow-red-glow);
  position: relative;
  transition: var(--transition);
}

.hero-callout-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
}

.callout-header {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.callout-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Section Header */
.section-padding {
  padding: 6rem 0;
}

.section-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 4rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Mission Section */
.mission-section {
  background: linear-gradient(180deg, var(--bg-dark), var(--bg-main));
  position: relative;
  overflow: hidden;
}

.mission-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  text-align: center;
  position: relative;
  box-shadow: var(--shadow-card);
  background-image: radial-gradient(circle at top right, rgba(229, 57, 53, 0.12), transparent 50%);
}

.mission-quote {
  font-size: 1.6rem;
  font-weight: 600;
  font-style: italic;
  color: var(--text-main);
  line-height: 1.6;
  max-width: 920px;
  margin: 0 auto 2.5rem;
  position: relative;
}

.mission-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-color);
  padding-top: 2rem;
}

.pillar-item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-main);
}

.pillar-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grfp-red);
  flex-shrink: 0;
}

/* About & Approach Section */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.leader-badge {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  margin-top: 0.5rem;
}

.leader-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--grfp-red), var(--grfp-red-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #ffffff;
  flex-shrink: 0;
}

.leader-info h4 {
  font-size: 1.1rem;
  color: var(--text-main);
}

.leader-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Advantage Card */
.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  position: relative;
}

.advantage-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.35rem;
  margin-bottom: 2rem;
  color: var(--grfp-red);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.advantage-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  list-style: none;
}

.advantage-item {
  display: flex;
  gap: 1rem;
}

.advantage-bullet {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: rgba(229, 57, 53, 0.15);
  color: var(--grfp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.advantage-details h5 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}

.advantage-details p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Capabilities Cards Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 2.5rem 2rem;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.capability-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--grfp-red), var(--grfp-red-bright));
  opacity: 0;
  transition: var(--transition);
}

.capability-card:hover {
  transform: translateY(-8px);
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  box-shadow: var(--shadow-card);
}

.capability-card:hover::before {
  opacity: 1;
}

.capability-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(229, 57, 53, 0.15);
  color: var(--grfp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.capability-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.capability-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* Target Buyers Section */
.buyers-section {
  background: var(--bg-main);
}

.buyers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 3.5rem;
}

.buyer-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  transition: var(--transition);
  display: flex;
  gap: 1.25rem;
}

.buyer-card:hover {
  border-color: var(--border-glow);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.buyer-number {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.18);
  color: var(--grfp-red-bright);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.buyer-info h4 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.buyer-info p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Logistics Governance Banner */
.logistics-governance-box {
  background: linear-gradient(135deg, rgba(229, 57, 53, 0.15), rgba(15, 20, 31, 0.95));
  border: 1px dashed var(--grfp-red);
  border-radius: var(--radius-md);
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  box-shadow: var(--shadow-red-glow);
}

.logistics-badge-icon {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--grfp-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.logistics-details h4 {
  font-size: 1.2rem;
  color: var(--text-main);
  margin-bottom: 0.35rem;
}

.logistics-details p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

/* Contact & Footer Section */
.contact-section {
  background: linear-gradient(180deg, var(--bg-main), var(--bg-dark));
  position: relative;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-quote-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 5px solid var(--grfp-red);
  border-radius: var(--radius-md);
  padding: 2rem;
}

.contact-quote-card blockquote {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--grfp-red-bright);
  margin-bottom: 0.75rem;
  font-style: italic;
}

.contact-quote-card p {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.contact-details-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(229, 57, 53, 0.15);
  color: var(--grfp-red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.detail-text label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  display: block;
}

.detail-text span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  background: var(--bg-dark);
  padding: 2.5rem 0;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.footer-contact-details {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.footer-contact-details a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(229, 57, 53, 0.15);
  color: var(--text-main);
  font-size: 1.15rem;
  transition: var(--transition);
  border: 1px solid var(--border-color);
}

.footer-contact-details a:hover {
  background: var(--grfp-red);
  color: #fff;
  transform: translateY(-2px);
  border-color: var(--grfp-red);
}

.footer-contact-text {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 0.92rem;
}

.footer-contact-text span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-muted);
}

.footer-contact-text a {
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-contact-text a:hover {
  color: var(--grfp-red-bright);
}

/* Scroll Animations */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  
  .about-grid, .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .capabilities-grid, .buyers-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 0.75rem 0;
  }

  .mobile-toggle {
    display: block;
  }

  .main-nav {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
    transform: translateY(-150%);
    transition: var(--transition);
  }

  .main-nav.active {
    transform: translateY(0);
    box-shadow: var(--shadow-card);
  }

  .nav-links {
    flex-direction: column;
    width: 100%;
    gap: 1.25rem;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .capabilities-grid, .buyers-grid, .mission-pillars {
    grid-template-columns: 1fr;
  }

  .logistics-governance-box {
    flex-direction: column;
    text-align: center;
  }
}
