/* ══════════════════════════════════════════════════
   BS Comércio e Indústria · Homepage
   ══════════════════════════════════════════════════ */

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

:root {
  --blue-900: #001533;
  --blue-800: #00246b;
  --blue-700: #00378b;
  --blue-600: #1a4fa0;
  --blue-500: #2563b5;
  --blue-400: #4d8bd4;
  --blue-300: #7aaee0;
  --blue-100: #ddeaf8;
  --blue-50:  #f0f6fd;

  --red-700:  #b30012;
  --red-600:  #cc0015;
  --red-500:  #e30016;
  --red-100:  #fde8ea;

  --honey:    #f5a623;
  --honey-lt: #fff3dc;
  --corn:     #e8c84a;
  --corn-lt:  #fdf9e3;
  --grain:    #c8a97e;
  --grain-lt: #f8f3ec;

  --bg:       #f8f9fc;
  --white:    #ffffff;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.12);
  --shadow-xl: 0 16px 48px rgba(0,0,0,.15);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  --font-body: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --header-h: 72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.65;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Buttons ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 600;
  padding: .8rem 1.75rem;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s, transform .12s;
  white-space: nowrap;
}

.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.5);
}
.btn-outline:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-white {
  background: var(--white);
  color: var(--blue-700);
  border-color: var(--white);
}
.btn-white:hover { background: var(--blue-50); }

/* ── Sections ────────────────────────────────────── */
.section { padding: 5rem 0; }

.section-eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-500);
  margin-bottom: .75rem;
}

.section-eyebrow--light { color: rgba(255,255,255,.7); }

.section-header { margin-bottom: 3rem; }
.section-header.centered { text-align: center; }

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
  margin-bottom: .6rem;
}

.section-header p {
  font-size: .95rem;
  color: var(--gray-600);
  max-width: 560px;
}

.section-header.centered p { margin: 0 auto; }

/* ── Header ──────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--white);
  box-shadow: 0 1px 0 var(--gray-200), 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}

.header-logo {
  height: 52px;
  width: auto;
}

.header-brand-text {
  display: flex;
  flex-direction: column;
}

.header-brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
}

.header-brand-sub {
  font-size: .65rem;
  color: var(--gray-400);
  letter-spacing: .03em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
}

.main-nav a {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: .45rem .8rem;
  border-radius: var(--radius-sm);
  transition: background .15s, color .15s;
}

.main-nav a:hover { background: var(--blue-50); color: var(--blue-700); }

.nav-rastreabilidade {
  display: flex;
  align-items: center;
  gap: .35rem;
  background: var(--blue-700) !important;
  border: 1px solid var(--blue-700);
  color: var(--white) !important;
  margin-left: .5rem;
}

.nav-rastreabilidade:hover {
  background: var(--blue-800) !important;
  border-color: var(--blue-800);
  color: var(--white) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--blue-700);
  border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Hero ────────────────────────────────────────── */
.hero {
  position: relative;
  background: linear-gradient(150deg, var(--blue-800) 0%, var(--blue-700) 55%, var(--blue-600) 100%);
  padding: 5rem 0 0;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 70% 30%, rgba(255,255,255,.05) 0%, transparent 55%),
    radial-gradient(circle at 10% 80%, rgba(0,0,0,.08) 0%, transparent 50%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 3rem;
  padding-bottom: 5rem;
}

.hero-text { flex: 1; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-title span { color: #a8d4f5; }

.hero-desc {
  font-size: 1.05rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 2rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-visual {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.hero-logo-card {
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-xl);
  padding: 2rem 2.5rem;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img { width: 220px; height: auto; }

.hero-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: .75rem;
  width: 100%;
}

.hero-stats .stat:first-child {
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat {
  flex: 1;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-md);
  padding: .85rem .75rem;
  text-align: center;
  backdrop-filter: blur(4px);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
  margin-bottom: .25rem;
}

.stat-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.hero-wave {
  margin-top: -.5rem;
  line-height: 0;
}

.hero-wave svg { width: 100%; height: auto; display: block; }

/* ── Brands ──────────────────────────────────────── */
.brands-section { background: var(--white); }

.brands-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 420px));
  gap: 1.5rem;
  justify-content: center;
}

.brand-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: box-shadow .2s, transform .2s;
  position: relative;
}

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

.brand-card--featured {
  border-color: var(--blue-300);
  background: linear-gradient(160deg, var(--blue-50), var(--white));
}

.brand-card-icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-card-icon svg { width: 52px; height: 52px; }

.brand-card-icon--honey { background: var(--honey-lt); }
.brand-card-icon--grain { background: var(--grain-lt); }
.brand-card-icon--corn  { background: var(--corn-lt); }

.brand-card-body { flex: 1; }

.brand-tag {
  display: inline-block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: .2rem .6rem;
  border-radius: 100px;
  margin-bottom: .6rem;
}

.brand-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .6rem;
}

.brand-card-body p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.brand-products {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .3rem;
}

.brand-products li {
  font-size: .82rem;
  color: var(--gray-700);
  font-weight: 500;
  padding-left: 1rem;
  position: relative;
}

.brand-products li::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 5px;
  height: 5px;
  background: var(--red-500);
  border-radius: 50%;
}

.brand-card-link {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--blue-700);
  background: var(--blue-100);
  padding: .4rem .9rem;
  border-radius: 100px;
  align-self: flex-start;
  transition: background .15s;
}

.brand-card-link:hover { background: var(--blue-300); color: var(--white); }

/* ── Product Showcase ────────────────────────────── */
.product-showcase-section { background: var(--white); }

.product-showcase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.product-photo-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
}

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

.product-photo-wrap {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--gray-100);
}

.product-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .3s;
}

.product-photo-card:hover .product-photo-wrap img {
  transform: scale(1.04);
}

.product-photo-body {
  padding: .875rem 1rem 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}

.product-photo-brand {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--blue-700);
}

.product-photo-card h4 {
  font-size: .88rem;
  font-weight: 600;
  color: var(--gray-800);
  line-height: 1.3;
}

/* ── Products ────────────────────────────────────── */
.products-section { background: var(--bg); }

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.product-item {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .18s, transform .18s;
}

.product-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.product-icon {
  font-size: 2rem;
  line-height: 1;
}

.product-item span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-700);
}

.product-item--more {
  background: var(--blue-700);
  border-color: var(--blue-700);
}

.product-item--more .product-icon {
  font-size: 1.8rem;
  color: rgba(255,255,255,.6);
}

.product-item--more span { color: rgba(255,255,255,.85); }

/* ── About ───────────────────────────────────────── */
.about-section { background: var(--white); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.about-visual { position: relative; }

.about-img-card {
  background: var(--blue-50);
  border-radius: var(--radius-xl);
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.about-location {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--blue-700);
  color: var(--white);
  font-size: .78rem;
  font-weight: 600;
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.mg-map { width: 100%; height: auto; }

.about-text .section-eyebrow { display: block; }

.about-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--blue-700);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

.about-text p {
  font-size: .95rem;
  color: var(--gray-600);
  margin-bottom: 1rem;
  line-height: 1.75;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
  margin-top: 2rem;
}

.value-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  background: var(--blue-50);
  border-radius: var(--radius-md);
  padding: 1rem .75rem;
  text-align: center;
}

.value-item svg {
  width: 22px;
  height: 22px;
  color: var(--blue-700);
}

.value-item span {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--blue-700);
}

/* ── Coverage ────────────────────────────────────── */
.coverage-section {
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  padding: 5rem 0;
  color: var(--white);
}

.coverage-inner {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.coverage-text { flex: 1; }

.coverage-text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
}

.coverage-text p {
  font-size: .95rem;
  color: rgba(255,255,255,.8);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.coverage-text p:last-of-type { margin-bottom: 2rem; }

.coverage-badge-wrap {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}


.coverage-badge {
  width: 160px;
  height: 160px;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: .25rem;
}

.coverage-badge svg { color: rgba(255,255,255,.6); margin-bottom: .25rem; }
.coverage-badge strong { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.coverage-badge span { font-size: .8rem; color: rgba(255,255,255,.7); }


.coverage-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem .75rem;
}

.coverage-detail div {
  font-size: .82rem;
  color: rgba(255,255,255,.75);
  font-weight: 500;
  padding-left: .85rem;
  position: relative;
}

.coverage-detail div::before {
  content: '';
  position: absolute;
  left: 0;
  top: .55em;
  width: 4px;
  height: 4px;
  background: rgba(255,255,255,.4);
  border-radius: 50%;
}

/* ── Traceability CTA ────────────────────────────── */
.traceability-cta {
  background: var(--bg);
  padding: 3.5rem 0;
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.traceability-inner {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.traceability-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
}

.traceability-icon svg { width: 28px; height: 28px; }

.traceability-text { flex: 1; }

.traceability-text h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .35rem;
}

.traceability-text p {
  font-size: .88rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ── Contact ─────────────────────────────────────── */
.contact-section { background: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.contact-card {
  background: var(--bg);
  border-radius: var(--radius-md);
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
}

.contact-icon {
  width: 52px;
  height: 52px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
}

.contact-icon svg { width: 22px; height: 22px; }

.contact-card h3 {
  font-size: .9rem;
  font-weight: 700;
  color: var(--blue-700);
}

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

.contact-card a { transition: color .15s; }
.contact-card a:hover { color: var(--blue-700); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  padding: 2.5rem 0 1.5rem;
}

.footer-inner { display: flex; flex-direction: column; gap: 1.5rem; }

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-logo {
  height: 44px;
  width: auto;
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 5px;
}

.footer-brand-name {
  font-size: .92rem;
  font-weight: 600;
  color: var(--white);
}

.footer-brand-loc {
  font-size: .75rem;
  color: rgba(255,255,255,.45);
  margin-top: .1rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: .25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-nav a {
  font-size: .82rem;
  color: rgba(255,255,255,.55);
  padding: .3rem .6rem;
  border-radius: 4px;
  transition: color .15s;
}

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

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-bottom p {
  font-size: .75rem;
  color: rgba(255,255,255,.35);
}

.footer-bottom a { color: var(--blue-300); transition: color .15s; }
.footer-bottom a:hover { color: var(--white); }

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .brands-grid { grid-template-columns: 1fr; }
  .product-showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .products-grid { grid-template-columns: repeat(3, 1fr); }
  .about-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-values { grid-template-columns: repeat(2, 1fr); }
  .coverage-inner { flex-direction: column; gap: 2.5rem; text-align: center; }
  .coverage-badge-wrap { flex-direction: row; flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 700px) {
  :root { --header-h: 60px; }

  .section { padding: 3.5rem 0; }

  .header-logo { height: 36px; }
  .header-brand-name { font-size: .9rem; }
  .header-brand-sub { display: none; }

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    background: var(--blue-800);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    gap: .25rem;
    box-shadow: var(--shadow-lg);
  }

  .main-nav.open { display: flex; }
  .main-nav a { padding: .75rem 1rem; border-radius: var(--radius-sm); font-size: .95rem; }
  .nav-rastreabilidade { margin-left: 0; justify-content: center; }

  .nav-toggle { display: flex; }

  .hero { padding: 2.5rem 0 0; }
  .hero-inner {
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
  }
  .hero-logo-card { padding: 1.25rem 2rem; }
  .hero-logo-img { width: 160px; }
  .hero-stats { justify-content: center; }

  .product-showcase-grid { grid-template-columns: repeat(2, 1fr); }
  .products-grid { grid-template-columns: repeat(2, 1fr); }

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

  .traceability-inner {
    flex-direction: column;
    text-align: center;
    gap: 1.25rem;
  }
  .traceability-inner .btn { width: 100%; justify-content: center; }

  .footer-top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .footer-nav { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.75rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { justify-content: center; }
  .products-grid { grid-template-columns: repeat(2, 1fr); }
  .about-values { grid-template-columns: repeat(2, 1fr); }
}
