/* ══════════════════════════════════════════════════
   Terra Santa · Rastreabilidade
   BS Comércio e Indústria Ltda.
   ══════════════════════════════════════════════════ */

/* ── Reset & Tokens ──────────────────────────────── */
*, *::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;
  --red-50:   #fef5f5;

  --bg:        #f0f4fb;
  --white:     #ffffff;
  --gray-800:  #1f2937;
  --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);

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

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--gray-800);
  line-height: 1.6;
  min-height: 100vh;
}

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

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
}

/* ── Header ─────────────────────────────────────── */
.site-header {
  background: var(--white);
  padding: .9rem 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: 0 1px 0 var(--gray-200), 0 2px 12px rgba(0,0,0,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
}

.brand-logo {
  height: 63px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.brand-logo-img {
  height: 63px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: .05rem;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: .02em;
}

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

.header-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--red-500);
  border: 1px solid var(--red-700);
  color: var(--white);
  font-size: .72rem;
  font-weight: 600;
  padding: .35rem .75rem;
  border-radius: 100px;
  letter-spacing: .04em;
  white-space: nowrap;
}

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

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(255,255,255,.06) 0%, transparent 60%),
                    radial-gradient(circle at 10% 80%, rgba(0,0,0,.1) 0%, transparent 50%);
}

.hero > .container { position: relative; z-index: 1; }

/* Hero two-column layout */
.hero-inner {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

.hero-text { flex: 1; }

.hero-logo-wrap {
  flex-shrink: 0;
  width: 200px;
  background: rgba(255,255,255,.95);
  border-radius: var(--radius-lg);
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0,0,0,.18);
  overflow: hidden;
}

.hero-logo-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--red-500);
  letter-spacing: .04em;
  padding: .6rem 0 .8rem;
}

.hero-ts-logo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.9);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .4rem .9rem;
  border-radius: 100px;
  margin-bottom: 1.2rem;
}

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

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

.lote-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: var(--white);
  font-size: .82rem;
  padding: .45rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 1rem;
  backdrop-filter: blur(4px);
}

.lote-badge strong { font-weight: 700; letter-spacing: .05em; }

.hero-desc {
  color: rgba(255,255,255,.82);
  font-size: .95rem;
  max-width: 520px;
}

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

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

/* ── Main Content ────────────────────────────────── */
.main-content {
  background: var(--bg);
  padding: 2.5rem 0 4rem;
}

/* Section headers */
.section-header {
  margin-bottom: 1.5rem;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .3rem;
}

.section-header p {
  font-size: .88rem;
  color: var(--gray-600);
}

/* ── Search Card ─────────────────────────────────── */
.search-card {
  padding: 2.5rem;
  max-width: 600px;
  margin: 0 auto 3rem;
}

.search-card h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .4rem;
  text-align: center;
}

.search-card > p {
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* ── Product Selector ────────────────────────────── */
.product-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.product-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.25rem .75rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, background .15s, box-shadow .15s;
}

.product-option:hover {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.product-option:has(input:checked) {
  border-color: var(--blue-700);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(0,55,139,.1);
}

.product-option-visual {
  height: 80px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-option-visual--white {
  background: var(--white);
  border-radius: var(--radius-sm);
}

.product-option-logo {
  max-height: 80px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

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

.product-option:has(input:checked) .product-option-name {
  color: var(--blue-700);
}

.search-card-icon {
  width: 56px;
  height: 56px;
  background: var(--blue-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  margin: 0 auto 1.25rem;
}

.search-card-icon svg { width: 26px; height: 26px; }

.search-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .4rem;
}

.search-card > p {
  font-size: .9rem;
  color: var(--gray-600);
  margin-bottom: 1.5rem;
}

.search-form { width: 100%; }

.search-input-wrap {
  display: flex;
  gap: .5rem;
}

.search-input-wrap input {
  flex: 1;
  height: 50px;
  padding: 0 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 500;
  color: var(--gray-800);
  letter-spacing: .05em;
  transition: border-color .18s;
  outline: none;
}

.search-input-wrap input:focus {
  border-color: var(--blue-500);
}

.search-input-wrap input::placeholder {
  color: var(--gray-400);
  font-weight: 400;
  letter-spacing: 0;
}

.search-input-wrap button {
  height: 50px;
  padding: 0 1.4rem;
  background: var(--blue-700);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: .5rem;
  transition: background .18s;
  white-space: nowrap;
}

.search-input-wrap button:hover { background: var(--blue-800); }

.search-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--gray-400);
  margin-top: 1rem;
}

/* ── Results Header ──────────────────────────────── */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
  gap: 1rem;
}

.results-lote-badge {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--blue-700);
  color: var(--white);
  font-size: .85rem;
  padding: .5rem 1.1rem;
  border-radius: var(--radius-sm);
}

.results-lote-badge strong { font-weight: 700; letter-spacing: .05em; }

.nova-busca-btn {
  display: flex;
  align-items: center;
  gap: .4rem;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: .45rem 1rem;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  transition: border-color .18s, color .18s;
}

.nova-busca-btn:hover {
  border-color: var(--blue-400);
  color: var(--blue-700);
}

/* ── Product Card ────────────────────────────────── */
.product-card {
  display: flex;
  gap: 2rem;
  padding: 1.75rem;
  margin-bottom: 3rem;
  align-items: flex-start;
}

.product-image {
  flex-shrink: 0;
  width: 130px;
  height: 130px;
  background: transparent;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.product-pkg-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: var(--radius-sm);
}

.product-info { flex: 1; }

.product-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 1rem;
}

.product-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.meta-label {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--gray-400);
}

.meta-value {
  font-size: .88rem;
  font-weight: 500;
  color: var(--gray-800);
}

/* ── Timeline ────────────────────────────────────── */
.timeline {
  margin-bottom: 1rem;
}

.timeline-item {
  display: flex;
  gap: 1.25rem;
  position: relative;
}

.timeline-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-100);
  border: 3px solid var(--blue-300);
  color: var(--blue-700);
  z-index: 1;
}

.timeline-item.completed .timeline-icon {
  background: var(--blue-700);
  border-color: var(--blue-500);
  color: var(--white);
}

.timeline-icon svg { width: 20px; height: 20px; }

.timeline-content {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.4rem;
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
  flex: 1;
  margin-bottom: 0;
}

.timeline-step {
  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: .5rem;
}

.timeline-content h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: .4rem;
}

.timeline-content p {
  font-size: .85rem;
  color: var(--gray-600);
  line-height: 1.55;
  margin-bottom: .75rem;
}

.timeline-detail {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.2rem;
}

.timeline-detail span {
  display: flex;
  align-items: center;
  gap: .35rem;
  font-size: .78rem;
  color: var(--gray-600);
  font-weight: 500;
}

.timeline-connector {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  padding: 4px 0;
}

.timeline-connector::before {
  content: '';
  width: 2px;
  background: var(--blue-300);
  height: 100%;
  min-height: 20px;
  display: block;
}

/* ── Details Grid ────────────────────────────────── */
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.detail-card {
  padding: 1.5rem;
}

.detail-card-icon {
  width: 44px;
  height: 44px;
  background: var(--blue-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-700);
  margin-bottom: 1rem;
}

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

.detail-card-icon--logo {
  width: auto;
  height: auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.bs-logo-img {
  height: 44px;
  width: auto;
}

.detail-card h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: .9rem;
}

.detail-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .35rem .75rem;
  align-items: start;
}

.detail-card dt {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-top: .05rem;
}

.detail-card dd {
  font-size: .82rem;
  color: var(--gray-800);
  font-weight: 500;
}

/* ── Docs Grid ───────────────────────────────────── */
.docs-grid {
  display: grid;
  gap: .9rem;
}

.doc-card {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  padding: 1.1rem 1.4rem;
  transition: box-shadow .18s, transform .18s;
  cursor: pointer;
}

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

.doc-icon {
  width: 42px;
  height: 42px;
  background: var(--red-50);
  border: 1px solid var(--red-100);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red-600);
  flex-shrink: 0;
}

.doc-icon svg { width: 20px; height: 20px; }

.doc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: .15rem;
}

.doc-title {
  font-size: .9rem;
  font-weight: 600;
  color: var(--gray-800);
}

.doc-sub {
  font-size: .76rem;
  color: var(--gray-400);
}

.doc-arrow {
  color: var(--blue-500);
  flex-shrink: 0;
}

.doc-arrow svg { width: 18px; height: 18px; }

/* ── Guarantee Banner ────────────────────────────── */
.guarantee-banner {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: linear-gradient(135deg, var(--blue-800), var(--blue-700));
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-top: 2.5rem;
  color: var(--white);
}

.guarantee-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a8d4f5;
}

.guarantee-icon svg { width: 26px; height: 26px; }

.guarantee-text strong {
  display: block;
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.guarantee-text p {
  font-size: .85rem;
  color: rgba(255,255,255,.8);
  line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  background: var(--blue-900);
  padding: 1.75rem 0;
  text-align: center;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}

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

.footer-logo--bs {
  height: 40px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: .9;
}

.footer-brand-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: rgba(255,255,255,.85);
  letter-spacing: .02em;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: .78rem;
}

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

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

.footer-links span { color: rgba(255,255,255,.3); }

.footer-copy {
  font-size: .72rem;
  color: rgba(255,255,255,.35);
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 700px) {

  /* Header */
  .brand-logo,
  .brand-logo-img { height: 44px; }
  .brand-sub { font-size: .68rem; }
  .header-badge { display: none; }

  /* Hero */
  .hero { padding: 1.75rem 0 0; }
  .hero-inner {
    flex-direction: column;
    gap: 1.25rem;
    padding-bottom: 2rem;
  }
  .hero-logo-wrap {
    width: 130px;
    align-self: center;
  }
  .hero-eyebrow { font-size: .68rem; }
  .hero-title { font-size: 1.75rem; }
  .hero-desc { font-size: .88rem; }

  /* Search */
  .search-card {
    padding: 1.75rem 1.25rem;
    margin-bottom: 2rem;
  }
  .search-input-wrap {
    flex-direction: column;
    gap: .6rem;
  }
  .search-input-wrap input { height: 52px; font-size: 1rem; }
  .search-input-wrap button {
    height: 52px;
    width: 100%;
    justify-content: center;
    font-size: 1rem;
  }

  /* Results header */
  .results-header { flex-wrap: wrap; gap: .75rem; }
  .results-lote-badge { font-size: .8rem; }

  /* Product card */
  .product-card {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }
  .product-image { width: 100%; height: 110px; }
  .product-meta-grid { grid-template-columns: repeat(2, 1fr); }

  /* Timeline */
  .timeline-item { gap: .85rem; }
  .timeline-icon { width: 40px; height: 40px; }
  .timeline-icon svg { width: 17px; height: 17px; }
  .timeline-connector { width: 40px; }
  .timeline-content { padding: 1rem 1.1rem; }

  /* Details */
  .details-grid { grid-template-columns: 1fr; }
  .detail-card { padding: 1.25rem; }

  /* Guarantee */
  .guarantee-banner {
    flex-direction: column;
    gap: 1rem;
    padding: 1.25rem;
  }

  /* Section headers */
  .section-header h2 { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 1.5rem; }
  .search-card h2 { font-size: 1.25rem; }
  .product-meta-grid { grid-template-columns: 1fr 1fr; }
  .brand-sub { display: none; }
}
