/* ==========================================================================
   Home page-type layout. Tokens, typography, buttons, header/footer chrome
   and form base styles live in app.css — this file holds only Home section
   layout that no other page type shares.
   ========================================================================== */

/* Hero */
.home-page .hero {
  padding: 48px 0 0;
}

.home-page .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 44px;
  align-items: center;
}

.home-page .hero-breadcrumb ol {
  display: flex;
  list-style: none;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 10px;
  padding: 0;
}

.home-page .hero-breadcrumb li:not(:last-child)::after {
  content: '/';
  margin-left: 6px;
  color: var(--line);
}

.home-page .hero-lead {
  font-size: 1.05rem;
  color: var(--muted);
  margin-bottom: 24px;
  max-width: 56ch;
}

.home-page .hero-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.home-page .hero-visual {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 10px;
  aspect-ratio: 300 / 260;
  overflow: hidden;
}

.home-page .hero-visual:not(.has-image) {
  padding: 28px;
}

.home-page .hero-visual svg {
  width: 100%;
  height: auto;
}

.home-page .hero-visual.has-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.home-page .hero-visual-cap {
  margin-top: 14px;
  font-size: 0.76rem;
  color: var(--muted);
  text-align: center;
}

.home-page .hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 8px;
  max-width: 56ch;
}

.home-page .hero-points li {
  padding-left: 20px;
  position: relative;
  font-size: 0.9rem;
  color: var(--muted);
}

.home-page .hero-points li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}

/* Section image shared across text/card sections */
.home-page .section-image {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  margin: 20px 0;
  display: block;
}

.home-page .section-cta {
  margin-top: 20px;
  display: inline-flex;
}

/* Qualification snapshot table */
.home-page .qual-wrap {
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  overflow: hidden;
}

.home-page .qual-head {
  background: var(--ink);
  color: var(--gold-bright);
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: 'SF Mono', Consolas, monospace;
  gap: 12px;
  flex-wrap: wrap;
}

.home-page .qual-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
}

.home-page .qual-table th,
.home-page .qual-table td {
  padding: 14px 22px;
  font-size: 0.92rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
}

.home-page .qual-table tr:last-child th,
.home-page .qual-table tr:last-child td {
  border-bottom: none;
}

.home-page .qual-table thead th {
  color: var(--gold-bright);
  background: var(--ink);
  font-weight: 600;
  font-family: var(--font-label);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.home-page .qual-table tbody th {
  color: var(--muted);
  font-weight: 600;
  width: 220px;
  font-family: var(--font-label);
}

.home-page .qual-table .check {
  color: var(--ok);
  font-weight: 800;
  margin-right: 6px;
}

.home-page .qual-outro {
  color: var(--muted);
  margin-top: 20px;
  font-size: 0.9rem;
}

/* Quality cards */
.home-page .cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-page .card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.home-page .card:hover {
  border-color: var(--gold);
}

.home-page .card h3 {
  font-family: var(--font-label);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-page .card-icon {
  width: 32px;
  height: 32px;
  background: var(--paper2);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  flex-shrink: 0;
}

.home-page .card-icon svg {
  width: 18px;
  height: 18px;
}

.home-page .card p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Text + CTA section (Industries, Quality & Documentation, Custom Sourcing, Standards, Export) */
.home-page .text-cta-bullets {
  margin: 12px 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.9rem;
  display: grid;
  gap: 6px;
}

.home-page .text-cta-bullets li {
  padding-left: 4px;
}

/* Reference profile */
.home-page .ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-page .ref-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
}

.home-page .ref-icon {
  width: 34px;
  height: 34px;
  background: var(--paper2);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  margin-bottom: 12px;
}

.home-page .ref-icon svg {
  width: 19px;
  height: 19px;
}

.home-page .ref-tag {
  color: var(--gold);
  font-family: var(--font-label);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-bottom: 8px;
  display: block;
}

.home-page .ref-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

/* Featured products (shared ProductCards component, home-scoped) */
.home-page .product-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-page .product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.home-page .product-card-visual {
  aspect-ratio: 1440 / 810;
  background: var(--paper2);
}

.home-page .product-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-page .product-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.home-page .product-card-body h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.18rem;
  line-height: 1.15;
  color: var(--ink);
  margin: 0 0 8px;
}

.home-page .product-card-body p {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0;
}

.home-page .product-card-link {
  color: var(--gold);
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 0.86rem;
  display: inline-block;
  margin-top: auto;
  padding-top: 14px;
}

/* FAQ */
.home-page .faq-wrap {
  max-width: 820px;
}

.home-page .faq details {
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
}

.home-page .faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.home-page .faq summary::-webkit-details-marker {
  display: none;
}

.home-page .faq summary::after {
  content: '+';
  color: var(--gold);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.home-page .faq details[open] summary::after {
  content: '\2212';
}

.home-page .faq p {
  color: var(--muted);
  margin-top: 10px;
  font-size: 0.9rem;
}

/* Quote form */
.home-page .quote-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}

.home-page .quote-grid > div:first-child p {
  color: var(--muted);
  margin-top: 14px;
  max-width: 460px;
}

.home-page .quote-image {
  max-width: 460px;
  max-height: 280px;
  object-fit: cover;
}

.home-page .quote-form-wrap {
  background: var(--white);
  border: 1px solid var(--ink);
  border-radius: 10px;
  padding: 30px;
}

.home-page .quote-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.home-page .quote-form .form-field {
  margin-bottom: 12px;
}

.home-page .quote-submit {
  width: 100%;
  margin-top: 6px;
}

.home-page .quote-footer-note {
  color: var(--muted);
  font-size: 0.78rem;
  text-align: center;
  margin-top: 14px;
}

.home-page .quote-success {
  background: var(--paper2);
  border: 1px solid var(--ok);
  border-radius: 8px;
  padding: 24px;
  color: var(--ink);
  font-size: 0.95rem;
}

.home-page .quote-error {
  border: 1px solid var(--danger);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--danger);
  font-size: 0.9rem;
  margin-bottom: 16px;
}

/* Responsive */
@media (max-width: 960px) {
  .home-page .hero-grid {
    grid-template-columns: 1fr;
  }

  .home-page .cards-3,
  .home-page .ref-grid,
  .home-page .product-card-grid,
  .home-page .quote-grid {
    grid-template-columns: 1fr 1fr;
  }

  .home-page .qual-table tbody th {
    width: 160px;
  }
}

@media (max-width: 640px) {
  .home-page .cards-3,
  .home-page .ref-grid,
  .home-page .product-card-grid,
  .home-page .quote-grid,
  .home-page .quote-form .form-row {
    grid-template-columns: 1fr;
  }

  .home-page .qual-table th,
  .home-page .qual-table td {
    display: block;
    width: 100% !important;
  }

  .home-page .qual-table tbody th {
    border-bottom: none;
    padding-bottom: 2px;
    color: var(--gold);
  }
}
