/* ==========================================================================
   QTEORIA PORTFOLIO — Main Stylesheet
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--qt-font-main);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--qt-text);
  background: var(--qt-bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--qt-primary);
  text-decoration: none;
  transition: color .2s ease;
}

a:hover {
  color: var(--qt-primary-hover);
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 99999;
  padding: 12px 20px;
  background: var(--qt-secondary);
  color: #fff;
  clip: auto;
  width: auto;
  height: auto;
}

/* Typography Tokens */
.qt-h1,
h1 {
  font-size: clamp(2.1rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--qt-secondary);
  margin: 0 0 0.75em;
  max-width: 680px;
  text-wrap: balance;
}

.qt-h2,
h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--qt-secondary);
  margin: 0 0 .6em;
}

.qt-h3,
h3 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--qt-secondary);
  margin: 0 0 .5em;
}

.qt-eyebrow {
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--qt-primary);
  margin: 0 0 1rem;
}

.qt-lead {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--qt-text-muted);
  line-height: 1.6;
  margin: 0 0 1.5rem;
  max-width: 680px;
}

small,
.qt-small {
  font-size: .875rem;
  color: var(--qt-text-muted);
}

.qt-caption {
  font-size: .8125rem;
  color: var(--qt-text-light);
}

/* Layout */
.qt-container {
  width: min(100% - clamp(20px, 4vw, 48px), var(--qt-max-width));
  margin-inline: auto;
}

.qt-section {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.qt-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.qt-section-soft {
  background: var(--qt-bg-soft);
}

.qt-section-dark {
  background: var(--qt-dark-bg);
  color: var(--qt-text-white);
}

.qt-section-dark .qt-h2,
.qt-section-dark .qt-h3 {
  color: #fff;
}

.qt-section-dark .qt-eyebrow {
  color: var(--qt-accent);
}

.qt-section-accent {
  background: linear-gradient(135deg, var(--qt-secondary) 0%, #1a2744 100%);
  color: #fff;
}

.qt-section-accent .qt-h2 {
  color: #fff;
}

.qt-section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.qt-section-header-left {
  text-align: left;
  margin-left: 0;
}

.qt-section-header-light .qt-section-desc {
  color: rgba(255, 255, 255, .75);
}

.qt-section-desc {
  color: var(--qt-text-muted);
  font-size: 1.0625rem;
  margin: 0;
}

.qt-section-cta {
  text-align: center;
  margin-top: 2.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .875rem 1.625rem;
  font-size: .9375rem;
  font-weight: 600;
  border-radius: var(--qt-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all .25s ease;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: var(--qt-primary);
  color: #fff;
  border-color: var(--qt-primary);
}

.btn-primary:hover {
  background: var(--qt-primary-hover);
  border-color: var(--qt-primary-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--qt-shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--qt-secondary);
  border-color: var(--qt-border);
}

.btn-outline:hover {
  border-color: var(--qt-primary);
  color: var(--qt-primary);
  background: var(--qt-primary-light);
}

.btn-accent {
  background: var(--qt-accent);
  color: var(--qt-secondary);
  border-color: var(--qt-accent);
}

.btn-accent:hover {
  filter: brightness(1.08);
  color: var(--qt-secondary);
}

.btn-sm {
  padding: .625rem 1.125rem;
  font-size: .875rem;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1rem;
}

.btn-block {
  width: 100%;
}

/* Header */
.qt-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s ease;
}

.qt-header.is-scrolled {
  box-shadow: var(--qt-shadow-md);
  border-bottom-color: var(--qt-border);
}

.qt-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--qt-header-height);
  gap: 1.5rem;
}

/* Logo sizing */
.qt-logo a {
  display: flex;
  align-items: center;
}

.qt-logo img {
  max-height: 56px;
  width: auto;
  height: auto;
}

.qt-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: var(--qt-secondary);
  white-space: nowrap;
}

/* Desktop navigation */
.qt-nav-desktop {
  flex: 1;
  display: flex;
  justify-content: center;
}

.qt-menu,
.qt-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.5rem;
  flex-wrap: nowrap;
  white-space: nowrap;
}

.qt-menu a {
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--qt-text);
  border-radius: var(--qt-radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}

.qt-menu a:hover,
.qt-menu .current-menu-item a {
  color: var(--qt-primary);
  background: var(--qt-primary-light);
}

/* Header actions */
.qt-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.qt-header-cta {
  white-space: nowrap;
  padding: 0.625rem 1.125rem;
  font-size: 0.875rem;
}

/* Mobile menu toggle */
.qt-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.qt-menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--qt-secondary);
  transition: transform .3s;
}

/* Mobile navigation */
.qt-nav-mobile {
  display: none;
  padding: 2rem 1rem;
  background: #fff;
  border-top: 1px solid var(--qt-border);
}

.qt-nav-mobile.is-open {
  display: block;
}

.qt-menu-mobile {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.qt-menu-mobile a {
  display: block;
  padding: 0.875rem 0;
  font-weight: 500;
  color: var(--qt-text);
  border-bottom: 1px solid var(--qt-border);
}

.qt-mobile-cta {
  margin-top: 1.5rem;
}

/* Hero */
.qt-hero {
  padding-top: clamp(1.5rem, 3vw, 2.5rem);
  overflow: hidden;
  min-height: auto;
}

.qt-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: clamp(2rem, 4vw, 5rem);
  align-items: center;
}

.qt-hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: .875rem;
  margin-bottom: 2rem;
}

.qt-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
}

.qt-tag {
  padding: .375rem .875rem;
  font-size: .8125rem;
  font-weight: 500;
  background: var(--qt-bg-soft);
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius-full);
  color: var(--qt-text-muted);
}

.qt-hero-photo-frame {
  position: relative;
  max-width: 420px;
  margin: 0 auto;
  width: 100%;
}

.profile-photo-wrapper,
.qt-photo-wrapper {
  position: relative;
  z-index: 1;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  background: var(--qt-bg-soft);
  width: 100%;
  transition: border-radius 0.3s ease;
}

@media (max-width: 1023px) {
  .profile-photo-wrapper,
  .qt-photo-wrapper {
    border-radius: 24px;
  }
}

@media (max-width: 767px) {
  .profile-photo-wrapper,
  .qt-photo-wrapper {
    border-radius: 20px;
  }
}

.profile-photo-wrapper img,
.qt-photo-wrapper img,
.qt-photo-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

/* qt-hero-badge removed - no longer displaying card over photo */

.qt-badge-social,
.qt-social-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.qt-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  border-radius: var(--qt-radius-md);
  background: var(--qt-bg-soft);
  color: var(--qt-text);
  border: 1px solid var(--qt-border);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all 0.2s;
  text-decoration: none;
}

.qt-social-link:hover {
  background: var(--qt-primary);
  color: #fff;
  border-color: var(--qt-primary);
  transform: translateY(-1px);
}

.qt-social-link svg {
  width: 18px;
  height: 18px;
}

.qt-social-link span {
  white-space: nowrap;
}

/* Cards & Grid */
.qt-cards-grid {
  display: grid;
  gap: 1.5rem;
}

.qt-cards-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 1023px) {
  .qt-cards-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 639px) {
  .qt-cards-3 {
    grid-template-columns: 1fr;
  }
}

.qt-card {
  background: #ffffff;
  border: 1px solid var(--qt-border);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
  display: flex;
  flex-direction: column;
}

.qt-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  border-color: rgba(2, 132, 199, 0.3);
}

.qt-card-body {
  padding: 1.5rem;
  flex: 1;
}

.qt-project-card-footer {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.qt-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--qt-primary-light);
  color: var(--qt-primary);
  font-size: .875rem;
  font-weight: 800;
  border-radius: var(--qt-radius-md);
  margin-bottom: 1rem;
}

.qt-badge {
  display: inline-block;
  padding: .3rem .85rem;
  font-size: .8125rem;
  font-weight: 600;
  background: rgba(2, 132, 199, 0.1);
  color: var(--qt-primary);
  border-radius: var(--qt-radius-full);
  margin-bottom: .75rem;
}

/* Projects Cards */
.qt-project-card .qt-h3 {
  font-size: clamp(1.2rem, 1.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.qt-project-card p {
  font-size: 0.95rem;
  color: var(--qt-text-muted);
  line-height: 1.55;
  margin: 0;
}

.qt-project-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
  background: var(--qt-bg-soft);
  position: relative;
}

.qt-project-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.qt-project-card:hover .qt-project-thumb img {
  transform: scale(1.03);
}

.qt-project-thumb-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 100%;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--qt-text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.qt-btn-link {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--qt-primary);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qt-btn-link:hover {
  color: var(--qt-primary-hover);
  text-decoration: underline;
}

/* Single Project Page */
.qt-single-projeto-page {
  padding: 2.5rem 0 5rem;
}

.qt-project-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.qt-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--qt-text-muted);
}

.qt-back-link:hover {
  color: var(--qt-primary);
}

.qt-badge-lg {
  font-size: 0.875rem;
  padding: 0.35rem 1rem;
}

.qt-projeto-client-info {
  font-size: 0.95rem;
  color: var(--qt-text-muted);
  margin-top: -0.5rem;
  margin-bottom: 1.5rem;
}

.qt-projeto-hero-img-wrapper {
  margin: 2rem 0 3.5rem;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.qt-projeto-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.qt-projeto-section {
  margin-bottom: 3.5rem;
}

.qt-feature-card {
  border-radius: 16px;
  padding: 1.5rem;
  background: var(--qt-bg-soft);
  border: 1px solid var(--qt-border);
}

.qt-feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.qt-projeto-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 767px) {
  .qt-projeto-details-grid {
    grid-template-columns: 1fr;
  }
}

.qt-projeto-block-card {
  background: #fff;
  border: 1px solid var(--qt-border);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}

.qt-projeto-block-card.qt-full-width {
  grid-column: 1 / -1;
}

.qt-tag-lg {
  font-size: 0.9rem;
  padding: 0.5rem 1rem;
}

.qt-projeto-visit-box {
  text-align: center;
  margin: 3rem 0;
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.0625rem;
  font-weight: 600;
  border-radius: 12px;
}


/* Problems */
.qt-problems-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.qt-problem-card {
  background: var(--qt-dark-card);
  border: 1px solid var(--qt-dark-border);
  color: rgba(255, 255, 255, .9);
  padding: 1.25rem 1.5rem;
  border-radius: var(--qt-radius-md);
  font-size: .9375rem;
  text-align: left;
  cursor: pointer;
  transition: all .25s;
  font-family: inherit;
}

.qt-problem-card:hover {
  border-color: var(--qt-accent);
  background: rgba(6, 182, 212, .08);
  transform: translateY(-2px);
}

/* About */
.qt-about-grid {
  display: grid;
  grid-template-columns: 380px 1fr;
  gap: 3rem;
  align-items: start;
}

.qt-about-photo .qt-photo-wrapper {
  border-radius: var(--qt-radius-lg);
}

.qt-about-photo .qt-photo-img {
  aspect-ratio: 4/5;
}

.qt-about-block {
  margin-top: 1.5rem;
}

.qt-about-block h4 {
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--qt-primary);
  margin-bottom: .5rem;
}

.qt-about-social-container {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--qt-border);
}

.qt-about-social-container h4 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--qt-primary);
  margin-bottom: 1rem;
}

.qt-about-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Tech */
.qt-tech-grid {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
}

.qt-tech-tag {
  padding: .625rem 1.125rem;
  background: #fff;
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius-full);
  font-size: .875rem;
  font-weight: 500;
  color: var(--qt-text);
  transition: all .2s;
}

.qt-tech-tag:hover {
  border-color: var(--qt-primary);
  color: var(--qt-primary);
}

/* Process */
.qt-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  counter-reset: process;
}

.qt-process-step {
  background: var(--qt-bg-soft);
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  transition: border-color .2s;
}

.qt-process-step:hover {
  border-color: var(--qt-primary);
}

.qt-process-num {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--qt-primary);
  margin-bottom: .5rem;
  font-variant-numeric: tabular-nums;
}

.qt-process-label {
  font-size: .875rem;
  font-weight: 600;
  color: var(--qt-secondary);
}

/* Consultoria */
.qt-consultoria-inner {
  max-width: 720px;
}

.qt-consultoria-content .qt-h2 {
  color: #fff;
}

/* Contact Form */
.qt-contact-form {
  max-width: 800px;
  margin: 0 auto;
}

.qt-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.qt-form-full {
  grid-column: 1 / -1;
}

.qt-form-field label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  margin-bottom: .375rem;
  color: rgba(255, 255, 255, .85);
}

.qt-form-field input,
.qt-form-field select,
.qt-form-field textarea {
  width: 100%;
  padding: .75rem 1rem;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: var(--qt-radius-sm);
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font-family: inherit;
  font-size: .9375rem;
  transition: border-color .2s;
}

.qt-form-field input:focus,
.qt-form-field select:focus,
.qt-form-field textarea:focus {
  outline: none;
  border-color: var(--qt-accent);
  box-shadow: 0 0 0 3px var(--qt-accent-glow);
}

.qt-alert {
  padding: 1rem 1.25rem;
  border-radius: var(--qt-radius-sm);
  margin-bottom: 1.5rem;
  max-width: 800px;
  margin-inline: auto;
}

.qt-alert-success {
  background: rgba(16, 185, 129, .15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, .3);
}

.qt-alert-error {
  background: rgba(239, 68, 68, .15);
  color: #fca5a5;
  border: 1px solid rgba(239, 68, 68, .3);
}

/* WhatsApp Float */
.qt-whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  display: inline-flex;
  align-items: center;
  gap: .625rem;
  background: var(--qt-whatsapp);
  color: #fff;
  padding: .875rem 1.25rem;
  border-radius: var(--qt-radius-full);
  box-shadow: 0 4px 20px rgba(37, 211, 102, .4);
  font-weight: 600;
  font-size: .9375rem;
  transition: transform .2s, box-shadow .2s;
}

.qt-whatsapp-float:hover {
  color: #fff;
  transform: scale(1.05);
  box-shadow: 0 6px 28px rgba(37, 211, 102, .5);
}

/* Footer */
.qt-footer {
  background: var(--qt-secondary);
  color: rgba(255, 255, 255, .75);
  padding: 4rem 0 0;
}

.qt-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.qt-footer-logo {
  font-size: 1.125rem;
  letter-spacing: .08em;
  color: #fff;
  display: block;
  margin-bottom: .75rem;
}

.qt-footer-links h3,
.qt-footer-contact h3 {
  color: #fff;
  font-size: .875rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.qt-footer-links ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.qt-footer-links a {
  color: rgba(255, 255, 255, .7);
  font-size: .9375rem;
  display: block;
  padding: .25rem 0;
}

.qt-footer-links a:hover {
  color: #fff;
}

.qt-footer-social .qt-social-link {
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .8);
  width: auto;
  padding: .5rem .875rem;
  gap: .5rem;
  font-size: .875rem;
}

.qt-footer-bottom {
  padding: 1.5rem 0;
  text-align: center;
  font-size: .875rem;
  color: rgba(255, 255, 255, .5);
}

/* Admin bar adjustments */
body.qteoria-can-edit .qt-footer-bottom {
  padding-bottom: 3rem;
}

.qt-footer-bottom-admin {
  padding-bottom: 5rem !important;
}

/* WhatsApp button adjust for admin bar */
body.qteoria-can-edit .qt-whatsapp-float {
  bottom: 80px;
}

@media (max-width: 768px) {
  body.qteoria-can-edit .qt-whatsapp-float {
    bottom: 70px;
  }
}

/* Page templates */
.qt-page-wrap {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.qt-entry-content {
  max-width: 760px;
}

.qt-entry-content p {
  margin-bottom: 1.25rem;
}

.qt-single-projeto .qt-projeto-hero-img img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
}

.qt-projeto-block {
  margin: 2.5rem 0;
  padding-top: 2rem;
  border-top: 1px solid var(--qt-border);
}

.qt-projeto-cta {
  text-align: center;
  padding: 3rem;
  border-radius: var(--qt-radius-lg);
  margin-top: 3rem;
}

.qt-projeto-cta .qt-h2,
.qt-projeto-cta h2 {
  color: #fff;
}

.qt-404 {
  text-align: center;
  min-height: 50vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

/* Blog cards */
.qt-blog-card time {
  font-size: .8125rem;
  color: var(--qt-text-light);
  display: block;
  margin-bottom: .5rem;
}

.qt-blog-thumb {
  display: block;
  margin: -1.75rem -1.75rem 1rem;
  border-radius: var(--qt-radius-lg) var(--qt-radius-lg) 0 0;
  overflow: hidden;
}

.qt-empty-msg {
  text-align: center;
  color: var(--qt-text-muted);
}

/* Animations */
@keyframes qt-fade-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.qt-hero-content {
  animation: qt-fade-up .7s ease both;
}

.qt-hero-visual {
  animation: qt-fade-up .7s .15s ease both;
}

/* Responsive */

/* Desktop Large */
@media (min-width: 1440px) {
  .qt-container {
    max-width: 1280px;
  }

  .qt-hero-photo-frame {
    max-width: 420px;
  }

  .qt-photo-img {
    max-height: 380px;
    aspect-ratio: 1/1;
  }
}

/* Notebook */
@media (max-width: 1366px) {
  .qt-hero {
    padding-top: clamp(1rem, 2vw, 2rem);
  }

  .qt-hero-grid {
    gap: clamp(1.5rem, 3vw, 3rem);
  }

  .qt-hero-photo-frame {
    max-width: 380px;
  }

  .qt-photo-img {
    max-height: 340px;
    aspect-ratio: 1/1;
  }

  /* qt-hero-badge removed - no longer displaying card over photo */

  .qt-h1,
  h1 {
    font-size: clamp(1.8rem, 4vw, 3rem);
  }

  .qt-lead {
    font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  }
}

@media (max-width: 1024px) {

  .qt-cards-3,
  .qt-problems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qt-about-grid {
    grid-template-columns: 1fr;
  }

  .qt-about-photo {
    max-width: 360px;
    margin: 0 auto;
  }

  .qt-footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  /* Adjust header for smaller desktops */
  .qt-logo img {
    max-height: 48px;
  }

  .qt-menu a {
    padding: 0.4rem 0.6rem;
    font-size: 0.85rem;
  }

  .qt-header-cta {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  /* Hero photo for tablet */
  .qt-hero-photo-frame {
    max-width: 340px;
  }

  .qt-photo-img {
    max-height: 320px;
    aspect-ratio: 1/1;
  }

  /* qt-hero-badge removed - no longer displaying card over photo */

  .qt-h1,
  h1 {
    font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  }
}

@media (max-width: 900px) {
  :root {
    --qt-header-height: 64px;
  }

  .qt-nav-desktop,
  .qt-header-cta {
    display: none;
  }

  .qt-menu-toggle {
    display: flex;
  }

  .qt-logo img {
    max-height: 44px;
  }

  /* Mobile menu adjustments */
  .qt-nav-mobile {
    position: fixed;
    top: var(--qt-header-height);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    overflow-y: auto;
    border-top: 1px solid var(--qt-border);
    padding: 2rem 1rem;
  }
}

@media (max-width: 768px) {
  .qt-hero-grid {
    grid-template-columns: 1fr;
  }

  .qt-hero-visual {
    order: 1;
    max-width: 320px;
    margin: 2rem auto 0;
  }

  /* qt-hero-badge removed - no longer displaying card over photo */

  .qt-hero-photo-frame {
    max-width: 320px;
  }

  .qt-photo-img {
    max-height: 380px;
    aspect-ratio: 1/1;
  }

  .qt-cards-3,
  .qt-problems-grid,
  .qt-form-grid {
    grid-template-columns: 1fr;
  }

  .qt-hero-photo-frame {
    max-width: 340px;
  }

  .qt-photo-img {
    aspect-ratio: 4/5;
  }

  .qt-footer-grid {
    grid-template-columns: 1fr;
  }

  .qt-wa-label {
    display: none;
  }

  .qt-whatsapp-float {
    padding: .875rem;
    border-radius: 50%;
    width: 56px;
    height: 56px;
    justify-content: center;
    bottom: 16px;
    right: 16px;
  }

  /* Logo mobile sizing */
  .qt-logo img {
    max-height: 40px;
  }

  :root {
    --qt-header-height: 60px;
  }

  /* Section spacing mobile */
  .qt-section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .qt-logo img {
    max-height: 36px;
  }

  :root {
    --qt-header-height: 56px;
  }

  .qt-hero-visual {
    max-width: 280px;
  }

  .qt-hero-photo-frame {
    max-width: 280px;
  }

  .qt-photo-img {
    max-height: 340px;
    aspect-ratio: 1/1;
  }

  /* qt-hero-badge removed - no longer displaying card over photo */

  .qt-h1,
  h1 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }

  .qt-lead {
    font-size: 0.95rem;
  }
}

@media (max-width: 360px) {
  .qt-hero-visual {
    max-width: 260px;
  }

  .qt-hero-photo-frame {
    max-width: 260px;
  }

  .qt-photo-img {
    max-height: 320px;
    aspect-ratio: 1/1;
  }

  /* qt-hero-badge removed - no longer displaying card over photo */

  .qt-h1,
  h1 {
    font-size: clamp(1.4rem, 4vw, 1.8rem);
  }
}

@media (max-width: 390px) {
  .qt-hero-ctas {
    flex-direction: column;
  }

  .qt-hero-ctas .btn {
    width: 100%;
  }
}