/* =========================================================
   TechRedes Telecomunicações - estilos do site
   Cores tiradas do logo: azul-marinho #2B308C e ciano #10A3D7
   ========================================================= */

:root {
  --navy: #2B308C;
  --navy-dark: #161A52;
  --navy-deep: #0E1138;
  --cyan: #10A3D7;
  --cyan-light: #7FD6F5;
  --whats: #25D366;

  --text: #1C1F3A;
  --muted: #5B6080;
  --bg: #FFFFFF;
  --bg-alt: #F3F6FB;
  --line: #E1E6F0;

  --radius: 14px;
  --shadow: 0 10px 30px rgba(22, 26, 82, .08);
  --shadow-lg: 0 20px 50px rgba(22, 26, 82, .15);

  --font-head: "Exo 2", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --header-h: 76px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); }

h1, h2, h3, h4 {
  font-family: var(--font-head);
  line-height: 1.15;
  margin: 0 0 .5em;
  color: var(--navy-dark);
}
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); font-weight: 700; }
h3 { font-size: 1.2rem; font-weight: 700; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-head);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .8rem;
  color: var(--cyan-light);
  margin: 0 0 1rem;
}
.eyebrow--dark { color: var(--cyan); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .7rem 1.3rem;
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn--lg { padding: .9rem 1.7rem; font-size: 1rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--cyan), #0B86C4);
  color: #fff;
  box-shadow: 0 8px 20px rgba(16, 163, 215, .35);
}
.btn--primary:hover { box-shadow: 0 12px 28px rgba(16, 163, 215, .45); }
.btn--ghost { border-color: rgba(255,255,255,.35); color: #fff; }
.btn--ghost:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.btn--white { background: #fff; color: var(--navy); }
.btn--white:hover { box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.btn[disabled] { opacity: .6; pointer-events: none; }
.ico { width: 20px; height: 20px; }

/* ---------- Cabeçalho ---------- */
.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.header.is-scrolled { box-shadow: 0 4px 20px rgba(22,26,82,.08); border-color: var(--line); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.header__logo img { height: 54px; width: auto; }

.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) {
  color: var(--navy-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  position: relative;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width .25s;
}
.nav a:not(.btn):hover::after { width: 100%; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 26px; height: 2.5px;
  margin: 5px 0;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 80px;
  background:
    radial-gradient(ellipse at 80% 20%, rgba(16,163,215,.25), transparent 55%),
    linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 55%, var(--navy-deep) 100%);
  color: #fff;
}
.hero__fibers { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.fiber { stroke: rgba(127, 214, 245, .18); stroke-width: 2; }
.fiber--glow {
  stroke: url(#fiberGrad);
  stroke-width: 3;
  stroke-dasharray: 220 1800;
  stroke-dashoffset: 2000;
  filter: drop-shadow(0 0 6px rgba(16,163,215,.9));
  animation: pulse 6s linear infinite;
}
.fiber--d2 { animation-delay: -2s; animation-duration: 7s; }
.fiber--d3 { animation-delay: -4s; animation-duration: 8s; }
@keyframes pulse { to { stroke-dashoffset: 0; } }

.hero__content { position: relative; z-index: 1; }
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 800;
  max-width: 820px;
  margin-bottom: 1.25rem;
}
.hero h1 span {
  background: linear-gradient(90deg, var(--cyan), var(--cyan-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lead { max-width: 620px; font-size: 1.15rem; color: rgba(255,255,255,.82); margin: 0 0 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

.hero__facts {
  list-style: none;
  margin: 3.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}
.hero__facts li { display: flex; flex-direction: column; padding-left: 1rem; border-left: 3px solid var(--cyan); }
.hero__facts strong { font-family: var(--font-head); font-size: 1.5rem; }
.hero__facts span { color: rgba(255,255,255,.7); font-size: .9rem; }

/* ---------- Seções ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* Sobre */
.about { display: grid; grid-template-columns: 1.1fr .9fr; gap: 4rem; align-items: center; }
.about__text p { color: var(--muted); }
.about__text strong { color: var(--navy); }
.checklist { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .7rem; }
.checklist li { position: relative; padding-left: 2rem; font-weight: 500; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: .3em;
  width: 1.2rem; height: 1.2rem;
  border-radius: 50%;
  background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 62% no-repeat;
}

.about__card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
}
.about__card::before {
  content: "";
  position: absolute;
  inset: -14px 14px 14px -14px;
  z-index: -1;
  border-radius: 24px;
  background: linear-gradient(135deg, var(--cyan), var(--navy));
}
.about__card img { width: 85%; margin: 0 auto 2rem; }
.about__card dl { margin: 0; display: grid; gap: 1rem; }
.about__card dl div { display: flex; justify-content: space-between; gap: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.about__card dt { color: var(--muted); font-size: .9rem; }
.about__card dd { margin: 0; font-weight: 600; color: var(--navy); text-align: right; }

/* Serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.service {
  background: #fff;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.service:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.service__icon {
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  margin-bottom: 1.25rem;
}
.service__icon svg, .contact__ico svg {
  width: 28px; height: 28px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.service p { color: var(--muted); margin: 0; font-size: .95rem; }

/* Etapas */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; counter-reset: step; }
.step { position: relative; padding: 2rem 1.5rem; border-radius: var(--radius); background: var(--bg-alt); }
.step__num {
  display: block;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.step p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Galeria */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.gallery__item {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--navy-dark);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 2.5rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(14,17,56,.85));
  color: #fff;
  font-family: var(--font-head);
  font-weight: 600;
}

/* Produtos */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin: 0 0 2.5rem; }
.filter {
  font: 600 .9rem var(--font-head);
  padding: .55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--navy-dark);
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.filter:hover { border-color: var(--cyan); }
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }

.store-info {
  display: flex;
  align-items: center;
  gap: 2rem;
  margin: -1.5rem 0 2.5rem;
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  background: var(--bg-alt);
  border: 1px solid var(--line);
}
.store-info__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  padding-right: 2rem;
  border-right: 1px solid var(--line);
}
.store-info__brand img { width: 120px; }
.store-info__brand span { font-size: .85rem; line-height: 1.3; color: var(--muted); }
.store-info__brand strong { color: var(--navy-dark); }
.store-info__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; flex: 1; }
.store-info__list li { display: flex; gap: .75rem; align-items: flex-start; }
.store-info__list svg {
  flex-shrink: 0;
  width: 26px; height: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.store-info__list div { display: flex; flex-direction: column; font-size: .88rem; line-height: 1.4; }
.store-info__list strong { font-family: var(--font-head); color: var(--navy-dark); font-size: .95rem; }
.store-info__list span { color: var(--muted); }

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.product {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.product[hidden] { display: none; }
.product:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product__icon, .product > img {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  margin-bottom: 1rem;
  width: 100%;
}
.product > img { object-fit: contain; background: #fff; }
.product__icon {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 70% 25%, rgba(16,163,215,.35), transparent 60%),
    linear-gradient(150deg, var(--navy), var(--navy-deep));
}
.product__icon svg {
  width: 38%;
  height: auto;
  fill: none;
  stroke: var(--cyan-light);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.product__tag {
  font-family: var(--font-head);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: .35rem;
}
.product h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.product p { color: var(--muted); font-size: .9rem; margin: 0 0 1.25rem; flex: 1; }
.btn--ml { background: #FFE600; color: #2D3277; padding: .7rem 1rem; font-size: .9rem; }
.btn--ml:hover { background: #FFD900; box-shadow: 0 8px 20px rgba(255, 214, 0, .4); }
.products__more { display: grid; gap: .5rem; text-align: center; margin: 2.5rem 0 0; }
.products__more > a { font-family: var(--font-head); font-weight: 600; text-decoration: none; }
.products__more span { color: var(--muted); font-size: .95rem; }

/* Chamada */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--cyan) 100%); color: #fff; padding: 70px 0; }
.cta__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta p { margin: 0; color: rgba(255,255,255,.88); font-size: 1.1rem; }
.cta .btn { flex-shrink: 0; }

/* Contato */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 4rem; align-items: start; }
.contact__info > p { color: var(--muted); }
.contact__list { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list div { display: flex; flex-direction: column; min-width: 0; }
.contact__list strong { font-family: var(--font-head); color: var(--navy-dark); }
.contact__list a, .contact__list span { color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.contact__list a:hover { color: var(--cyan); }
.contact__ico {
  flex-shrink: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--navy), var(--cyan));
}
.contact__ico svg { width: 22px; height: 22px; }

.form {
  background: #fff;
  border-radius: 20px;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  display: grid;
  gap: 1.1rem;
}
.form h3 { font-size: 1.5rem; margin-bottom: .2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .4rem; font-size: .88rem; font-weight: 600; color: var(--navy-dark); }
.form input, .form select, .form textarea {
  width: 100%;
  font: inherit;
  font-weight: 400;
  font-size: 1rem;
  color: var(--text);
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 120px; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(16,163,215,.15);
}
.form .is-invalid { border-color: #E5484D; }
.form__status { margin: 0; font-weight: 500; text-align: center; min-height: 1.5em; }
.form__privacy { margin: -.4rem 0 0; font-size: .8rem; color: var(--muted); text-align: center; }
.form__status.ok { color: #18794E; }
.form__status.erro { color: #CD2B31; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.map { margin-top: 4rem; }
.map iframe { width: 100%; height: 380px; border: 0; border-radius: 20px; box-shadow: var(--shadow); display: block; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding: 70px 0 0; font-size: .95rem; }
.footer__inner { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 2.5rem; }
.footer__brand { display: flex; align-items: center; justify-content: center; }
.footer__brand img { width: 190px; filter: brightness(0) invert(1); }
.footer h4 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.footer a { color: rgba(255,255,255,.72); text-decoration: none; overflow-wrap: anywhere; }
.footer a:hover { color: var(--cyan-light); }
.footer__social { display: inline-flex; align-items: center; gap: .6rem; }
.footer__social svg {
  width: 22px; height: 22px;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.footer__bottom {
  margin-top: 50px;
  padding-top: 22px;
  padding-bottom: 22px;
  border-top: 1px solid rgba(255,255,255,.1);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
  font-size: .85rem;
}
.footer__bottom { align-items: center; padding-right: 110px; } /* espaço para o botão flutuante do WhatsApp */
.footer__links { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1.5rem; }
.footer__admin {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .3rem .8rem;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
}
.footer__admin:hover { border-color: var(--cyan-light); }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  width: 60px; height: 60px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--whats);
  color: #fff;
  box-shadow: 0 10px 25px rgba(37, 211, 102, .45);
  transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }
.whats-float svg { width: 32px; height: 32px; }
.whats-float::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 2px solid var(--whats);
  animation: ring 2.2s ease-out infinite;
}
@keyframes ring { from { transform: scale(1); opacity: .8; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Animação ao rolar ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .fiber--glow, .whats-float::before { animation: none; }
}

/* ---------- Responsivo ---------- */
@media (max-width: 1024px) {
  .services, .gallery { grid-template-columns: repeat(2, 1fr); }
  .products { grid-template-columns: repeat(3, 1fr); }
  .store-info { flex-direction: column; align-items: stretch; gap: 1.25rem; }
  .store-info__brand { padding: 0 0 1.25rem; border-right: 0; border-bottom: 1px solid var(--line); justify-content: center; }
  .nav { gap: 1.25rem; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  :root { --header-h: 68px; }
  .header__logo img { height: 46px; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    top: var(--header-h); left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 1rem 24px 1.5rem;
    background: #fff;
    box-shadow: 0 20px 30px rgba(22,26,82,.12);
    transform: translateY(-120%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }

  .about, .contact { grid-template-columns: 1fr; gap: 3rem; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .about__visual { max-width: 460px; margin: 0 auto; width: 100%; padding-left: 14px; }
  .cta__inner { flex-direction: column; text-align: center; }
  .section { padding: 72px 0; }
}

@media (max-width: 600px) {
  .container { padding: 0 16px; }
  .services, .gallery, .steps, .form__row, .footer__inner, .products { grid-template-columns: 1fr; }
  .filters { margin-top: 0; }
  .store-info { margin-top: -1rem; padding: 1.25rem; }
  .store-info__list { grid-template-columns: 1fr; gap: 1rem; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero__actions .btn { width: 100%; }
  .hero__facts { gap: 1.25rem 2rem; }
  .form { padding: 1.5rem; }
  .about__card { padding: 1.75rem; }
  .map iframe { height: 300px; }
  .whats-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
  .footer__bottom { padding-right: 16px; padding-bottom: 86px; } /* links ficam acima do botão do WhatsApp */
}
