/* Crestani EPI — protótipo visual/UX (e-commerce EPI). Conteúdo comercial: index.html. */

:root {
  --astro-navy: #0c1f36;
  --astro-navy-2: #15365a;
  --accent: #ea580c;
  --accent-hover: #c2410c;
  --accent-soft: rgba(234, 88, 12, 0.12);
  --surface: #eef2f7;
  --surface-elevated: #f8fafc;
  --card: #fff;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --success: #0f766e;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 4px 12px rgba(15, 23, 42, 0.08), 0 20px 40px rgba(15, 23, 42, 0.1);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, sans-serif;
  --ring: 0 0 0 3px rgba(234, 88, 12, 0.35);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  color: var(--text);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--card);
  color: var(--astro-navy);
  font-weight: 700;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
  outline: none;
  box-shadow: var(--shadow-hover), var(--ring);
}

a {
  color: var(--astro-navy-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: var(--radius-sm);
}

.search-bar input:focus-visible {
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
}

.search-bar button:focus-visible {
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

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

.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.page-main {
  padding-bottom: 48px;
}

/* —— Barra utilitária (estilo concorrente) —— */
.utility {
  background: var(--astro-navy);
  color: #e8eef5;
  font-size: 13px;
}

.utility-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.utility a {
  color: #fff;
  text-decoration: none;
}

.utility a:hover {
  text-decoration: underline;
}

.utility-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.utility .wa {
  font-weight: 600;
}

/* —— Cabeçalho principal —— */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-main {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px 24px;
  align-items: center;
  padding: 16px 0;
}

@media (max-width: 960px) {
  .header-main {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .brand {
    grid-column: 1;
  }

  .header-actions {
    grid-column: 2;
    justify-self: end;
  }

  .search-bar {
    grid-column: 1 / -1;
  }

  .phones {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: linear-gradient(145deg, var(--astro-navy), var(--astro-navy-2));
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  box-shadow: 0 4px 14px rgba(12, 31, 54, 0.25);
}

.brand-text strong {
  display: block;
  font-size: 17px;
  color: var(--astro-navy);
  letter-spacing: -0.02em;
}

.brand-text span {
  font-size: 12px;
  color: var(--muted);
}

.search-bar {
  display: flex;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
}

.search-bar input {
  flex: 1;
  border: 1px solid var(--border);
  border-right: 0;
  border-radius: var(--radius-sm) 0 0 var(--radius-sm);
  padding: 12px 16px;
  font: inherit;
  background: var(--surface-elevated);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.search-bar input:hover {
  border-color: #cbd5e1;
}

.search-bar input:focus {
  background: var(--card);
  border-color: var(--astro-navy-2);
}

.search-bar button {
  border: 1px solid var(--astro-navy-2);
  background: linear-gradient(180deg, var(--astro-navy-2), var(--astro-navy));
  color: #fff;
  padding: 0 20px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  cursor: pointer;
  font-weight: 600;
  transition: filter 0.15s ease, transform 0.05s ease;
}

.search-bar button:active {
  transform: translateY(1px);
}

.search-bar button:hover {
  background: var(--astro-navy);
}

.phones {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 13px;
  color: var(--muted);
}

.phones strong {
  color: var(--astro-navy);
  font-size: 15px;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--astro-navy-2);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: var(--radius);
}

.icon-link:hover {
  background: var(--surface);
  text-decoration: none;
}

.cart-badge {
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 999px;
  margin-left: 2px;
}

/* —— Navegação categorias (mega estilo) —— */
.nav-cats {
  background: linear-gradient(90deg, var(--astro-navy), var(--astro-navy-2));
  color: #fff;
}

.nav-cats-inner {
  display: flex;
  align-items: stretch;
  gap: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.nav-cats-inner::-webkit-scrollbar {
  height: 4px;
}

.nav-item {
  position: relative;
  flex-shrink: 0;
}

.nav-trigger {
  display: block;
  padding: 14px 16px;
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}

.nav-trigger:hover,
.nav-item:hover .nav-trigger {
  background: rgba(255, 255, 255, 0.1);
}

.mega {
  display: none;
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 280px;
  max-width: min(90vw, 720px);
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  padding: 18px 20px;
  z-index: 50;
}

.nav-item:hover .mega,
.nav-item:focus-within .mega {
  display: block;
}

.mega h4 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.mega ul {
  list-style: none;
  margin: 0;
  padding: 0;
  columns: 2;
  column-gap: 24px;
}

.mega a {
  display: block;
  padding: 4px 0;
  font-size: 14px;
  color: var(--text);
}

.mega a:hover {
  color: var(--accent);
}

.mobile-menu-toggle {
  display: none;
  margin-left: 8px;
  padding: 8px 12px;
  background: var(--astro-navy);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 600;
}

@media (max-width: 960px) {
  .nav-cats-inner {
    display: none;
    flex-direction: column;
    padding: 8px 0;
  }

  .nav-cats-inner.is-open {
    display: flex;
  }

  .nav-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .mega {
    position: static;
    display: block;
    box-shadow: none;
    border: 0;
    padding: 0 0 12px 12px;
    background: rgba(0, 0, 0, 0.15);
  }

  .mega ul {
    columns: 1;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }
}

/* —— Faixa promo / condições —— */
.promo-strip {
  background: linear-gradient(105deg, #fff7ed 0%, #fffbeb 45%, #f8fafc 100%);
  border-bottom: 1px solid #fed7aa;
  font-size: 13px;
  padding: 12px 0;
  text-align: center;
  color: var(--text);
  line-height: 1.55;
}

.promo-strip strong {
  color: var(--accent);
}

/* —— Seções vitrine —— */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin: 40px 0 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.section-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: min(120px, 35%);
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--accent), rgba(234, 88, 12, 0.25));
}

.section-head h2 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--astro-navy);
  letter-spacing: -0.03em;
  font-weight: 800;
}

.link-all {
  font-weight: 600;
  font-size: 14px;
  color: var(--accent);
  text-decoration: none;
}

.link-all:hover {
  text-decoration: underline;
}

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

@media (max-width: 1024px) {
  .product-row {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .product-row {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: #cbd5e1;
}

.card-img {
  aspect-ratio: 1;
  background-color: #f1f5f9;
  background-image: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, transparent 50%),
    repeating-linear-gradient(-12deg, transparent, transparent 8px, rgba(148, 163, 184, 0.08) 8px, rgba(148, 163, 184, 0.08) 9px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  padding: 16px;
  border-bottom: 1px solid var(--border);
}

.card-body {
  padding: 16px 16px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  min-height: 3.92em;
}

.price-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--astro-navy);
  letter-spacing: -0.02em;
}

.price-note {
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.pix-note {
  font-size: 12px;
  color: var(--success);
  font-weight: 600;
  margin-top: 4px;
  padding: 6px 10px;
  margin-left: -2px;
  margin-right: -2px;
  background: rgba(15, 118, 110, 0.08);
  border-radius: var(--radius-sm);
  width: fit-content;
  max-width: 100%;
}

.btn-quick {
  margin-top: 14px;
  display: block;
  text-align: center;
  padding: 11px 14px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hover));
  color: #fff !important;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none !important;
  border: 0;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: filter 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn-quick:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.4);
}

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

/* —— Tiles categorias —— */
.tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 24px 0 8px;
}

@media (max-width: 900px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

.tile {
  background: linear-gradient(135deg, var(--astro-navy) 0%, var(--astro-navy-2) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 22px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-decoration: none !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

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

.tile strong {
  font-size: 16px;
  margin-bottom: 6px;
}

.tile span {
  font-size: 13px;
  opacity: 0.9;
}

/* —— Marcas —— */
.brands {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.brands h2 {
  margin: 0 0 16px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--astro-navy);
  letter-spacing: -0.02em;
}

.brand-scroll {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.brand-pill {
  padding: 9px 16px;
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}

.brand-pill:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* —— Quem somos —— */
.about {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  margin: 40px 0;
  box-shadow: var(--shadow);
}

.about h2 {
  margin: 0 0 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.about h1 {
  margin: 0 0 16px;
  font-size: 24px;
  color: var(--astro-navy);
  line-height: 1.25;
}

.about-body.collapsed .about-extra {
  display: none;
}

.btn-text {
  margin-top: 12px;
  background: none;
  border: 0;
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 14px;
}

.btn-text:hover {
  text-decoration: underline;
}

/* —— Depoimentos —— */
.reviews {
  margin: 32px 0;
}

.reviews h2 {
  font-size: 22px;
  color: var(--astro-navy);
  margin: 0 0 16px;
}

.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.review-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.review-card:hover {
  border-color: #cbd5e1;
  box-shadow: var(--shadow-hover);
}

.review-card cite {
  font-style: normal;
  font-weight: 700;
  font-size: 14px;
  color: var(--astro-navy);
}

.review-card h3 {
  margin: 8px 0 6px;
  font-size: 15px;
}

.review-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* —— FAQ —— */
.faq {
  margin: 32px 0;
}

.faq h2 {
  font-size: 22px;
  color: var(--astro-navy);
  margin: 0 0 16px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--card);
  overflow: hidden;
}

.faq-item button {
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  background: var(--card);
  border: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--text);
  transition: background 0.15s ease;
}

.faq-item button:hover {
  background: var(--surface-elevated);
}

.faq-item button::after {
  content: "+";
  font-size: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.faq-item.is-open button::after {
  content: "−";
}

.faq-panel {
  display: none;
  padding: 0 16px 14px;
  font-size: 14px;
  color: var(--muted);
}

.faq-item.is-open .faq-panel {
  display: block;
}

/* —— Blog —— */
.blog-block {
  margin: 32px 0;
}

.blog-block h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 22px;
  color: var(--astro-navy);
}

.blog-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.blog-list a {
  display: block;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.blog-list a:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateX(2px);
}

/* —— Newsletter + social —— */
.newsletter {
  background: linear-gradient(160deg, var(--astro-navy) 0%, #071018 100%);
  color: #fff;
  padding: 44px 0;
  margin-top: 48px;
  border-top: 4px solid var(--accent);
}

.newsletter h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.newsletter p {
  margin: 0 0 16px;
  opacity: 0.9;
  font-size: 14px;
}

.news-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 480px;
}

.news-form input {
  flex: 1;
  min-width: 200px;
  padding: 12px 14px;
  border-radius: var(--radius);
  border: 0;
  font: inherit;
}

.news-form button {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: var(--radius);
  font-weight: 700;
  cursor: pointer;
}

.news-form button:hover {
  background: var(--accent-hover);
}

.social-line {
  margin-top: 20px;
  font-size: 14px;
}

.social-line a {
  color: #fff;
  font-weight: 600;
}

/* —— Rodapé —— */
.site-footer {
  background: #050d16;
  color: #94a3b8;
  font-size: 13px;
  padding: 44px 0 28px;
}

.site-footer a {
  color: #e2e8f0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer h3 {
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 12px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer li {
  margin-bottom: 8px;
}

.footer-bottom {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12px;
  line-height: 1.6;
}

.disclaimer {
  font-size: 11px;
  opacity: 0.75;
  margin-top: 12px;
}
