/* ==========================================================================
   Perllon — Assistência Especializada Apple
   Tokens: navy #004189 (primário), laranja #FF8200 (destaque), preto/branco
   Tipografia: Space Grotesk (display) + Inter (texto) + IBM Plex Mono (dados)
   ========================================================================== */

:root {
  --color-white: #ffffff;
  --color-bg-tint: #eef4fa;
  --color-bg-tint-2: #f6f9fc;
  --color-navy: #004189;
  --color-navy-dark: #00306a;
  --color-navy-darker: #00224d;
  --color-orange: #ff8200;
  --color-orange-dark: #d96c00;
  --color-ink: #10161f;
  --color-ink-soft: #4a5568;
  --color-line: #d7e2ee;
  --color-on-orange: #1a1300;

  --font-display: "Space Grotesk", "Segoe UI", sans-serif;
  --font-body: "Inter", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "Courier New", monospace;

  --header-h: 76px;
  --radius: 14px;
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------------- Animação: revelação ao rolar ---------------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0s);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

.service-grid .reveal:nth-child(1) {
  --reveal-delay: 0s;
}
.service-grid .reveal:nth-child(2) {
  --reveal-delay: 0.08s;
}
.service-grid .reveal:nth-child(3) {
  --reveal-delay: 0.16s;
}
.service-grid .reveal:nth-child(4) {
  --reveal-delay: 0.24s;
}

.diff-strip .reveal:nth-child(1) {
  --reveal-delay: 0s;
}
.diff-strip .reveal:nth-child(2) {
  --reveal-delay: 0.1s;
}
.diff-strip .reveal:nth-child(3) {
  --reveal-delay: 0.2s;
}
.diff-strip .reveal:nth-child(4) {
  --reveal-delay: 0.3s;
}

/* ---------------- Animação: entrada do hero ---------------- */

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy > * {
  opacity: 0;
  animation: fade-up 0.8s var(--ease) forwards;
}

.hero-copy > .eyebrow {
  animation-delay: 0.05s;
}
.hero-copy > h1 {
  animation-delay: 0.16s;
}
.hero-copy > .hero-sub {
  animation-delay: 0.28s;
}
.hero-copy > .hero-cta {
  animation-delay: 0.4s;
}
.hero-copy > .hero-stats {
  animation-delay: 0.52s;
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > * {
    opacity: 1;
    animation: none;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

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

:focus-visible {
  outline: 3px solid var(--color-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-navy);
  color: #fff;
  padding: 12px 20px;
  z-index: 1000;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  color: var(--color-navy-darker);
  line-height: 1.15;
  margin: 0;
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.4rem);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  font-weight: 700;
}

h3 {
  font-size: 1.2rem;
  font-weight: 600;
}

p {
  margin: 0;
}

.eyebrow {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.72rem;
  color: var(--color-orange-dark);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--color-orange);
  display: inline-block;
}

.section {
  padding: 88px 0;
}

.section--tint {
  background: var(--color-bg-tint);
}

.section-head {
  max-width: 640px;
  margin: 0 0 48px;
}

.section-head p {
  margin-top: 14px;
  color: var(--color-ink-soft);
  font-size: 1.05rem;
}

/* ---------------- Buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn--accent {
  background: var(--color-orange);
  color: var(--color-on-orange);
  border-color: var(--color-orange);
}
.btn--accent:hover {
  background: var(--color-orange-dark);
  border-color: var(--color-orange-dark);
  color: var(--color-on-orange);
}

.btn--outline-light {
  background: transparent;
  color: var(--color-navy);
  border-color: rgba(0, 65, 137, 0.55);
}
.btn--outline-light:hover {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.6);
}
.btn--ghost-dark:hover {
  background: var(--color-orange);
  color: var(--color-on-orange);
  border-color: var(--color-orange);
}

.btn--sm {
  padding: 10px 18px;
  font-size: 0.88rem;
}

/* ---------------- Header ---------------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  display: flex;
  align-items: center;
  z-index: 500;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 0 0 rgba(0, 20, 45, 0);
  transition: box-shadow 0.3s var(--ease);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 30px -18px rgba(0, 20, 45, 0.35);
}

.brand img {
  transition: transform 0.4s var(--ease);
}

.brand:hover img {
  transform: rotate(14deg);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  height: 42px;
  width: 42px;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy-darker);
  font-size: 1.15rem;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

.brand-text small {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.68rem;
  color: var(--color-ink-soft);
  letter-spacing: 0.01em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  text-decoration: none;
  color: var(--color-ink);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: 6px 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--color-orange);
  transition: right 0.25s var(--ease);
}

.main-nav a:hover::after,
.main-nav a:focus-visible::after {
  right: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--color-line);
  border-radius: 10px;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--color-navy-darker);
  position: relative;
  transition: transform 0.2s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span::before {
  position: absolute;
  top: -6px;
}
.nav-toggle span::after {
  position: absolute;
  top: 6px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  transform: rotate(45deg) translate(4px, 5px);
}
.nav-toggle[aria-expanded="true"] span::after {
  transform: rotate(-45deg) translate(4px, -5px);
}

/* ---------------- Hero ---------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--header-h);
  padding-bottom: 40px;
  box-sizing: border-box;
  overflow: hidden;
  background-image: linear-gradient(
      100deg,
      rgba(0, 20, 45, 0.94) 0%,
      rgba(0, 34, 77, 0.88) 38%,
      rgba(0, 34, 77, 0.6) 62%,
      rgba(0, 34, 77, 0.4) 100%
    ),
    url("assets/img/hero-repair-mobile.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 720px) {
  .hero {
    background-image: linear-gradient(
        100deg,
        rgba(0, 20, 45, 0.94) 0%,
        rgba(0, 34, 77, 0.88) 38%,
        rgba(0, 34, 77, 0.55) 65%,
        rgba(0, 34, 77, 0.32) 100%
      ),
      url("assets/img/hero-repair.jpg");
  }
}

.hero .container {
  max-width: 660px;
}

.hero-copy h1 {
  margin-top: 18px;
  color: #fff;
}

.hero-copy .eyebrow {
  color: var(--color-orange);
}

.hero-copy .hero-sub {
  margin-top: 20px;
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 46ch;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-top: 34px;
  flex-wrap: wrap;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px 28px;
  margin-top: 54px;
  max-width: 560px;
}

.hero-stat {
  min-width: 0;
}

.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: #fff;
  line-height: 1;
  white-space: nowrap;
}

.hero-stat > span {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  line-height: 1.4;
}

/* ---------------- CTA ---------------- */

.cta-band {
  position: relative;
  padding: 96px 0;
  overflow: hidden;
  background-image: linear-gradient(
      100deg,
      rgba(0, 20, 45, 0.92) 0%,
      rgba(0, 34, 77, 0.86) 45%,
      rgba(0, 34, 77, 0.7) 100%
    ),
    url("assets/img/cta-iphone-mobile.jpg");
  background-size: cover;
  background-position: center;
}

@media (min-width: 720px) {
  .cta-band {
    background-image: linear-gradient(
        100deg,
        rgba(0, 20, 45, 0.9) 0%,
        rgba(0, 34, 77, 0.8) 45%,
        rgba(0, 34, 77, 0.55) 100%
      ),
      url("assets/img/cta-iphone.jpg");
  }
}

.cta-band-inner {
  max-width: 640px;
}

.cta-band .eyebrow {
  color: var(--color-orange);
}

.cta-band h2 {
  margin-top: 18px;
  color: #fff;
}

.cta-band p {
  margin-top: 18px;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  max-width: 48ch;
}

.cta-band .hero-cta {
  margin-top: 30px;
}

/* ---------------- Divider (signature circuit trace) ---------------- */

.trace-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 0 8px;
}
.trace-divider::before,
.trace-divider::after {
  content: "";
  height: 1.5px;
  width: 72px;
  background: var(--color-line);
}
.trace-divider .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-orange);
}

/* ---------------- Sobre ---------------- */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: start;
}

.about-copy p + p {
  margin-top: 16px;
}

.about-copy p {
  color: var(--color-ink-soft);
  font-size: 1.02rem;
}

.value-list {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 22px;
}

.value-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--color-ink);
}

.value-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-orange);
}

.mv-cards {
  display: grid;
  gap: 18px;
}

.mv-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 28px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.mv-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0, 65, 137, 0.3);
}

.mv-card .eyebrow {
  margin-bottom: 10px;
}

.mv-card p {
  color: var(--color-ink-soft);
  font-size: 0.98rem;
  margin-top: 10px;
}

/* ---------------- Serviços ---------------- */

.services-tabs-note {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto repeat(4, 1fr);
  column-gap: 48px;
  row-gap: 20px;
}

.service-col {
  display: grid;
  grid-row: 1 / span 5;
  grid-template-rows: subgrid;
}

.service-col h3 {
  color: var(--color-navy);
  font-family: var(--font-mono);
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  margin-bottom: 0;
}

.service-grid {
  display: grid;
  grid-row: 2 / span 4;
  grid-template-rows: subgrid;
  gap: 16px;
}

.service-card {
  height: 100%;
}

.service-card {
  background: var(--color-white);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.service-card:hover {
  border-color: var(--color-orange);
  transform: translateY(-3px);
  box-shadow: 0 14px 30px -18px rgba(0, 65, 137, 0.3);
}

.service-icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--color-bg-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--color-navy);
}

.service-card h4 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  margin: 0 0 5px;
  color: var(--color-ink);
}

.service-card p {
  font-size: 0.9rem;
  color: var(--color-ink-soft);
}

/* ---------------- Diferenciais ---------------- */

.diff-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-white);
}

.diff-item {
  padding: 30px 26px;
  border-right: 1px solid var(--color-line);
  transition: background-color 0.25s var(--ease);
}
.diff-item:last-child {
  border-right: none;
}
.diff-item:hover {
  background-color: var(--color-bg-tint);
}
.diff-item:hover strong {
  color: var(--color-orange-dark);
  transition: color 0.25s var(--ease);
}

.diff-item strong {
  display: block;
  font-family: var(--font-display);
  color: var(--color-navy);
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.diff-item span {
  color: var(--color-ink-soft);
  font-size: 0.92rem;
}

/* ---------------- Localização / Contato ---------------- */

.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 40px;
  align-items: stretch;
}

.contact-card {
  background: var(--color-navy-darker);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}

.contact-card h2 {
  color: #fff;
}

.contact-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.contact-item svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  stroke: var(--color-orange);
  margin-top: 3px;
}

.contact-item strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
  font-weight: 500;
}

.contact-item a,
.contact-item p {
  color: #fff;
  text-decoration: none;
  font-size: 0.98rem;
}

.contact-item a:hover {
  color: var(--color-orange);
}

.contact-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 6px;
}

.map-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-line);
  min-height: 340px;
}

.map-frame iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

/* ---------------- Footer ---------------- */

.site-footer {
  background: #050b14;
  color: rgba(255, 255, 255, 0.72);
  padding: 56px 0 28px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .brand {
  margin-bottom: 16px;
}

.footer-brand .brand-text {
  color: #fff;
}

.footer-brand .brand-text small {
  color: rgba(255, 255, 255, 0.55);
}

.footer-brand p {
  font-size: 0.9rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.55);
}

.footer-col h3 {
  color: #fff;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--font-mono);
  font-weight: 600;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-col a:hover {
  color: var(--color-orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

/* ---------------- WhatsApp flutuante ---------------- */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 600;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.35);
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.whatsapp-float:hover {
  background: var(--color-orange);
  color: var(--color-on-orange);
}

.whatsapp-float svg {
  width: 26px;
  height: 26px;
}

/* ---------------- Responsive ---------------- */

@media (max-width: 980px) {
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .diff-strip {
    grid-template-columns: repeat(2, 1fr);
  }
  .diff-item:nth-child(2) {
    border-right: none;
  }
  .diff-item {
    border-bottom: 1px solid var(--color-line);
  }
  .services-tabs-note {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 36px;
  }
  .service-col {
    grid-row: auto;
    grid-template-rows: none;
    display: block;
  }
  .service-col h3 {
    margin-bottom: 20px;
  }
  .service-grid {
    grid-row: auto;
    grid-template-rows: none;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 20px;
    border-bottom: 1px solid var(--color-line);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .main-nav.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  .main-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--color-line);
  }
  .header-actions .btn--sm-desktop {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .diff-strip {
    grid-template-columns: 1fr;
  }
  .diff-item {
    border-right: none;
  }
  .value-list {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .section {
    padding: 64px 0;
  }
  .hero-stats {
    gap: 14px 16px;
    max-width: 100%;
  }
  .hero-stat strong {
    font-size: 1.3rem;
  }
  .hero-stat > span {
    font-size: 0.66rem;
  }
}

@media (max-width: 420px) {
  .hero-stats {
    gap: 10px 12px;
  }
  .hero-stat strong {
    font-size: 1.1rem;
  }
  .hero-stat > span {
    font-size: 0.6rem;
  }
}
