:root {
  --bg: #faf8f5;
  --surface: #ffffff;
  --text: #1a1a1a;
  --muted: #6d6d6d;
  --primary: #6e5a4d;
  --primary-dark: #4f4037;
  --border: #e8e3db;
  --header-bg: rgba(250, 248, 245, 0.93);
  --hero-bg: linear-gradient(135deg, #f5f0e8 0%, #faf8f5 50%, #f0e9e0 100%);
  --section-alt-bg: #f3efe9;
  --footer-bg: #f8f5f1;
  
  /* Premium tokens do design system */
  --gradient-hero: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 60%, rgba(0,0,0,.45) 100%);
  --shadow-elegant: 0 20px 50px -20px rgba(120, 80, 50, 0.35);
  --shadow-soft: 0 8px 24px -12px rgba(0,0,0,0.18);
  --blur-glass: saturate(180%) blur(14px);
  --ease-out-expo: cubic-bezier(0.22, 1, 0.36, 1);
}

body.dark-theme {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --text: #f5f5f5;
  --muted: #a8a8a8;
  --primary: #c4a378;
  --primary-dark: #b08f60;
  --border: #262626;
  --header-bg: rgba(15, 15, 15, 0.94);
  --hero-bg: linear-gradient(135deg, #1a1a1a 0%, #0f0f0f 50%, #161616 100%);
  --section-alt-bg: #131313;
  --footer-bg: #0f0f0f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--primary) 72%, #ffffff);
  outline-offset: 3px;
}

/* Tipografia fluida */
.section h3 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
}

.hero-media {
  will-change: transform;
}

/* Glass effect utilities */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.glass-light {
  background: rgba(252, 250, 246, 0.65);
  backdrop-filter: var(--blur-glass);
  -webkit-backdrop-filter: var(--blur-glass);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .hero-media {
    transform: none !important;
    will-change: auto;
  }
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15ms !important;
  }
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 18px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.3rem;
  color: var(--primary-dark);
}

.logo-mark {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
}

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

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 28px;
  height: 28px;
  position: relative;
  z-index: 90;
}

.menu-toggle span {
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all .32s ease;
  display: block;
}

.menu-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(8px, -8px);
}

.menu {
  list-style: none;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.menu a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  position: relative;
  transition: color .2s;
}

.menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .22s ease;
}

.menu a:hover {
  color: var(--primary);
}

.menu a:hover::after,
.menu a.is-active::after {
  transform: scaleX(1);
}

.menu a.is-active {
  color: var(--primary-dark);
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1rem;
  display: grid;
  place-items: center;
  position: relative;
}

.auth-entry,
.auth-entry:visited {
  text-decoration: none;
  color: var(--primary-dark);
  border: 1px solid var(--border);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .86rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all .2s ease;
}

.auth-entry:hover,
.auth-entry:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 8px 18px -12px rgba(79, 64, 55, 0.45);
}

.theme-icon {
  width: 20px;
  height: 20px;
  display: block;
}

body.dark-theme .theme-icon,
body.dark-theme .contact-icon {
  filter: invert(1);
}

.hero {
  min-height: 100vh;
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--hero-bg);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(120deg, rgba(20, 20, 20, 0.32), rgba(20, 20, 20, 0.52)),
    url("https://images.unsplash.com/photo-1512918728675-ed5a9ecdebfd?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
  transform: translateY(var(--hero-parallax-y, 0px)) scale(1.08);
  transform-origin: center;
  will-change: transform;
}

body.dark-theme .hero-media {
  background:
    linear-gradient(120deg, rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.68)),
    url("https://images.unsplash.com/photo-1512918728675-ed5a9ecdebfd?auto=format&fit=crop&w=1800&q=80") center/cover no-repeat;
}

.hero-content {
  max-width: 620px;
  position: relative;
  z-index: 1;
  color: #fff;
  padding: 20px 0;
  will-change: opacity, transform;
}

.hero-content .eyebrow,
.hero-content p,
.hero-content h2 {
  color: #fff;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .2em;
  margin-bottom: 12px;
  font-size: .78rem;
}

.hero h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.08rem;
  max-width: 62ch;
  margin-bottom: 24px;
}

.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all .28s ease;
  position: relative;
  overflow: hidden;
}

.btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width .5s, height .5s;
}

.btn:hover::before {
  width: 300px;
  height: 300px;
}

.btn:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-elegant);
}

.btn-secondary {
  background: #ffffff;
  border-color: var(--primary);
  color: var(--primary-dark);
}

.btn-secondary:hover {
  background: var(--bg);
  border-color: var(--primary-dark);
  color: var(--primary-dark);
}

.hero .btn-secondary {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.85);
  color: #fff;
}

.hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: #fff;
  color: #fff;
}

.section {
  padding: 80px 0;
}

.section h3 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 20px;
  color: var(--text);
}

.section-intro {
  color: var(--muted);
  margin-bottom: 24px;
}

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

.grid-2 {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 26px;
  align-items: start;
}

.about-panel {
  display: grid;
  gap: 16px;
}

.about-figure {
  margin: 0;
  width: min(320px, 100%);
  justify-self: end;
  border: 1px solid var(--border);
  border-radius: 32px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.about-figure img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 20%;
}

.about-figure figcaption {
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.about-quote p {
  margin-bottom: 0;
}

.about-quote {
  margin-top: 16px;
}

.card {
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px;
  backdrop-filter: blur(6px);
  transition: all .32s ease;
}

.card:hover {
  border-color: rgba(110, 90, 77, 0.25);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

body.dark-theme .card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.32);
}

.highlight h4,
.cards .card h4,
.process-item h4 {
  margin-bottom: 8px;
  color: var(--primary-dark);
}

.cards,
.process-grid,
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.cards {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
}

.portfolio-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.filter-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
}

.filter-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 16px;
}

.portfolio-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.portfolio-item.hidden {
  display: none;
}

.thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  background: #ece7e1;
}

.portfolio-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(31,31,31,0.85) 60%, rgba(31,31,31,0.95) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  color: #fff;
  opacity: 0;
  transition: opacity .35s ease;
}

body.dark-theme .portfolio-overlay {
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.75) 60%, rgba(0,0,0,0.95) 100%);
}

.portfolio-item:hover .portfolio-overlay {
  opacity: 1;
}

.portfolio-overlay h5 {
  font-family: "Playfair Display", serif;
  font-size: 1.16rem;
  margin: 0 0 6px 0;
  font-weight: 600;
}

.portfolio-overlay p {
  font-size: .85rem;
  margin: 0 0 10px 0;
  color: rgba(255,255,255,0.92);
  line-height: 1.3;
}

.category-badge {
  display: inline-block;
  background: rgba(255,255,255,0.22);
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  font-size: .72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 12px;
  text-transform: uppercase;
  letter-spacing: .05em;
  width: fit-content;
}

.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.02);
  transition: transform .5s cubic-bezier(0.34, 1.56, 0.64, 1), filter .5s ease;
}

.portfolio-item:hover .thumb img {
  transform: scale(1.11);
  filter: saturate(1.12) contrast(1.06) brightness(0.98);
}

.portfolio-item {
  transition: all .36s ease;
}

.portfolio-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(26, 22, 19, 0.16);
  border-color: rgba(110, 90, 77, 0.3);
}

.portfolio-item:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--primary) 75%, white);
  outline-offset: 3px;
}

body.dark-theme .portfolio-item:hover {
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.project-btn {
  display: none;
}

.testimonial p {
  margin-bottom: 10px;
}

.testimonial cite {
  color: var(--muted);
  font-style: normal;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 0;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  border: none;
  background: var(--surface);
  color: var(--text);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all .24s ease;
}

.faq-question:hover {
  color: var(--primary);
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  line-height: 1;
  color: var(--primary-dark);
  transition: transform .28s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-weight: 300;
}

.faq-item.open .faq-question::after {
  content: "−";
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .32s ease, padding .32s ease;
  padding: 0 20px;
  color: var(--muted);
}

.faq-item.open .faq-answer {
  max-height: 200px;
  padding: 0 20px 18px;
}

.briefing-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-weight: 500;
  font-size: .92rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 10px;
  padding: 11px 14px;
  font: inherit;
  transition: all .24s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(110, 90, 77, 0.1);
}

body.dark-theme input:focus,
body.dark-theme select:focus,
body.dark-theme textarea:focus {
  box-shadow: 0 0 0 3px rgba(184, 150, 122, 0.15);
}

.field-feedback {
  min-height: 16px;
  font-size: .8rem;
  color: var(--muted);
}

input.is-valid {
  border-color: #2e9e5b;
  box-shadow: 0 0 0 3px rgba(46, 158, 91, 0.12);
}

input.is-invalid {
  border-color: #d94a4a;
  box-shadow: 0 0 0 3px rgba(217, 74, 74, 0.12);
}

.form-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-status {
  min-height: 1.5rem;
  margin-top: 14px;
  color: var(--muted);
  font-size: 0.95rem;
}

.form-status[data-state="success"] {
  color: #2c7a4b;
}

.form-status[data-state="warning"] {
  color: #9a6700;
}

.form-status[data-state="error"] {
  color: #b33a3a;
}

.empty-state {
  grid-column: 1 / -1;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
}

.contact ul {
  list-style: none;
  margin-top: 12px;
}

.contact li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.contact-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 2px;
}

.contact-link {
  color: var(--primary-dark);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color .2s ease, border-color .2s ease;
}

.contact-link:hover,
.contact-link:focus-visible {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
  text-decoration: none;
  background: linear-gradient(135deg, #25D366 0%, #20ba58 100%);
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
  transition: all .32s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
}

.whatsapp-icon {
  width: 24px;
  height: 24px;
  display: block;
  filter: invert(1);
}

.whatsapp-float:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.36);
}

.back-to-top {
  position: fixed;
  right: 18px;
  bottom: 86px;
  z-index: 90;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 13px;
  font-size: .78rem;
  font-weight: 700;
  cursor: pointer;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
}

.back-to-top.is-visible {
  opacity: .95;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  border-color: var(--primary);
}

@media (max-width: 720px) {
  .back-to-top {
    right: 14px;
    bottom: 76px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }
}

.project-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 120;
  padding: 16px;
}

.project-modal.show {
  display: flex;
}

.project-modal-content {
  width: min(560px, 100%);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  color: var(--text);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 28px;
  position: relative;
  backdrop-filter: blur(12px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.close-modal {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 1.5rem;
  transition: all .24s ease;
  display: grid;
  place-items: center;
}

.close-modal:hover {
  background: var(--border);
}

.footer {
  border-top: 1px solid var(--border);
  padding: 22px 0;
  color: var(--muted);
  background: var(--footer-bg);
}

.payment-trust-bar {
  border-top: 1px solid var(--border);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--section-alt-bg) 82%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
}

.payment-trust-inner {
  padding: 18px 0;
  display: grid;
  gap: 4px;
  text-align: center;
}

.payment-trust-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .72rem;
  font-weight: 700;
  color: var(--primary);
}

.payment-trust-text {
  margin: 0;
  color: var(--muted);
  font-size: .92rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.footer p {
  margin: 0;
}

.tpolltech-credit {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.32rem;
  min-height: 32px;
  padding: 0.36rem 0.58rem;
  border: 1px solid rgba(84, 114, 60, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.48);
  color: rgba(36, 48, 31, 0.58);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.tpolltech-credit:hover,
.tpolltech-credit:focus-visible {
  border-color: rgba(84, 114, 60, 0.32);
  background: rgba(255, 255, 255, 0.68);
  color: rgba(36, 48, 31, 0.76);
}

.tpolltech-credit strong {
  color: currentColor;
  font-size: 0.78rem;
  font-weight: 900;
}

body.dark-theme .tpolltech-credit {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

body.dark-theme .tpolltech-credit:hover,
body.dark-theme .tpolltech-credit:focus-visible {
  border-color: rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 960px) {
  .portfolio-grid,
  .process-grid,
  .testimonials-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
  .auth-entry {
    font-size: .8rem;
    padding: 7px 12px;
  }

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

  .about-figure img {
    aspect-ratio: 4 / 5;
    object-position: center 22%;
  }

  .about-figure {
    width: min(300px, 100%);
    justify-self: center;
  }
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 120;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--primary-dark), var(--primary));
  transition: width .1s linear;
}

@media (max-width: 720px) {
  .footer-inner {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .nav {
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    height: auto;
  }

  .logo {
    font-size: 1rem;
    gap: 8px;
    min-width: 0;
  }

  .logo-mark {
    width: 58px;
    height: 58px;
  }

  .nav-actions {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
    width: auto;
    flex: 0 0 auto;
    margin-left: auto;
    position: relative;
  }

  .menu-toggle {
    display: flex;
  }

  .menu {
    position: fixed;
    top: var(--mobile-menu-top, 92px);
    left: 4%;
    right: 4%;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0;
    background: var(--header-bg);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    padding: 8px 0;
    border-radius: 16px;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-6px);
    z-index: 80;
    box-shadow: 0 12px 32px -8px rgba(26,22,19,0.18);
    transition: max-height .35s cubic-bezier(0.22,1,0.36,1),
                opacity .28s ease,
                transform .28s cubic-bezier(0.22,1,0.36,1);
  }

  body.dark-theme .menu {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.45);
  }

  .menu.open {
    max-height: 360px;
    opacity: 1;
    transform: translateY(0);
  }

  .menu li {
    padding: 0;
    width: 100%;
    flex: 0 0 auto;
  }

  .menu li + li {
    border-top: 1px solid var(--border);
  }

  .menu a {
    display: block;
    padding: 13px 20px;
    font-size: 0.97rem;
    letter-spacing: 0.01em;
    transition: background .18s ease, color .18s ease;
    border-radius: 0;
  }

  .menu li:first-child a { border-radius: 15px 15px 0 0; }
  .menu li:last-child  a { border-radius: 0 0 15px 15px; }

  .menu a:hover,
  .menu a:focus-visible {
    background: rgba(110,90,77,0.08);
    color: var(--primary-dark);
  }

  body.dark-theme .menu a:hover,
  body.dark-theme .menu a:focus-visible {
    background: rgba(196,163,120,0.1);
  }

  .menu a::after { display: none; }

  .thumb {
    height: 220px;
    aspect-ratio: unset;
  }

  .thumb img {
    object-fit: cover;
    object-position: center top;
    transform: none;
  }

  .portfolio-item:hover .thumb img {
    transform: scale(1.05);
  }

  .portfolio-item:hover {
    transform: none;
  }

  .cards,
  .portfolio-grid,
  .process-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .hero h2 {
    font-size: clamp(1.8rem, 8vw, 2.5rem);
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    padding: 10px 14px;
    font-size: .95rem;
  }

  .section {
    padding: 64px 0;
  }
}
