/* ============================================================
   Samurai Empreendimentos — styles.css
   Mobile-first | Clean | Regional | Trustworthy
   ============================================================ */

/* ── Google Fonts ─────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Lora:wght@400;600;700&family=Inter:wght@400;500;600&display=swap');

/* ── Design Tokens ────────────────────────────────────────── */
:root {
  /* Brand palette */
  --color-primary:    #C0392B;   /* Samurai red */
  --color-primary-dk: #962d22;   /* darker red for hover */
  --color-dark:       #1a1a1a;   /* near-black text */
  --color-charcoal:   #2c2c2c;   /* section dark bg */
  --color-earth:      #4a3728;   /* warm brown accent */
  --color-warm-white: #faf8f5;   /* page bg */
  --color-light:      #f2ede8;   /* alternate section bg */
  --color-border:     #ddd5cc;   /* subtle dividers */
  --color-text:       #333333;
  --color-text-muted: #666666;
  --color-white:      #ffffff;
  --color-whatsapp:   #25D366;
  --color-whatsapp-dk:#1da851;

  /* Typography */
  --font-display: 'Lora', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;

  /* Spacing scale */
  --sp-xs:  0.5rem;
  --sp-sm:  1rem;
  --sp-md:  1.5rem;
  --sp-lg:  2.5rem;
  --sp-xl:  4rem;
  --sp-2xl: 6rem;

  /* Layout */
  --max-width: 1160px;
  --header-h:  96px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0,0,0,.08);
  --shadow-md: 0 4px 20px rgba(0,0,0,.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.16);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-warm-white);
  line-height: 1.65;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  color: var(--color-dark);
}

h1 { font-size: clamp(1.9rem, 5vw, 3rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

p { margin-bottom: var(--sp-sm); }
p:last-child { margin-bottom: 0; }

/* ── Utility ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--sp-md);
  box-sizing: border-box;
}

.section {
  padding-block: var(--sp-xl);
}

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

.section--dark {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

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

.section-label {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: var(--sp-xs);
}

.section-label--light {
  color: #f07060;
}

.section-heading {
  margin-bottom: var(--sp-sm);
}

.section-subtext {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  max-width: 620px;
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}

.section-subtext--center {
  margin-inline: auto;
  text-align: center;
}

.text-center { text-align: center; }

.divider {
  width: 48px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: var(--sp-md);
}

.divider--center { margin-inline: auto; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
}
.btn--primary:hover { background: var(--color-primary-dk); }

.btn--whatsapp {
  background: var(--color-whatsapp);
  color: var(--color-white);
  box-shadow: var(--shadow-sm);
}
.btn--whatsapp:hover {
  background: var(--color-whatsapp-dk);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
}

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

.btn--maps {
  background: var(--color-white);
  color: #1a73e8;
  border-color: #dde3ea;
  font-size: 0.88rem;
  padding: 0.6rem 1.1rem;
}
.btn--maps:hover {
  background: #f0f5ff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.btn--maps svg { flex-shrink: 0; }

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

/* WhatsApp icon */
.icon-wa {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── HEADER ───────────────────────────────────────────────── */
#header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-h);
  z-index: 1000;
  background: rgba(250,248,245,.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-border);
  transition: box-shadow 0.2s;
}

#header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.header-logo img {
  height: 84px;
  width: auto;
}

.nav-menu {
  display: none;
  gap: var(--sp-md);
}

.nav-menu a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.header-cta {
  display: none;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
}

.hamburger span {
  display: block;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: all 0.25s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-warm-white);
  z-index: 999;
  padding: var(--sp-lg) var(--sp-md);
  flex-direction: column;
  gap: var(--sp-sm);
  overflow-y: auto;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text);
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

.mobile-nav .btn {
  margin-top: var(--sp-sm);
  justify-content: center;
}

/* ── HERO ─────────────────────────────────────────────────── */
#inicio {
  padding-top: calc(var(--header-h) + var(--sp-xl));
  padding-bottom: var(--sp-xl);
  background: linear-gradient(160deg, #1a1a1a 0%, #2c1a0e 60%, #3d1c10 100%);
  position: relative;
  overflow: hidden;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

#inicio::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../img/novo-campestre-04-terreno-demarcado-visao-ampla.jpg') center/cover no-repeat;
  opacity: 0.22;
}

/* Red sun accent — signature element */
#inicio::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(192,57,43,.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-label {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #f07060;
  margin-bottom: var(--sp-sm);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.4rem);
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.2;
  margin-bottom: var(--sp-md);
}

.hero-title em {
  font-style: normal;
  color: #f07060;
}

.hero-sub {
  font-size: clamp(1rem, 2.5vw, 1.15rem);
  color: rgba(255,255,255,.78);
  max-width: 560px;
  margin-bottom: var(--sp-lg);
  line-height: 1.7;
}

/* ── SOBRE ────────────────────────────────────────────────── */
#sobre {
  background: var(--color-warm-white);
}

.sobre-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  align-items: center;
}

.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
}

.stat-item {
  background: var(--color-light);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-sm);
  text-align: center;
  border-top: 3px solid var(--color-primary);
}

.stat-number {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: 0.25rem;
  line-height: 1.3;
}

.sobre-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.sobre-visual img {
  width: 100%;
  height: 280px;
  object-fit: cover;
}

/* ── EMPREENDIMENTOS ──────────────────────────────────────── */
#empreendimentos {
  background: var(--color-light);
}

/* Featured: Novo Campestre */
.highlight-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-bottom: var(--sp-xl);
}

.highlight-card-inner {
  display: grid;
  grid-template-columns: 1fr;
}

.highlight-gallery {
  position: relative;
  height: 280px;
  overflow: hidden;
}

.highlight-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.highlight-badge {
  position: absolute;
  top: var(--sp-sm);
  left: var(--sp-sm);
  background: var(--color-primary);
  color: var(--color-white);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
}

.highlight-body {
  padding: var(--sp-lg);
}

.highlight-body h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  margin-bottom: var(--sp-sm);
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: var(--sp-md) 0;
}

.feature-tag {
  background: var(--color-light);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  color: var(--color-text);
}

.disclaimer-text {
  font-size: 0.82rem;
  color: var(--color-text-muted);
  background: var(--color-light);
  border-radius: var(--radius-sm);
  padding: 0.6rem var(--sp-sm);
  margin-top: var(--sp-md);
  border-left: 3px solid var(--color-border);
}

/* Other projects grid */
.projects-heading {
  margin-bottom: var(--sp-lg);
}

.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-md);
}

.project-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.project-card-img {
  height: 220px;
  overflow: hidden;
}

.project-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project-card:hover .project-card-img img {
  transform: scale(1.04);
}

.project-card-body {
  padding: var(--sp-md);
}

.project-card-body h3 {
  margin-bottom: 0.5rem;
}

.project-card-body p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-md);
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: var(--sp-sm);
}

.meta-tag {
  font-size: 0.75rem;
  background: var(--color-light);
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  color: var(--color-text-muted);
  font-weight: 500;
}

/* ── LOCALIZAÇÃO ──────────────────────────────────────────── */
#localizacao {
  background: var(--color-warm-white);
}

.location-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  width: 100%;
  max-width: 100%;
  margin-bottom: var(--sp-lg);
}

.location-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--color-primary);
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

.location-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.location-card p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-sm);
}

.location-card .btn--maps {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
  width: 100%;
  justify-content: center;
  box-sizing: border-box;
}

.map-embed-wrapper { margin-top: var(--sp-lg); }

.map-embed-wrapper h3 {
  margin-bottom: var(--sp-sm);
  font-size: 1.1rem;
}

.map-embed {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

.map-embed iframe {
  width: 100%;
  height: 320px;
  display: block;
}

.location-disclaimer {
  margin-top: var(--sp-md);
  font-size: 0.82rem;
  color: var(--color-text-muted);
  text-align: center;
  font-style: italic;
}

/* ── SERVIÇOS / TRATOR ────────────────────────────────────── */
#servicos {
  background: var(--color-charcoal);
  color: var(--color-warm-white);
}

#servicos h2 { color: var(--color-white); }
#servicos .section-label { color: #f07060; }
#servicos .section-subtext { color: rgba(255,255,255,.7); }

.servicos-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  align-items: start;
}

.servicos-text p {
  color: rgba(255,255,255,.8);
  margin-bottom: var(--sp-md);
}

.servicos-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: var(--sp-md) 0;
}

.servico-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,.85);
}

.servico-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  flex-shrink: 0;
}

.servicos-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.servicos-gallery img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.servicos-gallery img:first-child {
  grid-column: 1 / -1;
  height: 220px;
}

/* ── GALERIA ──────────────────────────────────────────────── */
#galeria {
  background: var(--color-light);
}

.gallery-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--sp-lg);
}

.gallery-tab {
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
  color: var(--color-text);
}

.gallery-tab:hover,
.gallery-tab.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

.gallery-item {
  border-radius: var(--radius-sm);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  cursor: pointer;
  min-width: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s;
}

.gallery-item:hover img { transform: scale(1.06); }

/* ── ATENDIMENTO ──────────────────────────────────────────── */
#atendimento {
  background: linear-gradient(135deg, #1a1a1a 0%, #2c1a0e 100%);
  position: relative;
  overflow: hidden;
}

#atendimento::before {
  content: '';
  position: absolute;
  top: -120px;
  left: -120px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(192,57,43,.25) 0%, transparent 65%);
  pointer-events: none;
}

#atendimento h2,
#atendimento h3 { color: var(--color-white); }

.atendimento-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 620px;
  margin-inline: auto;
}

.atendimento-inner .section-label { color: #f07060; }

.atendimento-inner p {
  color: rgba(255,255,255,.78);
  font-size: 1.05rem;
  margin-bottom: var(--sp-lg);
}

.atendimento-inner .btn-group {
  justify-content: center;
}

/* ── CONTATO ──────────────────────────────────────────────── */
#contato {
  background: var(--color-warm-white);
}

.contato-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
}

.contato-info h2 { margin-bottom: var(--sp-sm); }

.contato-detail {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: var(--sp-sm) 0;
  border-bottom: 1px solid var(--color-border);
}

.contato-detail:last-of-type { border-bottom: none; }

.contato-icon {
  width: 36px;
  height: 36px;
  background: var(--color-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contato-icon svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.contato-text strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.15rem;
}

.contato-text span,
.contato-text a {
  font-size: 0.95rem;
  color: var(--color-text);
}

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

.contato-cta-box {
  background: var(--color-light);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  text-align: center;
  border-top: 4px solid var(--color-whatsapp);
}

.contato-cta-box h3 {
  margin-bottom: 0.5rem;
}

.contato-cta-box p {
  font-size: 0.92rem;
  color: var(--color-text-muted);
  margin-bottom: var(--sp-md);
}

/* ── FOOTER ───────────────────────────────────────────────── */
#footer {
  background: #111111;
  color: rgba(255,255,255,.65);
  padding-block: var(--sp-xl) var(--sp-lg);
}

.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--sp-lg);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-lg);
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.footer-brand img {
  height: 56px;
  width: auto;
  margin-bottom: var(--sp-sm);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--sp-sm);
  font-family: var(--font-body);
}

.footer-col ul li {
  margin-bottom: 0.5rem;
}

.footer-col ul li a {
  font-size: 0.88rem;
  color: rgba(255,255,255,.6);
  transition: color 0.2s;
}

.footer-col ul li a:hover {
  color: var(--color-white);
}

.footer-contact-item {
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: rgba(255,255,255,.6);
}

.footer-contact-item a {
  color: rgba(255,255,255,.6);
}

.footer-contact-item a:hover { color: var(--color-white); }

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
}

.footer-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,.4);
  background: rgba(255,255,255,.04);
  border-radius: var(--radius-sm);
  padding: 1.25rem 1.5rem;
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
  line-height: 1.65;
}

/* ── FLOATING WHATSAPP ────────────────────────────────────── */
.floating-wa {
  position: fixed;
  bottom: 24px;
  right: 20px;
  z-index: 900;
  width: 56px;
  height: 56px;
  background: var(--color-whatsapp);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.45);
  transition: transform 0.2s, box-shadow 0.2s;
}

.floating-wa:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(37,211,102,.55);
}

.floating-wa svg {
  width: 28px;
  height: 28px;
  fill: white;
}

/* ── TABLET (≥ 640px) ─────────────────────────────────────── */
@media (min-width: 640px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .sobre-stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .highlight-gallery { height: 340px; }

  .map-embed iframe { height: 380px; }

  .contato-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }

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

  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* ── DESKTOP (≥ 900px) ────────────────────────────────────── */
@media (min-width: 900px) {
  .hamburger  { display: none; }
  .nav-menu   { display: flex; }
  .header-cta { display: inline-flex; }

  .sobre-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .sobre-visual img { height: 380px; }

  .highlight-card-inner {
    grid-template-columns: 1fr 1fr;
  }

  .highlight-gallery {
    height: 100%;
    min-height: 420px;
  }

  .servicos-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .servicos-gallery img:first-child { height: 260px; }

/* ── 3-col location grid only on wide desktop ─────────────── */
@media (min-width: 1080px) {
  .location-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

  .map-embed iframe { height: 420px; }
}

/* ── DESKTOP WIDE (≥ 1100px) ──────────────────────────────── */
@media (min-width: 1100px) {
  .projects-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ── Mobile logo safeguard (max 72px on narrow screens) ─────── */
@media (max-width: 400px) {
  .header-logo img { height: 64px; }
  :root { --header-h: 80px; }
}

/* ── Gallery: 1 col on very small screens ───────────────────── */
@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Gallery: 4 cols on wide desktop ───────────────────────── */
@media (min-width: 1080px) {
  .gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
