/* ==========================================================================
   Azinheira Gentil — Construções Unipessoal, Lda
   Tema escuro · paleta quente (laranja + madeira) · layout premium
   ========================================================================== */

:root {
  --bg: #f3efe3;
  --card: #fbf8ef;
  --surface: #fbf8ef;
  --secondary: #e9e2d0;
  --muted: #e9e2d0;
  --border: #d8cfba;
  --input: #d8cfba;
  --fg: #6B5741;
  --muted-fg: #7C6A52;
  --primary: #2D7A2F;
  --primary-fg: #ffffff;
  --accent: #e4dcc6;
  --accent-fg: #6B5741;
  --ring: #2D7A2F;
  --radius: 0.75rem;
  --font-display: "Urbanist", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Epilogue", ui-sans-serif, system-ui, sans-serif;
  --container: 1440px;
  --shadow-elegant: 0 20px 40px -20px rgba(45, 122, 47, 0.40);

  /* bandas claras (rodapé + orçamento) — fixas, independentes do tema */
  --band-bg: #efe8d8;
  --band-fg: #6B5741;
  --band-muted: #7C6A52;
  --band-border: #d8cfba;
  --band-accent: #2D7A2F;
  --band-accent-soft: #dfe7cf;

  /* padrão suave de pedra/cortiça para as zonas beges */
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.6' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='linear' slope='0.05'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

[data-theme="light"] {
  --bg: #f3efe3;
  --card: #fbf8ef;
  --surface: #fbf8ef;
  --secondary: #e9e2d0;
  --muted: #e9e2d0;
  --border: #d8cfba;
  --input: #d8cfba;
  --fg: #6B5741;
  --muted-fg: #7C6A52;
  --primary: #2D7A2F;
  --primary-fg: #ffffff;
  --accent: #e4dcc6;
  --accent-fg: #6B5741;
  --ring: #2D7A2F;
}
[data-theme="dark"] {
  --bg: #1a1916;
  --card: #24221e;
  --surface: #24221e;
  --secondary: #2c2a25;
  --muted: #2c2a25;
  --border: #3a3831;
  --input: #3a3831;
  --fg: #e9e5da;
  --muted-fg: #b2ada1;
  --primary: #3f8f41;
  --primary-fg: #ffffff;
  --accent: #2c2a25;
  --accent-fg: #e9e5da;
  --ring: #3f8f41;
  --band-bg: #211f1b;
  --band-fg: #e9e5da;
  --band-muted: #b2ada1;
  --band-border: #3a3831;
  --band-accent: #3f8f41;
  --band-accent-soft: #2a3a26;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.625;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.5rem); }
h3 { font-size: 1.25rem; }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
}

section { padding: 3rem 0; }

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.section-title { margin-bottom: 1rem; }
.section-sub {
  color: var(--muted-fg);
  max-width: 74ch;
  font-size: 1.05rem;
}

/* ---------------------------------------------------------------- Header */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 40;
  padding-top: 0.75rem;
}

.header-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  padding-block: 0.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.brand-mark {
  height: 46px;
  width: auto;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  line-height: 1.1;
}
.brand-name small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted-fg);
}

.nav { display: none; }

.nav-link {
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted-fg);
  transition: background-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.nav-link:hover { background: var(--accent); color: var(--fg); }
.nav-link.active { background: var(--accent); color: var(--fg); }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); color: var(--primary); }

.hamburger { display: inline-flex; }
@media (max-width: 640px) {
  .header-actions .btn-primary { display: none; }
}
@media (min-width: 860px) {
  .hamburger { display: none; }
  /* menu centrado, logótipo à esquerda, CTA à direita */
  .nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

/* Menu móvel */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--bg);
  padding: 1.25rem;
}
.mobile-menu.open { display: block; }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.mobile-menu .nav { display: flex; flex-direction: column; gap: 0.25rem; position: static; transform: none; }
.mobile-menu .nav-link { font-size: 1.15rem; padding: 0.6rem 0.9rem; border-radius: 12px; }
.mobile-menu-cta { margin-top: 1.75rem; }
.mobile-menu-cta .btn { width: 100%; justify-content: center; }

/* --------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.7rem 1.4rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background-color 0.2s ease,
    border-color 0.2s ease, color 0.2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: var(--primary-fg);
}
.btn-primary:hover { box-shadow: var(--shadow-elegant); }

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--fg);
}
.btn-ghost:hover { border-color: color-mix(in srgb, var(--primary) 45%, transparent); color: var(--primary); }

.btn-lg { padding: 0.85rem 1.7rem; font-size: 1rem; }

/* ------------------------------------------------------------------- Hero */
.hero {
  padding-top: 8.5rem;
  padding-bottom: 3rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 0%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 70%),
    radial-gradient(40% 40% at 8% 30%, color-mix(in srgb, var(--primary) 8%, transparent), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; display: grid; gap: 2.5rem; }
@media (min-width: 920px) {
  .hero-inner { grid-template-columns: 1.15fr 0.85fr; align-items: center; }
}
.hero h1 { margin-bottom: 1.25rem; }
.hero h1 .accent { color: var(--primary); }
.hero p.lead { color: var(--muted-fg); font-size: 1.15rem; margin-bottom: 2rem; max-width: 72ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* estatísticas de confiança */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2.75rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.stat { display: flex; flex-direction: column; gap: 0.1rem; }
.stat b {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat span { font-size: 0.85rem; color: var(--muted-fg); }

/* cartão premium do hero (lado direito) */
.hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  background:
    radial-gradient(90% 90% at 100% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 60%),
    var(--card);
}
.hero-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--primary);
  color: var(--primary-fg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}
.hero-card .k {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
}
.hero-card h2 { margin: 0.4rem 0 0.6rem; font-size: 1.7rem; }
.hero-card p { color: var(--muted-fg); margin-bottom: 1.5rem; }
.hero-card .link {
  color: var(--primary);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.hero-card .link:hover { text-decoration: underline; }

/* --------------------------------------------------------------- Sections */
.split {
  display: grid;
  gap: 2rem;
}
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; align-items: center; }
}

.grid-3 { display: grid; gap: 1.25rem; }
.grid-4 { display: grid; gap: 1.25rem; }
.grid-2 { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: color-mix(in srgb, var(--primary) 40%, transparent); }

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.card h3 { margin-bottom: 0.5rem; }
.card p { color: var(--muted-fg); font-size: 0.95rem; }
.card .num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--primary);
  font-size: 0.85rem;
  letter-spacing: 0.08em;
}

/* listas tipo "o que está incluído" */
.check-list { list-style: none; display: grid; gap: 0.6rem; margin-top: 1rem; }
.check-list li {
  padding-left: 1.7rem;
  position: relative;
  color: var(--muted-fg);
  font-size: 0.95rem;
}
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary);
  font-weight: 700;
}

/* -------------------------------------------------------- Placeholders */
.ph {
  background:
    repeating-linear-gradient(135deg, var(--secondary), var(--secondary) 8px, var(--muted) 8px, var(--muted) 16px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--muted-fg);
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  min-height: 200px;
  text-align: center;
  padding: 1rem;
  gap: 0.4rem;
}
.ph svg { opacity: 0.55; }
.ph-hero { min-height: 320px; }
.ph-logo { min-height: 90px; }

/* --------------------------------------------------------------- Gallery */
.gallery { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .gallery { grid-template-columns: repeat(3, 1fr); } }

.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--card);
}
.gallery-item .ph { border: none; border-radius: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; }
.gallery-item video { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; display: block; background: #000; }
.gallery-cap { padding: 0.9rem 1rem; font-size: 0.9rem; }
.gallery-cap strong { font-family: var(--font-display); display: block; margin-bottom: 0.1rem; }
.gallery-cap span { color: var(--muted-fg); font-size: 0.82rem; }

/* Vídeo */
.video-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
  max-width: 480px;
  margin-inline: auto;
}
.video-wrap video { display: block; width: 100%; height: auto; }

/* --------------------------------------------------------------- Contact */
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 860px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-line {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.98rem;
}
.contact-line:last-of-type { border-bottom: none; }
.contact-line svg { color: var(--primary); flex-shrink: 0; }
.contact-line a:hover { color: var(--primary); }
.contact-line .k { color: var(--muted-fg); font-size: 0.82rem; }

.form { display: grid; gap: 0.9rem; }
.form label { font-size: 0.85rem; font-weight: 600; }
.form input, .form textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  transition: border-color 0.15s ease;
}
.form input:focus, .form textarea:focus {
  outline: none;
  border-color: var(--ring);
}
.form textarea { resize: vertical; min-height: 120px; }

/* --------------------------------------- Capoto (secção de serviço) */
.layers { display: grid; gap: 0.75rem; }
.layer {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 0.95rem 1.1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.layer .n {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-fg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.85rem;
  margin-top: 0.1rem;
}
.layer b { font-family: var(--font-display); display: block; font-size: 0.98rem; }
.layer p { color: var(--muted-fg); font-size: 0.88rem; margin: 0; }

.note-box {
  background: var(--accent);
  border: 1px solid color-mix(in srgb, var(--primary) 35%, transparent);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.note-box h3 { color: var(--primary); margin-bottom: 0.5rem; font-size: 1.05rem; }
.note-box p { color: var(--fg); font-size: 0.95rem; }

.faq { display: grid; gap: 0.75rem; }
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.2rem;
  font-weight: 600;
  font-family: var(--font-display);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.2rem 1.1rem; color: var(--muted-fg); font-size: 0.95rem; max-width: 70ch; }

/* ---------------------------------------------------------------- Footer */
.footer {
  margin-top: 2.5rem;
  background-color: var(--band-bg);
  color: var(--band-fg);
  padding: 4rem 1.25rem 2rem;
  border-top: 1px solid var(--band-border);
}
.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
}
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 2fr 1fr 1fr 1.35fr; }
}
.footer-cta h2 {
  color: var(--band-fg);
  margin: 0.75rem 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.footer-cta p { color: var(--band-muted); max-width: 44ch; margin-bottom: 1.4rem; }
.footer .pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2d4a1a;
  background: var(--band-accent-soft);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
}
.footer h4 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--band-muted);
  margin-bottom: 0.9rem;
  font-family: var(--font-body);
  font-weight: 600;
}
.footer ul { list-style: none; display: grid; gap: 0.5rem; }
.footer ul a { color: var(--band-fg); font-size: 0.92rem; }
.footer ul a:hover { color: var(--band-accent); }
.footer .muted { color: var(--band-muted); }
.footer .footer-subhead { margin-top: 1.5rem; }
.footer .btn-primary { background: var(--band-accent); color: #fff; }
.footer .btn-primary:hover { box-shadow: 0 16px 32px -16px rgba(217, 127, 74, 0.55); }
.footer-bottom {
  max-width: var(--container);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--band-border);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  color: var(--band-muted);
  font-size: 0.82rem;
}

/* ------------------------------------------------- CTA band (clara) */
.quote-band {
  background-color: var(--band-bg);
  color: var(--band-fg);
  border-radius: 1.25rem;
  padding: 3rem 2.5rem;
  display: grid;
  gap: 1.75rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
@media (min-width: 900px) {
  .quote-band { grid-template-columns: 1fr auto; }
}
.quote-band h2 {
  color: var(--band-fg);
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  margin-bottom: 0.6rem;
}
.quote-band p { color: var(--band-muted); max-width: 56ch; }
.quote-band .btn-primary { background: var(--band-accent); color: #fff; font-size: 1rem; padding: 0.95rem 1.9rem; }
.quote-band .btn-primary:hover { box-shadow: 0 16px 32px -16px rgba(217, 127, 74, 0.55); }

/* CTA band (escura, mantida) */
.cta-band {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    radial-gradient(60% 120% at 100% 0%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
    var(--card);
  padding: 2.5rem 2rem;
}
.cta-band h2 { margin-bottom: 0.6rem; }
.cta-band p { color: var(--muted-fg); margin-bottom: 1.5rem; max-width: 70ch; }

/* Page hero (páginas internas) */
.page-hero { padding-top: 8.5rem; padding-bottom: 3rem; }
.page-hero .container { max-width: var(--container); }

/* utilidades */
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted-fg); }
.inline-svg { width: 20px; height: 20px; flex-shrink: 0; }


/* Garantia nos cards de serviço */
.gar {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--primary) 12%, transparent);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Telemóvel: conteúdo centralizado */
@media (max-width: 640px) {
  .hero-inner, .page-hero .container { text-align: center; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
  .hero-stats { justify-content: center; }
  .stat { text-align: center; align-items: center; }
  .section-title, .section-head { text-align: center; }
  .section-label { display: block; text-align: center; }
  .card { text-align: center; }
  .card .ing, .card ul, .card ol, .card p { text-align: left; margin-left: auto; margin-right: auto; }
  .grid-3 .card p, .grid-3 .card h3 { text-align: center; }
  .cta-band .container { text-align: center; }
  .cta-band .btn { display: inline-flex; }
  .page-hero { text-align: center; }
  .gallery-cap { text-align: center; }
}


/* ===== REVISAO: fundo bege + padrao de obras suave ===== */
body {
  background-color: var(--bg) !important;
}
.mobile-menu { background: var(--bg); }

/* verde apenas nos detalhes: botões, links, ícones, rótulos */
.btn-primary { background: var(--primary); }
.link, .k, .accent, .section-label { color: var(--primary); }
.num { color: #A58E66; }

/* folga para a barra do navegador no telemóvel */
@media (max-width: 640px) {
  body { padding-bottom: 30px; }
}

/* fotos da galeria com cantos limpos (sem moldura) */
.gallery-item img { border-radius: 14px; }
.video-wrap video { border-radius: 14px; }

/* Ilustracao do capoto */
.capoto-img {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #fff;
  display: block;
}

.capoto-layout { display: grid; gap: 1.5rem; align-items: stretch; }
@media (min-width: 900px) { .capoto-layout { grid-template-columns: 1fr 1fr; } .capoto-layout .capoto-img { height: 100%; object-fit: cover; } }
/* Carrossel de trabalhos */
.work-carousel { position: relative; max-width: 760px; margin-inline: auto; }
.work-track { position: relative; border-radius: 16px; overflow: hidden; }
.work-slide { position: relative; aspect-ratio: 3 / 4; }
.work-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.25rem 1.25rem 1rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.65));
  color: #fff;
}
.work-cap strong { display: block; font-family: var(--font-display); }
.work-cap span { font-size: 0.85rem; opacity: 0.85; }
.work-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: rgba(255, 255, 255, 0.92);
  color: #333; font-size: 1.6rem; line-height: 1; font-weight: 600;
  cursor: pointer; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.work-btn:hover { background: #fff; }
.work-btn.prev { left: 12px; }
.work-btn.next { right: 12px; }
.work-dots { display: flex; justify-content: center; gap: 0.4rem; margin-top: 1rem; }
.work-dot { width: 8px; height: 8px; border-radius: 999px; border: none; background: var(--border); cursor: pointer; padding: 0; transition: width 0.25s ease, background-color 0.25s ease; }
.work-dot.active { width: 22px; background: var(--primary); }


/* Home no telemóvel: menos espaço vazio, mais coeso */
@media (max-width: 640px) {
  section { padding: 2rem 0; }
  .hero { padding-top: 6.5rem; padding-bottom: 2.5rem; }
  .hero-inner { gap: 1.4rem; }
  .hero h1 { margin-bottom: 0.85rem; font-size: 2.35rem; line-height: 1.12; }
  .hero p.lead { font-size: 1.05rem; margin-bottom: 1.25rem; }
  .hero-cta { gap: 0.6rem; }
  .hero-stats { margin-top: 1.4rem; padding-top: 1rem; gap: 0.6rem 1.5rem; }
  .stat b { font-size: 1.4rem; }
  .page-hero { padding-top: 6.5rem; padding-bottom: 2rem; }
  .page-hero h1 { margin-bottom: 0.6rem; }
  .section-title { margin-bottom: 0.6rem; }
  .container { padding: 0 1.1rem; }
  .quote-band { padding: 1.8rem 1.3rem; }
  .quote-band h2 { margin-bottom: 0.4rem; }
  .quote-band p { margin-bottom: 1rem; }
  .grid-3, .grid-2 { gap: 0.9rem; }
  .cta-band { padding: 2rem 1.3rem; }
}

/* Centralização completa no telemóvel */
@media (max-width: 640px) {
  .section-sub { text-align: center; }
  .hero-card { text-align: center; }
  .hero-card .icon { margin: 0 auto 1.5rem; }
  .hero-card .link { justify-content: center; }
  .card .card-icon { margin-left: auto; margin-right: auto; }
  .quote-band { text-align: center; }
  .quote-band .btn-primary { justify-self: center; }
  .footer-cta { text-align: center; }
  .footer .footer-col { text-align: center; }
  .footer ul { justify-items: center; }
  .cta-band { text-align: center; }
  .cta-band .hero-cta { justify-content: center; }
  .btn { justify-content: center; }
  .mt-2, .mt-3 { text-align: center; }
}

/* Carta de trabalho (T3) */
.work-card {
  display: flex; align-items: center; gap: 1.25rem;
  width: 100%; max-width: 560px; margin: 1.5rem auto 0;
  padding: 1rem; text-align: left;
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  cursor: pointer; font: inherit;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.work-card:hover { box-shadow: 0 14px 30px -16px rgba(0,0,0,.25); transform: translateY(-2px); border-color: var(--primary); }
.work-card-thumb { flex: 0 0 92px; width: 92px; height: 92px; border-radius: 12px; overflow: hidden; }
.work-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-card-body { display: flex; flex-direction: column; gap: 0.2rem; }
.work-card-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--primary); }
.work-card-title { font-size: 1.35rem; font-weight: 800; color: var(--fg); }
.work-card-hint { font-size: 0.9rem; color: var(--muted-fg); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 200; display: none; }
.modal.open { display: block; }
.modal-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; background: rgba(13,20,13,.6); border: 0; cursor: pointer; }
.modal-dialog {
  position: absolute; inset: 0; margin: auto;
  width: min(860px, calc(100% - 2rem)); height: min(80vh, 720px);
  background: var(--card); border: 1px solid var(--border); border-radius: 18px;
  padding: 1.5rem; display: flex; flex-direction: column;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.modal-head h3 { font-size: 1.4rem; color: var(--fg); }
.modal-close { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.modal-gallery { display: grid; gap: 1rem; overflow-y: auto; padding-bottom: 1rem; }
.modal-gallery figure { margin: 0; }
.modal-gallery img { width: 100%; height: auto; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; display: block; }
.modal-gallery figcaption { font-size: 0.82rem; color: var(--muted-fg); margin-top: 0.4rem; text-align: center; }
@media (min-width: 640px) { .modal-gallery { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .modal-gallery { grid-template-columns: repeat(3, 1fr); } }

/* Sobre — layout missão/visão/ética */
.missao-visao { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 900px) { .missao-visao { grid-template-columns: 1fr 1fr; } }
.center .section-sub { margin-left: auto; margin-right: auto; }
.note-small { font-size: 0.85rem; margin-left: auto; margin-right: auto; text-align: center; }

/* Ajustes: espaçamento hero + botão WhatsApp */
.page-hero + section { padding-top: 2rem; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1eba5c; box-shadow: 0 8px 20px -8px rgba(37, 211, 102, 0.55); }

.form-status { margin-top: 0.75rem; font-size: 0.9rem; font-weight: 600; }
.form-status.ok { color: #2d7a2f; }
.form-status.erro { color: #c0392b; }
