/* Tema de contraste claro e glassmorphism — carregado por último */
html {
  width: 100%;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  width: 100%;
  overflow-x: hidden;
}

.header {
  padding-left: max(var(--pad), env(safe-area-inset-left));
  padding-right: max(var(--pad), env(safe-area-inset-right));
  padding-top: env(safe-area-inset-top);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.services-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-left: 0;
  border: 0;
}

.service {
  position: relative;
  min-height: 370px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 18px;
  background: #f2efe9;
  color: #101010;
  box-shadow: 0 22px 65px rgba(0, 0, 0, 0.22);
}

.service:hover {
  padding: 30px;
  background: #fff;
  transform: translateY(-6px);
}

.service > span {
  color: #ff542e;
}

.service h3 {
  margin-top: auto;
  color: #111;
}

.service p {
  color: #5e5a54;
}

.service i {
  position: absolute;
  top: 28px;
  right: 28px;
  color: #9a958d;
}

.service:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.14);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  color: #f4f1eb;
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 24px 70px rgba(0, 0, 0, 0.25);
}

.service:nth-child(2):hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.055));
}

.service:nth-child(2) h3 {
  color: #f4f1eb;
}

.service:nth-child(2) p {
  color: #aaa69f;
}

.process-steps {
  gap: 12px;
  border: 0;
}

.process-steps li,
.process-steps li:nth-child(2),
.process-steps li:nth-child(-n+2) {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025));
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  backdrop-filter: blur(16px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.case-study {
  padding-inline: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.045);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.brief-form {
  padding: 36px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  background: rgba(247, 244, 238, 0.96);
  color: #111;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.28);
}

.brief-form label {
  color: #69645e;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  border-bottom-color: rgba(0, 0, 0, 0.18);
  color: #111;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: #948f87;
}

.brief-form option {
  background: #fff;
  color: #111;
}

.brief-submit {
  background: #111;
  color: #fff;
}

.lightbox-caption {
  background: rgba(244, 241, 235, 0.97);
  color: #111;
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.lightbox-caption h2,
.lightbox-tools p {
  color: #111;
}

.lightbox-description,
.lightbox-meta {
  color: #6f6a63;
}

.dialog-fallback {
  position: fixed;
  z-index: 1000;
  inset: 50% auto auto 50%;
  margin: 0;
  transform: translate(-50%, -50%);
}

.carousel-track {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  touch-action: pan-x;
}

.project-card,
.carousel-controls button,
.work-filters button,
.button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

video {
  -webkit-transform: translateZ(0);
}

@supports (-webkit-touch-callout: none) {
  .hero {
    min-height: var(--app-height, 100vh);
  }

  input,
  select,
  textarea {
    font-size: 16px !important;
  }
}

@media (max-width: 900px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .service {
    min-height: 270px;
  }
}

@media (max-width: 650px) {
  .header {
    height: calc(70px + env(safe-area-inset-top));
  }

  .hero,
  .about,
  .services,
  .work,
  .process,
  .contact {
    padding-left: max(20px, env(safe-area-inset-left));
    padding-right: max(20px, env(safe-area-inset-right));
  }

  .service {
    min-height: 245px;
    padding: 24px;
  }

  .service:hover {
    padding: 24px;
    transform: none;
  }

  .brief-form {
    padding: 25px 20px;
  }

  .footer {
    padding-bottom: max(18px, env(safe-area-inset-bottom));
  }
}

/* Bordô como cor de destaque + processo glass */
:root {
  --accent: #8f1d2c;
  --accent-hover: #aa263c;
  --accent-rgb: 143, 29, 44;
}

::selection {
  background: rgba(var(--accent-rgb), 0.55);
  color: #fff;
}

html {
  scrollbar-color: var(--accent) #0c0c0c;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--accent-hover), rgba(var(--accent-rgb), 0.55));
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-hover);
}

.eyebrow span,
.admin-entry::before,
.reel-note {
  background: var(--accent);
}

.admin-entry::before {
  box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.12);
}

.admin-entry:hover,
.menu a.admin-entry:hover {
  border-color: rgba(var(--accent-rgb), 0.58);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.26), rgba(255, 255, 255, 0.055));
}

.contact-actions .button-light,
.hero-actions .text-link:hover {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.3), rgba(var(--accent-rgb), 0.09));
}

.contact-actions .button-light:hover,
.brief-submit:hover {
  border-color: rgba(var(--accent-rgb), 0.78);
  background: linear-gradient(145deg, rgba(var(--accent-rgb), 0.46), rgba(var(--accent-rgb), 0.16));
}

.service > span,
.service:hover i,
.case-study summary span,
.case-study-grid small,
.process-steps span,
.lightbox-count,
.footer .qodemy-link:hover {
  color: var(--accent);
}

.work-filters button:hover,
.work-filters button.is-active {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.brief-form input:focus,
.brief-form select:focus,
.brief-form textarea:focus {
  border-color: var(--accent);
}

.process-steps {
  gap: 14px;
  background: transparent;
}

.process-steps li,
.process-steps li:nth-child(2),
.process-steps li:nth-child(-n+2) {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(42, 42, 42, 0.7), rgba(16, 16, 16, 0.58));
  -webkit-backdrop-filter: blur(22px) saturate(122%);
  backdrop-filter: blur(22px) saturate(122%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 22px 60px rgba(0, 0, 0, 0.24);
  transition: transform 0.28s, border-color 0.28s, background 0.28s;
}

.process-steps li::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.1), transparent 35%, transparent 75%, rgba(var(--accent-rgb), 0.055));
}

.process-steps li:hover {
  border-color: rgba(var(--accent-rgb), 0.48);
  background: linear-gradient(145deg, rgba(50, 50, 50, 0.75), rgba(20, 20, 20, 0.64));
  transform: translateY(-6px);
}

@media (max-width: 760px) {
  .menu a,
  .button,
  .work-filters button,
  .carousel-controls button,
  .lightbox-nav {
    min-height: 44px;
  }

  .hero-actions {
    gap: 10px;
  }

  .process-steps {
    width: calc(100vw - max(20px, env(safe-area-inset-left)));
    padding: 2px max(20px, env(safe-area-inset-right)) 20px 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
  }

  .process-steps::-webkit-scrollbar {
    display: none;
  }

  .process-steps li,
  .process-steps li:nth-child(2),
  .process-steps li:nth-child(-n+2) {
    flex: 0 0 min(82vw, 330px);
    min-height: 270px;
    scroll-snap-align: start;
  }

  .process-steps li:hover {
    transform: none;
  }
}

.menu a:not(.menu-cta):not(.admin-entry):hover,
.text-link:hover {
  color: #c95162;
}

.carousel-controls button:hover,
.lightbox-nav:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.project-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.project-card:hover .card-overlay {
  background: linear-gradient(transparent, rgba(var(--accent-rgb), 0.58));
}

/* Glass nos CTAs e cards, preservando as cores */
.hero-actions .button-primary {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(232, 229, 223, 0.72));
  color: #111;
  -webkit-backdrop-filter: blur(18px) saturate(125%);
  backdrop-filter: blur(18px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95), 0 16px 42px rgba(0, 0, 0, 0.25);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.hero-actions .button-primary::before,
.service::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.34), transparent 34%, transparent 70%, rgba(255, 255, 255, 0.1));
}

.hero-actions .button-primary:hover {
  border-color: rgba(255, 255, 255, 0.95);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(235, 232, 226, 0.8));
  color: #111;
  transform: translateY(-3px);
}

.hero-actions .text-link {
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.025));
  color: #f4f1eb;
  -webkit-backdrop-filter: blur(15px) saturate(120%);
  backdrop-filter: blur(15px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 35px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.hero-actions .text-link:hover {
  border-color: rgba(255, 84, 46, 0.5);
  background: linear-gradient(145deg, rgba(255, 84, 46, 0.16), rgba(255, 255, 255, 0.04));
  transform: translateY(-3px);
}

.scroll-cue {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.service {
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.68);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.9), rgba(232, 229, 223, 0.68));
  -webkit-backdrop-filter: blur(22px) saturate(120%);
  backdrop-filter: blur(22px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92), 0 24px 70px rgba(0, 0, 0, 0.28);
}

.service:hover {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(238, 235, 229, 0.76));
}

.service:nth-child(2) {
  border-color: rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(45, 45, 45, 0.76), rgba(17, 17, 17, 0.62));
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.11), 0 24px 70px rgba(0, 0, 0, 0.3);
}

.service:nth-child(2):hover {
  background: linear-gradient(145deg, rgba(52, 52, 52, 0.82), rgba(20, 20, 20, 0.68));
}

@media (max-width: 650px) {
  .hero-actions .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero-actions .button-primary:hover,
  .hero-actions .text-link:hover {
    transform: none;
  }
}

/* Refinamento Outfit + glass grafite */
html {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 84, 46, 0.72) #0c0c0c;
}

::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: #0c0c0c;
}

::-webkit-scrollbar-thumb {
  border: 2px solid #0c0c0c;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 84, 46, 0.9), rgba(255, 84, 46, 0.4));
}

::-webkit-scrollbar-thumb:hover {
  background: #ff542e;
}

body,
button,
input,
select,
textarea {
  font-family: 'Outfit', sans-serif;
}

.hero h1,
.about h2,
.work-heading h2,
.contact h2,
.services-heading h2,
.process-heading h2,
.project-head h3,
.service h3,
.process-steps h3,
.lightbox-caption h2,
.about-vertical .about-word,
.project-vertical {
  font-family: 'Outfit', sans-serif;
}

.hero h1 em,
.about h2 em,
.work-heading h2 em,
.contact h2 em,
.services-heading h2 em,
.process-heading h2 em {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  letter-spacing: -0.055em;
}

.admin-entry,
.admin-entry:hover,
.menu a.admin-entry,
.menu a.admin-entry:hover {
  min-height: 36px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  color: #fff !important;
  -webkit-backdrop-filter: blur(14px) saturate(125%);
  backdrop-filter: blur(14px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.admin-entry:hover,
.menu a.admin-entry:hover {
  border-color: rgba(255, 84, 46, 0.5);
  background: linear-gradient(145deg, rgba(255, 84, 46, 0.2), rgba(255, 255, 255, 0.06));
  transform: translateY(-2px);
}

.admin-entry::before {
  background: #ff542e;
  box-shadow: 0 0 0 4px rgba(255, 84, 46, 0.1);
}

.contact-actions .button,
.contact-actions .button-light,
.contact-actions .button-outline {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.025));
  color: #f4f1eb;
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  backdrop-filter: blur(14px) saturate(120%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 14px 36px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}

.contact-actions .button-light {
  border-color: rgba(255, 84, 46, 0.38);
  background: linear-gradient(145deg, rgba(255, 84, 46, 0.3), rgba(255, 84, 46, 0.09));
}

.contact-actions .button:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.045));
  color: #fff;
  transform: translateY(-3px);
}

.contact-actions .button-light:hover {
  border-color: rgba(255, 84, 46, 0.7);
  background: linear-gradient(145deg, rgba(255, 84, 46, 0.42), rgba(255, 84, 46, 0.14));
}

.brief-form {
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: linear-gradient(145deg, rgba(39, 39, 39, 0.86), rgba(18, 18, 18, 0.72));
  color: #f4f1eb;
  -webkit-backdrop-filter: blur(22px) saturate(125%);
  backdrop-filter: blur(22px) saturate(125%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 30px 90px rgba(0, 0, 0, 0.36);
}

.brief-form label {
  color: #8e8a84;
}

.brief-form input,
.brief-form select,
.brief-form textarea {
  border-bottom-color: rgba(255, 255, 255, 0.15);
  color: #f5f2ec;
  background: transparent;
}

.brief-form input::placeholder,
.brief-form textarea::placeholder {
  color: #6f6b65;
}

.brief-form option {
  background: #202020;
  color: #fff;
}

.brief-submit {
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035));
  color: #fff;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.brief-submit:hover {
  border-color: rgba(255, 84, 46, 0.65);
  background: rgba(255, 84, 46, 0.18);
}

.footer .qodemy-link {
  color: #c4c0ba;
  font-weight: 600;
  transition: color 0.2s;
}

.footer .qodemy-link:hover {
  color: #ff542e;
}

@media (max-width: 650px) {
  ::-webkit-scrollbar {
    width: 5px;
  }

  .contact-actions .button:hover,
  .admin-entry:hover {
    transform: none;
  }
}
