/* Imperial Móveis Usados — site institucional
   Desenvolvimento: Marlon Prates — https://marlonprates.com */
:root {
  --navy: #0a2f47;
  --navy-2: #124a69;
  --blue: #20a8d8;
  --blue-light: #69d7f5;
  --blue-pale: #e9f8fd;
  --yellow: #ffc928;
  --yellow-dark: #e5a900;
  --text: #132438;
  --muted: #5f6f7e;
  --white: #ffffff;
  --surface: #f4fbfe;
  --border: rgba(7, 26, 43, .12);
  --shadow-sm: 0 8px 26px rgba(7, 26, 43, .08);
  --shadow: 0 20px 60px rgba(7, 26, 43, .14);
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --container: 1180px;
  --transition: 180ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
::selection { background: var(--yellow); color: var(--navy); }

.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 9999;
  transform: translateY(-150%); padding: 10px 14px;
  border-radius: 8px; background: var(--yellow); color: var(--navy); font-weight: 800;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(100% - 36px, var(--container)); margin-inline: auto; }
.narrow { width: min(100% - 36px, 820px); margin-inline: auto; }
.section { padding: 88px 0; }
.section-sm { padding: 58px 0; }
.section-soft { background: var(--surface); }
.section-dark { background: var(--navy); color: var(--white); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  color: #087aa9; font-size: .78rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--yellow); }
.section-dark .eyebrow { color: var(--blue-light); }
h1, h2, h3 { margin: 0 0 .5em; line-height: 1.12; color: var(--navy); letter-spacing: -.025em; }
h1 { font-size: clamp(2.45rem, 5.4vw, 5.2rem); }
h2 { font-size: clamp(2rem, 3.7vw, 3.55rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.section-dark h1, .section-dark h2, .section-dark h3 { color: var(--white); }
p { margin: 0 0 1.2em; }
.lead { font-size: clamp(1.06rem, 1.7vw, 1.28rem); color: var(--muted); max-width: 700px; }
.section-dark .lead { color: #c6d8e5; }
.text-center { text-align: center; }
.text-center .lead { margin-inline: auto; }
.highlight { position: relative; display: inline; z-index: 0; }
.highlight::after { content: ""; position: absolute; left: -.02em; right: -.02em; bottom: .08em; height: .23em; background: var(--yellow); z-index: -1; border-radius: 4px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: max-content; max-width: 100%; min-height: 48px; padding: 12px 20px;
  flex: 0 0 auto; border: 1px solid transparent; border-radius: 999px;
  font-weight: 850; line-height: 1.2; white-space: nowrap;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn > svg { display: block; width: 20px; height: 20px; flex: 0 0 20px; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--yellow); color: var(--navy); box-shadow: 0 12px 28px rgba(255, 201, 40, .25); }
.btn-primary:hover { background: #ffd652; box-shadow: 0 16px 34px rgba(255, 201, 40, .34); }
.btn-blue { background: var(--blue); color: var(--white); box-shadow: 0 12px 28px rgba(22, 158, 211, .24); }
.btn-blue:hover { background: #0d8fc4; }
.btn-outline { border-color: rgba(255,255,255,.42); color: var(--white); background: rgba(255,255,255,.04); }
.btn-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }
.btn-dark-outline { border-color: var(--border); color: var(--navy); background: var(--white); }
.btn-dark-outline:hover { border-color: var(--blue); color: #087aa9; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 28px; }
.icon { width: 20px; height: 20px; flex: none; }

.site-header {
  position: sticky; top: 0; z-index: 1000; background: rgba(255,255,255,.94);
  backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: box-shadow var(--transition), border-color var(--transition);
}
.site-header.scrolled { border-color: var(--border); box-shadow: 0 8px 28px rgba(7,26,43,.07); }
.header-inner { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.brand { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; }
.brand picture { display: block; line-height: 0; }
.brand img { width: 64px; height: 64px; object-fit: contain; aspect-ratio: 1 / 1; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { padding: 11px 13px; border-radius: 999px; font-size: .95rem; font-weight: 750; color: #33485b; transition: background var(--transition), color var(--transition); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--blue-pale); color: #087aa9; }
.site-nav .nav-cta { background: var(--yellow); color: var(--navy); padding-inline: 18px; }
.site-nav .nav-cta:hover, .site-nav .nav-cta[aria-current="page"] { background: #ffd95e; color: var(--navy); }
.nav-toggle { display: none; width: 46px; height: 46px; border: 1px solid var(--border); background: var(--white); border-radius: 12px; align-items: center; justify-content: center; color: var(--navy); }
.nav-toggle svg { width: 24px; }

.hero {
  position: relative; overflow: hidden; color: var(--white); background:
    radial-gradient(circle at 80% 15%, rgba(105,215,245,.22), transparent 25%),
    radial-gradient(circle at 10% 100%, rgba(255,201,40,.12), transparent 30%),
    linear-gradient(135deg, #0a3048 0%, #145b7d 64%, #1a8eb4 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px); background-size: 46px 46px; mask-image: linear-gradient(to right, transparent, black); }
.hero-inner { position: relative; min-height: 570px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; padding: 48px 0 56px; }
.hero-copy { position: relative; z-index: 2; }
.hero h1 { color: var(--white); max-width: 790px; font-size: clamp(2.45rem, 4.8vw, 4.65rem); }
.hero .lead { color: #d5e7f0; }
.hero-badge { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 8px 13px; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; background: rgba(255,255,255,.08); color: #eaf7fc; font-size: .88rem; font-weight: 750; }
.hero-badge span { width: 9px; height: 9px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 5px rgba(255,201,40,.15); }
.hero-visual { position: relative; }
.hero-photo { position: relative; min-height: 410px; overflow: hidden; border: 1px solid rgba(255,255,255,.18); border-radius: var(--radius-lg); background: #164863; box-shadow: 0 36px 100px rgba(0,0,0,.32); transform: rotate(1.5deg); }
.hero-photo img { width: 100%; height: 100%; min-height: 410px; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,26,43,.38), transparent 50%); }
.floating-card { position: absolute; z-index: 3; bottom: 26px; left: -34px; display: flex; align-items: center; gap: 14px; max-width: 300px; padding: 16px; border-radius: 18px; background: rgba(255,255,255,.96); color: var(--navy); box-shadow: var(--shadow); }
.floating-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--yellow); font-size: 1.4rem; flex: none; }
.floating-card strong { display: block; }
.floating-card small { color: var(--muted); }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px 28px; margin-top: 28px; color: #d7e9f1; font-size: .91rem; }
.trust-row span { display: inline-flex; align-items: center; gap: 8px; }
.trust-row svg { color: var(--yellow); }

.page-hero { position: relative; overflow: hidden; padding: 98px 0 76px; background: linear-gradient(135deg, var(--navy), #0b4669); color: var(--white); }
.page-hero::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; right: -100px; top: -210px; background: rgba(105,215,245,.14); }
.page-hero h1 { color: var(--white); max-width: 900px; }
.page-hero .lead { color: #d3e6ef; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; color: #bcd3df; font-size: .9rem; }
.breadcrumb a:hover { color: var(--yellow); }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--white); box-shadow: var(--shadow-sm); }
.card-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 16px; background: var(--blue-pale); color: #087aa9; }
.card-icon.yellow { background: #fff7d6; color: #a97900; }
.card-icon svg { width: 27px; height: 27px; }
.card p:last-child { margin-bottom: 0; }

.category-card { position: relative; overflow: hidden; min-height: 330px; border-radius: var(--radius); background: var(--navy); box-shadow: var(--shadow-sm); }
.category-card img { width: 100%; height: 100%; min-height: 330px; object-fit: cover; transition: transform 500ms ease; }
.category-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(4,18,30,.94), rgba(4,18,30,.08) 70%); }
.category-card:hover img { transform: scale(1.055); }
.category-content { position: absolute; z-index: 2; left: 22px; right: 22px; bottom: 20px; color: var(--white); }
.category-content h3 { color: var(--white); margin-bottom: 4px; }
.category-content p { margin: 0; color: #d6e6ee; font-size: .92rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 64px; }
.split-media { position: relative; min-height: 480px; overflow: hidden; border-radius: var(--radius-lg); background: #d9edf5; box-shadow: var(--shadow); }
.split-media img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.split-media .media-label { position: absolute; left: 20px; bottom: 20px; max-width: 290px; padding: 15px 17px; border-radius: 16px; background: rgba(7,26,43,.9); color: white; backdrop-filter: blur(10px); }
.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: #0b8e61; }

.steps { counter-reset: step; }
.step-card { position: relative; padding-top: 68px; }
.step-card::before { counter-increment: step; content: counter(step); position: absolute; top: 24px; left: 28px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--navy); font-weight: 950; }

.stats { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.13); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 30px; text-align: center; background: rgba(255,255,255,.04); }
.stat + .stat { border-left: 1px solid rgba(255,255,255,.13); }
.stat strong { display: block; font-size: clamp(2rem, 4vw, 3.35rem); line-height: 1; color: var(--yellow); }
.stat span { color: #c8dae3; }

.cta-panel { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 36px; padding: 46px; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--blue), #096c99); color: var(--white); box-shadow: var(--shadow); }
.cta-panel::after { content: ""; position: absolute; width: 240px; height: 240px; border-radius: 50%; right: -90px; top: -120px; background: rgba(255,255,255,.12); }
.cta-panel h2 { position: relative; color: var(--white); font-size: clamp(1.8rem, 3vw, 2.8rem); }
.cta-panel p { position: relative; margin-bottom: 0; color: #e7f7fc; }
.cta-panel .actions { position: relative; z-index: 2; margin-top: 0; }

.quote { padding: 30px; border-left: 5px solid var(--yellow); border-radius: 0 var(--radius) var(--radius) 0; background: var(--surface); font-size: 1.14rem; }
.values-grid .card { height: 100%; }

.form-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .91rem; font-weight: 800; color: var(--navy); }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #cbd8df; border-radius: 13px; background: #fbfdfe; color: var(--text); padding: 13px 14px; outline: none; transition: box-shadow var(--transition), border-color var(--transition); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(22,158,211,.12); }
.field textarea { min-height: 130px; resize: vertical; }
.form-card .btn { justify-self: start; }
.form-note { margin-top: 14px; color: var(--muted); font-size: .88rem; }
.contact-list { display: grid; gap: 15px; margin-top: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--white); }
.contact-item .card-icon { width: 46px; height: 46px; margin: 0; border-radius: 13px; flex: none; }
.contact-item strong { display: block; color: var(--navy); }
.contact-item span, .contact-item a { color: var(--muted); }
.contact-item a:hover { color: var(--blue); }
.map { min-height: 450px; border: 0; border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; }

.faq { border-top: 1px solid var(--border); }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 0; border: 0; background: transparent; color: var(--navy); text-align: left; font-weight: 850; }
.faq-question svg { width: 22px; transition: transform var(--transition); }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 260ms ease; }
.faq-answer > div { overflow: hidden; }
.faq-item.open .faq-answer { grid-template-rows: 1fr; }
.faq-answer p { padding: 0 0 22px; margin: 0; color: var(--muted); }

.site-footer { background: #08283c; color: #d7e6ed; }
.footer-main { padding: 62px 0 34px; display: grid; grid-template-columns: 1.25fr .8fr .95fr; gap: 50px; }
.site-footer picture {
  display: inline-flex; align-items: center; justify-content: center;
  max-width: 100%; margin-bottom: 20px; padding: 13px 16px;
  border-radius: 16px; background: #ffffff;
  box-shadow: 0 12px 34px rgba(0,0,0,.18);
}
.footer-logo { width: 290px; max-width: 100%; height: auto; margin: 0; object-fit: contain; aspect-ratio: 936 / 514; }
.footer-title { color: var(--white); font-size: 1rem; margin-bottom: 17px; }
.footer-links { display: grid; gap: 10px; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact { display: grid; gap: 11px; }
.footer-contact a:hover { color: var(--blue-light); }
.footer-bottom { padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 20px; font-size: .88rem; }
.footer-bottom a { color: var(--blue-light); font-weight: 750; }
.footer-bottom a:hover { color: var(--yellow); }

.whatsapp-float { position: fixed; right: 20px; bottom: 20px; z-index: 900; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; background: #20b65a; color: white; box-shadow: 0 14px 35px rgba(11,112,53,.34); transition: transform var(--transition), box-shadow var(--transition); }
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 18px 40px rgba(11,112,53,.42); }
.whatsapp-float svg { width: 29px; }
.back-top { position: fixed; right: 20px; bottom: 90px; z-index: 899; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 50%; background: var(--white); color: var(--navy); box-shadow: var(--shadow-sm); opacity: 0; visibility: hidden; transform: translateY(8px); transition: all var(--transition); }
.back-top.visible { opacity: 1; visibility: visible; transform: none; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 650ms ease, transform 650ms ease; }
.reveal.visible { opacity: 1; transform: none; }

.privacy h2 { margin-top: 1.4em; font-size: 1.7rem; }
.privacy ul { padding-left: 22px; }
.error-page { min-height: 68vh; display: grid; place-items: center; text-align: center; padding: 70px 0; }
.error-code { font-size: clamp(6rem, 18vw, 12rem); font-weight: 950; line-height: .8; color: var(--blue-pale); text-shadow: 0 3px 0 var(--blue-light); }

@media (max-width: 980px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 88px 24px auto; display: grid; gap: 4px; padding: 16px; border: 1px solid var(--border); border-radius: 18px; background: var(--white); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-10px); transition: all var(--transition); }
  .site-nav.open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: 13px 15px; }
  .hero-inner { grid-template-columns: 1fr; min-height: auto; gap: 46px; padding: 64px 0 82px; }
  .hero-copy { max-width: 790px; }
  .hero-visual { max-width: 720px; }
  .floating-card { left: 18px; }
  .grid-4 { grid-template-columns: repeat(2,1fr); }
  .split { grid-template-columns: 1fr; gap: 42px; }
  .split-media { order: -1; }
  .cta-panel { grid-template-columns: 1fr; }
  .cta-panel .actions { margin-top: 4px; }
  .footer-main { grid-template-columns: 1.1fr .9fr; }
  .footer-main > :last-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .container, .narrow { width: min(100% - 32px, var(--container)); }
  .section { padding: 68px 0; }
  .header-inner { width: min(100% - 52px, var(--container)); min-height: 76px; }
  .brand { min-width: 52px; }
  .brand img { width: 52px; height: 52px; aspect-ratio: 1 / 1; }
  .nav-toggle { width: 44px; height: 44px; }
  .site-nav { top: 76px; inset-inline: 24px; }
  .hero-inner { padding-top: 52px; }
  .hero-photo, .hero-photo img { min-height: 360px; }
  .floating-card { position: relative; left: auto; bottom: auto; margin: -45px 16px 0; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid rgba(255,255,255,.13); }
  .cta-panel { padding: 32px 24px; }
  .site-footer { text-align: center; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 30px; }
  .footer-main > :last-child { grid-column: auto; }
  .footer-main > div:first-child { display: flex; flex-direction: column; align-items: center; }
  .site-footer picture { margin: 0 auto 18px; }
  .footer-main p { max-width: 520px; margin-inline: auto; }
  .footer-title { margin-bottom: 14px; }
  .footer-links { grid-template-columns: repeat(2, minmax(118px, max-content)); justify-content: center; column-gap: 28px; row-gap: 10px; }
  .footer-contact { justify-items: center; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 8px; }
  .split-media, .split-media img { min-height: 360px; }
  .map { min-height: 360px; }
}


@media (max-width: 420px) {
  .btn { padding-inline: 17px; font-size: .94rem; }
  .actions { gap: 10px; }
  .footer-logo { width: 240px; }
  .footer-links { grid-template-columns: 1fr 1fr; width: min(100%, 280px); margin-inline: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
