/* ==========================================================================
   TécnVolts — Serviços e Projetos Elétricos
   Design system em variáveis CSS. Sem framework, sem build step.
   Breakpoints: 1024px / 768px / 480px (mesmo padrão do site LiftControl).
   ========================================================================== */

:root {
  /* Paleta extraída do cartão de visitas físico */
  --black-900: #0d0d0d;
  --black-800: #161616;
  --black-700: #232323;
  --black-600: #333333;

  --orange-500: #f76a00; /* laranja de marca — usar em fundos/ícones/acentos grandes */
  --orange-600: #e05f00; /* hover de botões */
  /* --orange-700: variante escura usada para TEXTO sobre fundo claro.
     O laranja de marca (#f76a00) sobre branco fica ~3:1 de contraste,
     abaixo do mínimo de 4.5:1 (WCAG AA) — mesma lição aprendida no
     projeto LiftControl com o dourado claro. Nunca usar --orange-500
     para texto de corpo/rótulo sobre fundo claro; usar --orange-700. */
  --orange-700: #b34f00;

  --white: #fafafa;
  --grey-100: #f2f2f2;
  --grey-300: #d8d8d8;
  --grey-600: #6b6b6b;
  --grey-800: #2b2b2b;

  --font-base: "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
  --container: 1180px;
  --radius: 14px;
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.12);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.08);
  --transition: 0.25s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--grey-800);
  background: var(--white);
  line-height: 1.55;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
}

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

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: 10px;
}

.eyebrow-light {
  color: #ffb066;
}

h1,
h2,
h3,
h4 {
  margin: 0 0 14px;
  font-weight: 800;
  color: var(--black-900);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
}

p {
  margin: 0 0 16px;
  color: var(--grey-600);
}

.section {
  padding: 84px 0;
}

.section-dark {
  background: var(--black-900);
  color: var(--white);
}

.section-dark p {
  color: #c9c9c9;
}

.section-dark h2,
.section-dark h3 {
  color: var(--white);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.section-head p {
  margin: 0;
}

/* Botões ------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  transition: transform var(--transition), box-shadow var(--transition),
    background var(--transition), color var(--transition);
}

.btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.btn-primary {
  background: var(--orange-500);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--orange-600);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  border-color: var(--black-900);
  color: var(--black-900);
}

.btn-outline:hover {
  background: var(--black-900);
  color: var(--white);
}

.btn-outline-light {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--black-900);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* Topbar --------------------------------------------------------------- */

.topbar {
  background: var(--black-900);
  color: #d8d8d8;
  font-size: 0.85rem;
}

.topbar-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 8px 0;
}

.topbar-info {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.topbar-info a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: color var(--transition);
}

.topbar-info a:hover {
  color: var(--orange-500);
}

.topbar-info svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.topbar-social {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}

.topbar-social a {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.topbar-social a:hover {
  background: var(--orange-500);
}

.topbar-social a:hover svg {
  stroke: var(--white);
}

.topbar-social svg {
  width: 14px;
  height: 14px;
  stroke: var(--orange-500);
  transition: stroke var(--transition);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
  transition: box-shadow var(--transition);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand img {
  height: 42px;
  width: auto;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--black-900);
}

.brand-slogan {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--orange-700);
}

.main-nav {
  margin-left: auto;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-list a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--grey-800);
  position: relative;
  padding-bottom: 4px;
  transition: color var(--transition), transform var(--transition);
  display: inline-block;
}

.nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--orange-500);
  transition: width var(--transition);
}

.nav-list a:hover {
  color: var(--orange-700);
  transform: scale(1.06);
}

.nav-list a:hover::after {
  width: 100%;
}

.btn-nav {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  align-items: stretch;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.nav-toggle span {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 2px;
  background: var(--black-900);
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle span:nth-child(1) {
  top: 13px;
}

.nav-toggle span:nth-child(2) {
  top: 19px;
}

.nav-toggle span:nth-child(3) {
  top: 25px;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

.hero {
  background: var(--black-900);
  color: var(--white);
  padding: 90px 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(247, 106, 0, 0.16), transparent 55%);
  pointer-events: none;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  position: relative;
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.1rem, 4vw, 3rem);
}

.hero-slogan {
  color: var(--orange-500);
  font-weight: 700;
  font-size: 1.1rem;
  margin: -4px 0 14px;
}

.hero-lead {
  font-size: 1.05rem;
  color: #c9c9c9;
  max-width: 480px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero-card {
  background: var(--black-800);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-md);
}

.hero-card-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffb066;
  margin-bottom: 18px;
}

.hero-service-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-service-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-service-item:last-child {
  border-bottom: none;
}

.hero-service-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(247, 106, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-service-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange-500);
}

.hero-service-item span {
  font-weight: 600;
  font-size: 0.95rem;
}

/* Diferenciais rápidos (faixa) --------------------------------------------- */

.highlights {
  background: var(--white);
  border-bottom: 1px solid var(--grey-300);
}

.highlights-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 32px 0;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.highlight-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(247, 106, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.highlight-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--orange-700);
}

.highlight-item strong {
  display: block;
  font-size: 0.92rem;
  color: var(--black-900);
}

.highlight-item span {
  font-size: 0.82rem;
  color: var(--grey-600);
}

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

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

.about-visual {
  background: linear-gradient(160deg, var(--black-800), var(--black-900));
  border-radius: var(--radius);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about-circuit {
  width: 85%;
  height: 85%;
}

.circuit-line {
  stroke: var(--orange-500);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 10;
  opacity: 0.55;
  animation: circuit-flow 3s linear infinite;
}

.circuit-node {
  fill: var(--orange-500);
  transform-box: fill-box;
  transform-origin: center;
  animation: circuit-pulse 3s ease-in-out infinite;
}

.circuit-hub {
  fill: rgba(247, 106, 0, 0.1);
  stroke: var(--orange-500);
  stroke-width: 2;
  transform-box: fill-box;
  transform-origin: center;
  animation: circuit-hub-pulse 3s ease-in-out infinite;
}

.circuit-bolt {
  fill: var(--orange-500);
}

@keyframes circuit-flow {
  to {
    stroke-dashoffset: -160;
  }
}

@keyframes circuit-pulse {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

@keyframes circuit-hub-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .circuit-line,
  .circuit-node,
  .circuit-hub {
    animation: none;
  }
}

.about-badge {
  position: absolute;
  left: 20px;
  bottom: 20px;
  background: rgba(13, 13, 13, 0.85);
  color: var(--white);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.pillar {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 20px;
}

.pillar-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(160deg, var(--black-800), var(--orange-600));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.pillar-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--white);
}

.pillar h4 {
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.pillar p {
  font-size: 0.85rem;
  margin: 0;
}

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

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), box-shadow var(--transition),
    border-color var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--black-900);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.service-icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--orange-500);
}

.service-card h3 {
  font-size: 1.05rem;
  color: var(--black-900);
}

.service-card p {
  font-size: 0.9rem;
  margin: 0;
  color: var(--grey-600);
}

/* Como funciona ------------------------------------------------------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  text-align: center;
  padding: 0 12px;
}

.step-number {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--orange-500);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}

.step h3 {
  font-size: 1rem;
}

.step p {
  font-size: 0.88rem;
  margin: 0;
}

/* Portfólio ----------------------------------------------------------------- */

.portfolio-carousel {
  max-width: 560px;
  margin: 0 auto;
}

.portfolio-viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius);
  overflow: hidden;
}

.portfolio-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 0.6s ease;
}

.portfolio-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.portfolio-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.portfolio-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease, background 0.2s ease;
}

.portfolio-arrow svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

.portfolio-viewport:hover .portfolio-arrow {
  opacity: 1;
}

.portfolio-arrow:hover {
  background: var(--orange-500);
}

.portfolio-arrow-prev {
  left: 12px;
}

.portfolio-arrow-next {
  right: 12px;
}

.portfolio-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.portfolio-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: var(--grey-300);
  cursor: pointer;
}

.portfolio-dots button.is-active {
  background: var(--orange-500);
}

.section-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--grey-600);
  margin-top: 24px;
}

/* Depoimentos ------------------------------------------------------------ */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 24px;
  justify-content: center;
}

.testimonial-card {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
}

.testimonial-card p {
  font-size: 0.92rem;
  font-style: italic;
  color: var(--grey-800);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--black-900);
  color: var(--orange-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.testimonial-author strong {
  display: block;
  font-size: 0.88rem;
}

.testimonial-author span {
  font-size: 0.78rem;
  color: var(--grey-600);
}

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

.cta-banner {
  background: linear-gradient(120deg, var(--orange-600), var(--orange-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.cta-banner h2,
.cta-banner p {
  color: var(--white);
}

.cta-banner p {
  margin: 0;
  opacity: 0.92;
}

.cta-banner .btn-primary {
  background: var(--black-900);
}

.cta-banner .btn-primary:hover {
  background: var(--black-800);
}

/* Contato ------------------------------------------------------------------ */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 24px;
}

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

.contact-info-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--black-900);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--orange-500);
}

.contact-info-item strong {
  display: block;
  font-size: 0.85rem;
  color: var(--grey-300);
  font-weight: 600;
}

.contact-info-item a,
.contact-info-item span.value {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

.contact-form {
  background: var(--grey-100);
  border-radius: var(--radius);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 16px;
}

.form-field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--grey-800);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  border: 1px solid var(--grey-300);
  border-radius: 10px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 0.92rem;
  background: var(--white);
}

.form-field textarea {
  min-height: 110px;
  resize: vertical;
}

.form-note {
  margin-top: 12px;
  font-size: 0.85rem;
  min-height: 1.2em;
}

.form-note.success {
  color: #1b7a3d;
}

.form-note.error {
  color: #b3261e;
}

.honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

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

.site-footer {
  background: var(--black-900);
  color: #b8b8b8;
  padding: 64px 0 0;
}

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

.footer-brand-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-brand-logo img {
  height: 40px;
}

.footer-brand-logo span {
  font-weight: 800;
  color: var(--white);
  font-size: 1.05rem;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--orange-500);
}

.footer-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-item-icon {
  width: 16px;
  height: 16px;
  stroke: var(--orange-500);
  flex-shrink: 0;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  font-size: 0.8rem;
  flex-wrap: wrap;
}

.footer-bottom a:hover {
  color: var(--orange-500);
}

/* Botão flutuante do WhatsApp ------------------------------------------------ */

.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  z-index: 50;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--white);
}

/* Scroll reveal ------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

/* Páginas legais (política de privacidade) ----------------------------------- */

.legal-hero {
  background: var(--black-900);
  color: var(--white);
  padding: 64px 0 48px;
}

.legal-hero h1 {
  color: var(--white);
  margin-bottom: 8px;
}

.legal-hero p {
  color: #c9c9c9;
  margin: 0;
}

.legal-content {
  padding: 56px 0 80px;
  max-width: 820px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.2rem;
  margin-top: 36px;
}

.legal-content p,
.legal-content li {
  color: var(--grey-600);
  font-size: 0.95rem;
}

.legal-content ul {
  padding-left: 22px;
  list-style: disc;
  margin-bottom: 16px;
}

/* Responsivo — layout geral ------------------------------------------------- */

@media (max-width: 1170px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }

  .btn-nav {
    display: none;
  }

  .main-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(320px, 84%);
    background: var(--white);
    padding: 100px 28px 28px;
    transform: translateX(100%);
    transition: transform var(--transition);
    z-index: 1;
  }

  .main-nav.is-open {
    transform: translateX(0);
    box-shadow: -12px 0 30px rgba(0, 0, 0, 0.15);
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
}

@media (max-width: 1024px) {
  .hero-inner,
  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .highlights-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps,
  .pillars {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 60px 0;
  }

  .services-grid,
  .steps,
  .pillars {
    grid-template-columns: 1fr;
  }

  .portfolio-carousel {
    max-width: 100%;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .highlights-inner {
    grid-template-columns: 1fr;
  }

  .hero-card {
    padding: 20px;
  }

  .contact-form {
    padding: 22px;
  }
}
