/* =============================================
   VMG Sourcing — Main Stylesheet
   ============================================= */

/* --- Fonts & Reset --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #D97706;
  --blue-dark:   #B45309;
  --blue-light:  #FEF3C7;
  --green:       #25D366; /* WhatsApp green */
  --green-dark:  #1DA851;
  --text:        #1C1917;
  --muted:       #57534E;
  --border:      #E7E5E4;
  --bg:          #FFFFFF;
  --bg-alt:      #FFFBF5;
  --radius:      10px;
  --shadow:      0 4px 24px rgba(0,0,0,0.08);
  --transition:  0.2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}

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

/* --- Typography --- */
h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 700; line-height: 1.25; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
p  { margin-bottom: 1rem; color: var(--muted); }
p:last-child { margin-bottom: 0; }

.section-label {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* --- Layout --- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 80px 0; }
section.alt { background: var(--bg-alt); }

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

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

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 14px rgba(217,119,6,0.35);
}
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 20px rgba(217,119,6,0.45); }

.btn-whatsapp {
  background: var(--green);
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,0.35);
}
.btn-whatsapp:hover { background: var(--green-dark); box-shadow: 0 6px 20px rgba(37,211,102,0.45); }

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

.btn-white {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.btn-white:hover { background: var(--blue-light); }

/* --- Header / Nav --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
  text-decoration: none;
}
.logo:hover { text-decoration: none; }

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--blue);
  color: #fff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
}

.nav-links a {
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 6px;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--blue); }
.nav-links .btn-primary { padding: 8px 20px; font-size: 0.9rem; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

/* --- Hero --- */
.hero {
  background: linear-gradient(135deg, #FFFBF0 0%, #FFFFFF 60%);
  padding: 100px 0;
  border-bottom: 1px solid var(--border);
}

.hero-content { max-width: 640px; }

.hero h1 { color: var(--text); margin-bottom: 1.25rem; }
.hero h1 span { color: var(--blue); }

.hero p { font-size: 1.15rem; color: var(--muted); margin-bottom: 2rem; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
}

.trust-item svg { color: var(--blue); flex-shrink: 0; }

/* --- What We Do --- */
.what-intro { max-width: 640px; margin-bottom: 48px; }

.service-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--blue);
}

.service-card h3 { color: var(--text); margin-bottom: 10px; }
.service-card p  { font-size: 0.95rem; }

/* --- Supplier Identification --- */
.supplier-text h2 { color: var(--text); margin-bottom: 1rem; }

.supplier-list {
  list-style: none;
  margin: 1.5rem 0 2rem;
}
.supplier-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.97rem;
  color: var(--muted);
}
.supplier-list li:last-child { border-bottom: none; }
.supplier-list li svg { color: var(--blue); flex-shrink: 0; margin-top: 3px; }

.supplier-image-block {
  background: var(--blue-light);
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Placeholder graphic */
.supplier-image-block .placeholder-graphic {
  text-align: center;
  padding: 40px;
}
.placeholder-graphic .big-icon {
  font-size: 5rem;
  margin-bottom: 12px;
}
.placeholder-graphic p {
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}

/* --- Process Diagram --- */
.process-diagram {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 24px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.step-number {
  width: 32px;
  height: 32px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-body {
  padding: 4px 0 0;
  flex: 1;
}
.step-body strong {
  display: block;
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}
.step-body span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.process-arrow {
  width: 32px;
  display: flex;
  justify-content: center;
  flex-shrink: 0;
  padding: 4px 0;
  position: relative;
}
.process-arrow::before {
  content: '';
  display: block;
  width: 2px;
  height: 24px;
  background: var(--border);
  margin: 0 auto;
}

/* --- Background / About --- */
.bg-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.stat-item { }
.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
}
.stat-label {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}

.about-image-block {
  background: linear-gradient(135deg, var(--blue) 0%, #92400E 100%);
  border-radius: 16px;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #fff;
  padding: 40px;
  text-align: center;
}
.about-image-block .big-number {
  font-size: 5rem;
  font-weight: 800;
  line-height: 1;
  opacity: 0.15;
}
.about-image-block p {
  color: rgba(255,255,255,0.85);
  font-size: 1rem;
}
.about-image-block strong { color: #fff; display: block; font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, #92400E 100%);
  color: #fff;
  text-align: center;
  padding: 80px 0;
}
.cta-banner h2 { color: #fff; margin-bottom: 1rem; }
.cta-banner p  { color: rgba(255,255,255,0.85); font-size: 1.1rem; max-width: 540px; margin: 0 auto 2.5rem; }
.cta-banner .cta-buttons { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 60px;
  align-items: start;
}

.contact-info h2 { color: var(--text); margin-bottom: 0.5rem; }

.contact-details {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

.contact-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue);
  flex-shrink: 0;
}

.contact-item-text { font-size: 0.95rem; }
.contact-item-text strong { display: block; color: var(--text); font-weight: 600; margin-bottom: 2px; }
.contact-item-text span, .contact-item-text a { color: var(--muted); }

.contact-ctas { display: flex; flex-direction: column; gap: 12px; margin-top: 1.5rem; }
.contact-ctas .btn { width: 100%; justify-content: center; }

/* --- Contact Form --- */
.contact-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  box-shadow: var(--shadow);
}

.contact-form-card h3 { color: var(--text); margin-bottom: 24px; font-size: 1.4rem; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.97rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(217,119,6,0.15);
}

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

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

.form-submit { width: 100%; padding: 15px; font-size: 1rem; justify-content: center; }

.form-success, .form-error {
  display: none;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 0.95rem;
  margin-top: 16px;
  font-weight: 500;
}
.form-success { background: #D1FAE5; color: #065F46; }
.form-error   { background: #FEE2E2; color: #991B1B; }

.field-error {
  display: block;
  color: #991B1B;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Formspree marks invalid fields with aria-invalid */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,0.12);
}

/* Formspree hides success/error divs until triggered */
[data-fs-success]:not([style]),
[data-fs-error]:not([style]) {
  display: none;
}

/* --- Footer --- */
.site-footer {
  background: #111827;
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand .logo { color: #fff; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 280px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a { color: rgba(255,255,255,0.65); font-size: 0.9rem; transition: color var(--transition); }
.footer-col ul a:hover { color: #fff; text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 10px;
}

/* --- WhatsApp Float Button --- */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 58px;
  height: 58px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37,211,102,0.45);
  transition: transform var(--transition), box-shadow var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 8px 28px rgba(37,211,102,0.55); text-decoration: none; }
.whatsapp-float svg { color: #fff; }

/* --- Mobile Nav --- */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 16px 24px 24px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    gap: 4px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { display: block; padding: 12px 16px; }
  .nav-links .btn-primary { margin-top: 8px; text-align: center; justify-content: center; }

  .site-header { position: relative; } /* Simplify on mobile */

  /* Sections */
  section { padding: 56px 0; }

  /* Grids → single column */
  .grid-2, .grid-3, .contact-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* Reverse supplier on mobile so text comes first */
  .supplier-image-block { order: -1; min-height: 220px; }

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

  .hero { padding: 60px 0; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

  .cta-banner .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-banner .cta-buttons .btn { justify-content: center; }

  .bg-stats { gap: 24px; }

  .contact-form-card { padding: 28px 20px; }

  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
  .nav-inner { position: relative; }
  .hero-trust { flex-direction: column; gap: 12px; }
}
