/* ============================================================
   ARQUITETURA — style.css  (v2 — Enhanced)
   ============================================================
   Palette:
     --blue:       #2563EB   (primário)
     --blue-dark:  #1E3A5F   (profundo)
     --blue-light: #EFF6FF   (fundo suave)
     --black:      #0A0A0A
     --white:      #FFFFFF
     --off-white:  #F8F8F6
     --grey:       #6B7280
     --light-grey: #E5E7EB
   ============================================================ */

/* ── RESET & BASE ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #2563EB;
  --blue-dark:   #1E3A5F;
  --blue-light:  #EFF6FF;
  --black:       #0A0A0A;
  --white:       #FFFFFF;
  --off-white:   #F8F8F6;
  --grey:        #6B7280;
  --light-grey:  #E5E7EB;
  --transition:  0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --radius:      4px;
  --radius-lg:   10px;
  --shadow-sm:   0 1px 4px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.09);
  --shadow-lg:   0 20px 56px rgba(0,0,0,0.13);
  --shadow-blue: 0 8px 28px rgba(37,99,235,0.32);

  /* Spacing scale */
  --space-xs:  8px;
  --space-sm:  16px;
  --space-md:  32px;
  --space-lg:  64px;
  --space-xl:  100px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a   { text-decoration: none; color: inherit; }
ul  { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ── TYPOGRAPHY ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: 'Playfair Display', serif;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
h1 { font-size: clamp(2.5rem, 5.5vw, 5.2rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.8vw, 3rem);  font-weight: 600; }
h3 { font-size: clamp(1.2rem,  2.2vw, 1.65rem); font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p  { font-size: 1rem; color: var(--grey); line-height: 1.78; }

.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
}

/* ── LAYOUT UTILITIES ─────────────────────────────────────── */
.container  { width: min(1200px, 92%); margin-inline: auto; }
.section    { padding: var(--space-xl) 0; }
.section--dark { background: var(--black); color: var(--white); }
.section--dark p { color: #9CA3AF; }
.section--grey  { background: var(--off-white); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr;          gap: 48px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr);   gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr);   gap: 24px; }

/* ── BUTTONS ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: var(--radius);
  transition: background var(--transition),
              color var(--transition),
              border-color var(--transition),
              transform var(--transition),
              box-shadow var(--transition);
  white-space: nowrap;
}

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

.btn--outline {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.1);
}

.btn--outline-dark {
  background: transparent;
  color: var(--black);
  border: 1.5px solid rgba(10,10,10,0.3);
}
.btn--outline-dark:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.btn svg {
  width: 17px; height: 17px;
  flex-shrink: 0;
  transition: transform var(--transition);
}
.btn:hover svg { transform: translateX(4px); }

/* ── NAVBAR ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0 5%;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background var(--transition),
              box-shadow var(--transition),
              height var(--transition);
}

.navbar--scrolled {
  background: rgba(255,255,255,0.96);
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  height: 64px;
}
.navbar--scrolled .nav-logo       { color: var(--black); }
.navbar--scrolled .nav-link       { color: var(--black); }
.navbar--scrolled .nav-link::after { background: var(--blue); }

.nav-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.03em;
  transition: color var(--transition);
  flex-shrink: 0;
}
.nav-logo span { color: var(--blue); }

.nav-menu { display: flex; align-items: center; gap: 32px; }

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  position: relative;
  padding-bottom: 2px;
  transition: color var(--transition);
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 0; height: 1.5px;
  background: var(--white);
  transition: width var(--transition);
  border-radius: 2px;
}
.nav-link:hover { color: var(--white); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.navbar--scrolled .nav-link:hover { color: var(--blue); }

.nav-cta {
  padding: 10px 22px !important;
  background: var(--blue) !important;
  color: var(--white) !important;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 600;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition) !important;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover  { background: var(--blue-dark) !important; transform: translateY(-1px); box-shadow: var(--shadow-blue) !important; }

/* ── HAMBURGER ────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 6px;
  z-index: 1001;
  border-radius: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition), background var(--transition);
  transform-origin: center;
}
.navbar--scrolled .hamburger span { background: var(--black); }
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV ───────────────────────────────────────────── */
.nav-mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--black);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.nav-mobile.open {
  opacity: 1;
  pointer-events: all;
}
.nav-mobile .nav-link {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 12px 0;
  letter-spacing: -0.01em;
  transition: color var(--transition);
}
.nav-mobile .nav-link:hover,
.nav-mobile .nav-link.active { color: var(--white); }
.nav-mobile::after {
  content: '+351 213 456 789';
  position: absolute;
  bottom: 48px;
  font-size: 0.8rem;
  color: #4B5563;
  letter-spacing: 0.1em;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-bottom: 52px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p {
  color: #9CA3AF;
  margin-top: 16px;
  max-width: 280px;
  font-size: 0.875rem;
  line-height: 1.7;
}
.footer-logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.footer-logo span { color: var(--blue); }

.footer-col h5 {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B7280;
  margin-bottom: 20px;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 11px;
  transition: color var(--transition), padding-left var(--transition);
}
.footer-col a:hover { color: var(--white); padding-left: 4px; }

.footer-contact p {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  margin-bottom: 10px;
  line-height: 1.65;
}
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 28px;
  font-size: 0.8rem;
  color: #4B5563;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── ANIMATIONS ───────────────────────────────────────────── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in.visible { opacity: 1; transform: none; }

.fade-in-left {
  opacity: 0;
  transform: translateX(-28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-left.visible { opacity: 1; transform: none; }

.fade-in-right {
  opacity: 0;
  transform: translateX(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.fade-in-right.visible { opacity: 1; transform: none; }

.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }
.delay-4 { transition-delay: 0.32s; }

/* ── PAGE HERO (inner pages) ──────────────────────────────── */
.page-hero {
  height: clamp(320px, 45vw, 440px);
  background: var(--black);
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(40px, 7vw, 72px);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(37,99,235,0.18) 0%,
    transparent 55%
  );
  z-index: 1;
}
.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.25;
  transform: scale(1.04);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: var(--white); }
.page-hero .eyebrow { color: var(--blue); margin-bottom: 14px; }

/* ── ===================================================
       INDEX — HERO
   =================================================== ── */
.hero {
  min-height: 100svh;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--black);
}
.hero-bg {
  position: absolute;
  inset: 0;
  will-change: transform;
  background:
    linear-gradient(to right,
      rgba(10,10,10,0.94) 38%,
      rgba(10,10,10,0.45) 70%,
      rgba(10,10,10,0.15) 100%),
    url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1800&q=80')
      center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  padding-top: 72px; /* offset for fixed navbar */
}
.hero-content .eyebrow { margin-bottom: 18px; }
.hero-content h2 { color: var(--white); margin-bottom: 22px; font-size: 3.2rem;  }
.hero-content h2 em { font-style: normal; color: var(--blue); font-size: 3.2rem; }
.hero-content > p {
  color: rgba(255,255,255,0.62);
  font-size: 1.0rem;
  max-width: 500px;
  margin-bottom: 36px;
}

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

/* Search bar */
.search-bar {
  background: var(--white);
  border-radius: var(--radius);
  display: flex;
  align-items: stretch;
  margin-top: 36px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  max-width: 560px;
}
.search-bar select,
.search-bar input {
  border: none;
  outline: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.875rem;
  color: var(--black);
  padding: 15px 18px;
  background: transparent;
  min-height: 52px;
}
.search-bar select {
  border-right: 1px solid var(--light-grey);
  cursor: pointer;
  min-width: 128px;
  color: var(--grey);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 18px;
  padding-right: 32px;
}
.search-bar input { flex: 1; min-width: 0; }
.search-bar input::placeholder { color: #9CA3AF; }
.search-bar button {
  background: var(--blue);
  color: var(--white);
  padding: 15px 22px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
  flex-shrink: 0;
}
.search-bar button:hover { background: var(--blue-dark); }

/* Hero stats */
.hero-stats {
  position: absolute;
  bottom: 48px; right: 5%;
  z-index: 1;
  display: flex;
  gap: 40px;
}
.hero-stat strong {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1;
}
.hero-stat span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}

/* ── FILTER STRIP ─────────────────────────────────────────── */
.filter-strip {
  background: var(--white);
  border-bottom: 1px solid var(--light-grey);
  position: sticky;
  top: 72px;
  z-index: 90;
  box-shadow: var(--shadow-sm);
  transition: top var(--transition);
}
.filter-strip .container {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-strip .container::-webkit-scrollbar { display: none; }

.filter-btn {
  flex-shrink: 0;
  padding: 18px 28px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--grey);
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
  white-space: nowrap;
  background: none;
}
.filter-btn:hover  { color: var(--black); }
.filter-btn.active { color: var(--blue); border-bottom-color: var(--blue); font-weight: 600; }

/* ── SERVICES GRID (homepage) ─────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--light-grey);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.service-card {
  background: var(--white);
  padding: 40px 28px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 28px;
  width: 0; height: 2px;
  background: var(--blue);
  transition: width var(--transition);
  border-radius: 2px;
}
.service-card:hover {
  background: var(--off-white);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  z-index: 1;
}
.service-card:hover::after { width: calc(100% - 56px); }

.service-icon {
  width: 50px; height: 50px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), transform var(--transition);
}
.service-card:hover .service-icon { background: var(--blue); transform: scale(1.08); }
.service-icon svg { width: 22px; height: 22px; color: var(--blue); transition: color var(--transition); }
.service-card:hover .service-icon svg { color: var(--white); }
.service-card h4 { margin-bottom: 9px; font-size: 0.98rem; }
.service-card p  { font-size: 0.855rem; line-height: 1.7; }

/* ── FEATURED PROJECT ─────────────────────────────────────── */
.featured-section { padding: var(--space-xl) 0; }
.featured-label {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 48px;
  gap: 24px;
}

.featured-project {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.featured-project-img {
  position: relative;
  height: 540px;
  overflow: hidden;
}
.featured-project-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.9s cubic-bezier(0.4,0,0.2,1);
}
.featured-project:hover .featured-project-img img { transform: scale(1.045); }

.project-tag {
  position: absolute;
  top: 22px; left: 22px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 2px;
}
.featured-project-info {
  background: var(--black);
  padding: clamp(36px, 5vw, 60px) clamp(28px, 4vw, 52px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-project-info .eyebrow { margin-bottom: 14px; }
.featured-project-info h3 {
  color: var(--white);
  font-size: clamp(1.5rem, 2.5vw, 2.1rem);
  margin-bottom: 18px;
}
.featured-project-info > p { color: #9CA3AF; margin-bottom: 28px; }

.project-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius);
  border: 1px solid rgba(255,255,255,0.07);
}
.project-meta-item span {
  display: block;
  font-size: 0.68rem;
  color: #6B7280;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.project-meta-item strong { color: var(--white); font-size: 0.88rem; font-weight: 500; }

/* ── MINI CARDS ───────────────────────────────────────────── */
.mini-projects {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}
.mini-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  height: 270px;
  cursor: pointer;
}
.mini-card img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.65s ease;
}
.mini-card:hover img { transform: scale(1.07); }
.mini-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.88) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  transition: opacity var(--transition);
}
.mini-card-overlay span {
  font-size: 0.68rem;
  color: var(--blue);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.mini-card-overlay h4 { color: var(--white); font-size: 0.98rem; }

/* ── PROCESS ──────────────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 27px; left: 12.5%;
  width: 75%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--light-grey), transparent);
}
.process-item { padding: 0 20px; text-align: center; }
.process-num {
  width: 54px; height: 54px;
  border-radius: 50%;
  border: 1.5px solid var(--blue);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--blue);
  font-weight: 700;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition);
}
.process-item:hover .process-num {
  background: var(--blue);
  color: var(--white);
  transform: scale(1.1);
}
.process-item h4 { margin-bottom: 9px; font-size: 0.98rem; }
.process-item p  { font-size: 0.855rem; }

/* ── TESTIMONIAL ──────────────────────────────────────────── */
.testimonial-section {
  background: var(--blue-dark);
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.testimonial-section::before {
  content: '\201C';
  position: absolute;
  top: -20px; right: 8%;
  font-family: 'Playfair Display', serif;
  font-size: 22rem;
  color: rgba(255,255,255,0.03);
  line-height: 1;
  pointer-events: none;
}
.testimonial-inner { max-width: 720px; margin: 0 auto; text-align: center; }
.testimonial-quote {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  color: var(--white);
  line-height: 1.55;
  margin-bottom: 32px;
  position: relative;
}
.testimonial-quote::before {
  content: '\201C';
  color: var(--blue);
  font-size: 3.5rem;
  line-height: 0;
  vertical-align: -0.55em;
  margin-right: 2px;
}
.testimonial-author { display: flex; align-items: center; justify-content: center; gap: 14px; }
.testimonial-avatar {
  width: 50px; height: 50px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.25);
  overflow: hidden;
  flex-shrink: 0;
}
.testimonial-avatar img { width: 100%; height: 100%; object-fit: cover; }
.testimonial-author div strong { color: var(--white); font-size: 0.875rem; display: block; }
.testimonial-author div span   { color: rgba(255,255,255,0.45); font-size: 0.78rem; }

/* ── ===================================================
       PROJETOS — GALLERY
   =================================================== ── */
.projects-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 44px;
}
.pf-btn {
  padding: 8px 20px;
  border: 1.5px solid var(--light-grey);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--grey);
  transition: background var(--transition), border-color var(--transition), color var(--transition), transform var(--transition);
  background: var(--white);
}
.pf-btn:hover { border-color: #9CA3AF; color: var(--black); transform: translateY(-1px); }
.pf-btn.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}

.projects-masonry {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.proj-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--off-white);
}
.proj-card--tall { grid-row: span 2; }
.proj-card-img {
  width: 100%; height: 300px;
  object-fit: cover;
  display: block;
  transition: transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.proj-card--tall .proj-card-img { height: 100%; min-height: 420px; }
.proj-card:hover .proj-card-img { transform: scale(1.055); }

.proj-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.92) 0%, rgba(10,10,10,0.1) 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.proj-card:hover .proj-card-overlay { opacity: 1; transform: none; }
.proj-card-overlay .eyebrow { color: #93C5FD; margin-bottom: 7px; }
.proj-card-overlay h3 { color: var(--white); font-size: 1.2rem; margin-bottom: 14px; }
.proj-card-overlay .btn { padding: 9px 18px; font-size: 0.78rem; }

/* ── ===================================================
       SOBRE — ABOUT PAGE
   =================================================== ── */
.about-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}
.about-intro-media { position: relative; }
.about-intro-media img {
  width: 100%; height: clamp(400px, 50vw, 580px);
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.about-accent-box {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--blue);
  color: var(--white);
  padding: 26px 30px;
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow-blue);
}
.about-accent-box strong {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem;
  display: block;
  line-height: 1;
}
.about-accent-box span {
  font-size: 0.72rem;
  opacity: 0.82;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  display: block;
  margin-top: 6px;
}
.about-intro-text .eyebrow { margin-bottom: 14px; }
.about-intro-text h2   { margin-bottom: 22px; }
.about-intro-text p    { margin-bottom: 18px; }

.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.mvv-card {
  padding: 36px 28px;
  border: 1px solid var(--light-grey);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
  background: var(--white);
}
.mvv-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-light), var(--shadow-md);
  transform: translateY(-4px);
}
.mvv-icon {
  width: 46px; height: 46px;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  transition: background var(--transition), transform var(--transition);
}
.mvv-card:hover .mvv-icon { background: var(--blue); transform: scale(1.08); }
.mvv-icon svg { width: 20px; height: 20px; color: var(--blue); transition: color var(--transition); }
.mvv-card:hover .mvv-icon svg { color: var(--white); }
.mvv-card h3 { font-size: 1.15rem; margin-bottom: 10px; }

.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.team-card { text-align: center; }
.team-card-img {
  width: 100%; height: clamp(220px, 22vw, 300px);
  object-fit: cover;
  object-position: top;
  border-radius: var(--radius-lg);
  margin-bottom: 14px;
  transition: transform 0.55s ease, filter 0.55s ease;
  filter: grayscale(15%);
}
.team-card:hover .team-card-img { transform: scale(1.03); filter: grayscale(0); }
.team-card h4  { margin-bottom: 4px; font-size: 1rem; }
.team-card span { font-size: 0.8rem; color: var(--blue); font-weight: 500; }

/* ── ===================================================
       SERVIÇOS PAGE
   =================================================== ── */
.services-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 7vw, 88px);
  align-items: center;
}

.services-list { display: flex; flex-direction: column; }
.service-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px 0;
  border-bottom: 1px solid var(--light-grey);
  transition: padding-left var(--transition);
}
.service-item:first-child { border-top: 1px solid var(--light-grey); }
.service-item:hover { padding-left: 10px; }

.service-item-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition), transform var(--transition);
}
.service-item:hover .service-item-icon { background: var(--blue); transform: scale(1.06); }
.service-item-icon svg { width: 22px; height: 22px; color: var(--blue); transition: color var(--transition); }
.service-item:hover .service-item-icon svg { color: var(--white); }
.service-item-text h3 { font-size: 1.1rem; margin-bottom: 7px; }

.services-cta-banner {
  background: var(--blue);
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 56px) clamp(28px, 4vw, 52px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  position: relative;
  overflow: hidden;
}
.services-cta-banner::before {
  content: '';
  position: absolute;
  right: -60px; top: -60px;
  width: 260px; height: 260px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.services-cta-banner h2 { color: var(--white); font-size: clamp(1.4rem, 2.5vw, 2rem); }
.services-cta-banner p  { color: rgba(255,255,255,0.72); margin-top: 7px; }

/* ── ===================================================
       CONTACTO PAGE
   =================================================== ── */
.contact-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: clamp(40px, 6vw, 80px); }

.contact-form { display: flex; flex-direction: column; gap: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.04em;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 13px 16px;
  border: 1.5px solid var(--light-grey);
  border-radius: var(--radius);
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: var(--black);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
  appearance: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: #CBD5E1; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.1);
}
.form-group input.error,
.form-group textarea.error { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239,68,68,0.09); }
.form-group textarea { resize: vertical; min-height: 140px; }

.form-error { font-size: 0.75rem; color: #EF4444; display: none; margin-top: 2px; }
.form-error.show { display: block; }

.form-success {
  display: none;
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  color: #065F46;
  padding: 15px 18px;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
}
.form-success.show { display: block; }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-info-item { display: flex; gap: 18px; align-items: flex-start; }
.contact-info-icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  background: var(--blue-light);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.contact-info-icon svg { width: 18px; height: 18px; color: var(--blue); }
.contact-info-item h4 { font-size: 0.875rem; margin-bottom: 4px; }
.contact-info-item p  { font-size: 0.845rem; }

.contact-map {
  width: 100%; height: 260px;
  background: var(--off-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--grey);
  font-size: 0.875rem;
  border: 1px solid var(--light-grey);
}

/* ── ===================================================
       RESPONSIVE — 1280px
   =================================================== ── */
@media (max-width: 1280px) {
  .featured-project-info { padding: 36px 36px; }
}

/* ── ===================================================
       RESPONSIVE — 1024px  (tablet landscape)
   =================================================== ── */
@media (max-width: 1024px) {
  :root { --space-xl: 80px; }

  .services-grid         { grid-template-columns: repeat(2, 1fr); }
  .footer-grid           { grid-template-columns: 1fr 1fr; gap: 36px; }
  .team-grid             { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .grid-4                { grid-template-columns: repeat(2, 1fr); }

  .process-grid          { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .process-grid::before  { display: none; }

  .featured-project      { grid-template-columns: 1fr; }
  .featured-project-img  { height: 360px; }
  .featured-project-info { padding: 36px; }

  .projects-masonry      { grid-template-columns: repeat(2, 1fr); }
  .proj-card--tall       { grid-row: span 1; }
  .proj-card--tall .proj-card-img { min-height: 300px; height: 300px; }

  .services-hero-grid    { grid-template-columns: 1fr; gap: 48px; }
  .about-intro           { gap: 48px; }
  .about-accent-box      { right: -12px; bottom: -20px; }
}

/* ── ===================================================
       RESPONSIVE — 768px  (tablet portrait / large mobile)
   =================================================== ── */
@media (max-width: 768px) {
  :root { --space-xl: 64px; }

  /* Nav */
  .nav-menu  { display: none; }
  .hamburger { display: flex; }
  .nav-mobile { display: flex; }

  /* Typography */
  h1 { font-size: clamp(2.1rem, 8vw, 2.8rem); }
  h2 { font-size: clamp(1.65rem, 5.5vw, 2rem); }

  /* Hero */
  .hero-bg {
    background:
      linear-gradient(to bottom,
        rgba(10,10,10,0.82) 0%,
        rgba(10,10,10,0.65) 100%),
      url('https://images.unsplash.com/photo-1487958449943-2429e8be8625?w=1000&q=80')
        center / cover no-repeat;
  }
  .hero-content { max-width: 100%; padding-top: 100px; padding-bottom: 48px; }
  .hero-content > p { max-width: 100%; }
  .hero-stats { display: none; }
  .hero-actions { gap: 12px; }

  /* Search bar stacks */
  .search-bar {
    flex-direction: column;
    border-radius: var(--radius-lg);
    max-width: 100%;
  }
  .search-bar select {
    border-right: none;
    border-bottom: 1px solid var(--light-grey);
    width: 100%;
    border-radius: 0;
  }
  .search-bar input  { width: 100%; }
  .search-bar button { width: 100%; border-radius: 0 0 var(--radius-lg) var(--radius-lg); padding: 16px; }

  /* Filter strip */
  .filter-strip { top: 64px; }

  /* Grids → single col */
  .grid-2,
  .grid-3,
  .about-intro,
  .mvv-grid,
  .contact-grid { grid-template-columns: 1fr; }

  /* About accent box repositioned */
  .about-accent-box { right: 0; bottom: -16px; }
  .about-intro-media { padding-bottom: 48px; }

  /* Services cta */
  .services-cta-banner { grid-template-columns: 1fr; text-align: center; }
  .services-cta-banner .btn { justify-content: center; }

  /* Form rows collapse */
  .form-row { grid-template-columns: 1fr; gap: 16px; }

  /* Featured label */
  .featured-label { flex-direction: column; align-items: flex-start; gap: 16px; }

  /* Mini projects */
  .mini-projects { grid-template-columns: 1fr 1fr; gap: 14px; }

  /* Masonry single col */
  .projects-masonry { grid-template-columns: 1fr; }

  /* Team 2-col */
  .team-grid { grid-template-columns: 1fr 1fr; }

  /* Process 2-col */
  .process-grid { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-grid   { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand p { max-width: 100%; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 6px; }

  /* Page hero */
  .page-hero { height: clamp(260px, 50vw, 340px); padding-bottom: 36px; }
}

/* ── ===================================================
       RESPONSIVE — 480px  (small mobile)
   =================================================== ── */
@media (max-width: 480px) {
  :root { --space-xl: 52px; }

  .container { width: 94%; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .mini-projects { grid-template-columns: 1fr; }
  .team-grid     { grid-template-columns: 1fr 1fr; gap: 14px; }
  .team-card-img { height: 180px; }

  .process-grid  { grid-template-columns: 1fr 1fr; gap: 24px; }
  .process-item  { padding: 0 8px; }

  .services-grid { grid-template-columns: 1fr; }
  .service-card  { padding: 28px 20px; }

  .projects-filter { gap: 6px; }
  .pf-btn { padding: 7px 14px; font-size: 0.78rem; }

  .mvv-grid    { grid-template-columns: 1fr; }
  .team-grid   { grid-template-columns: 1fr 1fr; }

  .featured-project-info { padding: 28px 22px; }
  .project-meta { grid-template-columns: 1fr 1fr; }

  .btn { padding: 13px 24px; }

  .footer { padding: 56px 0 28px; }
  .footer-grid { gap: 24px; }

  .testimonial-section { padding: 60px 0; }
  .testimonial-quote { font-size: 1.1rem; }
}

/* ── ===================================================
       RESPONSIVE — 360px (very small)
   =================================================== ── */
@media (max-width: 360px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
  .team-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; gap: 28px; }
  .mini-projects { grid-template-columns: 1fr; }
}

/* ============================================================
       RESPONSIVE HARDENING
   ============================================================ */
html {
  overflow-x: hidden;
  scroll-padding-top: 88px;
}

body,
.container,
.navbar,
.section,
.page-hero,
.hero,
.footer {
  max-width: 100%;
}

h1, h2, h3, h4, p, a, button, label, input, textarea, select, summary, span, strong {
  overflow-wrap: anywhere;
}

.grid-2 > *,
.grid-3 > *,
.grid-4 > *,
.services-grid > *,
.projects-masonry > *,
.about-intro > *,
.services-hero-grid > *,
.contact-grid > *,
.featured-project > *,
.footer-grid > * {
  min-width: 0;
}

.navbar {
  padding-inline: clamp(16px, 5vw, 64px);
}

.nav-menu {
  gap: clamp(18px, 2.4vw, 32px);
}

.hero-content h2,
.hero-content h2 em {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
}

.btn {
  max-width: 100%;
  text-align: center;
  justify-content: center;
}

.projects-filter,
.hero-actions,
.featured-label {
  min-width: 0;
}

.contact-map {
  padding: 20px;
  text-align: center;
}

@media (max-width: 1180px) {
  .nav-logo { font-size: 1.35rem; }
  .nav-menu { gap: 18px; }
  .nav-link,
  .nav-cta { font-size: 0.8rem; }
  .nav-cta { padding-inline: 16px !important; }
}

@media (max-width: 900px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .services-grid,
  .projects-masonry,
  .mvv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-grid,
  .services-hero-grid,
  .about-intro {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding: 120px 0 72px;
  }

  .hero-content {
    padding-top: 0;
    padding-bottom: 0;
  }

  .featured-project-img,
  .proj-card-img,
  .proj-card--tall .proj-card-img,
  .mini-card,
  .about-intro-media img {
    height: clamp(240px, 52vw, 380px);
    min-height: 0;
  }

  .proj-card-overlay {
    opacity: 1;
    transform: none;
  }

  .section--dark .container > div[style*="repeat(4,1fr)"],
  .section--grey .container > div[style*="repeat(3,1fr)"],
  .section--grey .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr 1fr !important;
  }

  .section--grey .container > div[style*="grid-template-columns:1fr 1fr"] > div[style*="display:flex"] {
    flex-direction: column !important;
  }

  .section--grey .container > div[style*="grid-template-columns:1fr 1fr"] > div[style*="display:flex"] > div[style*="width:220px"] {
    width: 100% !important;
    height: 220px;
  }
}

@media (max-width: 640px) {
  :root {
    --space-lg: 44px;
    --space-xl: 56px;
  }

  .container {
    width: min(100% - 32px, 1200px);
  }

  .navbar {
    height: 64px;
  }

  .navbar--scrolled {
    height: 58px;
  }

  .nav-logo {
    font-size: 1.28rem;
  }

  .nav-mobile {
    padding: 88px 24px 72px;
    justify-content: center;
    overflow-y: auto;
  }

  .nav-mobile::after {
    bottom: 28px;
  }

  .page-hero {
    height: auto;
    min-height: 280px;
    padding-top: 110px;
  }

  .hero {
    padding: 104px 0 56px;
  }

  .hero-content .eyebrow {
    line-height: 1.5;
  }

  .hero-content h2,
  .hero-content h2 em {
    font-size: clamp(2rem, 12vw, 2.7rem);
  }

  .filter-strip {
    top: 58px;
  }

  .filter-btn {
    padding: 15px 18px;
  }

  .services-grid,
  .projects-masonry,
  .mvv-grid,
  .team-grid,
  .mini-projects,
  .process-grid,
  .section--dark .container > div[style*="repeat(4,1fr)"],
  .section--grey .container > div[style*="repeat(3,1fr)"],
  .section--grey .container > div[style*="grid-template-columns:1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .service-item,
  .contact-info-item {
    gap: 16px;
  }

  .service-item:hover {
    padding-left: 0;
  }

  .service-item-icon,
  .contact-info-icon {
    width: 44px;
    height: 44px;
  }

  .about-intro-media {
    padding-bottom: 0;
  }

  .about-accent-box {
    position: static;
    margin-top: 16px;
    width: 100%;
  }

  .project-meta {
    grid-template-columns: 1fr;
  }

  .featured-project-info,
  .service-card,
  .mvv-card {
    padding: 28px 22px;
  }

  .services-cta-banner {
    padding: 32px 22px;
    text-align: left;
  }

  .services-cta-banner .btn {
    width: 100%;
    white-space: normal !important;
  }

  .footer-grid {
    text-align: left;
  }
}

@media (max-width: 420px) {
  .container {
    width: min(100% - 24px, 1200px);
  }

  p {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .btn {
    width: 100%;
    white-space: normal;
    padding-inline: 18px;
  }

  .page-hero {
    min-height: 240px;
    padding-bottom: 30px;
  }

  .hero-actions {
    width: 100%;
  }

  .featured-project-img,
  .proj-card-img,
  .proj-card--tall .proj-card-img,
  .mini-card,
  .about-intro-media img,
  .team-card-img {
    height: 230px;
  }

  .process-grid {
    gap: 28px;
  }

  .process-item {
    padding-inline: 0;
  }

  .testimonial-author {
    flex-direction: column;
    text-align: center;
  }

  .contact-info-item {
    flex-direction: column;
  }

  .contact-map {
    height: auto;
    min-height: 160px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .fade-in,
  .fade-in-left,
  .fade-in-right { opacity: 1 !important; transform: none !important; }
  .hero-bg { transform: none !important; }
}
