/* ==========================================================
   Distrooenergy — base styles
   ========================================================== */

:root {
  --green-900: #153b2c;
  --green-800: #1e4d3a;
  --green-700: #2a6a4d;
  --green-500: #4a9d5f;
  --green-300: #a8d4a8;
  --sand: #ffffff;
  --paper: #ffffff;
  --ink: #1a1a1a;
  --muted: #5c6b66;
  --line: #e5e2da;
  --shadow: 0 12px 36px rgba(20, 50, 40, .08);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

section[id] { scroll-margin-top: 110px; }

@media (max-width: 720px) {
  section[id] { scroll-margin-top: 84px; }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  text-align: center;
  margin: 0 0 48px;
  color: var(--green-900);
  letter-spacing: -.01em;
}

.section-title.left { text-align: left; margin-bottom: 20px; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn-primary {
  background: var(--green-800);
  color: #fff;
}
.btn-primary:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(30, 77, 58, .25);
}
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-ghost {
  background: transparent;
  color: var(--green-800);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: #f7faf3;
  border-color: var(--green-300);
}

/* ==========================================================
   Header
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(160%) blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 104px;
  gap: 24px;
}
.brand-logo {
  height: 84px;
  width: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}
.main-nav a {
  font-size: 15px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  transition: color .15s ease;
}
.main-nav a:hover { color: var(--green-700); }
.main-nav a.nav-order {
  color: var(--green-800);
  display: inline-flex;
  align-items: center;
  padding: 0;
}
.main-nav a.nav-order img {
  height: 32px;
  width: auto;
  transition: transform .15s ease;
}
.main-nav a.nav-order:hover img {
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 0;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ==========================================================
   Hero
   ========================================================== */
.hero {
  position: relative;
  padding: 60px 0 80px;
  background: #fff;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(135deg, transparent 49.5%, rgba(74,157,95,.05) 50%, transparent 50.5%);
  background-size: 40px 40px;
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero-copy h1 {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--green-900);
  margin: 0 0 22px;
}
.hero-copy h1 .accent { color: var(--green-700); }
.hero-copy > p {
  color: var(--muted);
  font-size: 16px;
  max-width: 480px;
  margin: 0 0 28px;
}

.hero-badges {
  margin-top: 48px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  align-items: center;
}
.badge-img {
  height: 130px;
  width: auto;
  max-width: 100%;
  display: block;
}
.badge-link {
  display: inline-block;
  transition: transform .15s ease;
}
.badge-link:hover { transform: translateY(-2px); }

.hero-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-image {
  max-height: 560px;
  max-width: 100%;
  object-fit: contain;
  filter: contrast(1.03) saturate(1.05) drop-shadow(0 30px 40px rgba(20, 50, 40, .18));
}

/* Floating order */
.floating-order {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px 12px 14px;
  background: var(--green-800);
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(20, 50, 40, .35);
  font-weight: 600;
  line-height: 1.1;
  font-size: 14px;
  text-align: left;
  transition: transform .15s ease, background .15s ease;
}
.floating-order:hover {
  transform: translateY(-2px);
  background: var(--green-700);
}
.floating-order svg {
  flex-shrink: 0;
  color: #c8e07a;
}
.floating-order span { white-space: nowrap; }

/* ==========================================================
   Products
   ========================================================== */
.products {
  padding: 88px 0;
  background: var(--sand);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 28px;
  align-items: start;
  box-shadow: 0 4px 18px rgba(20, 50, 40, .06);
  border: 1px solid var(--line);
}
/* Com um número ímpar de cartões, o último fica centrado em vez de encostado à esquerda */
@media (min-width: 961px) {
  .product-grid > .product-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 14px);
    margin-inline: auto;
  }
}
.product-image {
  background: transparent;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  place-items: center;
  min-height: 220px;
}
.product-image img {
  max-height: 200px;
  width: auto;
}

.product-info h3 {
  font-weight: 600;
  font-size: 22px;
  margin: 4px 0 14px;
  color: var(--green-800);
}
.product-info h3 span {
  font-weight: 500;
  color: var(--ink);
}

.spec {
  margin: 0 0 14px;
  display: grid;
  gap: 6px;
  font-size: 13.5px;
}
.spec div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 8px;
  align-items: baseline;
}
.spec dt { color: var(--muted); margin: 0; }
.spec dd { margin: 0; font-weight: 700; color: var(--ink); }

.product-note {
  margin: 6px 0;
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
}
.product-desc {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 18px;
}

/* ==========================================================
   How to order
   ========================================================== */
.how {
  padding: 96px 0 96px;
  background: #fff;
}
.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}
.how-step { text-align: center; }
.how-icon {
  margin: 0 auto 18px;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
}
.how-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.how-step h3 {
  font-size: 20px;
  font-weight: 600;
  color: var(--green-900);
  margin: 0 0 10px;
}
.how-step p {
  color: var(--muted);
  font-style: italic;
  font-size: 14.5px;
  font-weight: 500;
  max-width: 280px;
  margin: 0 auto;
}

/* ==========================================================
   Form
   ========================================================== */
.form-section {
  padding: 72px 0 96px;
  background: var(--sand);
  min-height: calc(100vh - 104px);
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 64px;
  align-items: start;
}
.form-intro p { color: var(--muted); margin-bottom: 24px; }
.form-intro .legal-back { margin-bottom: 20px; }

.form-perks {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.form-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--green-800);
  font-weight: 600;
}
.form-perks svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: #fff;
  background: var(--green-700);
  border-radius: 50%;
  padding: 3px;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 18px;
  background: #fff;
  padding: 28px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.order-form .field { display: flex; flex-direction: column; gap: 6px; }
.order-form .field.full { grid-column: 1 / -1; }
.order-form label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.order-form input,
.order-form select,
.order-form textarea {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink);
  outline: none;
  min-height: 44px;
  transition: border-color .15s ease, background .15s ease;
}
.order-form textarea { min-height: 120px; }
.order-form input:focus,
.order-form select:focus,
.order-form textarea:focus {
  border-color: var(--green-500);
  background: #fff;
}
.form-feedback {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--green-700);
  min-height: 18px;
}

.field.checkbox { margin-top: 4px; }
.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
  line-height: 1.45;
  text-align: left;
}
.check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--green-700);
  cursor: pointer;
  flex-shrink: 0;
}
.check span { flex: 1; }
.form-hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 12px;
}
.check a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.check a:hover { color: var(--green-800); }

/* ==========================================================
   Banner CLUBIS
   ========================================================== */
/* Faixa full-bleed. O fundo creme iguala a cor da própria imagem
   (#f4ede5), por isso em ecrãs > 1920px as margens não fazem emenda.
   O texto encosta à esquerda, sobre o espaço creme livre da imagem. */
.clubis {
  background: #f4ede5;
}
.clubis-inner {
  position: relative;
  display: block;
  max-width: 1920px;
  margin: 0 auto;
  overflow: hidden;
  text-decoration: none;
}
.clubis-inner img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .55s cubic-bezier(.2,.8,.2,1);
}
.clubis-inner:hover img { transform: scale(1.02); }
.clubis-copy {
  position: absolute;
  left: max(24px, 7%);
  top: 50%;
  transform: translateY(-50%);
  max-width: 42%;
}
.clubis-eyebrow {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-700);
  margin: 0 0 12px;
}
.clubis-copy h2 {
  color: var(--green-800);
  font-size: clamp(20px, 2.6vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 24px;
  max-width: 15ch;
}
.clubis-btn {
  box-shadow: 0 10px 24px rgba(30, 77, 58, .22);
}
.clubis-inner:hover .clubis-btn {
  background: var(--green-700);
  transform: translateY(-1px);
}

/* ==========================================================
   Assistência técnica
   ========================================================== */
.service {
  padding: 96px 0;
  background: #f7faf3;
}
/* Texto e slider lado a lado, como um só bloco. O slider preenche a altura
   da coluna de texto (align stretch) para ficarem visualmente unidos. */
.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: stretch;
}
.service-copy { align-self: center; }
.service-lede { color: var(--muted); margin: 14px 0 26px; max-width: 46ch; }

.service-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 13px;
}
.service-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.5;
}
.service-list svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--green-700);
}

.service-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}
.service-actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.service-actions .btn-primary {
  flex-direction: column;
  gap: 1px;
  line-height: 1.25;
}
.service-btn-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .82;
}
.service-btn-num {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: .3px;
}

/* Slider da assistência: cartão ao lado do texto que alterna entre a
   carrinha da marca e o equipamento que instalamos/assistimos. Os slides
   fazem crossfade e preenchem a altura da coluna de texto. */
.service-media { display: flex; }
.service-slider {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 440px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #0b2419;
}
.slider-viewport { position: absolute; inset: 0; }
.slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .7s ease;
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.slider-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 2;
}
.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, .5);
  transition: background .2s ease, width .2s ease;
}
.dot:hover { background: rgba(255, 255, 255, .8); }
.dot.is-active { background: #fff; width: 26px; border-radius: 5px; }
.dot:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ==========================================================
   Contact
   ========================================================== */
.contact { padding: 96px 0; background: #fff; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.contact-visual img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
  max-height: 520px;
}
.contact-copy > p { color: var(--muted); margin: 14px 0 24px; }

.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.contact-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
}
.contact-list a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ci {
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: #eef6ef;
  color: var(--green-700);
}

/* ==========================================================
   Social Proof
   ========================================================== */
.proof {
  padding: 88px 0 96px;
  background: #f7faf3;
  border-top: 1px solid var(--line);
}
.proof-stats {
  display: grid;
  grid-template-columns: 1.1fr 2fr;
  gap: 24px;
  margin-bottom: 56px;
}

/* Hero stat */
.stat-hero {
  background: linear-gradient(135deg, var(--green-800) 0%, var(--green-900) 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 12px 32px rgba(20, 50, 40, .15);
  position: relative;
  overflow: hidden;
}
.stat-hero::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(200, 224, 122, .18), transparent);
}
.stat-hero strong {
  font-size: clamp(48px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: .95;
  color: #fff;
  white-space: nowrap;
}
.stat-hero span {
  font-size: 15px;
  color: rgba(255, 255, 255, .8);
  font-weight: 500;
  max-width: 240px;
}

/* Secondary stats row */
.proof-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.stat-card { cursor: pointer; text-decoration: none; }
a.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 50, 40, .1);
  border-color: rgba(42, 106, 77, .25);
}
.stat-card strong {
  display: block;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--green-800);
  letter-spacing: -.02em;
  line-height: 1;
  white-space: nowrap;
}
.stat-card strong .num { display: inline; }
.stat-card strong small {
  font-size: .55em;
  color: var(--muted);
  font-weight: 600;
}
.stat-card span {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 500;
}

.rating-line {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

/* SVG stars */
.stars {
  display: inline-flex;
  gap: 2px;
  color: #f5b93a;
}
.stars svg {
  width: 16px;
  height: 16px;
  display: block;
}
.testimonial .stars svg { width: 17px; height: 17px; }

/* Divider */
.proof-divider {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 36px;
}
.proof-divider::before,
.proof-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.proof-divider span {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  white-space: nowrap;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 4px 18px rgba(20, 50, 40, .04);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.testimonial p {
  margin: 0;
  color: var(--ink);
  font-size: 14.5px;
  line-height: 1.6;
  flex: 1;
}
.t-author {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 0;
  padding-top: 10px;
  margin-top: 4px;
  border-top: 1px solid var(--line);
}
.t-author strong {
  font-size: 14px;
  color: var(--green-900);
  font-weight: 700;
}
.t-author span {
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  position: relative;
  background: #1e4d3a;
  color: #cadccd;
  padding: 0;
  margin-top: 0;
}
.footer-wave {
  display: block;
  width: 100%;
  height: 80px;
  background: #f7faf3;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr .9fr 1fr 1.4fr;
  gap: 44px;
  padding: 64px 24px 48px;
}

/* Brand column */
.footer-logo {
  width: 190px;
  height: auto;
  margin-bottom: 14px;
  filter: brightness(0) invert(1);
}
.footer-tagline {
  font-size: 13px;
  color: #9db2a5;
  line-height: 1.5;
  margin: 0 0 22px;
  max-width: 260px;
  font-style: italic;
}
/* Links columns */
.footer-col h4 {
  color: #fff;
  margin: 0 0 18px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer-links a {
  color: #b8c9bd;
  font-size: 13.5px;
  transition: color .15s ease;
}
.footer-links a:hover {
  color: #fff;
}

/* Contacts column */
.footer-contact {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.footer-contact a {
  color: #b8c9bd;
  font-size: 13.5px;
  transition: color .15s ease;
  white-space: nowrap;
}
.footer-contact a:hover { color: #fff; }
.footer-emergency-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: fit-content; /* os dois cartões alinham pela largura do mais largo */
  gap: 10px;
}
.footer-emergency {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-emergency:hover {
  background: rgba(200,224,122,.12);
  border-color: #c8e07a;
  transform: translateY(-2px);
}
.footer-emergency-label {
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9db2a5;
}
.footer-emergency-num {
  font-size: 18px;
  font-weight: 700;
  color: #c8e07a;
  letter-spacing: .3px;
}

/* Bottom strip */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 0;
  font-size: 12.5px;
  color: #9db2a5;
}
.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.footer-legal {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-legal a {
  color: #b8c9bd;
  transition: color .15s ease;
}
.footer-legal a:hover { color: #fff; }
.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  text-align: right;
}
.footer-copy {
  margin: 0;
  color: #8ca294;
}
.footer-credit-bar {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 10px 0;
  text-align: center;
  font-size: 11.5px;
  letter-spacing: .2px;
  color: #8ca294;
}
.footer-credit-bar a {
  color: #c8e07a;
  font-weight: 600;
  text-decoration: none;
}
.footer-credit-bar a:hover { text-decoration: underline; }

@media (max-width: 720px) {
  .footer-meta { align-items: flex-start; text-align: left; }
}

/* ==========================================================
   Legal pages
   ========================================================== */
.legal {
  padding: 72px 0 96px;
  background: #fff;
}
.legal-container {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-700);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 24px;
  transition: gap .15s ease;
}
.legal-back:hover { gap: 10px; }
.legal h1 {
  font-size: clamp(30px, 3.4vw, 44px);
  font-weight: 700;
  color: var(--green-900);
  letter-spacing: -.015em;
  margin: 0 0 12px;
}
.legal .updated {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 36px;
}
.legal h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--green-800);
  margin: 36px 0 10px;
}
.legal h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--green-900);
  margin: 24px 0 8px;
}
.legal p, .legal li {
  font-size: 15px;
  line-height: 1.7;
  color: #2a2a2a;
}
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal a:hover { color: var(--green-800); }
.legal hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 40px 0;
}

/* ==========================================================
   FAQ page
   ========================================================== */
.faq-title {
  color: var(--green-700);
}
.faq-lead {
  font-size: 16px;
  color: var(--muted);
  margin: 0 0 36px;
  max-width: 680px;
}
.faq-lead a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
}
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.faq-item[open] {
  border-color: var(--green-300);
  box-shadow: 0 6px 22px rgba(20, 50, 40, .06);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-weight: 600;
  color: var(--ink);
  transition: background .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { background: #fafbf7; }
.faq-q {
  font-size: 16.5px;
  line-height: 1.45;
  flex: 1;
}
.faq-icon {
  position: relative;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 2px;
  background: var(--green-700);
  border-radius: 2px;
  transform: translate(-50%, -50%);
  transition: transform .25s ease, opacity .25s ease;
}
.faq-item[open] .faq-icon::after { opacity: 0; transform: translate(-50%, -50%) rotate(90deg); }
.faq-icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-a {
  padding: 0 22px 22px;
  border-top: 1px solid var(--line);
  animation: faqReveal .3s ease;
}
.faq-a p {
  margin: 16px 0 0;
  color: #2a2a2a;
  font-size: 15.5px;
  line-height: 1.7;
}
.faq-a a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 3px;
}
@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.faq-cta {
  margin-top: 56px;
  padding: 36px;
  background: #f7faf3;
  border: 1px solid var(--line);
  border-radius: 18px;
  text-align: center;
}
.faq-cta h2 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--green-800);
}
.faq-cta p {
  margin: 0 0 20px;
  color: var(--muted);
}
.faq-cta .btn { display: inline-flex; }

/* Button inside .legal context: cancel the global legal link underline/color */
.legal a.btn,
.legal .btn {
  color: #fff;
  text-decoration: none;
}
.legal a.btn:hover { color: #fff; }

/* When the last main section is white (.legal pages), the footer wave should
   blend into white rather than the proof-section cream. */
main.legal + .site-footer .footer-wave,
.about-cta + .site-footer .footer-wave,
.about-values + .site-footer .footer-wave,
.form-section + .site-footer .footer-wave,
.map-section + .site-footer .footer-wave,
.map-info + .site-footer .footer-wave,
.contact + .site-footer .footer-wave { background: #fff; }

/* ==========================================================
   Delivery zones / map page
   ========================================================== */
.map-hero {
  padding: 88px 0 32px;
  background: #fff;
  text-align: left;
}
.map-hero .container { max-width: 900px; }
.map-hero h1 {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  color: var(--green-900);
  margin: 6px 0 14px;
  letter-spacing: -.3px;
  line-height: 1.2;
}
.map-hero-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 640px;
  margin: 0;
}

.map-section {
  padding: 40px 0 96px;
  background: #fff;
}
.map-section > .container {
  max-width: 1440px;
}

.map-wrap {
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
#deliveryMap {
  /* A zona servida é quase quadrada (1,15:1). Numa moldura panorâmica o
     zoom fica limitado pela ALTURA e sobra largura vazia dos dois lados,
     com os concelhos encolhidos ao centro. Por isso a moldura acompanha a
     forma do conteúdo: fixamos a altura (travada pela janela, senão o botão
     "Todos os concelhos" sairia do ecrã) e a largura sai daí. */
  height: clamp(620px, calc(100vh - 120px), 820px);
  aspect-ratio: 3 / 2;
  width: auto;
  max-width: 100%;
  background: #f4f7f2;
}
.map-error {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px;
  text-align: center;
}

/* Hide all tiles/attribution chrome since we don't use tiles */
.leaflet-control-attribution {
  background: rgba(255, 255, 255, .85);
  font-size: 10.5px;
  color: var(--muted);
}
.leaflet-container {
  background: #f4f7f2;
  font-family: inherit;
  outline: none;
}

/* Polygon (concelho) smooth transitions */
.leaflet-interactive {
  transition: fill-opacity .2s ease, stroke-width .2s ease;
  cursor: pointer;
}
/* O contorno de foco do browser desenha um retângulo à volta do SVG inteiro,
   o que fica péssimo sobre o mapa — o hover/levantar já dá o feedback. */
.leaflet-interactive:focus { outline: none; }

/* Tooltip on polygon */
.leaflet-tooltip.zone-tooltip {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 13px;
  padding: 8px 12px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .12);
}
.leaflet-tooltip.zone-tooltip.active { border-color: var(--green-300); }
.zone-tooltip .tt-active {
  display: block;
  margin-top: 2px;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 600;
}
.zone-tooltip .tt-off {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}
.leaflet-tooltip.zone-tooltip::before { border-top-color: var(--line); }
.leaflet-tooltip.zone-tooltip.active::before { border-top-color: var(--green-300); }

/* Legend */
.map-legend {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 12.5px;
  line-height: 1.7;
  box-shadow: 0 4px 14px rgba(20, 50, 40, .08);
  color: var(--ink);
}
.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}
.legend-swatch.active {
  background: #2a6a4d;
  border: 1.5px solid #0f2d20;
}
.legend-swatch.inactive {
  background: #fff;
  border: 1px solid #c8d5ce;
}
.legend-hint {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  white-space: nowrap;
}
/* Em detalhe de concelho a dica deixa de fazer sentido */
#deliveryMap.is-drilled .legend-hint { display: none; }

/* Botão de voltar à vista geral (só visível em detalhe de concelho) */
.map-back {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px 0 0 10px;
}
.map-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--green-800);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(20, 50, 40, .08);
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.map-back-btn:hover {
  background: var(--green-700);
  border-color: var(--green-700);
  color: #fff;
  transform: translateY(-1px);
}
.map-back-current {
  padding: 8px 13px;
  border-radius: 9px;
  background: var(--green-700);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(20, 50, 40, .12);
}

/* Delivery pins */
/* Freguesias — efeito de levantar 3D no hover */
.freg-tile {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .16s ease, filter .16s ease;
}
.freg-tile.freg-raised {
  transform: translateY(-7px);
  filter: drop-shadow(0 9px 8px rgba(11, 36, 25, .45));
}

/* Zone popup */
.leaflet-popup.zone-popup .leaflet-popup-content-wrapper {
  background: #fff;
  border: 1px solid var(--green-300);
  border-radius: 10px;
  box-shadow: 0 10px 28px rgba(15, 45, 32, .18);
  padding: 2px;
}
.leaflet-popup.zone-popup .leaflet-popup-content {
  margin: 10px 14px;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--ink);
}
.leaflet-popup.zone-popup .leaflet-popup-content strong {
  color: var(--green-700);
}
.freg-pop { display: flex; flex-direction: column; gap: 2px; min-width: 152px; }
.freg-pop strong { font-size: 15px; }
.freg-pop-sub { color: var(--muted); font-size: 12.5px; }
.freg-pop-calls {
  margin-top: 9px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.freg-pop-call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--green-700);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
}
.freg-pop-call:hover { background: var(--green-800); transform: translateY(-1px); }
.freg-pop-call svg { flex-shrink: 0; }
.freg-pop-call.ghost {
  background: #fff;
  color: var(--green-700) !important;
  border: 1px solid var(--green-300);
}
.freg-pop-call.ghost:hover { background: #f2f8f4; }
.leaflet-popup.zone-popup .leaflet-popup-tip {
  background: #fff;
  border: 1px solid var(--green-300);
  border-top: none;
  border-left: none;
}

/* Map stats */
.map-stats {
  padding: 56px 0;
  background: #f7faf3;
  border-top: 1px solid var(--line);
}
.map-stats-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  text-align: center;
}
.map-stats-grid li {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.map-stats-grid strong {
  font-size: clamp(28px, 3vw, 36px);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
  display: inline;
}
.map-stats-grid .unit {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--green-700);
  margin-left: 2px;
  line-height: 1;
}
.map-stats-grid span:not(.unit) {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.45;
}

/* Map info */
.map-info {
  padding: 88px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.map-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}
.map-info-grid h2 {
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--green-800);
  font-weight: 700;
  margin: 6px 0 14px;
  line-height: 1.3;
}
.map-info-grid p {
  color: #2a2a2a;
  line-height: 1.75;
  font-size: 15.5px;
  margin: 0;
}

@media (max-width: 860px) {
  .map-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; }
  .map-info-grid { grid-template-columns: 1fr; gap: 40px; }
  .map-info { padding: 72px 0; }
  .map-legend { font-size: 12px; padding: 8px 12px; }
}

@media (max-width: 860px) {
  #deliveryMap { height: 640px; }
}

/* ==========================================================
   Cookie consent banner
   ========================================================== */
.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 16px;
  right: 16px;
  max-width: 960px;
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 18px 44px rgba(20, 50, 40, .18), 0 2px 8px rgba(20, 50, 40, .06);
  border: 1px solid var(--line);
  z-index: 1000;
  animation: cookieUp .4s cubic-bezier(.2, .8, .2, 1);
}
.cookie-banner.hide {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.cookie-banner-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 18px 22px;
  flex-wrap: wrap;
}
.cookie-banner-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: #f2f7ef;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.cookie-banner-text {
  flex: 1;
  min-width: 240px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  line-height: 1.55;
  color: #2a2a2a;
}
.cookie-banner-text strong {
  color: var(--green-800);
  font-size: 14.5px;
}
.cookie-banner-text a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

@keyframes cookieUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 640px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; }
  .cookie-banner-inner { padding: 16px; gap: 14px; }
  .cookie-banner-icon { display: none; }
  .cookie-banner-actions { width: 100%; }
  .cookie-banner-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .cookie-banner { animation: none; }
  .cookie-banner.hide { transition: none; }
}

/* ==========================================================
   Sobre (About) page
   ========================================================== */
.about-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  color: #fff;
  margin-top: 0;
  overflow: hidden;
  isolation: isolate;
}
.about-hero-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.about-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.about-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(20, 50, 40, .78) 0%, rgba(20, 50, 40, .55) 60%, rgba(20, 50, 40, .4) 100%);
}
.about-hero-inner {
  padding: 110px 24px 90px;
  max-width: 860px;
}
.about-hero h1 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 18px;
  letter-spacing: -.3px;
}
.about-hero p {
  font-size: 15px;
  line-height: 1.65;
  color: rgba(255,255,255,.85);
  max-width: 640px;
  margin: 0;
}

.about-block {
  padding: 96px 0;
  background: #fff;
}
.about-block.alt { background: #f7faf3; }

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-col .about-eyebrow {
  font-style: italic;
  font-weight: 600;
  color: var(--green-700);
  font-size: 17px;
  margin: 0 0 18px;
}
.about-col .about-lede {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
  margin: 0;
}
.about-col p {
  font-size: 16px;
  line-height: 1.75;
  color: #2a2a2a;
  margin: 0 0 14px;
}
.about-col-image {
  padding-top: 20px;
}
.about-col-image img {
  width: 100%;
  height: 100%;
  max-height: 380px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.about-values {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}
.value-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 28px 24px;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(20, 50, 40, .08);
  border-color: var(--green-300);
}
.value-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #eaf3e9, #d9ebd9);
  color: var(--green-800);
  margin-bottom: 16px;
}
.value-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-800);
}
.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Mini stats under the lede */
.about-mini-stats {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.about-mini-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.about-mini-stats strong {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 700;
  color: var(--green-700);
  line-height: 1;
}
.about-mini-stats span {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}

/* Timeline */
.about-timeline {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.timeline-lede {
  color: var(--muted);
  font-size: 15.5px;
  text-align: center;
  max-width: 620px;
  margin: 0 auto 56px;
}
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(to right, var(--green-300), var(--green-700), var(--green-300));
  opacity: .6;
  z-index: 0;
}
.timeline-item {
  position: relative;
  padding-top: 32px;
  z-index: 1;
}
.timeline-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--green-700);
  box-shadow: 0 0 0 4px rgba(42, 106, 77, .08);
}
.timeline-content { text-align: center; padding: 0 6px; }
.timeline-year {
  display: inline-block;
  font-weight: 700;
  color: var(--green-700);
  font-size: 15px;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.timeline-content h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  color: var(--green-800);
}
.timeline-content p {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

/* People section */
.about-people {
  padding: 96px 0;
  background: #fff;
  border-top: 1px solid var(--line);
}
.about-people .about-grid { align-items: center; }
.about-people-media img {
  width: 100%;
  height: auto;
  max-height: 460px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.people-title {
  font-size: clamp(22px, 2.2vw, 28px);
  font-weight: 700;
  color: var(--green-800);
  line-height: 1.3;
  margin: 8px 0 16px;
}
.people-quote {
  margin: 28px 0 0;
  padding: 22px 24px;
  border-left: 3px solid var(--green-700);
  background: #f7faf3;
  border-radius: 0 12px 12px 0;
}
.people-quote p {
  margin: 0 0 8px;
  font-style: italic;
  color: #2a2a2a;
  line-height: 1.65;
}
.people-quote footer {
  font-size: 13px;
  color: var(--muted);
  font-style: normal;
}

.about-gallery {
  padding: 96px 0;
  background: #f7faf3;
  border-top: 1px solid var(--line);
}
.gallery-lede {
  max-width: 640px;
  margin: 14px auto 0;
  text-align: center;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.gallery-item {
  margin: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: var(--shadow);
  aspect-ratio: 3 / 2;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .5s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item-wide {
  grid-column: 1 / -1;
  aspect-ratio: 21 / 9;
}

/* ==========================================================
   404 / Página não encontrada
   ========================================================== */
.notfound {
  min-height: 62vh;
  display: flex;
  align-items: center;
  text-align: center;
  padding: 80px 0;
  background: #f7faf3;
}
.notfound-inner { max-width: 560px; }
.notfound-code {
  font-size: clamp(72px, 14vw, 132px);
  font-weight: 700;
  line-height: 1;
  margin: 0;
  color: var(--green-800);
  letter-spacing: -2px;
}
.notfound-title {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 8px 0 12px;
  color: var(--green-900);
}
.notfound-text {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 auto 28px;
  max-width: 440px;
}
.notfound-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.notfound-help {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
}
.notfound-help a {
  color: var(--green-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { grid-template-columns: repeat(2, 1fr); gap: 40px; }
  .timeline::before { display: none; }
}
@media (max-width: 640px) {
  .about-hero-inner { padding: 88px 24px 72px; }
  .about-block { padding: 72px 0; }
  .about-values,
  .about-gallery,
  .about-timeline,
  .about-people { padding: 72px 0; }
  .values-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item-wide { aspect-ratio: 3 / 2; }
  .timeline { grid-template-columns: 1fr; gap: 32px; }
  .about-mini-stats { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .about-mini-stats strong { font-size: 22px; }
  .about-mini-stats span { font-size: 12px; }
  .about-col-image img { max-height: 280px; }
}

@media (max-width: 720px) {
  .faq-item summary { padding: 16px 18px; gap: 14px; }
  .faq-q { font-size: 15.5px; }
  .faq-a { padding: 0 18px 18px; }
  .faq-cta { padding: 28px 22px; }
}

/* ==========================================================
   Animations
   ========================================================== */

/* Respect user preference for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-left, .reveal-right { opacity: 1 !important; transform: none !important; }
  .hero-copy > *, .hero-visual { animation: none !important; opacity: 1 !important; }
}

/* Hero on-load fade-up */
.hero-copy > *,
.hero-visual {
  opacity: 0;
  transform: translateY(24px);
  animation: heroIn .7s cubic-bezier(.2,.8,.2,1) forwards;
}
.hero-copy h1 { animation-delay: .05s; }
.hero-copy > p { animation-delay: .15s; }
.hero-copy > a.btn { animation-delay: .25s; }
.hero-copy .hero-badges { animation-delay: .35s; }
.hero-visual { animation-delay: .2s; }

@keyframes heroIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Generic scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-left.visible { opacity: 1; transform: translateX(0); }

.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1);
}
.reveal-right.visible { opacity: 1; transform: translateX(0); }

/* Micro-interactions */
.product-card {
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 50, 40, .1);
  border-color: rgba(42, 106, 77, .2);
}
.product-card .product-image img {
  transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.product-card:hover .product-image img {
  transform: scale(1.06) rotate(-2deg);
}

.how-step {
  transition: transform .25s ease;
}
.how-step:hover { transform: translateY(-3px); }
.how-step .how-icon img {
  transition: transform .4s cubic-bezier(.2,.8,.2,1);
}
.how-step:hover .how-icon img {
  transform: scale(1.08);
}

.testimonial {
  transition: transform .25s ease, box-shadow .25s ease;
}
.testimonial:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(20, 50, 40, .08);
}

/* Touch tap feedback (no hover available) */
@media (hover: none) {
  .product-card {
    transition: transform .18s ease, box-shadow .18s ease;
  }
  .product-card:active {
    transform: scale(.985);
    box-shadow: 0 10px 24px rgba(20, 50, 40, .1);
  }
  .how-step:active { transform: scale(.985); }
  .how-step:active .how-icon img { transform: scale(1.08); }
  .testimonial:active {
    transform: scale(.985);
    box-shadow: 0 10px 22px rgba(20, 50, 40, .08);
  }
  .badge-link:active { transform: translateY(-1px); }
  .floating-order:active { transform: translateY(0) scale(.97); }
}

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1150px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
  }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .product-grid,
  .how-grid,
  .form-grid,
  .contact-grid,
  .service-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .service { padding: 72px 0; }
  .service-grid { gap: 32px; }
  .service-actions .btn { width: 100%; }
  /* Empilhado no telemóvel: o slider ganha altura própria (rácio 4:3) */
  .service-slider { min-height: 0; aspect-ratio: 4 / 3; }
  /* Banner CLUBIS: em telemóvel a imagem panorâmica fica baixa demais para
     sobrepor texto — empilha-se o texto por cima e a imagem por baixo. */
  .clubis-inner { display: flex; flex-direction: column; }
  .clubis-copy {
    position: static;
    transform: none;
    max-width: none;
    order: -1;
    padding: 30px 22px 22px;
    text-align: center;
  }
  .clubis-copy h2 { max-width: 20ch; margin-inline: auto; font-size: 22px; }
  .clubis-btn { width: 100%; }
  .hero-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  .hero-copy { display: contents; }
  .hero-visual { order: 1; min-height: 340px; animation-delay: .25s; }
  .hero-badges { order: 2; margin-top: 8px; justify-content: center; }
  .hero-copy .hero-badges { animation-delay: .35s; }
  .hero-copy > .btn-primary { order: 3; align-self: flex-start; margin-top: 8px; animation-delay: .45s; }
  .hero-image { max-height: 360px; }
  .hero::before { background-size: 60px 60px; opacity: .55; }
  .product-card {
    grid-template-columns: 140px 1fr;
    padding: 20px;
  }
  .footer-col { text-align: left; }

  .proof-stats { grid-template-columns: 1fr; gap: 16px; margin-bottom: 40px; }
  .proof-stats-row { grid-template-columns: repeat(3, 1fr); }
  .stat-hero { padding: 32px 24px; }
  .testimonials { grid-template-columns: 1fr; }
  .footer-grid { gap: 40px; padding: 48px 24px 40px; }

  /* Evita sobreposição com o banner de cookies (ambos fixos no fundo) */
  body.has-cookie-banner .floating-order { display: none; }
}

@media (max-width: 720px) {
  .header-inner { min-height: 78px; }
  .brand-logo { height: 56px; }

  .main-nav {
    position: absolute;
    top: 78px; left: 0; right: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .25s ease;
    z-index: 40;
  }
  .main-nav a {
    width: 100%;
    padding: 16px 24px;
    border-bottom: 1px solid var(--line);
  }
  .main-nav.open { max-height: 420px; }
  .main-nav a.nav-order { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 40px 0 60px; }
  .hero-copy > p { font-size: 15px; }
  .hero-badges { gap: 20px; }
  .badge-img { height: 96px; }

  .product-card { grid-template-columns: 1fr; }
  .product-image { min-height: 180px; }

  .order-form { grid-template-columns: 1fr; }
  .order-form input,
  .order-form select,
  .order-form textarea {
    font-size: 16px;
    padding: 14px 14px;
  }

  #deliveryMap { height: 600px; }
  .map-legend { font-size: 11.5px; padding: 7px 10px; line-height: 1.5; }

  .footer-logo { width: 150px; }

  .floating-order { right: 10px; bottom: 10px; padding: 10px 16px 10px 12px; font-size: 13px; }

  .proof { padding: 64px 0 72px; }
  .proof-stats-row { grid-template-columns: 1fr; gap: 12px; }
  .stat-card { padding: 20px 16px; }
  .proof-divider span { font-size: 11.5px; letter-spacing: .08em; }
  .testimonial { padding: 22px; }

  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }
  .footer-legal { gap: 12px 20px; }
}

@media (max-width: 480px) {
  .main-nav.open { max-height: 340px; }
  .main-nav a { padding: 14px 20px; font-size: 14.5px; }

  .hero-badges { gap: 12px; }
  .badge-img { height: 80px; }

  .spec div { grid-template-columns: 88px 1fr; gap: 6px; }
  .spec { font-size: 12.5px; }

  .cookie-banner-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
  .cookie-banner-text { min-width: 0; width: 100%; }
  .cookie-banner-actions { width: 100%; flex-direction: row; }
  .cookie-banner-actions .btn { flex: 1; padding: 11px 14px; font-size: 13.5px; }

  .floating-order { padding: 0; width: 48px; height: 48px; border-radius: 50%; justify-content: center; }
  .floating-order span { display: none; }
  .floating-order svg { margin: 0; }

  .faq-item summary { padding: 14px 16px; gap: 12px; }
  .faq-q { font-size: 14.5px; }
  .faq-icon { width: 18px; height: 18px; }
  .faq-a { padding: 0 16px 16px; font-size: 14px; }
  .faq-cta { padding: 22px 18px; }

  #deliveryMap { height: 560px; }
}
