/* Identidade oficial Grupo SegSun — somente logo e cores. */
:root {
  --ink: #1e065f;
  --ink-soft: #2d0b6b;
  --line: rgba(30, 6, 95, .15);
  --yellow: #a3172c;
  --yellow-deep: #7a123c;
  --navy: #1e065f;
  --navy-2: #7a123c;
}

::selection { color: #fff; background: #a3172c; }
.page-progress span { background: linear-gradient(90deg, #1e065f, #a3172c); box-shadow: 0 0 15px rgba(163, 23, 44, .52); }
.skip-link,
.button-primary { color: #fff; background: #2d0b6b; }
.button-primary:hover { background: #42177e; }
.header-cta { color: #1e065f; border-color: rgba(255, 255, 255, .72); background: #fff; }
.site-header.scrolled .header-cta { border-color: rgba(30, 6, 95, .16); }
.text-link { color: #1e065f; }

.brand img,
.footer-brand img,
.area-gateway-brand img {
  object-fit: contain;
  object-position: center;
  filter: none;
}
.footer-brand img {
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(30, 6, 95, .13);
}
.brand { width: 174px; }
.brand img { width: 100%; height: auto; filter: none; transition: filter .25s; }
.site-header.scrolled .brand img,
body.menu-open .brand img { filter: none; }
.brand > span { display: none; }
.footer-brand img { width: 190px; height: auto; padding: 7px 10px; }
.area-gateway-brand img { width: 164px; height: 60px; }

.site-header.scrolled,
body.menu-open .site-header { color: #1e065f; background: rgba(255, 255, 255, .96); box-shadow: 0 12px 35px rgba(30, 6, 95, .1); }
.site-header { color: #1e065f; border-bottom-color: rgba(30, 6, 95, .1); }
.site-switch { border-color: rgba(30, 6, 95, .13); background: rgba(255, 255, 255, .9); }
.menu-button { color: #1e065f; border-color: rgba(30, 6, 95, .16); background: rgba(255, 255, 255, .88); }
.desktop-nav a::after { background: #a3172c; }
.desktop-nav a:hover { color: #7a123c; }
.mobile-menu { color: #1e065f; background: rgba(247, 246, 241, .98); }
.mobile-menu nav a span { color: #a3172c; }

.hero { color: #1e065f; background: #f4eee6; }
.hero-photo { background-image: url("/eletrica-automacao/assets/hero-eletrica-automacao-claro.webp"); filter: none; }
.hero-overlay {
  background: linear-gradient(90deg, rgba(250, 248, 245, .88) 0%, rgba(250, 248, 245, .68) 32%, rgba(250, 248, 245, .06) 67%, transparent 100%);
}
.hero-card { color: #1e065f; border-color: rgba(30, 6, 95, .12); background: rgba(252, 250, 247, .95); box-shadow: 0 22px 60px rgba(23, 18, 33, .13); }
.hero-card-top { border-bottom-color: rgba(30, 6, 95, .12); }
.hero-card > a { border-bottom-color: rgba(30, 6, 95, .1); }
.hero-card-top small,
.hero-card small { color: rgba(30, 6, 95, .62); }
.hero .eyebrow { color: rgba(30, 6, 95, .75); }
.hero-lead { color: rgba(30, 6, 95, .78); }
.hero-actions .button-outline { color: #1e065f; border-color: rgba(30, 6, 95, .25); background: rgba(255, 255, 255, .75); }
.hero-actions .button-outline:hover { border-color: #1e065f; background: #fff; }
.hero .eyebrow span,
.hero-scroll span { background: #a3172c; }
.hero .eyebrow span { box-shadow: 0 0 0 5px rgba(163, 23, 44, .18); }
.section-heading h2 em,
.guidance-title h2 em,
.store-copy h2 em,
.faq-section h2 em { color: #a3172c; }
.hero h1 em {
  color: #a3172c;
  background: linear-gradient(90deg, #3a4089 0%, #704075 10%, #a3172c 26%, #a3172c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.automation-intro h2 em { color: #a3172c; }
.instagram-card h2 em,
.final-content h2 em { color: #f06a7d; }
.hero-card svg,
.trust-strip-inner svg,
.rating-proof .stars,
.rating-proof > i { color: #d85669; }

.trust-strip { color: #233b77; background: #eaf2fb; border-top-color: rgba(58, 91, 151, .16); }
.trust-strip-inner { border-inline-color: rgba(58, 91, 151, .14); }
.trust-strip-inner > * { border-right-color: rgba(58, 91, 151, .14); border-bottom-color: rgba(58, 91, 151, .14); }
.trust-strip-inner small { color: #a3172c; }
.trust-strip-inner strong,
.trust-strip .google-mark,
.rating-proof > strong { color: #233b77; }
.trust-strip-inner svg,
.rating-proof > i { color: #5373ad; }
.material-card:hover {
  color: #fff;
  background: linear-gradient(145deg, #2d0b6b 0%, #1e065f 62%, #7a123c 100%);
}
.material-card-featured { color: #1e065f; background: linear-gradient(145deg, #f3effa, #fff); }
.material-card-featured > svg,
.material-card-featured > i { color: #a3172c; }
.material-card:hover svg { color: #f06a7d; }
.material-card:hover h3 { color: #fff; }
.material-card:hover p,
.material-card:hover > span,
.material-card:hover > i { color: rgba(255, 255, 255, .78); }
.material-card-featured p { color: rgba(30, 6, 95, .7); }
.material-card-featured::before { border-color: rgba(163, 23, 44, .22); box-shadow: 0 0 0 45px rgba(30, 6, 95, .035), 0 0 0 90px rgba(30, 6, 95, .025); }
.materials-cta { border-color: rgba(30, 6, 95, .16); background: #f3effa; }
.material-card, .material-card-featured { min-height: 0; }
.material-card-featured::before { display: none; }
.material-card > .material-image {
  width: 100%;
  aspect-ratio: 3 / 2;
  margin-top: .3rem;
  padding: 0;
  flex: none;
  border-radius: 14px;
  background-image: url("/eletrica-automacao/assets/categorias-eletrica.png");
  background-size: 300% 300%;
  background-repeat: no-repeat;
  background-color: #f7f5f0;
}
.material-image-1 { background-position: 0 0; }
.material-image-2 { background-position: 50% 0; }
.material-image-3 { background-position: 100% 0; }
.material-image-4 { background-position: 0 50%; }
.material-image-5 { background-position: 50% 50%; }
.material-image-6 { background-position: 100% 50%; }
.material-image-7 { background-position: 0 100%; }
.material-image-8 { background-position: 50% 100%; }
.material-image-9 { background-position: 100% 100%; }
.material-card > .material-image-10 { background: url("/eletrica-automacao/assets/categoria-quadros-eletricos.png") center / cover no-repeat; }
.material-card > div:not(.material-image) { padding-top: 1rem; }
.material-card-featured > i { margin-top: .6rem; }

/* Categorias compactas: produto, nome e contato direto. */
.materials-section { padding: clamp(2.5rem, 4vw, 4rem) 0; }
.materials-section .section-heading { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.materials-section .section-heading h2 { font-size: clamp(2rem, 3vw, 3rem); }
.materials-section .section-heading p:last-child { max-width: 350px; margin: 0; }
.material-grid { margin-top: 1.6rem; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .7rem; }
.material-card { min-height: 0; padding: .65rem; display: flex; flex-direction: column; color: #1e065f; text-decoration: none; border-radius: 17px; }
.material-card > .material-image { margin: 0; border-radius: 11px; }
.material-card h3 { min-height: 2.4em; margin: .7rem 0 0; font-size: clamp(.88rem, 1.2vw, 1.05rem); line-height: 1.2; }
.material-card:hover { color: #1e065f; background: #fff; border-color: rgba(163, 23, 44, .35); }
.material-card:hover h3 { color: #1e065f; }
.material-card:focus-visible { outline: 3px solid #a3172c; outline-offset: 3px; }

@media (max-width: 760px) {
  .materials-section .section-heading { display: block; }
  .materials-section .section-heading p:last-child { margin-top: .8rem; }
  .material-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .material-grid { margin-top: 1.25rem; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .material-card { padding: .5rem; border-radius: 14px; }
  .material-card h3 { font-size: .9rem; }
}

.automation-section { color: #1e065f; background: #f5f8fc; }
.automation-section::before {
  opacity: .28;
  background-image: linear-gradient(rgba(30, 6, 95, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 6, 95, .06) 1px, transparent 1px);
}
.automation-glow { background: rgba(83, 115, 173, .1); }
.automation-intro > p:not(.eyebrow) { color: rgba(30, 6, 95, .68); }
.automation-intro .eyebrow,
.automation-controls svg { color: #5373ad; }
.automation-room > small { color: #a3172c; }
.automation-panel {
  color: #233b77;
  border-color: rgba(58, 91, 151, .17);
  background: #fff;
  box-shadow: 0 24px 70px rgba(38, 66, 119, .12);
  animation: electricalPanelFloat 8s ease-in-out infinite alternate;
}
.automation-panel-head { color: #233b77; border-bottom-color: rgba(58, 91, 151, .14); }
.automation-panel-head i { color: #5373ad; }
.automation-panel-intro { margin: .8rem .3rem .9rem; color: #5c6d89; font-size: .78rem; line-height: 1.5; }
.automation-panel-intro strong { color: #233b77; }
.automation-room {
  border-bottom-color: rgba(58, 91, 151, .14);
  background: #f0f5fc;
}
.automation-room > span,
.automation-room > strong,
.automation-controls strong { color: #233b77; }
.automation-room > strong {
  align-self: flex-start;
  background: linear-gradient(90deg, #233b77 0%, #704075 48%, #a3172c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.automation-room > span,
.automation-room > strong,
.automation-room > small { position: relative; z-index: 1; }
.automation-room > strong { max-width: 56%; }
.automation-room > small { max-width: 56%; }
.room-visual {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 47%;
  height: 190px;
  overflow: hidden;
  border: 1px solid rgba(58, 91, 151, .22);
  border-radius: 14px;
  background: #1e2b49;
  box-shadow: 0 12px 30px rgba(38, 66, 119, .14);
  isolation: isolate;
}
.room-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.045);
  transition: opacity .55s ease, transform 1.1s ease;
}
.automation-room[data-room="sala"] .room-photo[data-photo-room="sala"],
.automation-room[data-room="quarto"] .room-photo[data-photo-room="quarto"],
.automation-room[data-room="escritorio"] .room-photo[data-photo-room="escritorio"] { opacity: 1; transform: scale(1); }
.room-visual-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(10, 20, 46, .36), transparent 45%, rgba(10, 20, 46, .58));
  pointer-events: none;
  transition: background .4s ease;
}
.automation-room[data-scene="leitura"] .room-visual-shade { background: linear-gradient(135deg, rgba(255, 164, 65, .2), transparent 55%), linear-gradient(180deg, rgba(10, 20, 46, .32), transparent 45%, rgba(10, 20, 46, .6)); }
.automation-room[data-scene="noite"] .room-visual-shade { background: linear-gradient(rgba(14, 24, 75, .52), rgba(14, 24, 75, .65)); }
.automation-room[data-light="off"] .room-visual-shade { background: rgba(4, 11, 30, .78); }
.room-visual::after {
  position: absolute;
  content: "";
  inset: 9px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  pointer-events: none;
}
.room-visual-label,
.room-visual-scene {
  position: absolute;
  z-index: 1;
  top: 17px;
  padding: .35rem .48rem;
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 5px;
  background: rgba(18, 35, 67, .72);
  color: #fff;
  font-family: sans-serif;
  font-size: .5rem;
  font-weight: 700;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.room-visual-label { left: 17px; }
.room-visual-scene { right: 17px; }
.room-visual-scene b { color: #8be6d7; }
.automation-room[data-scene="leitura"] .room-visual-scene b { color: #ffce8e; }
.automation-room[data-scene="noite"] .room-visual-scene b { color: #b9c9ff; }
.room-device {
  position: absolute;
  z-index: 1;
  left: 17px;
  bottom: 17px;
  max-width: calc(100% - 34px);
  padding: .38rem .5rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  background: rgba(18, 35, 67, .82);
  color: #fff;
  font: 700 .48rem sans-serif;
  letter-spacing: .08em;
  backdrop-filter: blur(12px);
}
.room-device small { display: block; margin-top: .13rem; color: #fff; font-size: .63rem; font-weight: 600; letter-spacing: 0; }
.room-device-switch { width: 31px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 5px; background: #f2f5f9; box-shadow: 0 0 14px rgba(218, 236, 255, .52); }
.room-device-switch i { width: 11px; height: 11px; border: 2px solid #4da3aa; border-radius: 50%; box-shadow: 0 0 8px #70e8bd; }
.automation-room[data-light="off"] .room-device-switch { box-shadow: none; }
.automation-room[data-light="off"] .room-device-switch i { border-color: #8a9ab1; box-shadow: none; }
.room-visual.is-reacting::after { animation: demoFeedback .55s ease-out; }
@keyframes demoFeedback {
  0% { box-shadow: inset 0 0 0 0 rgba(133, 231, 255, .7); }
  40% { box-shadow: inset 0 0 0 4px rgba(133, 231, 255, .8); }
  100% { box-shadow: inset 0 0 0 0 rgba(133, 231, 255, 0); }
}
.automation-controls { margin-top: .7rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .45rem; }
.automation-controls > button {
  min-width: 0;
  min-height: 50px;
  padding: .45rem .25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .2rem;
  border: 1px solid rgba(58, 91, 151, .14);
  border-radius: 9px;
  background: #f3f7fc;
  color: #233b77;
  font: 700 .68rem sans-serif;
  cursor: pointer;
  transition: background .22s ease, border-color .22s ease, transform .22s ease;
}
.automation-controls > button:hover { background: #e8f1fb; transform: translateY(-2px); }
.automation-controls > button:active { transform: translateY(0); }
.automation-controls > button:focus-visible { outline: 3px solid #a3172c; outline-offset: 2px; }
.automation-panel[data-active-control="light"] .automation-controls > button[data-demo-control="light"],
.automation-panel[data-active-control="scene"] .automation-controls > button[data-demo-control="scene"],
.automation-panel[data-active-control="room"] .automation-controls > button[data-demo-control="room"] { border-color: #5373ad; background: #e7f0fc; }
.automation-controls svg { width: 18px; height: 18px; }
.automation-feature { min-height: 2.2rem; margin: .65rem .3rem 0; display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .45rem; font-size: .7rem; }
.automation-feature strong { color: #233b77; }
.automation-feature span { color: #a3172c; }
.automation-demo-note { margin: .25rem .3rem 0; color: #61738f; font-size: .68rem; line-height: 1.4; }

.guidance-title .eyebrow,
.guidance-steps li > span { color: #a3172c; }
.review-number {
  color: #fff;
  border: 1px solid rgba(122, 18, 60, .2);
  background: linear-gradient(155deg, #7a123c, #1e065f);
}
.review-number small { color: rgba(255, 255, 255, .72); }
.review-copy .stars,
.review-copy .google-mark { color: #a3172c; }
.instagram-card { background: linear-gradient(120deg, #1e065f 0%, #2d0b6b 68%, #7a123c 100%); box-shadow: 0 24px 60px rgba(30, 6, 95, .2); }
.instagram-card::after { border-color: rgba(163, 23, 44, .2); box-shadow: 0 0 0 50px rgba(163, 23, 44, .025), 0 0 0 100px rgba(30, 6, 95, .04); }
.final-cta { background: linear-gradient(120deg, #1e065f 0%, #2d0b6b 72%, #7a123c 100%); }
.site-footer { background: #170449; }
.consent-banner { background: rgba(30, 6, 95, .98); }

.area-gateway {
  color: #1e065f;
  background: radial-gradient(circle at 12% 12%, rgba(163, 23, 44, .1), transparent 30%), rgba(30, 6, 95, .92);
}
.area-gateway-heading p { color: #a3172c; }
.area-choice { color: #1e065f; border-color: rgba(30, 6, 95, .15); }
.area-choice:hover,
.area-choice:focus-visible { border-color: #a3172c; box-shadow: 0 20px 45px rgba(30, 6, 95, .14); }
.area-choice-icon { color: #fff; background: #1e065f; }
.area-choice small,
.area-choice i b { color: #a3172c; }
.area-choice i { color: #1e065f; }
.area-choice-eletrica { background: linear-gradient(145deg, #f3effa, #fff); }
.site-switch::before { background: #a3172c; box-shadow: 0 0 0 4px rgba(163, 23, 44, .16); }
.site-switch i { color: #b8263d; }
.site-switch:hover,
.site-switch:focus-visible { border-color: #a3172c; }

.supplier-section { padding: clamp(3rem, 5vw, 5rem) 0; overflow: hidden; background: #fff; border-bottom: 1px solid rgba(30, 6, 95, .09); }
.supplier-heading { display: flex; align-items: end; justify-content: space-between; gap: 3rem; }
.supplier-heading > div { max-width: 720px; }
.supplier-heading .eyebrow { color: #a3172c; }
.supplier-heading h2 { margin: .75rem 0 0; font-family: "Sora", sans-serif; font-size: clamp(2rem, 3.5vw, 3.6rem); font-weight: 520; line-height: 1.06; letter-spacing: -.06em; }
.supplier-heading h2 em { color: #a3172c; font-style: normal; }
.supplier-heading > p { max-width: 345px; margin: 0 0 .25rem; color: #686a64; font-size: .9rem; line-height: 1.65; }
.supplier-window { margin-top: 2rem; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.supplier-track { display: flex; width: max-content; animation: supplierMarquee 52s linear infinite; animation-duration: 52s !important; animation-iteration-count: infinite !important; will-change: transform; }
.supplier-group { display: flex; flex: none; gap: 14px; padding-right: 14px; }
.supplier-logo { width: 218px; height: 94px; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid rgba(30, 6, 95, .1); border-radius: 17px; background: #fff; box-shadow: 0 10px 28px rgba(30, 6, 95, .045); }
.supplier-logo img { width: auto; height: auto; max-width: 82%; max-height: 54px; object-fit: contain; }
.supplier-logo-agl img { width: 210px; height: 210px; max-width: none; max-height: none; }
.supplier-logo-ekaza img { width: 88px; height: 88px; max-width: none; max-height: none; }
.supplier-logo-lorenzetti img { width: 250px; height: 250px; max-width: none; max-height: none; }
.supplier-logo-clamper img { width: 275px; height: 275px; max-width: none; max-height: none; }
@keyframes supplierMarquee { to { transform: translateX(-50%); } }

.materials-banner { position: relative; min-height: 310px; margin-top: 2rem; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(290px, .9fr); border-radius: 28px; color: #fff; background: #1e065f; box-shadow: 0 24px 60px rgba(30, 6, 95, .14); }
.materials-banner-copy { position: relative; z-index: 1; padding: clamp(2rem, 4vw, 3.3rem); align-self: center; }
.materials-banner .eyebrow { color: #f9a1ae; }
.materials-banner h3 { max-width: 620px; margin: .8rem 0 0; font-family: "Sora", sans-serif; font-size: clamp(2rem, 3.2vw, 3.25rem); font-weight: 520; line-height: 1.08; letter-spacing: -.055em; }
.materials-banner-copy > p:not(.eyebrow) { max-width: 565px; margin: 1rem 0 1.4rem; color: rgba(255, 255, 255, .75); font-size: .92rem; line-height: 1.65; }
.materials-banner .button-primary { background: #fff; color: #1e065f; border-radius: 999px; }
.materials-banner .button-primary:hover { background: #f4eafa; }
.materials-banner-photo { min-height: 310px; background: linear-gradient(90deg, #1e065f 0%, rgba(30, 6, 95, .28) 30%, rgba(30, 6, 95, .05) 100%), url("/eletrica-automacao/assets/banner-casa-conectada.png") 70% center / cover no-repeat; }

@media (max-width: 760px) {
  .supplier-section { padding: 3rem 0; }
  .supplier-heading { display: block; }
  .supplier-heading > p { max-width: 520px; margin-top: 1rem; }
  .supplier-window { margin-top: 1.5rem; }
  .supplier-track { animation-duration: 43s !important; }
  .supplier-logo { width: 170px; height: 78px; border-radius: 14px; }
  .supplier-logo img { max-height: 43px; }
  .supplier-logo-agl img { width: 170px; height: 170px; max-height: none; }
  .supplier-logo-ekaza img { width: 74px; height: 74px; max-height: none; }
  .supplier-logo-lorenzetti img { width: 205px; height: 205px; max-height: none; }
  .supplier-logo-clamper img { width: 220px; height: 220px; max-height: none; }
  .materials-banner { grid-template-columns: 1fr; margin-top: 1.25rem; }
  .materials-banner-copy { padding: 2rem 1.5rem; }
  .materials-banner .button { width: 100%; }
  .materials-banner-photo { min-height: 190px; grid-row: 1; background: linear-gradient(0deg, #1e065f 0%, rgba(30, 6, 95, .12) 70%), url("/eletrica-automacao/assets/banner-casa-conectada.png") 72% center / cover no-repeat; }
}

@keyframes electricalPanelFloat {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(0, -8px, 0); }
}

@keyframes electricalOrbit {
  to { transform: rotate(360deg); }
}

@keyframes electricalPulse {
  0%, 100% { transform: scale(.94); opacity: .72; }
  50% { transform: scale(1.08); opacity: 1; }
}

@media (max-width: 760px) {
  .brand { width: 136px; }
  .hero-photo { background-position: 64% center; }
  .hero-overlay { background: linear-gradient(180deg, rgba(250, 248, 245, .62), rgba(250, 248, 245, .7) 38%, rgba(250, 248, 245, .52) 72%, rgba(250, 248, 245, .74)); }
  .automation-section .automation-panel { padding: .8rem; border-radius: 21px; background: #fff; box-shadow: 0 18px 44px rgba(38, 66, 119, .12); animation: none !important; }
  .automation-panel-head { padding: .2rem .25rem .7rem; font-size: .61rem; }
  .automation-room { min-height: 0; padding: 1rem 1.1rem; display: flex; justify-content: center; border: 1px solid rgba(58, 91, 151, .13); border-radius: 15px; background: #f0f5fc; }
  .automation-room > strong { font-size: 1.5rem; }
  .automation-room > strong, .automation-room > small { max-width: none; }
  .room-visual { position: relative; right: auto; bottom: auto; width: 100%; height: clamp(185px, 43vw, 225px); margin-top: .8rem; }
  .automation-controls > button { min-height: 52px; }
}

@media (prefers-reduced-motion: reduce) {
  .automation-panel { animation: none !important; }
  .room-photo, .room-visual-shade, .automation-controls > button { transition: none !important; }
  .room-visual.is-reacting::after { animation: none !important; }
}
