/* =========================================================
   pfe — P&F Electrónica, Lda.
   Identidade visual executiva e sóbria
   Cores base: #012d59 (navy) · #f47c02 (laranja)
   ========================================================= */

:root {
  --navy: #012d59;
  --navy-700: #022647;
  --navy-900: #011a33;
  --orange: #f47c02;
  --orange-600: #d96d00;

  --ink: #0f1b2d;
  --slate: #4a5568;
  --muted: #7a8699;
  --line: #e4e8ef;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --bg-soft: #eef2f7;

  --radius: 6px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(1, 45, 89, .06);
  --shadow: 0 8px 30px rgba(1, 45, 89, .08);
  --shadow-lg: 0 20px 50px rgba(1, 45, 89, .14);

  --max: 1180px;
  --space: clamp(64px, 9vw, 110px);

  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Space Grotesk", var(--sans);

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; }

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: var(--space); }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #e8eef6; }
.lead { font-size: 1.18rem; color: var(--slate); max-width: 62ch; }
.section--navy .lead { color: #b9c7da; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-size: .76rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--orange);
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--orange); }
.section--navy .eyebrow { color: var(--orange); }

.title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  letter-spacing: -.02em;
  color: var(--navy);
}
.section--navy .title { color: #fff; }
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head .lead { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display);
  font-weight: 500; font-size: .95rem;
  padding: 14px 26px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s, box-shadow .25s;
}
.btn .arw { transition: transform .3s var(--ease); }
.btn:hover .arw { transform: translateX(4px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-600); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(244,124,2,.28); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); background: var(--bg-alt); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.32); }
.btn--outline-light:hover { border-color: #fff; background: rgba(255,255,255,.08); }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy-900); color: #aebfd4;
  font-size: .82rem; font-family: var(--display);
  letter-spacing: .02em;
}
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 40px; gap: 20px; }
.topbar a { transition: color .2s; }
.topbar a:hover { color: #fff; }
.topbar__meta { display: flex; gap: 26px; }
.topbar__meta span { display: inline-flex; align-items: center; gap: 7px; }
.topbar__tag { color: #6f83a0; }
@media (max-width: 720px) { .topbar { display: none; } }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .3s, background .3s;
}
.site-header.is-stuck { box-shadow: var(--shadow-sm); background: rgba(255,255,255,.96); }
.nav { display: flex; align-items: center; justify-content: space-between; min-height: 74px; }

.brand { display: flex; align-items: baseline; gap: 12px; }
.brand__mark {
  font-family: var(--display); font-weight: 700;
  font-size: 1.7rem; letter-spacing: -.04em; color: var(--navy);
  line-height: 1;
}
.brand__mark b { color: var(--orange); }
.brand__sub {
  font-size: .68rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); font-family: var(--display); font-weight: 500;
}
@media (max-width: 520px) { .brand__sub { display: none; } }

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a {
  position: relative;
  font-family: var(--display); font-weight: 500; font-size: .95rem;
  padding: 10px 16px; border-radius: var(--radius); color: var(--slate);
  transition: color .2s, background .2s;
}
.nav__links a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 4px;
  height: 2px; background: var(--orange); transform: scaleX(0); transform-origin: left;
  transition: transform .3s var(--ease);
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.is-active { color: var(--navy); }
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__cta { display: flex; align-items: center; gap: 16px; }
.nav__toggle {
  display: none; width: 44px; height: 44px; border: 1px solid var(--line);
  background: #fff; border-radius: var(--radius); cursor: pointer;
  position: relative;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  content: ""; position: absolute; left: 50%; width: 20px; height: 2px;
  background: var(--navy); transform: translateX(-50%); transition: .3s var(--ease);
}
.nav__toggle span { top: 50%; margin-top: -1px; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after { top: 6px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { top: 0; transform: translateX(-50%) rotate(45deg); }
.nav.is-open .nav__toggle span::after { top: 0; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 920px) {
  .nav__cta .btn { display: none; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 24px; box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; pointer-events: none;
    transition: .3s var(--ease);
  }
  .nav.is-open .nav__links { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a { padding: 14px 12px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__links a::after { display: none; }
  .nav__links .btn { display: inline-flex; margin-top: 16px; justify-content: center; border-bottom: none; }
}

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(244,124,2,.20), transparent 60%),
    radial-gradient(700px 600px at 5% 110%, rgba(56,110,175,.30), transparent 55%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero__grid {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center;
  padding-block: clamp(70px, 10vw, 120px);
}
.hero__kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--display); font-size: .78rem; font-weight: 600;
  letter-spacing: .16em; text-transform: uppercase; color: #9fb6d4;
  border: 1px solid rgba(255,255,255,.16); padding: 7px 14px; border-radius: 100px;
  margin-bottom: 26px;
}
.hero__kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.4rem, 5.2vw, 4rem); letter-spacing: -.025em; line-height: 1.05;
}
.hero h1 em { font-style: italic; color: var(--orange); }
.hero__text { margin: 26px 0 36px; font-size: 1.15rem; color: #c2d0e4; max-width: 52ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__panel {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(4px);
}
.hero__panel h3 { font-family: var(--display); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #9fb6d4; margin-bottom: 22px; }
.hero__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 20px; }
.hero__stats .num { font-family: var(--display); font-size: 2.3rem; font-weight: 600; color: #fff; line-height: 1; }
.hero__stats .num b { color: var(--orange); font-weight: 600; }
.hero__stats .lbl { font-size: .85rem; color: #9fb6d4; margin-top: 8px; }

@media (max-width: 880px) {
  .hero__grid { grid-template-columns: 1fr; gap: 44px; }
  .hero__panel { order: 2; }
}

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 90% -20%, rgba(244,124,2,.18), transparent 60%);
}
.page-hero .wrap { position: relative; z-index: 1; padding-block: clamp(56px, 8vw, 90px); }
.page-hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.1rem, 4.6vw, 3.2rem); letter-spacing: -.02em; }
.page-hero .lead { color: #c2d0e4; margin-top: 18px; }
.crumbs { display: flex; gap: 10px; align-items: center; font-family: var(--display); font-size: .82rem; color: #8ba2c2; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs .sep { color: #4f6a90; opacity: .6; }
.crumbs .cur { color: var(--orange); }

/* ---------- Marquee (brands strip) ---------- */
.strip { background: var(--bg-alt); border-block: 1px solid var(--line); padding-block: 30px; }
.strip__label { text-align: center; font-family: var(--display); font-size: .76rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.strip__row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; align-items: center; }
.strip__row span {
  font-family: var(--display); font-weight: 600; font-size: 1.15rem; letter-spacing: .01em;
  color: var(--navy); opacity: .55; transition: opacity .25s, color .25s;
}
.strip__row span:hover { opacity: 1; color: var(--orange); }

/* ---------- Feature / service cards ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
  position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: var(--orange); transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleY(1); }
.card__ico {
  width: 52px; height: 52px; border-radius: 12px; display: grid; place-items: center;
  font-size: 1.5rem; background: var(--bg-soft); color: var(--navy); margin-bottom: 22px;
}
.card h3 { font-size: 1.22rem; color: var(--navy); margin-bottom: 12px; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.card__num { font-family: var(--display); font-size: .8rem; color: var(--muted); letter-spacing: .1em; }

/* ---------- Split content ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--media-first .split__media { order: -1; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 40px; } }
.split__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, var(--navy), var(--navy-700));
  display: grid; place-items: center; overflow: hidden; box-shadow: var(--shadow);
}
.split__media::after {
  content: ""; position: absolute; inset: 0; opacity: .4;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 40px 40px;
}
.placeholder-note {
  position: relative; z-index: 1; text-align: center; color: rgba(255,255,255,.55);
  font-family: var(--display); font-size: .82rem; letter-spacing: .08em;
}
.placeholder-note .big { font-size: 2.6rem; display: block; margin-bottom: 8px; }

.prose p { color: var(--slate); margin: 0 0 18px; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- Tick list ---------- */
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink); }
.ticks li::before {
  content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 50%;
  background: rgba(244,124,2,.12); color: var(--orange); font-size: .8rem;
  display: grid; place-items: center; margin-top: 3px; font-weight: 700;
}
.section--navy .ticks li { color: #d7e1ee; }

/* sectors pill grid */
.pills { display: flex; flex-wrap: wrap; gap: 12px; }
.pill {
  font-family: var(--display); font-size: .92rem; font-weight: 500;
  padding: 11px 18px; border-radius: 100px; border: 1px solid var(--line);
  background: #fff; color: var(--navy); transition: .25s var(--ease);
  display: inline-flex; gap: 9px; align-items: center;
}
.pill:hover { border-color: var(--orange); color: var(--orange); transform: translateY(-2px); }
.section--navy .pill { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.14); color: #e1e9f3; }
.section--navy .pill:hover { border-color: var(--orange); color: #fff; }

/* ---------- Objectives / values ---------- */
.value { padding: 30px 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.value .step { font-family: var(--display); font-weight: 700; font-size: .85rem; color: var(--orange); letter-spacing: .1em; }
.value h3 { color: var(--navy); font-size: 1.2rem; margin: 14px 0 10px; }
.value p { margin: 0; color: var(--slate); font-size: .97rem; }

/* ---------- Brand cards ---------- */
.brand-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s;
  display: flex; flex-direction: column;
}
.brand-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.brand-card__logo {
  height: 120px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--bg-alt), var(--bg-soft));
  border-bottom: 1px solid var(--line);
}
.brand-card__logo span { font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--navy); letter-spacing: -.02em; }
.brand-card__body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.brand-card__cat { font-family: var(--display); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; }
.brand-card__body h3 { color: var(--navy); font-size: 1.15rem; margin-bottom: 12px; }
.brand-card__body p { color: var(--slate); font-size: .95rem; margin: 0 0 20px; flex: 1; }
.brand-card__link { font-family: var(--display); font-weight: 500; font-size: .9rem; color: var(--navy); display: inline-flex; gap: 8px; align-items: center; }
.brand-card__link:hover { color: var(--orange); }
.brand-card.is-feature { grid-column: span 2; }
.brand-card.is-feature .brand-card__logo { background: linear-gradient(135deg, var(--navy), var(--navy-700)); }
.brand-card.is-feature .brand-card__logo span { color: #fff; }
.brand-card.is-feature .brand-card__logo span b { color: var(--orange); }
@media (max-width: 620px) { .brand-card.is-feature { grid-column: span 1; } }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--navy), var(--navy-700)); color: #fff; border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 64px); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -60px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(244,124,2,.28), transparent 70%); }
.cta-band__grid { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 36px; flex-wrap: wrap; }
.cta-band h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(1.7rem, 3.5vw, 2.4rem); max-width: 18ch; }
.cta-band p { color: #c2d0e4; margin: 12px 0 0; max-width: 46ch; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
.info-row { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.info-row:first-child { padding-top: 0; }
.info-row__ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 1.2rem; color: var(--navy); }
.info-row h4 { font-family: var(--display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.info-row p, .info-row a { margin: 0; color: var(--ink); font-size: 1rem; }
.info-row a:hover { color: var(--orange); }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--display); font-size: .82rem; font-weight: 500; color: var(--navy); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid var(--line); border-radius: var(--radius);
  font-family: var(--sans); font-size: 1rem; color: var(--ink); background: var(--bg-alt);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--navy); background: #fff;
  box-shadow: 0 0 0 3px rgba(1,45,89,.08);
}
.field textarea { resize: vertical; min-height: 130px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.form__note { font-size: .82rem; color: var(--muted); margin-top: 14px; }
.form__ok { display: none; background: rgba(244,124,2,.1); border: 1px solid rgba(244,124,2,.3); color: var(--orange-600); padding: 14px 16px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 18px; }
.form__ok.show { display: block; }

.map-box { aspect-ratio: 16/10; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--navy), var(--navy-700)); display: grid; place-items: center; margin-top: 28px; position: relative; overflow: hidden; }
.map-box::after { content: ""; position: absolute; inset: 0; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 38px 38px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #93a6c2; padding-top: 70px; font-size: .93rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 56px; }
@media (max-width: 880px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__brand .brand__mark { color: #fff; font-size: 1.9rem; }
.footer__brand p { margin: 18px 0 0; max-width: 34ch; color: #7d92b0; }
.footer h4 { font-family: var(--display); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.footer ul li { margin-bottom: 11px; }
.footer ul a { color: #93a6c2; transition: color .2s, padding .2s; }
.footer ul a:hover { color: var(--orange); padding-left: 4px; }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.08); padding-block: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #6f84a3; }
.footer__bottom a:hover { color: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: .08s; }
.reveal[data-d="2"] { transition-delay: .16s; }
.reveal[data-d="3"] { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-l { margin-top: 44px; }
.muted { color: var(--muted); }
hr.div { border: 0; border-top: 1px solid var(--line); margin: 0; }
