/* =========================================
   MODELA VIDROS — style.css
   Otimizado para velocidade: sem dependências externas de CSS,
   uso de custom properties, layout com CSS Grid/Flexbox nativo.
   ========================================= */

/* ── TOKENS ─────────────────────────────── */
:root {
  /* AZUL DESTAQUE (#31D6F7) */
  --cyan-50: #e7fafd;
  --cyan-100: #c1f2fb;
  --cyan-200: #8be4f6;
  --cyan-400: #4cdef9;
  --cyan-500: #31D6F7;
  /* cor principal */
  --cyan-600: #1ab8d6;
  --cyan-700: #1593ab;
  --cyan-800: #12768a;
  --cyan-900: #0f5e6e;
  --cyan-950: #083842;

  /* FUNDOS CLAROS */
  --dark: #f4f6fa;
  --dark-2: #ffffff;
  --dark-3: #f0f2f7;
  --mid: #e0e4eb;
  --light: #ffffff;

  /* TEXTO AZUL ESCURO (#003384) */
  --text-primary: #003384;
  --text-secondary: #0045b3;
  --text-muted: #3a6ea5;
  --text-dark: #001a4d;

  --font-display: 'Product Sans', sans-serif;
  --font-body: 'Product Sans', sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --shadow-card: 0 4px 24px rgba(0, 51, 132, 0.08);
  /* shadow ajustada para contraste */
  --shadow-hover: 0 8px 40px rgba(0, 51, 132, 0.15);

  --transition: 0.22s ease;
  --max-w: 1200px;
}

/* ── RESET ───────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--dark);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 1rem;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font: inherit;
}

input,
select,
textarea {
  font: inherit;
}

/* ── UTILITIES ───────────────────────────── */
.container {
  width: min(var(--max-w), 100% - 2.5rem);
  margin-inline: auto;
}

.section {
  padding-block: 6rem;
}

.section-dark {
  background: var(--dark-2);
}

.section-muted {
  background: var(--dark-3);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 4rem;
}

.section-header h2 {
  margin-block: .5rem 1rem;
}

.section-header p {
  color: var(--text-secondary);
}

.label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--cyan-500);
  border: 1px solid var(--cyan-500);
  padding: .3rem .85rem;
  border-radius: 100px;
}

/* ── TYPOGRAPHY ──────────────────────────── */
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  text-shadow: 0 0 10px white;

}

h1 {
  font-size: calc(clamp(2.4rem, 6vw, 4.2rem));
  font-weight: 800;
  text-shadow: 0px 5px 5px rgb(255, 255, 255);

}

h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: .5rem;
}

h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: .3rem;
}

/* ── BUTTONS ─────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cyan-500);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  letter-spacing: .02em;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  border: 2px solid transparent;
}

.btn-primary:hover {
  background: var(--cyan-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(49, 214, 247, 0.4);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--cyan-500);
  color: var(--text-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: .95rem;
  padding: .85rem 2rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cyan-500);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
}

.btn-ghost:hover {
  background: var(--cyan-500);
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(49, 214, 247, 0.4);
}

.btn-nav {
  background: var(--cyan-500);
  color: var(--text-dark);
  padding: .5rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .88rem;
  transition: background var(--transition);
}

.btn-nav:hover {
  background: var(--cyan-500);
}

.btn-full {
  width: 100%;
  justify-content: center;
}

/* ── HEADER ──────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(49, 214, 247, 0.15);
  transition: background var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--text-primary);
}

.logo strong {
  color: var(--cyan-400);
}

/* Nav */
.nav ul {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav a {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}

.nav a:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cyan-400);
  transition: width var(--transition);
  border-radius: 2px;
}

.nav a:not(.btn-nav):hover {
  color: var(--cyan-200);
}

.nav a:not(.btn-nav):hover::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--cyan-200);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Mobile nav */
.nav-mobile {
  display: none;
  padding: 1rem 1.5rem 1.5rem;
  background: var(--dark-2);
  border-top: 1px solid rgba(76, 222, 249, .1);
}

.nav-mobile ul {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.nav-mobile a {
  display: block;
  padding: .75rem 1rem;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 1rem;
  font-weight: 500;
  transition: background var(--transition), color var(--transition);
}

.nav-mobile a:hover {
  background: rgba(26, 184, 214, .1);
  color: var(--cyan-200);
}

.nav-mobile.open {
  display: block;
}

.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
  opacity: 0;
}

.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 70px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 530px;
  padding-block: 4.5rem;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.95);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dark);
  background: var(--cyan-500);
  border: 1px solid var(--cyan-500);
  padding: .35rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.hero h1 em {
  font-style: normal;
  color: var(--cyan-500);
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.5rem;
  line-height: 1.7;

}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
}

.stat {
  display: flex;
  flex-direction: column;
}

.stat strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan-600);
}

.stat span {
  font-size: .85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: .1em;
  font-weight: 600;
}



/* ── SERVICES GRID ───────────────────────── */
.grid-services {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--dark-2);
  border: 1px solid rgba(76, 222, 249, .1);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan-600), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  border-color: rgba(76, 222, 249, .3);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
  opacity: 1;
}

.service-icon {
  width: 56px;
  height: 56px;
  background: rgba(26, 184, 214, .1);
  border: 1px solid rgba(76, 222, 249, .15);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 10px;
}

.service-icon svg {
  width: 100%;
  height: 100%;
}

.service-card h3 {
  color: var(--text-primary);
  margin-top: 1rem;
}

.service-card-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  margin-bottom: 1.25rem;
  transition: transform var(--transition);
}

.service-card:hover .service-card-img {
  transform: scale(1.02);
}

.service-card p {
  color: var(--text-secondary);
  font-size: .93rem;
  margin-top: .4rem;
}

/* ── GALLERY GRID ────────────────────────── */
.grid-gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.gallery-item--wide {
  grid-column: span 12;
}

.gallery-item:not(.gallery-item--wide) {
  grid-column: span 6;
}

.gallery-img {
  position: relative;
  width: 100%;
  padding-top: var(--aspect, 56.25%);
  overflow: hidden;
}

.gallery-img svg,
.gallery-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.gallery-item:hover .gallery-img svg,
.gallery-item:hover .gallery-img img {
  transform: scale(1.03);
}

@media (min-width: 901px) {
  .gallery-item {
    cursor: zoom-in;
  }
}

figcaption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(255, 255, 255, .98) 0%, rgba(255, 255, 255, 0) 100%);
  color: var(--text-primary);
  font-size: .82rem;
  padding: 1.2rem 1rem .75rem;
  transition: opacity var(--transition);
  pointer-events: none;
  /* Deixa o clique passar para o item pai */
}

/* ── DIFERENCIAIS ────────────────────────── */
.diferenciais-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.diferenciais-text .label {
  margin-bottom: 1rem;
}

.diferenciais-text h2 {
  margin-bottom: 1rem;
}

.diferenciais-text p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.diferenciais-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.diferencial-item {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: var(--dark-2);
  border: 1px solid rgba(76, 222, 249, .1);
  border-radius: var(--radius-md);
  transition: border-color var(--transition);
}

.diferencial-item:hover {
  border-color: rgba(76, 222, 249, .3);
}

.diferencial-num {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--cyan-600);
  min-width: 2.2rem;
  line-height: 1;
  padding-top: .15rem;
}

.diferencial-item h4 {
  color: var(--text-primary);
}

.diferencial-item p {
  font-size: .9rem;
  color: var(--text-secondary);
}

/* ── TESTIMONIALS ────────────────────────── */
.grid-testimonials {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.testimonial {
  background: var(--dark-2);
  border: 1px solid rgba(76, 222, 249, .1);
  border-radius: var(--radius-md);
  padding: 2rem;
  font-style: normal;
  transition: border-color var(--transition);
}

.testimonial:hover {
  border-color: rgba(76, 222, 249, .25);
}

.stars {
  color: var(--cyan-400);
  font-size: 1rem;
  margin-bottom: 1rem;
  letter-spacing: .1em;
}

.testimonial p {
  color: var(--text-secondary);
  font-size: .95rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
}

.testimonial footer {
  font-size: .85rem;
  color: var(--text-muted);
}

.testimonial footer strong {
  color: var(--text-primary);
  display: block;
}

/* ── CONTATO ─────────────────────────────── */
#contato {
  position: relative;
  background-image: url('IMAGENS/VIDRO_FUNDO.avif');
  background-size: cover;
  background-position: center;
  overflow: hidden;
  padding-block: 4rem;
  /* Reduced from 6rem (default .section) */
}

#contato::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(244, 246, 250, 0.92), rgba(244, 246, 250, 0.88));
  z-index: 1;
}

.contato-layout {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  max-width: 800px;
  margin-inline: auto;
}

.contato-text .label {
  margin-bottom: 1rem;
}

.contato-text h2 {
  margin-bottom: 1rem;
}

.contato-text>p {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.7;
}

.contato-info {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  align-items: center;
}

.contato-info li {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--text-secondary);
  font-size: .95rem;
}

.contato-info svg {
  flex-shrink: 0;
}

.contato-cta {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(49, 214, 247, 0.3);
  box-shadow: 0 20px 40px rgba(0, 51, 132, 0.12);
  transition: transform var(--transition);
  width: 100%;
  max-width: 480px;
}

.contato-cta:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
}

.form-note {
  font-size: .88rem;
  color: var(--text-secondary);
  text-align: center;
}

/* ── FOOTER ──────────────────────────────── */
.footer {
  background: var(--dark-2);
  border-top: 1px solid rgba(76, 222, 249, .08);
  padding-block: 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer .logo span {
  color: var(--text-secondary);
}

.footer-copy {
  font-size: .82rem;
  color: var(--text-secondary);
}

.footer-nav {
  display: flex;
  gap: 1.5rem;
}

.footer-nav a {
  font-size: .85rem;
  color: var(--text-secondary);
  transition: color var(--transition);
}

.footer-nav a:hover {
  color: var(--cyan-400);
}

/* ── WHATSAPP FLOAT ──────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 200;
  display: flex;
  align-items: center;
  gap: .65rem;
  background: #25d366;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .88rem;
  padding: .75rem 1.35rem .75rem .95rem;
  border-radius: 100px;
  box-shadow: 0 6px 30px rgba(37, 211, 102, .45);
  transition: transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 10px 40px rgba(37, 211, 102, .55);
}

.whatsapp-float svg {
  flex-shrink: 0;
}



/* ── HERO SLIDER ─────────────────────────── */
.hero-slider-wrap {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.hero-slider-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1);
}

.hero-slider-track img {
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0.93) 0%, rgba(255, 255, 255, 0.5) 35%, rgba(255, 255, 255, 0) 70%);
  z-index: 2;
  pointer-events: none;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(49, 214, 247, 0.3);
  color: var(--text-dark);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.slider-btn:hover {
  background: var(--cyan-500);
  color: #fff;
  border-color: var(--cyan-500);
}

.slider-btn.prev {
  left: 1.5rem;
}

.slider-btn.next {
  right: 1.5rem;
}

/* ── ANIMATIONS ──────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .55s ease, transform .55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── DESKTOP SPLIT LAYOUT FOR HERO ────────── */
@media (min-width: 901px) {
  .hero {
    background: var(--light);
  }

  .hero-bg.hero-slider-wrap {
    left: 45%;
    width: 55%;
  }

  .hero-content {
    max-width: 45%;
    text-shadow: none;
    transform: translateX(-200px);
  }

  .hero-overlay {
    display: none;
  }
}

/* ── RESPONSIVE ──────────────────────────── */
@media (min-width: 992px) {
  .header-logo {
    margin-left: 200px;
  }
}

@media (max-width: 900px) {
  .nav ul {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .diferenciais-layout,
  .contato-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .gallery-item:not(.gallery-item--wide) {
    grid-column: span 12;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .slider-btn {
    display: none;
  }

  .hero-slider-track img {
    opacity: 0.25;
  }

  .hero-content {
    text-align: center;
    margin-inline: auto;
  }

  .hero-cta {
    justify-content: center;
  }

  .hero-desc {
    margin-inline: auto;
    font-weight: bolder;
  }
}

@media (max-width: 600px) {
  .section {
    padding-block: 4rem;
  }

  .hero-content {
    padding-block: 4rem 3rem;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-primary,
  .btn-ghost {
    width: 100%;
    justify-content: center;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .footer-nav {
    justify-content: center;
  }

  .whatsapp-float span {
    display: none;
  }

  .whatsapp-float {
    padding: .85rem;
    border-radius: 50%;
  }

  .grid-services {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}