/* =========================================================
   Diplomata Transporte e Serviços — site institucional (beta)
   Paleta e tipografia herdadas da apresentação institucional
   ========================================================= */

:root {
  --navy: #0B2145;
  --navy-2: #12305F;
  --navy-3: #081A37;
  --gold: #D4A23A;
  --gold-light: #E6BE62;
  --gold-dark: #8A6210;
  --paper: #F4F1EA;
  --white-card: #FBFAF6;
  --ink: #0B2145;
  --soft-dark: #B9C3D6;
  --soft-light: #3B4A63;
  --line: rgba(11, 33, 69, .12);

  --font-head: 'Montserrat', Arial, sans-serif;
  --font-body: 'Inter', Arial, sans-serif;

  --radius: 18px;
  --header-h: 84px;
  --container: 1200px;
  --shadow: 0 18px 40px -18px rgba(11, 33, 69, .35);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-head); margin: 0; line-height: 1.15; }
p { margin: 0; }

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

/* ---------- utilitários ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow--dark { color: var(--gold-dark); }

.title { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; color: var(--navy); }
.title--light { color: var(--paper); }
.gold { color: var(--gold); }

.section { padding: clamp(72px, 10vw, 120px) 0; position: relative; }
.section--navy { background: var(--navy); color: var(--paper); }
.section--paper { background: var(--paper); }
.section__head { max-width: 760px; margin-bottom: 52px; }
.section__sub { margin-top: 16px; font-size: 19px; color: var(--soft-light); }
.section__sub--light { color: var(--soft-dark); }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .5px;
  padding: 15px 28px; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .2s, background-color .2s, color .2s, border-color .2s, box-shadow .2s;
}
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(212, 162, 58, .8); }
.btn--ghost { border-color: rgba(244, 241, 234, .6); color: var(--paper); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--full { width: 100%; }
.btn__icon { width: 20px; height: 20px; fill: currentColor; }

/* ---------- header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  transition: background-color .3s, box-shadow .3s;
}
.header.is-scrolled { background: rgba(11, 33, 69, .96); box-shadow: 0 6px 24px rgba(0, 0, 0, .25); backdrop-filter: blur(8px); }
.header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.header__logo img { width: 120px; height: auto; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--paper); position: relative; }
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 0; bottom: -6px; width: 100%; height: 2px;
  background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform .25s;
}
.nav a:not(.btn):hover::after, .nav a.is-active::after { transform: scaleX(1); }
.nav__cta { padding: 11px 20px; font-size: 14px; }

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

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy); color: var(--paper);
}
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s ease-out both; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--navy) 0%, rgba(11,33,69,.92) 35%, rgba(11,33,69,.5) 62%, rgba(11,33,69,.1) 90%);
}
.hero__content { position: relative; padding-top: var(--header-h); padding-bottom: 60px; }
.hero__title { font-size: clamp(38px, 5.6vw, 76px); font-weight: 800; max-width: 920px; }
.hero__title span { color: var(--gold); }
.hero__lead { margin-top: 24px; max-width: 540px; font-size: clamp(17px, 1.6vw, 20px); color: var(--soft-dark); }
.hero__actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  width: 26px; height: 42px; border: 2px solid rgba(244, 241, 234, .6); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--gold); animation: scrollDot 1.8s infinite; }

@keyframes heroZoom { from { transform: scale(1.12); } to { transform: scale(1); } }
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- faixa de destaques ---------- */
.strip { background: var(--gold); color: var(--navy); }
.strip__inner { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip__item { padding: 26px 20px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(11, 33, 69, .18); }
.strip__item:first-child { border-left: 0; padding-left: 0; }
.strip__item strong { font-family: var(--font-head); font-size: 18px; font-weight: 800; }
.strip__item span { font-size: 14px; color: rgba(11, 33, 69, .8); }

/* ---------- quem somos ---------- */
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.about__media { position: relative; }
.about__media > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); }
.about__badge {
  position: absolute; right: -24px; bottom: -24px;
  width: 170px; padding: 18px; border-radius: var(--radius);
  background: var(--navy); border-bottom: 5px solid var(--gold); box-shadow: var(--shadow);
}
.about__text .lead { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: var(--gold-dark); margin: 18px 0 26px; line-height: 1.35; }
.about__text .pt { border-left: 4px solid var(--gold); padding: 2px 0 2px 20px; color: var(--soft-light); margin-bottom: 18px; }
.signature { margin-top: 28px; font-family: var(--font-head); font-style: italic; font-weight: 600; font-size: 18px; color: var(--navy); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 22px; }
.cards--2 { grid-template-columns: repeat(2, 1fr); }
.cards--3 { grid-template-columns: repeat(3, 1fr); }
.cards--diffs { grid-template-columns: repeat(6, 1fr); }
.cards--diffs .card { grid-column: span 2; }
.cards--diffs .card:nth-child(4) { grid-column: 2 / span 2; }

.card {
  background: var(--navy-2); border-radius: var(--radius); padding: 30px;
  display: flex; flex-direction: column; gap: 10px;
  border: 1px solid rgba(244, 241, 234, .06);
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(212, 162, 58, .5); box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .5); }
.card h3 { font-size: 20px; font-weight: 700; color: var(--paper); }
.card p { font-size: 15.5px; color: var(--soft-dark); }
.card__num { font-family: var(--font-head); font-size: 34px; font-weight: 800; color: var(--gold); line-height: 1; margin-bottom: 4px; }
.card__icon { width: 44px; height: 44px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 6px; }

.card--light { background: var(--white-card); border: 1px solid var(--line); border-top: 5px solid var(--gold); }
.card--light h3 { color: var(--navy); font-size: 24px; }
.card--light p { color: var(--soft-light); }
.card--light .card__icon { stroke: var(--gold-dark); }
.card--light:hover { box-shadow: var(--shadow); border-color: var(--line); border-top-color: var(--gold); }

/* ---------- serviços ---------- */
.services__layout { display: grid; grid-template-columns: 5fr 7fr; gap: 28px; align-items: stretch; }
.services__photo { border-radius: var(--radius); overflow: hidden; position: relative; min-height: 320px; }
.services__photo::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--gold); }
.services__photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }

/* ---------- como funciona ---------- */
.steps__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; }
.steps__list::before { content: ''; position: absolute; left: 36px; right: 36px; top: 34px; height: 3px; background: var(--gold); }
.step { position: relative; }
.step__dot {
  width: 72px; height: 72px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--navy); border: 4px solid var(--gold); color: var(--gold);
  font-family: var(--font-head); font-size: 28px; font-weight: 800;
  margin-bottom: 22px; position: relative;
}
.step h3 { font-size: 22px; margin-bottom: 8px; }
.step p { color: var(--soft-light); font-size: 15.5px; }

/* ---------- portfólio ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 260px; gap: 16px; }
.gallery__item {
  position: relative; overflow: hidden; border-radius: var(--radius);
  border: 0; padding: 0; cursor: zoom-in; background: var(--navy); font: inherit;
}
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .3s; }
.gallery__item:hover img { transform: scale(1.06); opacity: .85; }
.gallery__cap {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(11, 33, 69, .88); color: var(--paper);
  font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 8px 14px; border-radius: 999px; border-left: 3px solid var(--gold);
}
.gallery__item--placeholder {
  cursor: default; display: flex; align-items: center; justify-content: center;
  background: repeating-linear-gradient(45deg, #EEEAE0, #EEEAE0 12px, #F4F1EA 12px, #F4F1EA 24px);
  border: 2px dashed rgba(138, 98, 16, .45); color: var(--gold-dark);
  font-family: var(--font-head); font-weight: 700; font-size: 15px;
}

/* ---------- cotação ---------- */
.quote { overflow: hidden; }
.quote__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.quote__shade { position: absolute; inset: 0; background: linear-gradient(100deg, rgba(11,33,69,.97) 0%, rgba(11,33,69,.9) 50%, rgba(11,33,69,.8) 100%); }
.quote__grid { position: relative; display: grid; grid-template-columns: 5fr 6fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.quote__phone {
  display: inline-block; margin-top: 30px;
  font-family: var(--font-head); font-size: clamp(28px, 3.4vw, 40px); font-weight: 800; color: var(--paper);
  border-bottom: 3px solid var(--gold); padding-bottom: 4px;
}
.quote__phone:hover { color: var(--gold); }

.form { background: var(--white-card); color: var(--ink); border-radius: var(--radius); padding: clamp(24px, 3vw, 36px); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); display: flex; flex-direction: column; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--navy); }
.form small { font-weight: 400; color: var(--soft-light); }
.form input, .form select, .form textarea {
  font: inherit; font-weight: 400; font-size: 16px; color: var(--ink);
  padding: 12px 14px; border-radius: 10px; border: 1.5px solid #D6D2C6; background: #FFF;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(212, 162, 58, .25); }
.form .is-invalid { border-color: #B3261E; }
.form__error { color: #B3261E; font-size: 14px; font-weight: 600; }

/* ---------- contato ---------- */
.contact { background: var(--navy-3); color: var(--paper); padding: 64px 0; }
.contact__grid { display: grid; grid-template-columns: 1.1fr 1.5fr 1fr; gap: 40px; }
.contact__lab { font-family: var(--font-head); font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.contact__val { display: block; font-size: 17px; color: var(--paper); line-height: 1.5; }
a.contact__val:hover { color: var(--gold); }
.contact__val--big { font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1.2; }

/* ---------- footer ---------- */
.footer { background: var(--navy-3); color: var(--soft-dark); border-top: 1px solid rgba(244, 241, 234, .08); padding: 28px 0; font-size: 14px; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer__inner img { width: 110px; height: auto; }
.footer__top:hover { color: var(--gold); }

/* ---------- whatsapp flutuante ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 32px; height: 32px; fill: #FFF; }

/* ---------- lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 26, 55, .94); display: flex; align-items: center; justify-content: center; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; border-radius: 12px; }
.lightbox figcaption { margin-top: 14px; text-align: center; color: var(--paper); font-family: var(--font-head); font-weight: 600; }
.lightbox__close { position: absolute; top: 16px; right: 22px; background: none; border: 0; color: var(--paper); font-size: 44px; line-height: 1; cursor: pointer; }
.lightbox__close:hover { color: var(--gold); }

/* ---------- animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(28px); 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; }
  .hero__bg, .hero__scroll span { animation: none; }
}

/* =========================================================
   Responsivo
   ========================================================= */
@media (max-width: 1080px) {
  .nav { gap: 18px; }
  .nav a { font-size: 14px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .header { background: rgba(11, 33, 69, .96); }
  .header__logo img { width: 96px; }
  .menu-toggle { display: block; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 8px 24px 24px;
    box-shadow: 0 20px 30px rgba(0, 0, 0, .3);
    transform: translateY(-110%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a { padding: 14px 0; font-size: 16px; border-bottom: 1px solid rgba(244, 241, 234, .08); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; border-bottom: 0 !important; }

  .strip__inner { grid-template-columns: repeat(2, 1fr); }
  .strip__item { padding: 20px 16px; }
  .strip__item:nth-child(odd) { border-left: 0; padding-left: 0; }
  .strip__item:nth-child(n+3) { border-top: 1px solid rgba(11, 33, 69, .18); }

  .about__grid, .services__layout, .quote__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 520px; }
  .about__media > img { aspect-ratio: 4 / 3; }
  .about__badge { right: 16px; bottom: -20px; width: 130px; padding: 14px; }
  .services__photo { min-height: 260px; }

  .cards--3 { grid-template-columns: 1fr; }
  .cards--diffs { grid-template-columns: repeat(2, 1fr); }
  .cards--diffs .card, .cards--diffs .card:nth-child(4) { grid-column: auto; }
  .cards--diffs .card:last-child { grid-column: 1 / -1; }

  .steps__list { grid-template-columns: repeat(2, 1fr); row-gap: 40px; }
  .steps__list::before { display: none; }

  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .contact__grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { align-items: flex-end; }
  .hero__content { padding-bottom: 96px; }
  .hero__shade { background: linear-gradient(180deg, rgba(11,33,69,.35) 0%, rgba(11,33,69,.8) 50%, var(--navy) 100%); }
  .hero__actions .btn { flex: 1 1 100%; }
  .cards--2, .cards--diffs { grid-template-columns: 1fr; }
  .steps__list { grid-template-columns: 1fr; }
  .step { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .step__dot { width: 56px; height: 56px; font-size: 22px; grid-row: span 2; margin: 0; }
  .gallery { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .gallery__item--wide { grid-column: auto; }
  .form__row { grid-template-columns: 1fr; }
  .footer__inner { flex-direction: column; text-align: center; }
  .wa-float { width: 54px; height: 54px; right: 16px; bottom: 16px; }
}
