/* ================= Acqualis Prime site styles ================= */

:root {
  --deep: #0f3f6e;
  --navy: #0b2f52;
  --blue: #1a7fb5;
  --blue-soft: #d8ecf7;
  --ice: #f3f9fd;
  --text: #143a54;
  --muted: #5b7a8c;
  --white: #ffffff;
  --error: #c0392b;
  --success: #1a6b4a;
  --success-bg: #e6f9f0;
  --success-border: #b8ebd4;
  --radius: 18px;
  --shadow: 0 18px 40px rgba(15, 63, 110, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Poppins", sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: "Playfair Display", serif;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: break-word; /* Proteção contra palavras gigantes */
  word-wrap: break-word;
}

p {
  overflow-wrap: break-word;
}

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

.container {
  width: 92%; /* Formato mais seguro para mobile */
  max-width: 1140px;
  margin: 0 auto;
}

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(15, 63, 110, 0.06);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo__img {
  height: 55px; 
  width: auto;
  display: block;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  text-decoration: none;
  color: var(--blue);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--deep);
}

.nav__ig {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  transition: transform 0.2s ease;
}

.nav__ig:hover {
  transform: scale(1.1); 
}

.burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--deep);
  margin: 4px 0;
}

/* ---------- Banner ---------- */
.banner {
  position: relative;
  height: 260px;
  overflow: hidden;
}

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

.wave {
  position: absolute;
  left: 0;
  width: 100%;
  line-height: 0;
  pointer-events: none;
}

.wave--bottom {
  bottom: -1px;
}

.wave--top {
  top: -1px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f7fbfe 0%, #eef7fc 100%);
  padding: 90px 0 110px;
  position: relative;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Previne que itens longos estiquem o grid horizontalmente */
.hero__grid > * {
  min-width: 0;
}

.hero h1 {
  font-size: clamp(28px, 7vw, 46px); /* Tamanho responsivo ajustado para não estourar */
  line-height: 1.15;
}

.hero p {
  margin-top: 22px;
  color: var(--muted);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
  max-width: 430px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 34px;
}

.hero__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.hero__media img {
  width: 100%;
  height: 340px;
  object-fit: cover;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px rgba(26, 127, 181, 0.32);
}

.btn--ghost {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 10px 24px rgba(15, 63, 110, 0.1);
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- Services ---------- */
.services {
  padding: 80px 0 90px;
  background: #fff;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 46px;
}

.section-head h2 {
  font-size: clamp(26px, 3vw, 36px);
}

.section-head p {
  margin-top: 16px;
  color: var(--muted);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.8;
}

.services__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 26px;
  align-items: stretch;
}

.services__grid > * {
  min-width: 0;
}

.cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.card {
  background: linear-gradient(180deg, #eaf5fc 0%, #f7fcff 100%);
  border-radius: 14px;
  padding: 30px 22px;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

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

.card svg {
  width: 62px;
  height: 62px;
  margin: 0 auto 18px;
  color: var(--blue);
}

.card h3 {
  font-size: 19px;
}

.card p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.7;
}

.collage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.35fr 1fr 1fr;
  gap: 8px;
  border-radius: 14px;
  overflow: hidden;
}

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

.collage img:first-child {
  grid-column: span 2;
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  padding: 100px 0;
  text-align: center;
  color: #fff;
  background: linear-gradient(rgba(9, 39, 71, 0.4), rgba(9, 39, 71, 0.7)),
    url("images/background.png") center/cover no-repeat;
}

.cta__drop {
  width: 54px;
  height: 54px;
  margin: 0 auto 26px;
  color: #8fd2f3;
}

.cta h2 {
  color: #fff;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 500;
}

.cta h2 strong {
  font-weight: 700;
}

.cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 34px;
}

/* ---------- FAQ ---------- */
.faq {
  padding: 90px 0 100px;
  background: #f8fbfe;
}

.faq__list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 14px;
}

.faq__item {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(15, 63, 110, 0.06);
  overflow: hidden;
}

.faq__q {
  width: 100%;
  background: none;
  border: 0;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  color: var(--navy);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq__q i {
  font-style: normal;
  color: var(--blue);
  font-size: 20px;
  transition: transform 0.25s ease;
}

.faq__item.is-open .faq__q i {
  transform: rotate(45deg);
}

.faq__a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq__a p {
  padding: 0 24px 22px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
  padding: 40px 0;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
}

/* ---------- Formulário de orçamento ---------- */
.form-section {
  background: linear-gradient(180deg, #f7fbfe 0%, #eef7fc 100%);
  padding: 90px 0 110px;
}

.form-section__inner {
  max-width: 780px;
}

.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 40px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group--full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
}

.form-input,
.form-textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 14px 16px;
  border: 1px solid #d0e3f0;
  border-radius: 12px;
  background: #f9fcfe;
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26, 127, 181, 0.15);
  background: #fff;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: #9ab;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.form-input[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.form-error {
  font-size: 12px;
  color: var(--error);
  min-height: 16px;
}

.form-actions {
  margin-top: 8px;
}

.form-success {
  grid-column: 1 / -1;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
  border-radius: 12px;
  padding: 16px;
  display: none;
  font-size: 14px;
  line-height: 1.7;
}

.form-success.is-visible {
  display: block;
}


/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .nav.is-open {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 18px;
    background: #fff;
    padding: 22px;
    box-shadow: var(--shadow);
  }
  .burger {
    display: block;
  }
  .header__inner {
    position: relative;
  }
  .hero__grid,
  .services__grid {
    grid-template-columns: 1fr;
  }
  .banner {
    height: 190px;
  }
}

@media (max-width: 560px) {
  .cards {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 60px 0 80px;
  }
  .form-card {
    grid-template-columns: 1fr;
    padding: 28px;
  }
  .form-section {
    padding: 60px 0 80px;
  }
}

/* ---------- Sobre Nós ---------- */
.about {
  padding: 90px 0 100px;
  background: #fff;
}

.about__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.about__row + .about__row {
  margin-top: 80px;
}

.about__row--reverse .about__media {
  order: 2;
}

.about__media {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.about__media img {
  width: 100%;
  height: 400px;
  object-fit: cover;
}

.about__tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-soft);
  border-radius: 999px;
  padding: 7px 16px;
  margin-bottom: 18px;
}

.about__text h2 {
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.2;
}

.about__text p {
  margin-top: 18px;
  color: var(--muted);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.9;
}

.about__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  margin-top: 30px;
}

.about__stats div strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 28px;
  color: var(--deep);
}

.about__stats div span {
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 900px) {
  .about__row,
  .about__row--reverse .about__media {
    grid-template-columns: 1fr;
    order: 0;
  }
  .about__media img {
    height: 280px;
  }
}

/* FAQ via <details> */
.faq__item > summary {
  list-style: none;
  cursor: pointer;
}
.faq__item > summary::-webkit-details-marker {
  display: none;
}
.faq__item[open] > summary i {
  transform: rotate(45deg);
}
.faq__a--open {
  max-height: none;
}

/* ---------- Catálogo ---------- */
.catalog { padding: 70px 0 90px; background: linear-gradient(180deg, var(--ice), var(--white)); }
.catalog .section-head h1 { font-family: "Playfair Display", serif; font-size: clamp(30px, 4vw, 44px); color: var(--navy); margin-bottom: 14px; }
.catalog__filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 36px; }
.chip { border: 1px solid rgba(26,127,181,0.35); background: var(--white); color: var(--blue); font-family: inherit; font-size: 13px; font-weight: 500; letter-spacing: .5px; text-transform: uppercase; padding: 10px 20px; border-radius: 999px; cursor: pointer; transition: all .2s ease; }
.chip:hover { border-color: var(--blue); transform: translateY(-1px); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: 0 10px 22px rgba(26,127,181,.28); }
.catalog__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.product { background: var(--white); border: 1px solid rgba(15,63,110,.08); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .25s ease, box-shadow .25s ease; }
.product:hover { transform: translateY(-6px); box-shadow: 0 26px 50px rgba(15,63,110,.18); }
.product.is-hidden { display: none; }
.product__media { position: relative; aspect-ratio: 4 / 3; background: linear-gradient(135deg, var(--blue-soft), #a9d6ee); overflow: hidden; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product:hover .product__media img { transform: scale(1.05); }
.product__media img.is-missing { opacity: 0; }
.product__badge { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--deep); font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; padding: 6px 12px; border-radius: 999px; z-index: 10; }
.product__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.product__body h3 { font-size: 21px; margin-bottom: 8px; }
.product__body > p { color: var(--muted); font-size: 14.5px; line-height: 1.6; font-weight: 300; }
.product__specs { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 20px; }
.product__specs li { background: var(--ice); color: var(--deep); font-size: 12px; font-weight: 500; padding: 6px 11px; border-radius: 8px; }
.product__cta { margin-top: auto; align-self: flex-start; }
.catalog__empty { display: none; text-align: center; color: var(--muted); padding: 40px 0; }
.catalog__empty.is-visible { display: block; }
.catalog__note { margin-top: 50px; text-align: center; background: var(--white); border: 1px solid rgba(15,63,110,.08); border-radius: var(--radius); box-shadow: var(--shadow); padding: 34px 26px; }
.catalog__note p { color: var(--muted); max-width: 640px; margin: 0 auto 20px; line-height: 1.7; font-weight: 300; }
@media (max-width: 560px) { .catalog { padding: 50px 0 70px; } .catalog__grid { grid-template-columns: 1fr; } }

/* ---------- Detalhes do Produto (Página Individual) ---------- */
.product-detail {
  padding: 90px 0 110px;
  background: linear-gradient(180deg, var(--ice), var(--white));
  min-height: 70vh;
}
.product-detail__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.product-detail__grid > * {
  min-width: 0;
}
.product-detail__media {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--blue-soft);
}

#detalhe-imagem {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: cover;
  display: block;
}

.product-detail__badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,.92);
  color: var(--deep);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .8px;
  text-transform: uppercase;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  z-index: 10;
}
.product-detail__info h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 20px;
  color: var(--navy);
}
.product-detail__info p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 30px;
}
.product-detail__specs {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.product-detail__specs li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--navy);
  font-weight: 500;
  background: var(--white);
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(15, 63, 110, 0.05);
  border: 1px solid #d0e3f0;
}
.product-detail__specs li::before {
  content: "✓";
  color: var(--blue);
  font-weight: bold;
  font-size: 18px;
}

/* ---------- Galeria de Múltiplas Fotos ---------- */
.product-gallery {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  padding: 0 20px 20px;
  overflow-x: auto; 
}

.gallery-thumb {
  width: 76px !important;
  height: 76px !important;
  min-width: 76px;
  object-fit: cover;
  border-radius: 12px;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.25s ease;
  flex-shrink: 0;
}
.gallery-thumb:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}
.gallery-thumb.active {
  opacity: 1;
  border-color: var(--blue);
}

@media (max-width: 900px) {
  .product-detail__grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ==========================================
   SELETOR DE TAMANHOS (VARIAÇÕES)
========================================== */
.size-selector-wrap { margin-top: 24px; margin-bottom: 24px; }
.size-selector-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.size-selector-title { font-size: 13px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: 0.5px; }
.size-selector-selected { font-size: 13px; color: var(--muted); }
.size-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.size-btn {
  background: #fff; border: 1px solid #d0e3f0; border-radius: 8px;
  padding: 16px 12px; font-size: 14px; font-weight: 600; color: var(--navy);
  cursor: pointer; transition: all 0.2s ease;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  font-family: "Poppins", sans-serif;
}
.size-btn:hover { border-color: var(--blue); }
.size-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.size-badge { font-size: 10px; font-weight: 600; color: #8898aa; text-transform: uppercase; margin-left: 4px; }
.size-btn.active .size-badge { color: rgba(255,255,255,0.8); }

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