/* ==========================================================================
   Algarve Local Growth — folha de estilos principal
   Reutilizável em todas as páginas do projeto.
   1.  Tokens de design
   2.  Reset e bases
   3.  Utilitários e layout
   4.  Botões e ícones
   5.  Cabeçalho e navegação
   6.  Hero
   7.  Secções de conteúdo
   8.  Formulário
   9.  Rodapé
   10. Consentimento de cookies
   11. Animações
   12. Responsivo
   ========================================================================== */

/* ==========================================================================
   1. TOKENS DE DESIGN
   ========================================================================== */
:root {
  /* Cores */
  --c-petrol:        #18343D;
  --c-petrol-deep:   #122930;
  --c-petrol-soft:   #27474F;
  --c-coral:         #E77B5B;
  --c-coral-dark:    #D5643F;
  --c-coral-soft:    #F6E2D9;
  --c-ivory:         #F3F1EB;
  --c-white:         #FFFFFF;
  --c-sage:          #A8B8AD;
  --c-sage-soft:     #E4EAE4;
  --c-ink:           #252C2E;
  --c-slate:         #687477;
  --c-line:          #DDDCD5;

  /* Navegação */
  --c-nav-bg:        #18343D;
  --c-nav-link:      #D4DEDC;
  --c-nav-active:    #FFFFFF;
  --c-nav-hover:     #E77B5B;

  /* Tipografia */
  --f-display: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-body:    "DM Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Escala tipográfica fluida */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: 1.0625rem;
  --t-md:   clamp(1.125rem, 0.35vw + 1.05rem, 1.25rem);
  --t-lg:   clamp(1.3rem,  0.6vw + 1.15rem, 1.55rem);
  --t-xl:   clamp(1.75rem, 1.4vw + 1.4rem,  2.4rem);
  --t-2xl:  clamp(2.1rem,  2.4vw + 1.5rem,  3.35rem);
  --t-3xl:  clamp(2.4rem,  3.6vw + 1.4rem,  4.25rem);

  /* Escala de espaçamento (base 8) */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Raios — escala única em todo o site */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-pill: 999px;

  /* Sombras — discretas e pouco frequentes */
  --sh-sm: 0 1px 2px rgba(24, 52, 61, .06), 0 4px 12px rgba(24, 52, 61, .05);
  --sh-md: 0 2px 6px rgba(24, 52, 61, .06), 0 18px 40px rgba(24, 52, 61, .10);
  --sh-lg: 0 4px 10px rgba(24, 52, 61, .07), 0 30px 70px rgba(24, 52, 61, .14);

  /* Medidas */
  --shell: 1240px;
  --header-h: 86px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ==========================================================================
   2. RESET E BASES
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s-5));
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--c-ivory);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--t-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: var(--f-display);
  color: var(--c-petrol);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

h1 { font-size: var(--t-3xl); font-weight: 800; }
h2 { font-size: var(--t-2xl); font-weight: 700; }
h3 { font-size: var(--t-lg);  font-weight: 700; }

p { margin: 0 0 var(--s-4); }
p:last-child { margin-bottom: 0; }

a { color: var(--c-petrol); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--c-coral-dark); }

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

ul, ol { margin: 0; padding: 0; list-style: none; }

[hidden] { display: none !important; }

button, input, textarea, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--c-coral);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}

::selection { background: var(--c-coral); color: #fff; }

/* ==========================================================================
   3. UTILITÁRIOS E LAYOUT
   ========================================================================== */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--s-5);
}

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; top: -200px; left: var(--s-4); z-index: 200;
  background: var(--c-coral); color: var(--c-petrol);
  font-weight: 600; padding: var(--s-3) var(--s-5);
  border-radius: var(--r-sm); text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: var(--s-4); }

.section { position: relative; padding-block: clamp(4rem, 7vw, 7.5rem); }
.section--white { background: var(--c-white); }
.section--ivory { background: var(--c-ivory); }

.section-title { max-width: 20ch; }
.section-title--center { max-width: 24ch; margin-inline: auto; text-align: center; }

.section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: var(--s-5) var(--s-8);
  align-items: end;
  margin-bottom: clamp(2.5rem, 4vw, 4rem);
}
@media (max-width: 860px) {
  .section-head--split { grid-template-columns: 1fr; }
}
.section-head__title { font-size: var(--t-2xl); font-weight: 700; max-width: 18ch; }
.section-head__text { color: var(--c-slate); font-size: var(--t-md); max-width: 46ch; }

/* Elemento decorativo de fundo */
.deco-blob {
  position: absolute;
  top: -8%; right: -12%;
  width: min(620px, 55vw); aspect-ratio: 1;
  background: var(--c-sage-soft);
  border-radius: 48% 52% 40% 60% / 55% 45% 55% 45%;
  opacity: .5;
  pointer-events: none;
}

.link-button {
  background: none; border: 0; padding: 0;
  font-size: inherit; font-weight: 500;
  color: inherit; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .2s var(--ease);
}
.link-button:hover { color: var(--c-coral); }

/* ==========================================================================
   4. BOTÕES E ÍCONES
   ========================================================================== */
.icon { width: 1.15em; height: 1.15em; fill: currentColor; flex: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--s-2);
  padding: 0.85rem 1.55rem;
  border: 2px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--sm { padding: 0.6rem 1.1rem; font-size: var(--t-xs); }
.btn--lg { padding: 1.05rem 2rem; font-size: var(--t-base); }
.btn--block { width: 100%; }

.btn--primary { background: var(--c-coral); color: var(--c-petrol); }
.btn--primary:hover { background: var(--c-coral-dark); color: var(--c-white); box-shadow: var(--sh-sm); }

.btn--secondary { background: var(--c-petrol); color: var(--c-white); }
.btn--secondary:hover { background: var(--c-petrol-soft); color: var(--c-white); }

.btn--sage { background: var(--c-sage); color: var(--c-petrol); }
.btn--sage:hover { background: var(--c-sage-soft); color: var(--c-petrol); }

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

.btn--ghost-light {
  background: transparent; border-color: rgba(255, 255, 255, .55); color: var(--c-white);
}
.btn--ghost-light:hover { background: var(--c-white); border-color: var(--c-white); color: var(--c-petrol); }

/* ==========================================================================
   5. CABEÇALHO E NAVEGAÇÃO
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--c-nav-bg);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.site-header__inner {
  display: flex; align-items: center; gap: var(--s-5);
  min-height: var(--header-h);
}

.brand { display: inline-flex; align-items: center; flex: none; margin-right: auto; }
.brand img { height: 80px; width: auto; }

.nav-toggle { display: none; }

.nav-burger { display: none; }

.site-nav { display: flex; align-items: center; gap: clamp(1.5rem, 2.5vw, 2.75rem); }

.site-nav__list { display: flex; align-items: center; gap: clamp(1.25rem, 2vw, 2.25rem); }

.site-nav__link {
  position: relative;
  display: inline-block;
  padding-block: var(--s-2);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-nav-link);
  text-decoration: none;
  transition: color .22s var(--ease);
}
.site-nav__link::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px;
  background: var(--c-nav-hover);
  border-radius: var(--r-pill);
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s var(--ease);
}
.site-nav__link:hover { color: var(--c-nav-hover); }
.site-nav__link:hover::after { transform: scaleX(1); }
.site-nav__link.is-active { color: var(--c-nav-active); font-weight: 600; }
.site-nav__link.is-active::after { transform: scaleX(1); }

.header-phone {
  display: inline-flex; align-items: center; gap: var(--s-2);
  padding: 0.7rem 1.35rem;
  background: var(--c-coral);
  color: var(--c-petrol);
  border-radius: var(--r-pill);
  font-size: var(--t-sm);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.header-phone:hover {
  background: var(--c-coral-dark); color: var(--c-white); transform: translateY(-2px);
}

/* ==========================================================================
   6. HERO
   ========================================================================== */
.hero {
  position: relative;
  display: flex; align-items: center;
  min-height: clamp(560px, 84vh, 820px);
  background: var(--c-petrol);
  overflow: hidden;
}

.hero__media {
  position: absolute; inset: 0;
  /* Em telemóvel fica apenas o fundo sólido (ver secção 12) */
  background: var(--c-petrol);
}

.hero__inner { position: relative; z-index: 2; width: 100%; padding-block: var(--s-9) var(--s-8); }

.hero__content { width: 100%; max-width: 50%; }

.hero__title { color: var(--c-white); margin-bottom: var(--s-5); }

.hero__lead {
  font-size: var(--t-md);
  font-weight: 500;
  color: var(--c-coral);
  margin-bottom: var(--s-3);
}

.hero__text { color: rgba(255, 255, 255, .86); font-size: var(--t-base); max-width: 54ch; }

.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); margin-top: var(--s-7); }

/* ==========================================================================
   7. SECÇÕES DE CONTEÚDO
   ========================================================================== */

/* --- 7.1 Serviços ------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  align-items: start;
}

.service-card {
  display: flex; flex-direction: column;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
/* Ritmo em zigue-zague: cartões do mesmo tamanho, alturas de arranque diferentes */
.services .service-card:nth-child(even) { margin-top: var(--s-8); }

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--c-coral);
  box-shadow: var(--sh-md);
}

.service-card__media { overflow: hidden; background: var(--c-ivory); }
.service-card__media img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-card:hover .service-card__media img { transform: scale(1.05); }

.service-card__body { padding: var(--s-5) var(--s-5) var(--s-6); }

.service-card__index {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--c-coral);
  margin-bottom: var(--s-2);
}

.service-card__title { font-size: 1.15rem; font-weight: 700; margin-bottom: var(--s-3); }

.service-card__body p { color: var(--c-slate); font-size: var(--t-sm); }

/* --- 7.2 Porquê --------------------------------------------------------- */
.section--why { overflow: hidden; }
.section--why .shell { position: relative; z-index: 1; }

.reasons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-7) var(--s-6);
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.reason { padding-top: var(--s-5); border-top: 2px solid var(--c-line); }
.reason:hover { border-top-color: var(--c-coral); }
.reason { transition: border-color .3s var(--ease); }

.reason__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px;
  margin-bottom: var(--s-4);
  background: var(--c-sage-soft);
  border-radius: var(--r-md);
  transition: background-color .3s var(--ease), transform .3s var(--ease);
}
.reason__icon svg { width: 26px; height: 26px; fill: var(--c-petrol); }
.reason:hover .reason__icon { background: var(--c-coral-soft); transform: translateY(-3px); }

.reason__title { font-size: 1.15rem; margin-bottom: var(--s-3); }
.reason p { color: var(--c-slate); font-size: var(--t-sm); }

/* --- 7.3 CTA ------------------------------------------------------------ */
.cta {
  position: relative;
  background: var(--c-petrol);
  padding-block: clamp(3.5rem, 6vw, 6rem);
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute; left: -6%; bottom: -60%;
  width: min(520px, 60vw); aspect-ratio: 1;
  background: var(--c-petrol-soft);
  border-radius: 50%;
  opacity: .55;
}

.cta__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) auto;
  gap: var(--s-6) var(--s-8);
  align-items: center;
}
@media (max-width: 980px) {
  .cta__inner { grid-template-columns: 1fr; gap: var(--s-6); }
}

.cta__text {
  font-family: var(--f-display);
  font-size: var(--t-xl);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--c-white);
  max-width: 24ch;
  text-wrap: balance;
}

.cta__actions { display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: flex-end; }

/* --- 7.4 Projetos ------------------------------------------------------- */
.work {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s-6);
  align-items: start;
  margin-top: clamp(2.5rem, 4vw, 4rem);
}

.work__item { margin: 0; position: relative; }
.work__item img {
  width: 100%; height: auto; object-fit: cover; object-position: top center;
  border-radius: var(--r-lg);
  border: 1px solid var(--c-line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.work__item:hover img { transform: translateY(-6px); box-shadow: var(--sh-md); }

.work__item figcaption {
  display: flex; flex-direction: column; gap: 2px;
  margin-top: var(--s-4);
}
.work__name { font-family: var(--f-display); font-weight: 700; color: var(--c-petrol); }
.work__meta { font-size: var(--t-xs); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--c-slate); }

.work__item--a { grid-column: 1 / 8; }
.work__item--a img { aspect-ratio: 16 / 10; }

.work__item--b { grid-column: 8 / 13; margin-top: var(--s-9); }
.work__item--b img { aspect-ratio: 4 / 3; }

.work__item--c { grid-column: 3 / 11; margin-top: var(--s-6); }
.work__item--c img { aspect-ratio: 16 / 9; }

/* --- 7.5 FAQ ------------------------------------------------------------ */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: var(--s-8);
  align-items: start;
}

.faq-layout__aside { position: sticky; top: calc(var(--header-h) + var(--s-6)); }
.faq-layout__note { margin-top: var(--s-5); color: var(--c-slate); font-size: var(--t-sm); }

.faq { display: flex; flex-direction: column; gap: var(--s-3); }

.faq__item {
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.faq__item[open] { background: var(--c-white); border-color: var(--c-petrol); box-shadow: var(--sh-sm); }
.faq__item:hover { border-color: var(--c-sage); }

.faq__summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5);
  cursor: pointer;
  list-style: none;
}
.faq__summary::-webkit-details-marker { display: none; }

.faq__question { font-size: 1.08rem; font-weight: 600; margin: 0; }
.faq__item[open] .faq__question { color: var(--c-petrol); }

.faq__sign {
  position: relative; flex: none;
  width: 34px; height: 34px;
  border-radius: var(--r-pill);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.faq__sign::before, .faq__sign::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  background: var(--c-petrol);
  border-radius: var(--r-pill);
  transform: translate(-50%, -50%);
  transition: opacity .3s var(--ease), background-color .3s var(--ease);
}
.faq__sign::before { width: 13px; height: 2px; }
.faq__sign::after  { width: 2px; height: 13px; }

.faq__item[open] .faq__sign { background: var(--c-coral); border-color: var(--c-coral); transform: rotate(90deg); }
.faq__item[open] .faq__sign::after { opacity: 0; }

.faq__answer { padding: 0 var(--s-5) var(--s-5); color: var(--c-slate); font-size: var(--t-sm); max-width: 62ch; }

/* --- 7.6 Contacto ------------------------------------------------------- */
.contact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 4.5rem);
  align-items: start;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
}

.contact__intro { font-size: var(--t-md); color: var(--c-slate); }
.contact__intro a { color: var(--c-petrol); font-weight: 600; }

.contact__list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.contact__list li {
  position: relative;
  padding-left: var(--s-6);
  font-size: var(--t-sm);
  font-weight: 500;
  color: var(--c-ink);
}
.contact__list li::before {
  content: ""; position: absolute; left: 0; top: .6em;
  width: 16px; height: 2px;
  background: var(--c-coral);
  border-radius: var(--r-pill);
}

/* --- 7.7 Ferramentas ---------------------------------------------------- */
.tools { background: var(--c-white); border-top: 1px solid var(--c-line); padding-block: var(--s-7); }

.tools__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-5) var(--s-7);
}

.tools__label {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-slate);
  margin: 0;
}

.tools__list {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: var(--s-5) clamp(1.75rem, 4vw, 3.5rem);
  flex: 1;
}
.tools__list img {
  height: 38px; width: auto;
  opacity: .85;
  transition: opacity .3s var(--ease);
}
.tools__list img:hover { opacity: 1; }

/* ==========================================================================
   8. FORMULÁRIO
   ========================================================================== */
.form {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-md);
  padding: clamp(1.5rem, 3vw, 2.5rem);
}

.form__honey { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form__field { margin-bottom: var(--s-4); }

.form__label {
  display: block;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--c-petrol);
  margin-bottom: var(--s-2);
}

.form__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--c-ivory);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: var(--t-sm);
  transition: border-color .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
}
.form__input:hover { border-color: var(--c-sage); }
.form__input:focus {
  background: var(--c-white);
  border-color: var(--c-petrol);
  box-shadow: 0 0 0 3px rgba(24, 52, 61, .08);
  outline: none;
}
.form__input--area { resize: vertical; min-height: 140px; line-height: 1.6; }

.form__input.is-invalid { border-color: var(--c-coral-dark); background: #FDF4F1; }

.form__error {
  display: block;
  margin-top: var(--s-2);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--c-coral-dark);
}

.form .btn { margin-top: var(--s-2); }

.form__status {
  margin: var(--s-4) 0 0;
  padding: 0;
  font-size: var(--t-sm);
  font-weight: 500;
}
.form__status:empty { display: none; }
.form__status.is-ok    { color: #2F6B4F; }
.form__status.is-error { color: var(--c-coral-dark); }

.form__legal { margin: var(--s-4) 0 0; font-size: var(--t-xs); color: var(--c-slate); line-height: 1.5; }

/* ==========================================================================
   9. RODAPÉ
   ========================================================================== */
.site-footer { background: var(--c-petrol-deep); color: rgba(255, 255, 255, .78); }

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1.3fr;
  gap: var(--s-7) var(--s-8);
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.site-footer__title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--c-white);
  margin-bottom: var(--s-4);
}

.site-footer__contact,
.site-footer__links { display: flex; flex-direction: column; gap: var(--s-3); font-size: var(--t-sm); }

.site-footer a { color: rgba(255, 255, 255, .78); text-decoration: none; transition: color .22s var(--ease); }
.site-footer a:hover { color: var(--c-coral); }

.site-footer__col--brand { order: 0; }
.brand--footer { margin: 0 0 var(--s-4); }
.brand--footer img { height: 54px; }
.site-footer__tagline { font-size: var(--t-sm); max-width: 38ch; color: rgba(255, 255, 255, .65); }

.site-footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: var(--s-3) var(--s-5);
  padding-block: var(--s-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .6);
}
.site-footer__bottom p { margin: 0; }

/* ==========================================================================
   10. CONSENTIMENTO DE COOKIES
   ========================================================================== */
.cc { font-family: var(--f-body); }

/* --- Banner (canto inferior esquerdo) --- */
.cc__banner {
  position: fixed; z-index: 160;
  left: var(--s-5); bottom: var(--s-5);
  width: min(420px, calc(100vw - 2 * var(--s-5)));
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: var(--s-5);
  animation: cc-in .45s var(--ease) both;
}
.cc__banner.is-leaving { animation: cc-out .3s var(--ease) both; }

.cc__title { font-size: 1.1rem; font-weight: 700; margin-bottom: var(--s-2); }
.cc__text { font-size: var(--t-sm); color: var(--c-slate); margin-bottom: var(--s-4); }

.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }

.cc__link {
  background: none; border: 0; padding: var(--s-1) 0;
  font-size: var(--t-xs); font-weight: 600;
  color: var(--c-petrol); cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px;
  transition: color .22s var(--ease);
}
.cc__link:hover { color: var(--c-coral-dark); }

/* --- Painel de preferências --- */
.cc__overlay {
  position: fixed; inset: 0; z-index: 170;
  background: rgba(18, 41, 48, .55);
  animation: cc-fade .3s var(--ease) both;
}
.cc__overlay.is-leaving { animation: cc-fade-out .25s var(--ease) both; }

.cc__panel {
  position: fixed; z-index: 180;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: min(560px, calc(100vw - 2 * var(--s-5)));
  max-height: min(86vh, 760px);
  display: flex; flex-direction: column;
  background: var(--c-white);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: cc-panel-in .4s var(--ease) both;
}
.cc__panel.is-leaving { animation: cc-panel-out .28s var(--ease) both; }

.cc__panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) var(--s-6);
  border-bottom: 1px solid var(--c-line);
}
.cc__panel-head .cc__title { margin: 0; }

.cc__close {
  flex: none;
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--c-ivory); border: 1px solid var(--c-line);
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color .25s var(--ease), border-color .25s var(--ease);
}
.cc__close svg { width: 15px; height: 15px; fill: var(--c-petrol); }
.cc__close:hover { background: var(--c-coral-soft); border-color: var(--c-coral); }

.cc__panel-body { padding: var(--s-5) var(--s-6); overflow-y: auto; }

.cc__cat { padding: var(--s-4) 0; border-top: 1px solid var(--c-line); }
.cc__cat:first-of-type { border-top: 0; }

.cc__cat-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); margin-bottom: var(--s-2); }
.cc__cat-title { font-size: 1rem; font-weight: 700; margin: 0; }
.cc__cat-text { font-size: var(--t-xs); color: var(--c-slate); margin: 0; line-height: 1.6; }

.cc__required {
  font-size: var(--t-xs); font-weight: 600;
  color: var(--c-petrol);
  background: var(--c-sage-soft);
  padding: var(--s-1) var(--s-3);
  border-radius: var(--r-pill);
}

.cc__panel-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--s-3);
  padding: var(--s-5) var(--s-6);
  border-top: 1px solid var(--c-line);
  background: var(--c-ivory);
}

/* --- Interruptores --- */
.switch { position: relative; display: inline-flex; align-items: center; flex: none; cursor: pointer; }
.switch__input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }

.switch__track {
  display: inline-flex; align-items: center;
  width: 52px; height: 30px;
  padding: 3px;
  background: var(--c-line);
  border-radius: var(--r-pill);
  transition: background-color .28s var(--ease);
}
.switch__thumb {
  width: 24px; height: 24px;
  background: var(--c-white);
  border-radius: var(--r-pill);
  box-shadow: var(--sh-sm);
  transition: transform .28s var(--ease);
}
.switch__input:checked + .switch__track { background: var(--c-coral); }
.switch__input:checked + .switch__track .switch__thumb { transform: translateX(22px); }
.switch__input:focus-visible + .switch__track { outline: 3px solid var(--c-coral); outline-offset: 3px; }

@keyframes cc-in       { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cc-out      { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes cc-fade     { from { opacity: 0; } to { opacity: 1; } }
@keyframes cc-fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes cc-panel-in  { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes cc-panel-out { from { opacity: 1; transform: translate(-50%, -50%) scale(1); } to { opacity: 0; transform: translate(-50%, -48%) scale(.97); } }

/* ==========================================================================
   11. ANIMAÇÕES SUBTIS (apenas CSS, degradam sem suporte)
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }
  }
}

@keyframes reveal-up {
  from { opacity: 0; transform: translateY(26px); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ==========================================================================
   12. RESPONSIVO
   ========================================================================== */

/* --- Fotografia do hero apenas acima de telemóvel --- */
@media (min-width: 768px) {
  .hero__media {
    background-image:
      linear-gradient(90deg, rgba(18, 41, 48, .92) 0%, rgba(18, 41, 48, .78) 45%, rgba(18, 41, 48, .35) 100%),
      url("../img/pastelaria-sousa.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* --- Até 1080px --- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services .service-card:nth-child(even) { margin-top: 0; }
  .services .service-card:nth-child(2) { margin-top: var(--s-7); }
  .services .service-card:nth-child(4) { margin-top: var(--s-7); }

  .reasons { grid-template-columns: repeat(2, 1fr); }

  .faq-layout { grid-template-columns: 1fr; gap: var(--s-6); }
  .faq-layout__aside { position: static; }

  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-footer__col--brand { order: 3; grid-column: 1 / -1; }
}

/* --- Tablet e navegação em menu sandwich --- */
@media (max-width: 900px) {
  :root { --header-h: 72px; }

  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px;
    flex: none;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: var(--r-sm);
    cursor: pointer;
    transition: background-color .25s var(--ease);
  }
  .nav-burger:hover { background: rgba(255, 255, 255, .16); }

  .nav-burger__bars,
  .nav-burger__bars::before,
  .nav-burger__bars::after {
    content: "";
    display: block;
    width: 20px; height: 2px;
    background: var(--c-white);
    border-radius: var(--r-pill);
    transition: transform .3s var(--ease), opacity .2s var(--ease);
  }
  .nav-burger__bars { position: relative; }
  .nav-burger__bars::before { position: absolute; top: -6px; }
  .nav-burger__bars::after  { position: absolute; top: 6px; }

  .nav-toggle:checked ~ .nav-burger .nav-burger__bars { background: transparent; }
  .nav-toggle:checked ~ .nav-burger .nav-burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger .nav-burger__bars::after  { transform: translateY(-6px) rotate(-45deg); }

  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch;
    gap: var(--s-4);
    padding: var(--s-5) var(--s-5) var(--s-6);
    background: var(--c-nav-bg);
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    box-shadow: 0 24px 40px rgba(18, 41, 48, .28);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .28s var(--ease), transform .28s var(--ease), visibility .28s;
  }
  .nav-toggle:checked ~ .site-nav { opacity: 1; visibility: visible; transform: none; }

  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__link {
    display: block;
    padding: var(--s-4) 0;
    font-size: var(--t-md);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
  }
  .site-nav__link::after { display: none; }

  .header-phone { justify-content: center; margin-top: var(--s-2); padding-block: 0.9rem; }

  .hero__content { max-width: 70%; }

  .work { gap: var(--s-5); }
  .work__item--a { grid-column: 1 / 13; }
  .work__item--b { grid-column: 1 / 7;  margin-top: 0; }
  .work__item--c { grid-column: 7 / 13; margin-top: 0; }
  .work__item--b img, .work__item--c img { aspect-ratio: 4 / 3; }

  .contact { grid-template-columns: 1fr; }
}

/* --- Telemóvel --- */
@media (max-width: 640px) {
  .shell { padding-inline: var(--s-4); }

  .brand img { height: 42px; }

  .hero { min-height: auto; background: var(--c-petrol); }
  .hero__inner { padding-block: var(--s-8) var(--s-7); }
  .hero__content { max-width: 100%; }
  .hero__actions { gap: var(--s-3); }
  .hero__actions .btn { width: 100%; }

  .section-head--split { gap: var(--s-4); }

  .services { grid-template-columns: 1fr; gap: var(--s-4); }
  .services .service-card:nth-child(n) { margin-top: 0; }

  .reasons { grid-template-columns: 1fr; gap: var(--s-6); }

  .cta__actions .btn { width: 100%; }

  .work { grid-template-columns: 1fr; }
  .work__item--a, .work__item--b, .work__item--c { grid-column: 1 / -1; margin-top: 0; }
  .work__item img { aspect-ratio: 4 / 3; }

  .faq__summary { padding: var(--s-4); }
  .faq__answer { padding: 0 var(--s-4) var(--s-4); }

  .tools__inner { flex-direction: column; align-items: flex-start; gap: var(--s-4); }
  .tools__list { gap: var(--s-3) var(--s-5); }
  .tools__list img { height: 30px; }

  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__col--brand { order: 0; grid-column: auto; }

  .cc__banner {
    left: var(--s-3); right: var(--s-3); bottom: var(--s-3);
    width: auto;
    padding: var(--s-4);
  }
  .cc__actions .btn { flex: 1 1 auto; }
  .cc__panel { width: calc(100vw - 2 * var(--s-3)); max-height: 88vh; }
  .cc__panel-head, .cc__panel-body, .cc__panel-foot { padding-inline: var(--s-4); }
  .cc__panel-foot { justify-content: stretch; }
  .cc__panel-foot .btn { flex: 1 1 auto; }
}
