/* Variáveis visuais */
:root {
  --blue: #5fdff0;
  --blue-strong: #0886c7;
  --blue-soft: #e8fbff;
  --red: #ef2f35;
  --yellow: #ffd63f;
  --green: #4fbd4a;
  --green-dark: #288b28;
  --ink: #172033;
  --text: #445066;
  --line: #dfe9ef;
  --white: #ffffff;
  --page: #f6fbfd;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.13);
  --soft-shadow: 0 10px 26px rgba(23, 32, 51, 0.09);
  --radius: 8px;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Nunito", "Aptos Rounded", "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
  background:
    linear-gradient(180deg, rgba(95, 223, 240, 0.2), transparent 420px),
    var(--page);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(23, 32, 51, 0.08);
}

.header-inner,
.section-inner,
.hero-inner {
  width: min(100% - 32px, var(--max-width));
  margin: 0 auto;
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  width: 154px;
  border-radius: var(--radius);
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

.main-nav a {
  min-height: 38px;
  padding: 8px 13px;
  display: inline-flex;
  align-items: center;
  color: var(--ink);
  font-size: 0.91rem;
  font-weight: 900;
  text-decoration: none;
  border-radius: var(--radius);
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--white);
  background: var(--blue-strong);
  outline: none;
}

/* Botões */
.button {
  min-height: 46px;
  padding: 12px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
  text-align: center;
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 8px 0 #ba1c22;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #d82128;
}

.button-secondary {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 8px 0 var(--green-dark);
}

.button-light {
  background: var(--white);
  border-color: rgba(8, 134, 199, 0.25);
  box-shadow: 0 8px 0 rgba(8, 134, 199, 0.18);
}

.button-card {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  color: var(--white);
  background: var(--blue-strong);
  box-shadow: 0 6px 0 #066697;
}

.button-card:hover,
.button-card:focus-visible {
  background: var(--red);
  box-shadow: 0 6px 0 #ba1c22;
}

/* Home */
.hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 24%, rgba(255, 214, 63, 0.48) 0 95px, transparent 96px),
    radial-gradient(circle at 88% 18%, rgba(79, 189, 74, 0.28) 0 130px, transparent 131px),
    linear-gradient(135deg, #e9fbff 0%, #ffffff 48%, #fff6d8 100%);
}

.hero-section::after {
  position: absolute;
  right: -80px;
  bottom: -120px;
  width: 360px;
  height: 360px;
  content: "";
  background:
    repeating-conic-gradient(from 0deg, var(--red) 0deg 28deg, var(--yellow) 28deg 56deg, var(--blue) 56deg 84deg, var(--green) 84deg 112deg);
  border: 18px solid var(--white);
  border-radius: 50%;
  opacity: 0.16;
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
  align-items: center;
  gap: 48px;
  padding: 62px 0 54px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy h1,
.section-heading h2,
.work-intro h2,
.commercial-box h2 {
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: 4rem;
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 660px;
  margin: 20px 0 28px;
  color: var(--text);
  font-size: 1.18rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.hero-product {
  min-width: 0;
  margin: 0;
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(8, 134, 199, 0.12);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.hero-product-large {
  grid-row: span 2;
  min-height: 456px;
}

.hero-product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Estrutura das seções */
.content-band,
.catalog-section,
.work-section,
.site-footer {
  padding: 72px 0;
}

.content-band {
  background: var(--white);
}

.catalog-section {
  background:
    linear-gradient(180deg, #f6fbfd 0%, #ffffff 35%, #f7fcff 100%);
}

.work-section {
  background:
    linear-gradient(135deg, rgba(95, 223, 240, 0.24), rgba(255, 214, 63, 0.23)),
    #ffffff;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.section-heading h2,
.work-intro h2 {
  font-size: 2.7rem;
}

.section-heading p,
.work-intro p {
  margin: 14px 0 0;
  color: var(--text);
  font-size: 1.05rem;
}

.section-heading p + p {
  margin-top: 10px;
}

/* Galeria da seção Quem Somos */
.about-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 210px;
  gap: 14px;
  margin: 0 0 26px;
}

.about-photo {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  background: var(--blue-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.about-photo-large {
  grid-column: span 2;
  grid-row: span 2;
}

.about-photo-wide {
  grid-column: span 2;
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-photo figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  color: var(--white);
  font-size: 0.88rem;
  font-weight: 900;
  background: rgba(23, 32, 51, 0.72);
  border-radius: var(--radius);
}

/* Cards institucionais */
.institutional-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.values-card {
  grid-column: 1 / -1;
}

.info-card,
.work-card,
.contact-card,
.product-card,
.partner-callout,
.commercial-box {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.info-card,
.work-card {
  padding: 24px;
}

.info-card h3,
.work-card h3,
.contact-card h3 {
  margin: 14px 0 8px;
  color: var(--blue-strong);
  font-size: 1.35rem;
  line-height: 1.15;
}

.info-card p,
.work-card p,
.contact-card p {
  margin: 0;
  color: var(--text);
}

.value-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
  font-size: 0.92rem;
  background: var(--blue-soft);
  border: 1px solid rgba(8, 134, 199, 0.16);
  border-radius: var(--radius);
}

.value-list strong {
  color: var(--blue-strong);
  font-size: 1rem;
  line-height: 1.2;
}

.value-list span {
  color: var(--text);
  line-height: 1.45;
}

.partner-callout {
  margin-top: 22px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background:
    linear-gradient(90deg, rgba(8, 134, 199, 0.08), rgba(255, 214, 63, 0.22)),
    var(--white);
  border-left: 8px solid var(--green);
}

.partner-callout h3 {
  margin: 0;
  font-size: 1.7rem;
}

.partner-callout p:last-child {
  margin: 8px 0 0;
  color: var(--text);
}

/* Ícones feitos com CSS */
.css-icon {
  position: relative;
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  color: var(--red);
  background: #fff5f5;
  border: 2px solid rgba(239, 47, 53, 0.28);
  border-radius: 50%;
}

.css-icon::before,
.css-icon::after {
  position: absolute;
  content: "";
}

.icon-target::before {
  width: 22px;
  height: 22px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.icon-target::after {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.icon-eye::before {
  width: 26px;
  height: 18px;
  border: 4px solid currentColor;
  border-radius: 50%;
}

.icon-eye::after {
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
}

.icon-star::before {
  width: 26px;
  height: 26px;
  background: currentColor;
  clip-path: polygon(50% 0, 62% 34%, 98% 34%, 68% 54%, 79% 90%, 50% 68%, 21% 90%, 32% 54%, 2% 34%, 38% 34%);
}

.icon-person::before {
  top: 10px;
  width: 13px;
  height: 13px;
  background: currentColor;
  border-radius: 50%;
}

.icon-person::after {
  bottom: 10px;
  width: 26px;
  height: 15px;
  background: currentColor;
  border-radius: 18px 18px 8px 8px;
}

.icon-box::before {
  width: 25px;
  height: 22px;
  border: 4px solid currentColor;
  border-radius: 4px;
}

.icon-box::after {
  top: 14px;
  width: 25px;
  height: 4px;
  background: currentColor;
}

.icon-store::before {
  top: 12px;
  width: 30px;
  height: 10px;
  background: currentColor;
  border-radius: 8px 8px 3px 3px;
}

.icon-store::after {
  bottom: 11px;
  width: 24px;
  height: 18px;
  border: 4px solid currentColor;
  border-top: 0;
  border-radius: 0 0 4px 4px;
}

.icon-chat::before {
  width: 28px;
  height: 20px;
  border: 4px solid currentColor;
  border-radius: 8px;
}

.icon-chat::after {
  right: 12px;
  bottom: 11px;
  width: 10px;
  height: 10px;
  background: currentColor;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

/* Navegação e linhas do catálogo */
.catalog-nav {
  position: sticky;
  top: 83px;
  z-index: 30;
  margin-bottom: 26px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.catalog-nav a {
  padding: 8px 11px;
  color: var(--blue-strong);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  background: var(--blue-soft);
  border-radius: var(--radius);
}

.catalog-nav a:hover,
.catalog-nav a:focus-visible {
  color: var(--white);
  background: var(--red);
  outline: none;
}

.product-line {
  padding: 34px 0 10px;
  scroll-margin-top: 150px;
}

.line-heading {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.line-heading span {
  padding: 7px 10px;
  color: var(--white);
  font-size: 0.86rem;
  font-weight: 900;
  background: var(--red);
  border-radius: var(--radius);
}

.line-heading h3 {
  margin: 0;
  font-size: 1.85rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

/* Cards do catálogo */
.product-card {
  overflow: hidden;
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.product-image {
  display: grid;
  min-height: 228px;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f2fbff 100%);
  border-bottom: 4px solid var(--yellow);
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.product-content h4 {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 1.35rem;
  line-height: 1.12;
}

.product-details {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.product-details div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  background: var(--blue-soft);
  border: 1px solid rgba(8, 134, 199, 0.16);
  border-radius: var(--radius);
}

.product-details dt {
  color: var(--blue-strong);
  font-weight: 900;
}

.product-details dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.package-info {
  margin: 0 0 18px;
  color: var(--text);
  font-size: 0.95rem;
}

/* Trabalhe conosco */
.work-section .section-inner {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.work-intro {
  position: sticky;
  top: 118px;
}

.work-intro .button {
  margin-top: 24px;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* Rodapé */
.site-footer {
  color: var(--white);
  background:
    linear-gradient(135deg, #07384f, #0b5d82 55%, #087b9e);
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.7fr);
  gap: 28px;
  align-items: start;
  margin-bottom: 24px;
}

.footer-logo {
  width: 170px;
  border-radius: var(--radius);
}

.footer-text {
  max-width: 520px;
  margin: 18px 0 10px;
  color: rgba(255, 255, 255, 0.82);
}

.instagram {
  margin: 0;
  color: var(--yellow);
  font-weight: 900;
}

.commercial-box {
  padding: 24px;
  color: var(--ink);
  font-style: normal;
}

.commercial-box h2 {
  font-size: 2rem;
}

.commercial-box p {
  margin: 10px 0;
  color: var(--text);
  overflow-wrap: anywhere;
}

.commercial-box .button {
  margin-top: 12px;
}

.contacts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  padding: 20px;
  color: var(--ink);
}

.contact-card h3 {
  margin-top: 0;
}

.contact-card p + p {
  margin-top: 8px;
}

.contact-card strong,
.commercial-box strong {
  color: var(--red);
}

.contact-card a,
.commercial-box a {
  font-weight: 900;
  overflow-wrap: anywhere;
}

/* Responsividade */
@media (max-width: 1180px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .contacts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .main-nav {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }

  .hero-inner {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 44px 0;
  }

  .hero-copy h1 {
    font-size: 3rem;
  }

  .section-heading-row,
  .partner-callout,
  .footer-top {
    align-items: flex-start;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .institutional-grid,
  .about-gallery,
  .work-section .section-inner {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-auto-rows: 260px;
  }

  .about-photo-large,
  .about-photo-wide {
    grid-column: auto;
    grid-row: auto;
  }

  .work-intro {
    position: static;
  }

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

  .catalog-nav {
    top: 140px;
  }

  .product-line {
    scroll-margin-top: 210px;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .hero-inner {
    width: calc(100% - 24px);
    max-width: var(--max-width);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    align-items: center;
  }

  .brand img {
    width: 132px;
  }

  .main-nav {
    max-width: 100%;
    display: grid;
    grid-template-columns: 1fr;
  }

  .main-nav a {
    min-width: 0;
    justify-content: center;
    text-align: center;
    min-height: 34px;
    padding: 7px 9px;
    font-size: 0.82rem;
    background: var(--blue-soft);
    border: 1px solid rgba(8, 134, 199, 0.16);
  }

  .main-nav a:last-child {
    grid-column: auto;
  }

  .hero-copy h1 {
    font-size: 2.25rem;
  }

  .hero-inner {
    width: 100%;
    max-width: none;
    padding: 44px 12px;
  }

  .hero-text,
  .section-heading p,
  .work-intro p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    padding-right: 12px;
  }

  .hero-actions .button {
    width: 342px !important;
    max-width: 90%;
    justify-self: start;
  }

  .button {
    width: 100%;
    max-width: 100%;
  }

  .hero-gallery,
  .work-grid,
  .product-grid,
  .contacts-grid {
    grid-template-columns: 1fr;
  }

  .about-gallery {
    grid-auto-rows: 220px;
  }

  .value-list {
    grid-template-columns: 1fr;
  }

  .hero-product,
  .hero-product-large {
    min-height: 220px;
  }

  .content-band,
  .catalog-section,
  .work-section,
  .site-footer {
    padding: 48px 0;
  }

  .section-heading h2,
  .work-intro h2 {
    font-size: 2rem;
  }

  .line-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-image {
    min-height: 210px;
  }

  .product-details div {
    grid-template-columns: 82px 1fr;
  }

  .catalog-nav {
    position: static;
  }

  .product-line {
    scroll-margin-top: 150px;
  }
}
