/* =========================================================
   PROTEC VISION — DESIGN TOKENS
   Palette pulled from the brand shield: deep blue + gold
   border, charcoal base panel. Layout language borrows the
   camera-viewfinder motif (corner brackets, scan line) since
   the client's core business is video surveillance.
   ========================================================= */
:root{
  /* ink / dark surfaces */
  --ink:            #10151b;
  --ink-2:          #171e26;
  --ink-panel:      #1c2530;
  --ink-line:       #2b3644;

  /* light surfaces */
  --paper:          #eef1f4;
  --card:           #ffffff;
  --line:           #dbe1e7;

  /* brand */
  --blue:           #14548f;
  --blue-deep:      #0d3c6a;
  --blue-bright:    #3f8fd6;
  --gold:           #c97a1a;
  --gold-bright:    #eba238;

  /* text */
  --text:           #171b1f;
  --text-muted:     #5a6570;
  --text-onDark:    #eef2f6;
  --text-onDark-mut:#93a1b0;

  /* type */
  --f-display: 'Barlow Condensed', sans-serif;
  --f-body:    'Inter', sans-serif;
  --f-mono:    'IBM Plex Mono', monospace;

  --radius: 3px;
  --container: 1180px;
}

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

html{ scroll-behavior:smooth; }

body{
  font-family: var(--f-body);
  color: var(--text);
  background: var(--paper);
  line-height:1.55;
  -webkit-font-smoothing: antialiased;
}

img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input, select, textarea{ font-family:inherit; }

.section__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

@media (prefers-reduced-motion: reduce){
  .track__pulse,
  .gallery__cam::before{ animation: none !important; }
  *{ transition-duration: 0.01ms !important; }
}

:focus-visible{
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

/* =========================================================
   SHARED TYPE
   ========================================================= */
.eyebrow{
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--blue);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.eyebrow--onDark{ color: var(--gold-bright); }
.eyebrow .dot{
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 0 3px rgba(235,162,56,0.25);
}

.h2{
  font-family: var(--f-display);
  font-weight: 600;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 18ch;
}
.h2--onDark{ color: var(--text-onDark); }


/* =========================================================
   VIEWFINDER FRAME (signature element)
   ========================================================= */
.frame{ position:relative; }
.frame__corner{
  position:absolute;
  width: 26px; height: 26px;
  border: 2px solid var(--gold-bright);
  pointer-events:none;
}
.frame__corner--tl{ top:-14px; left:-14px; border-right:none; border-bottom:none; }
.frame__corner--tr{ top:-14px; right:-14px; border-left:none; border-bottom:none; }
.frame__corner--bl{ bottom:-14px; left:-14px; border-right:none; border-top:none; }
.frame__corner--br{ bottom:-14px; right:-14px; border-left:none; border-top:none; }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  position:relative;
  overflow:hidden;
  font-family: var(--f-body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform 0.2s cubic-bezier(0.16,1,0.3,1), box-shadow 0.25s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn::before{
  content:'';
  position:absolute;
  top:0; left:-100%;
  width:60%; height:100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.28), transparent);
  transition: left 0.55s ease;
}
.btn:hover::before{ left:130%; }
.btn > *{ position:relative; z-index:1; }
.btn .icon{ width:18px; height:18px; fill:currentColor; position:relative; z-index:1; }
.btn--primary{
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1a1305;
}
.btn--primary:hover{
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(201,122,26,0.28);
}
.btn--outline{
  border-color: rgba(238,242,246,0.35);
  color: var(--text-onDark);
  background: rgba(255,255,255,0.04);
}
.btn--outline .icon{ fill: var(--text-onDark); }
.btn--outline:hover{ border-color: var(--gold-bright); background: rgba(235,162,56,0.08); }
.btn--ghost-onlight{
  border-color: var(--blue);
  color: var(--blue);
  padding: 10px 20px;
  font-size: 14px;
}
.btn--ghost-onlight:hover{ background: var(--blue); color:#fff; }
.btn--block{ width:100%; padding: 15px 26px; }

/* =========================================================
   NAV
   ========================================================= */
.nav{
  position: sticky;
  top:0;
  z-index: 50;
  background: rgba(238,241,244,0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease;
}
.nav__inner{
  max-width: var(--container);
  margin: 0 auto;
  padding: 12px 32px;
  display:flex;
  align-items:center;
  gap: 32px;
}
.nav__brand{ display:flex; align-items:center; flex-shrink:0; }
.nav__logo{
  height:54px; width:auto; object-fit:contain;
  transition: transform 0.25s ease;
}
.nav__brand:hover .nav__logo{ transform: scale(1.04); }

.nav__links{
  display:flex;
  gap: 4px;
  margin-left:auto;
}
.nav__links a{
  position:relative;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  white-space: nowrap;
  padding: 10px 12px;
  border-radius: 2px;
  transition: color 0.2s ease;
}
.nav__links a::after{
  content:'';
  position:absolute;
  left:12px; right:12px; bottom:4px;
  height:2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav__links a:hover{ color: var(--text); }
.nav__links a:hover::after{ transform: scaleX(1); }

.nav__burger{
  display:none;
  flex-direction:column;
  justify-content:center;
  gap:5px;
  width: 44px; height:44px;
  align-items:center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding:0;
  margin-left:auto;
  flex-shrink:0;
}
.nav__burger span{
  width:19px; height:2px;
  background: var(--text);
  display:block;
  transition: transform .25s ease, opacity .2s ease;
}
.nav__burger:hover{ border-color: var(--gold); }

/* ---------- Side drawer ---------- */
.drawer-backdrop{
  position:fixed; inset:0;
  background: rgba(10,14,18,0.55);
  backdrop-filter: blur(2px);
  opacity:0;
  visibility:hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  z-index: 90;
}
.drawer-backdrop.is-open{ opacity:1; visibility:visible; }

.drawer{
  position:fixed;
  top:0; right:0;
  height:100%;
  width: 320px;
  max-width: 86vw;
  background: var(--ink);
  border-left: 1px solid var(--ink-line);
  z-index: 95;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(0.4, 0, 0.2, 1);
  display:flex;
  flex-direction:column;
  overflow-y:auto;
}
.drawer.is-open{ transform: translateX(0); }

.drawer__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--ink-line);
}
.drawer__logo{ height:46px; width:auto; }
.drawer__close{
  width:38px; height:38px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--ink-line);
  color: var(--text-onDark-mut);
  font-size:22px;
  line-height:1;
  border-radius:2px;
}
.drawer__close:hover{ border-color: var(--gold); color: var(--text-onDark); }

.drawer__links{ display:flex; flex-direction:column; padding: 12px 0; flex:1; }
.drawer__links a{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 15px 24px;
  font-family: var(--f-display);
  font-size: 19px;
  font-weight:600;
  color: var(--text-onDark-mut);
  border-left: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.drawer__links a:hover{
  color: var(--text-onDark);
  border-left-color: var(--gold-bright);
  background: rgba(255,255,255,0.03);
}
.drawer__num{
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight:500;
  color: var(--gold);
  opacity:0.7;
}

.drawer__foot{
  padding: 22px 24px 30px;
  border-top: 1px solid var(--ink-line);
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.drawer__contact{
  display:flex;
  align-items:center;
  gap: 11px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-onDark-mut);
}
.drawer__contact svg{ width:15px; height:15px; fill:none; stroke: var(--gold-bright); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.drawer__contact:hover{ color: var(--text-onDark); }

/* =========================================================
   HERO
   ========================================================= */
.hero{
  position:relative;
  background: radial-gradient(ellipse at 20% -10%, #1a2836 0%, var(--ink) 55%), var(--ink);
  overflow:hidden;
  padding: 110px 0 90px;
}
.hero__grid{
  position:absolute; inset:0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 0%, transparent 70%);
}
.hero__scanline{
  position:absolute;
  left:0; right:0; height:120px;
  background: linear-gradient(180deg, rgba(235,162,56,0) 0%, rgba(235,162,56,0.06) 35%, rgba(235,162,56,0.22) 50%, rgba(235,162,56,0.06) 65%, rgba(235,162,56,0) 100%);
  animation: scan 7s linear infinite;
  opacity: 0.9;
}
@keyframes scan{
  0%{ top:-140px; }
  100%{ top: 100%; }
}

.hero__inner{
  max-width: var(--container);
  margin:0 auto;
  padding: 0 32px;
  position:relative;
}
.frame--hero{ padding: 8px 4px; max-width: 760px; }

.hero__title{
  font-family: var(--f-display);
  font-weight: 700;
  font-size: clamp(36px, 5.6vw, 64px);
  line-height: 1.03;
  letter-spacing: -0.01em;
  color: var(--text-onDark);
  margin-bottom: 22px;
}
.hero__title-accent{
  display:block;
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__subtitle{
  font-size: 17px;
  color: var(--text-onDark-mut);
  max-width: 54ch;
  margin-bottom: 34px;
}

.hero__actions{ display:flex; flex-wrap:wrap; gap:14px; margin-bottom: 44px; }

.hero__trust{
  display:flex; flex-wrap:wrap; gap: 24px;
  border-top: 1px solid var(--ink-line);
  padding-top: 24px;
}
.hero__trust li{
  display:flex; align-items:center; gap:9px;
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-onDark-mut);
  letter-spacing: 0.02em;
}
.hero__trust .icon{ width:16px; height:16px; fill:none; stroke: var(--gold-bright); stroke-width:1.6; }

/* =========================================================
   ABOUT
   ========================================================= */
.about{ padding: 100px 0; background: var(--paper); }

.about-block{
  margin-bottom: 48px;
  padding: 22px 0 22px 28px;
  border-left: 3px solid var(--gold);
}
.about-block--tight{ margin-bottom: 24px; padding-top:0; padding-bottom:0; }
.about-block__label{
  display:block;
  font-family: var(--f-mono);
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 12px;
}
.about-block--onDark .about-block__label{ color: var(--gold-bright); }
.about-block--onDark{ border-left-color: var(--gold-bright); }
.about-block__text{
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 62ch;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services{ padding: 100px 0; background: var(--card); }
.services .h2{ margin-bottom: 52px; max-width: 24ch; }

.services__grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 28px;
}

.svc-card{
  position:relative;
  padding: 30px 26px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.svc-card:hover{
  transform: translateY(-5px);
  border-color: var(--gold);
  box-shadow: 0 14px 34px rgba(20,84,143,0.10);
}
.svc-card:focus-visible{ border-color: var(--gold); }
.svc-card .frame__corner{ border-color: var(--blue); width:18px; height:18px; transition: border-color 0.25s ease; }
.svc-card:hover .frame__corner{ border-color: var(--gold-bright); }
.svc-card__icon svg{ transition: stroke 0.25s ease, transform 0.35s cubic-bezier(0.16,1,0.3,1); }
.svc-card:hover .svc-card__icon svg{ stroke: var(--gold); transform: scale(1.08); }

.svc-card__more{
  display:inline-block;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--blue-deep);
  letter-spacing: 0.02em;
  transition: color 0.2s ease, transform 0.25s ease;
}
.svc-card:hover .svc-card__more{ color: var(--gold); transform: translateX(4px); }

.svc-card__tag{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight:600;
  letter-spacing: 0.12em;
  color: var(--blue-deep);
  background: rgba(20,84,143,0.08);
  padding: 4px 9px;
  margin-bottom: 18px;
}

.svc-card__icon{
  width: 44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom: 16px;
}
.svc-card__icon svg{ width:100%; height:100%; fill:none; stroke: var(--blue-deep); stroke-width:1.5; stroke-linejoin:round; stroke-linecap:round; }

.svc-card__title{
  font-family: var(--f-display);
  font-size: 21px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.005em;
}
.svc-card__desc{ font-size: 14.5px; color: var(--text-muted); }

.partners{
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  text-align:center;
}
.partners__label{
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.marquee{
  position:relative;
  overflow:hidden;
  width:100%;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}
.marquee__track{
  display:flex;
  flex-wrap: nowrap;
  width: max-content;
  will-change: transform;
}
.marquee__item{
  flex: 0 0 auto;
  margin-right: 64px;
  font-family: var(--f-display);
  font-size: 21px;
  font-weight:600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  opacity: 0.5;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.marquee__item:hover{ opacity: 0.9; }


/* =========================================================
   WHY US
   ========================================================= */
.why{ background: var(--ink); padding: 100px 0; }
.why__head{ margin-bottom: 52px; max-width: 34ch; }

.bento{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.bento--values{ grid-template-columns: repeat(4, 1fr); }
.bento__card{
  position:relative;
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  padding: 34px 30px 32px;
  overflow:hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.bento__card--wide{ grid-column: span 2; }

.bento__card::before{
  content:'';
  position:absolute;
  top:0; left:0; right:0;
  height:2px;
  background: linear-gradient(90deg, var(--gold-bright), var(--blue-bright));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}
.bento__card:hover{ border-color: rgba(235,162,56,0.4); transform: translateY(-3px); }
.bento__card:hover::before{ transform: scaleX(1); }

.bento__icon{
  width: 48px; height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
  margin-bottom: 22px;
  transition: border-color 0.25s ease;
}
.bento__icon svg{
  width: 21px; height:21px;
  fill:none;
  stroke: var(--gold-bright);
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.bento__card:hover .bento__icon{ border-color: var(--gold); }

.bento__card h3{
  font-family: var(--f-display);
  font-size: 21px;
  font-weight:600;
  color: var(--text-onDark);
  margin-bottom: 10px;
}
.bento__card p{ color: var(--text-onDark-mut); font-size: 14.5px; }


/* =========================================================
   PROCESS — circuit track diagram
   ========================================================= */
.process{ padding: 100px 0; background: var(--paper); }
.process .track{ margin-top: 46px; }

.track{ position:relative; }

.track__line{
  position:absolute;
  top: 32px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--blue) 50%, var(--gold) 100%);
  opacity: 0.28;
  overflow:hidden;
}
.track__pulse{
  position:absolute;
  top:0; left:0;
  width: 90px; height:100%;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
  animation: flow 4.5s linear infinite;
}
@keyframes flow{
  0%{ transform: translateX(-100px); }
  100%{ transform: translateX(calc(100vw)); }
}

.track__stops{
  position:relative;
  display:grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.stop{ text-align:center; padding: 0 8px; }

.stop__node{
  width: 64px; height:64px;
  margin: 0 auto 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 50%;
  position:relative;
  z-index:2;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.stop__node svg{
  width: 25px; height:25px;
  fill:none;
  stroke: var(--blue-deep);
  stroke-width:1.6;
  stroke-linecap:round;
  stroke-linejoin:round;
  transition: stroke 0.25s ease;
}
.stop:hover .stop__node{ border-color: var(--gold); transform: translateY(-3px); }
.stop:hover .stop__node svg{ stroke: var(--gold); }

.stop__num{
  display:block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--gold);
  margin-bottom: 8px;
}
.stop h3{
  font-family: var(--f-display);
  font-size: 19px;
  font-weight:600;
  margin-bottom: 8px;
}
.stop p{ font-size: 13.5px; color: var(--text-muted); }

/* =========================================================
   GALLERY ("Trabalhos realizados")
   ========================================================= */
.gallery{ padding: 100px 0; background: var(--card); }
.gallery__lead{ margin-top:18px; color: var(--text-muted); max-width: 58ch; }

.gallery__grid{
  margin-top: 44px;
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.gallery__tile{
  position:relative;
  aspect-ratio: 4 / 3;
  width:100%;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.025) 0px, rgba(255,255,255,0.025) 1px, transparent 1px, transparent 3px),
    var(--ink);
  border: 1px dashed var(--ink-line);
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 10px;
  overflow:hidden;
  cursor: pointer;
  padding: 12px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.gallery__tile::after{
  content:'Ver trabalho';
  position:absolute;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(16,21,27,0.82);
  font-family: var(--f-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--gold-bright);
  opacity:0;
  transition: opacity 0.25s ease;
}
.gallery__tile:hover{ border-color: var(--gold); transform: translateY(-3px); }
.gallery__tile:hover::after{ opacity:1; }
.gallery__tile:focus-visible{ border-color: var(--gold); }

/* ---------- Lightbox ---------- */
.lightbox{
  position:fixed; inset:0;
  z-index: 110;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 20px;
}
.lightbox.is-open{ display:flex; }
.lightbox__backdrop{
  position:absolute; inset:0;
  background: rgba(8,11,15,0.88);
  backdrop-filter: blur(4px);
}
.lightbox__dialog{
  position:relative;
  width:100%;
  max-width: 720px;
  max-height: 92vh;
  overflow-y:auto;
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  animation: lbIn 0.28s cubic-bezier(0.16,1,0.3,1);
}
@keyframes lbIn{
  from{ opacity:0; transform: translateY(14px) scale(0.98); }
  to{ opacity:1; transform: none; }
}
.lightbox__close{
  position:absolute;
  top:14px; right:14px;
  z-index:3;
  width:38px; height:38px;
  background: rgba(0,0,0,0.5);
  border: 1px solid var(--ink-line);
  color: var(--text-onDark);
  font-size:22px;
  line-height:1;
}
.lightbox__close:hover{ border-color: var(--gold); }

.lightbox__stage{
  position:relative;
  display:flex;
  align-items:center;
  background: var(--ink);
}
.lightbox__frame{
  position:relative;
  flex:1;
  aspect-ratio: 16 / 10;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap: 12px;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px),
    var(--ink);
  overflow:hidden;
}
.lightbox__frame img{
  position:absolute;
  inset:0;
  width:100%; height:100%;
  object-fit: cover;
}
.lightbox__rec{
  position:absolute;
  top:14px; left:16px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--gold-bright);
  z-index:2;
}
.lightbox__rec::before{
  content:'●';
  color:#e04b4b;
  margin-right:6px;
  animation: blink 2s ease-in-out infinite;
}
.lightbox__ph{ width:38px; height:38px; fill:none; stroke: var(--text-onDark-mut); stroke-width:1.2; opacity:0.45; }
.lightbox__phmsg{
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-onDark-mut);
}

.lightbox__arrow{
  position:absolute;
  top:50%;
  transform: translateY(-50%);
  z-index:2;
  width:44px; height:44px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(16,21,27,0.72);
  border: 1px solid var(--ink-line);
  border-radius:50%;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.lightbox__arrow--prev{ left: 14px; }
.lightbox__arrow--next{ right: 14px; }
.lightbox__arrow svg{ width:19px; height:19px; fill:none; stroke: var(--text-onDark); stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.lightbox__arrow:hover:not(:disabled){ border-color: var(--gold); background: rgba(235,162,56,0.14); }
.lightbox__arrow:disabled{ opacity:0.28; cursor: default; }

.lightbox__dots{
  display:flex;
  justify-content:center;
  gap: 7px;
  padding: 14px 0 0;
}
.lightbox__dot{
  width:7px; height:7px;
  border-radius:50%;
  border:none;
  background: var(--ink-line);
  padding:0;
  transition: background 0.2s ease, transform 0.2s ease;
}
.lightbox__dot.is-active{ background: var(--gold-bright); transform: scale(1.3); }

.lightbox__info{ padding: 22px 30px 30px; }
.lightbox__tag{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  color: var(--gold-bright);
  background: rgba(235,162,56,0.1);
  padding: 4px 9px;
  margin-bottom: 14px;
}
.lightbox__title{
  font-family: var(--f-display);
  font-size: 25px;
  font-weight:600;
  color: var(--text-onDark);
  margin-bottom: 10px;
  padding-right: 30px;
}
.lightbox__desc{ color: var(--text-onDark-mut); font-size: 14.5px; margin-bottom: 18px; }
.lightbox__meta{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--ink-line);
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-onDark-mut);
}
.lightbox__counter{ color: var(--gold-bright); }

/* ---------- Revelar ao fazer scroll ---------- */
.reveal{
  opacity:0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16,1,0.3,1), transform 0.6s cubic-bezier(0.16,1,0.3,1);
}
.reveal.is-visible{ opacity:1; transform:none; }
@media (prefers-reduced-motion: reduce){
  .reveal{ opacity:1; transform:none; }
}
.gallery__cam{
  position:absolute;
  top:10px; left:12px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
}
.gallery__cam::before{
  content:'●';
  color:#e04b4b;
  margin-right:5px;
  animation: blink 2s ease-in-out infinite;
}
.gallery__tile svg{
  width: 30px; height:30px;
  fill:none; stroke: var(--text-onDark-mut);
  stroke-width:1.3;
  opacity:0.45;
}
.gallery__msg{
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--text-onDark-mut);
  letter-spacing: 0.03em;
}
@keyframes blink{
  0%, 100%{ opacity:1; }
  50%{ opacity:0.25; }
}

/* =========================================================
   COVERAGE
   ========================================================= */
.coverage{ padding: 110px 0; background: var(--ink); overflow:hidden; }
.coverage__inner{ text-align:left; }
.coverage__lead{ margin-top:16px; color: var(--text-onDark-mut); max-width: 42ch; }

.pt-map{ display:block; width: 100%; max-width: 320px; margin: 36px auto 0; }
.pt-map__shape{ filter: drop-shadow(0 0 24px rgba(63,143,214,0.15)); }

.pt-map__core{
  fill: var(--gold-bright);
  filter: drop-shadow(0 0 6px rgba(235,162,56,0.9));
}

/* =========================================================
   FAQ
   ========================================================= */
.faq{ padding: 100px 0; background: var(--paper); }
.faq__inner{ display:grid; grid-template-columns: 0.7fr 1.3fr; gap: 56px; }
.faq__head{ align-self:start; }

.faq__list{ display:flex; flex-direction:column; gap: 10px; }
.faq__item{
  background: var(--card);
  border: 1px solid var(--line);
  padding: 6px 22px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq__item:hover{ border-color: var(--gold); }
.faq__item[open]{ box-shadow: 0 6px 20px rgba(20,84,143,0.07); }
.faq__item summary{
  list-style:none;
  cursor:pointer;
  padding: 18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  font-family: var(--f-display);
  font-size: 17px;
  font-weight:600;
  color: var(--text);
}
.faq__item summary::-webkit-details-marker{ display:none; }
.faq__icon{
  position:relative;
  width:16px; height:16px;
  flex-shrink:0;
}
.faq__icon::before, .faq__icon::after{
  content:'';
  position:absolute;
  background: var(--blue);
  transition: transform 0.2s ease;
}
.faq__icon::before{ top:7px; left:0; width:16px; height:2px; }
.faq__icon::after{ top:0; left:7px; width:2px; height:16px; }
.faq__item[open] .faq__icon::after{ transform: rotate(90deg); opacity:0; }
.faq__item p{ padding-bottom: 20px; color: var(--text-muted); font-size:14.5px; max-width: 60ch; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact{ padding: 110px 0; background: var(--paper); }
.contact__inner{
  display:grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact__lead{ margin-top:18px; color: var(--text-muted); max-width: 44ch; }

.contact__list{ margin-top: 40px; display:flex; flex-direction:column; gap:22px; }
.contact__list li{ display:flex; align-items:center; gap:16px; }
.contact__icon{
  width:42px; height:42px;
  flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius:50%;
}
.contact__icon svg{ width:19px; height:19px; fill:none; stroke:var(--blue-deep); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.contact__label{ display:block; font-family: var(--f-mono); font-size:11px; letter-spacing:0.06em; text-transform:uppercase; color: var(--text-muted); margin-bottom:2px; }
.contact__list a{ font-weight:600; font-size:15.5px; }
.contact__list a:hover{ color: var(--blue); }
.contact__list .static{ font-weight:600; font-size:15.5px; }

.contact__form{
  position:relative;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 38px;
  display:flex;
  flex-direction:column;
  gap: 18px;
}
.contact__form .frame__corner{ border-color: var(--gold); }

.field-row{ display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field label{
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field input, .field select, .field textarea{
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 12px 14px;
  font-size: 14.5px;
  color: var(--text);
  border-radius: var(--radius);
  transition: border-color 0.2s ease;
}
.field input:focus, .field select:focus, .field textarea:focus{
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(20,84,143,0.10);
  background: var(--card);
  outline:none;
}
.field textarea{ resize: vertical; min-height:90px; }

.form__note{
  font-size: 13.5px;
  min-height: 18px;
  color: var(--blue-deep);
  font-weight: 600;
}
.form__note.is-error{ color:#a8332a; }
.form__note a{ color: var(--blue-deep); font-weight:600; border-bottom:1px solid var(--gold); }
.form__note a:hover{ color: var(--gold); }
.form__privacy{
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: -4px;
}
.form__privacy a{ color: var(--blue-deep); border-bottom: 1px solid var(--gold); }
.form__privacy a:hover{ color: var(--gold); }

/* Campo honeypot: escondido de utilizadores reais, visível para bots */
.hp-field{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* =========================================================
   PÁGINAS LEGAIS
   ========================================================= */
.legal__back{
  margin-left:auto;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.legal__back:hover{ color: var(--blue); }

.legal{ padding: 70px 0 90px; background: var(--paper); min-height: 70vh; }
.legal__inner{ max-width: 820px; }
.legal__title{
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 6px;
}
.legal__updated{
  font-family: var(--f-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 10px;
  margin-bottom: 44px;
}
.legal__block{ margin-bottom: 34px; }
.legal__block h2{
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 12px;
}
.legal__block p{
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 12px;
}
.legal__block ul{
  list-style: none;
  margin: 0 0 12px;
  padding: 0;
}
.legal__block li{
  position: relative;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  padding-left: 20px;
  margin-bottom: 6px;
}
.legal__block li::before{
  content: '';
  position: absolute;
  left: 2px; top: 10px;
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
}
.legal__block a{
  color: var(--blue-deep);
  font-weight: 600;
  border-bottom: 1px solid var(--gold);
  transition: color 0.2s ease;
}
.legal__block a:hover{ color: var(--gold); }


.footer{ background: #0c1015; padding-top: 70px; }
.footer__inner{
  display:grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--ink-line);
}
.footer__logo{ height:60px; width:auto; margin-bottom:14px; }
.footer__brand p{ color: var(--text-onDark-mut); font-size:14px; max-width:32ch; }

.footer__badge{
  display:inline-flex;
  align-items:center;
  gap: 9px;
  margin-top: 18px;
  padding: 9px 14px;
  border: 1px solid var(--ink-line);
  background: rgba(255,255,255,0.02);
}
.footer__badge svg{ width:16px; height:16px; flex-shrink:0; fill:none; stroke: var(--gold-bright); stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.footer__badge span{ font-family: var(--f-mono); font-size: 11.5px; color: var(--text-onDark-mut); letter-spacing: 0.01em; }

.footer__heading{
  display:block;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin-bottom: 16px;
}
.footer__col{ display:flex; flex-direction:column; gap:11px; }
.footer__col a{ color: var(--text-onDark-mut); font-size: 14.5px; transition: color 0.2s ease; }
.footer__col a:hover{ color: var(--text-onDark); }
.footer__text{ color: var(--text-onDark-mut); font-size: 14.5px; }

.footer__bottom{
  max-width: var(--container);
  margin:0 auto;
  padding: 22px 32px;
  font-size: 12.5px;
  color: var(--text-onDark-mut);
  font-family: var(--f-mono);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__legal-link{
  color: var(--text-onDark-mut);
  transition: color 0.2s ease;
}
.footer__legal-link:hover{ color: var(--gold-bright); }

/* =========================================================
   WHATSAPP FAB
   ========================================================= */
.whatsapp-fab{
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height:58px;
  background: linear-gradient(135deg, #2fbd63, #1f9e4d);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.28);
  z-index: 60;
  transition: transform 0.2s ease;
}
.whatsapp-fab:hover{ transform: scale(1.08); }
.whatsapp-fab svg{ width:28px; height:28px; fill:#fff; }

/* ---------- Voltar ao topo ---------- */
.to-top{
  position: fixed;
  bottom: 96px; right: 26px;
  width: 46px; height:46px;
  background: var(--ink-panel);
  border: 1px solid var(--ink-line);
  border-radius: 50%;
  display:flex; align-items:center; justify-content:center;
  z-index: 60;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, border-color 0.2s ease;
  box-shadow: 0 6px 18px rgba(0,0,0,0.22);
}
.to-top.is-visible{ opacity:1; visibility:visible; transform: translateY(0); }
.to-top:hover{ border-color: var(--gold); transform: translateY(-2px); }
.to-top svg{ width:20px; height:20px; fill:none; stroke: var(--gold-bright); stroke-width:2.2; stroke-linecap:round; stroke-linejoin:round; }

/* =========================================================
   SERVICE MODAL
   ========================================================= */
.modal{
  position:fixed; inset:0;
  z-index: 100;
  display:none;
  align-items:center;
  justify-content:center;
  padding: 24px;
}
.modal.is-open{ display:flex; }
.modal__backdrop{
  position:absolute; inset:0;
  background: rgba(10,14,18,0.72);
}
.modal__dialog{
  position:relative;
  background: var(--card);
  width:100%;
  max-width: 560px;
  max-height: 86vh;
  overflow-y:auto;
  padding: 40px;
  border: 1px solid var(--line);
}
.modal__close{
  position:absolute;
  top:16px; right:16px;
  width:36px; height:36px;
  border: 1px solid var(--line);
  background: var(--paper);
  font-size:20px;
  line-height:1;
  color: var(--text-muted);
}
.modal__close:hover{ border-color: var(--gold); color: var(--text); }
.modal__tag{
  display:inline-block;
  font-family: var(--f-mono);
  font-size: 10.5px;
  font-weight:600;
  letter-spacing: 0.12em;
  color: var(--blue-deep);
  background: rgba(20,84,143,0.08);
  padding: 4px 9px;
  margin-bottom: 16px;
}
.modal__title{
  font-family: var(--f-display);
  font-size: 27px;
  font-weight:600;
  margin-bottom: 14px;
  padding-right: 30px;
}
.modal__desc{ color: var(--text-muted); font-size:15px; margin-bottom: 28px; }
.modal__gallery{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}
.modal__gallery .gallery__tile{ aspect-ratio: 1; }
.modal__gallery .gallery__tile svg{ width:22px; height:22px; }
.modal__gallery .gallery__msg{ font-size:9.5px; text-align:center; padding:0 6px; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px){
  .nav__inner{ padding: 12px 24px; }
  .section__inner{ padding: 0 24px; }
  .contact__inner{ grid-template-columns: 1fr; }
  .services__grid{ grid-template-columns: 1fr 1fr; }
  .footer__inner{ grid-template-columns: 1fr 1fr; }
  .bento.bento--values{ grid-template-columns: 1fr 1fr; }
  .bento{ grid-template-columns: 1fr 1fr; }
  .bento__card--wide{ grid-column: span 2; }
  .track__line{ display:none; }
  .track__stops{ grid-template-columns: 1fr 1fr 1fr; gap: 40px 20px; }
  .gallery__grid{ grid-template-columns: 1fr 1fr; }
  .pt-map{ margin-left:auto; margin-right:auto; }
  .faq__inner{ grid-template-columns: 1fr; }
}

@media (max-width: 1080px){
  .nav__links{ display:none; }
  .nav__burger{ display:flex; }
}

@media (max-width: 720px){
  .hero{ padding: 90px 0 64px; }
  .hero__actions{ flex-direction:column; align-items:stretch; }
  .about, .services, .why, .contact, .process, .gallery, .coverage, .faq{ padding: 70px 0; }
  .services__grid{ grid-template-columns: 1fr; }
  .bento{ grid-template-columns: 1fr; }
  .bento.bento--values{ grid-template-columns: 1fr 1fr; }
  .bento__card--wide{ grid-column: span 1; }
  .about-block{ padding-left: 18px; margin-bottom: 34px; }
  .track__stops{ grid-template-columns: 1fr 1fr; gap: 36px 16px; }
  .gallery__grid{ grid-template-columns: 1fr 1fr; gap: 12px; }
  .field-row{ grid-template-columns: 1fr; }
  .footer__inner{ grid-template-columns: 1fr; gap:36px; }
  .frame__corner{ display:none; }
  .marquee__track{ gap: 40px; }
  .marquee__item{ font-size: 18px; }
  .modal__dialog{ padding: 28px 22px; max-height: 90vh; }
  .modal__title{ font-size: 22px; }
  .modal__gallery{ grid-template-columns: repeat(2, 1fr); }
  .lightbox{ padding: 10px; }
  .lightbox__info{ padding: 18px 20px 24px; }
  .lightbox__title{ font-size: 20px; }
  .lightbox__arrow{ width:36px; height:36px; }
  .lightbox__arrow--prev{ left: 6px; }
  .lightbox__arrow--next{ right: 6px; }
  .drawer{ width: 300px; }
}

@media (max-width: 480px){
  .nav__inner{ padding: 10px 16px; }
  .nav__logo{ height: 44px; }
  .section__inner{ padding: 0 18px; }
  .hero__title{ font-size: 32px; }
  .hero__subtitle{ font-size: 15.5px; }
  .track__stops{ grid-template-columns: 1fr 1fr; gap: 30px 14px; }
  .stop__node{ width: 54px; height:54px; }
  .gallery__grid{ grid-template-columns: 1fr; }
  .bento.bento--values{ grid-template-columns: 1fr; }
  .services__grid{ gap: 20px; }
  .svc-card{ padding: 24px 20px 22px; }
  .lightbox__frame{ aspect-ratio: 4 / 3; }
  .drawer{ width: 100%; max-width: 100vw; }
  .whatsapp-fab{ width: 50px; height:50px; bottom:18px; right:18px; }
  .whatsapp-fab svg{ width:24px; height:24px; }
  .to-top{ width: 42px; height:42px; bottom:78px; right:18px; }
}
