/* Máxima Abonos - styles for the pages that had to be rebuilt
   (products overview, product pages, about). The palette, the fonts and the
   rhythm follow the archived stylesheet: #8DC63F green, Poppins for text,
   Montserrat for headings. */

:root {
  --ma-green: #8DC63F;
  --ma-green-dark: #5E8E3E;
  --ma-green-deep: #2B4A0F;
  --ma-ink: #26301a;
  --ma-muted: #6b7360;
  --ma-line: #e6e8e0;
  --ma-soft: #f6f8f2;
}

.page-hero {
  padding: 150px 0 60px;
  background: linear-gradient(180deg, var(--ma-soft) 0%, #fff 100%);
  border-bottom: 1px solid var(--ma-line);
}
.page-hero .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.page-eyebrow {
  margin: 0 0 12px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ma-green-dark);
}
.page-eyebrow a { color: var(--ma-green-dark); text-decoration: none; }
.page-eyebrow a:hover { text-decoration: underline; }
.page-hero h1 {
  margin: 0; font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(32px, 5vw, 52px); line-height: 1.08; color: var(--ma-ink);
  letter-spacing: -.02em;
}
.page-lead {
  margin: 18px 0 0; max-width: 780px;
  font-family: 'Poppins', sans-serif; font-size: 18px; line-height: 1.7; color: var(--ma-muted);
}

.page-section { padding: 64px 0; }
.page-section.alt { background: var(--ma-soft); }
.page-section .container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.section-heading {
  margin: 0 0 28px; font-family: 'Montserrat', sans-serif; font-weight: 800;
  font-size: clamp(22px, 3vw, 30px); color: var(--ma-ink);
}

/* product grid */
.product-grid {
  display: grid; gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.product-card {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ma-line);
  border-radius: 16px; overflow: hidden; text-decoration: none; color: inherit;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.product-card:hover {
  transform: translateY(-4px); border-color: var(--ma-green);
  box-shadow: 0 22px 40px -28px rgba(38, 48, 26, .55);
}
.product-shot {
  display: block; aspect-ratio: 4 / 3; background: var(--ma-soft); overflow: hidden;
}
.product-shot img { width: 100%; height: 100%; object-fit: contain; padding: 18px; }
.product-shot .ph {
  display: grid; place-items: center; height: 100%;
  font-family: 'Montserrat', sans-serif; font-size: 44px; font-weight: 800;
  color: var(--ma-green);
}
.product-body { display: block; padding: 20px 22px 24px; }
.product-name {
  display: block; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 19px;
  color: var(--ma-ink);
}
.product-text {
  display: block; margin: 8px 0 0; font-family: 'Poppins', sans-serif; font-size: 14.5px;
  line-height: 1.6; color: var(--ma-muted);
}
.product-more {
  display: inline-flex; align-items: center; gap: 8px; margin: 16px 0 0;
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14.5px;
  color: var(--ma-green-dark);
}

/* single product */
.product-detail {
  display: grid; gap: 44px; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
}
.product-figure {
  background: var(--ma-soft); border: 1px solid var(--ma-line); border-radius: 18px;
  padding: 28px; display: grid; place-items: center; min-height: 280px;
}
.product-figure img { max-width: 100%; height: auto; }
.product-figure .ph {
  font-family: 'Montserrat', sans-serif; font-size: 72px; font-weight: 800; color: var(--ma-green);
}
.product-copy h2 {
  margin: 0 0 14px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 26px;
  color: var(--ma-ink);
}
.product-copy p {
  margin: 0 0 18px; font-family: 'Poppins', sans-serif; font-size: 16.5px; line-height: 1.75;
  color: var(--ma-muted);
}
.product-tags { display: flex; flex-wrap: wrap; gap: 12px; }
.product-tags span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  background: rgba(141, 198, 63, .14); color: var(--ma-green-deep);
  font-family: 'Poppins', sans-serif; font-weight: 600; font-size: 14px;
}
.btn-contact {
  display: inline-flex; align-items: center; gap: 10px; margin: 8px 0 0; padding: 14px 28px;
  border-radius: 999px; background: var(--ma-green); color: #fff; text-decoration: none;
  font-family: 'Poppins', sans-serif; font-weight: 600;
  transition: background .18s ease, transform .18s ease;
}
.btn-contact:hover { background: var(--ma-green-dark); color: #fff; transform: translateY(-2px); }

/* about */
.about-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.about-grid > div {
  background: #fff; border: 1px solid var(--ma-line); border-radius: 16px; padding: 28px;
}
.about-grid h2 {
  margin: 0 0 10px; font-family: 'Montserrat', sans-serif; font-weight: 800; font-size: 20px;
  color: var(--ma-ink);
}
.about-grid p {
  margin: 0; font-family: 'Poppins', sans-serif; font-size: 15.5px; line-height: 1.7;
  color: var(--ma-muted);
}

@media (max-width: 900px) {
  .page-hero { padding: 120px 0 44px; }
  .product-detail { grid-template-columns: 1fr; gap: 28px; }
}

/* products without an archived photo fall back to the company logo */
.product-shot .ph img,
.product-figure .ph img { width: 70%; max-width: 240px; height: auto; opacity: .55; }
.product-figure .ph { display: grid; place-items: center; width: 100%; }
