/* ==========================================================================
   Patinhas Felizes Viseu — Pet Sitting
   Direção: editorial lifestyle · hospitalidade boutique
   Paleta extraída da logo oficial (blush ivory · rosa-argila · tinta quente)
   ========================================================================== */

/* 1. Fontes ---------------------------------------------------------------
   Instrument Serif (títulos) + Manrope (interface e texto), auto-alojadas.
   Apenas os estilos usados: serif regular + itálico, Manrope 400–500. */

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-var.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
}

/* Apontamentos manuscritos do hero (decorativos): invisíveis até a fonte
   carregar, para nunca aparecerem na letra cursiva de sistema. */
@font-face {
  font-family: "Sacramento";
  src: url("../fonts/sacramento.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* Fallbacks com métricas ajustadas: evitam saltos de layout ao trocar de fonte */
@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman"), local("TimesNewRomanPSMT");
  size-adjust: 83.85%;
  ascent-override: 118.06%;
  descent-override: 36.97%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Instrument Serif Fallback";
  src: local("Times New Roman Italic"), local("TimesNewRomanPS-ItalicMT");
  font-style: italic;
  size-adjust: 83.85%;
  ascent-override: 118.06%;
  descent-override: 36.97%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Manrope Fallback";
  src: local("Arial"), local("ArialMT");
  size-adjust: 101.92%;
  ascent-override: 104.59%;
  descent-override: 29.44%;
  line-gap-override: 0%;
}

/* 2. Design tokens -------------------------------------------------------- */

:root {
  /* cor */
  --paper: #f5eee7;
  --linen: #ede3d8;
  --linen-deep: #e4d8cb;
  --ink: #27201c;
  --ink-2: #6b5a50;
  --clay: #924f43; /* terracota para texto pequeno (contraste AA) */
  --terracotta: #a86150;
  --olive: #6e735a;
  --olive-ink: #5f6450; /* oliva para texto pequeno (contraste AA) */
  --rose: #d3a297;
  --rose-soft: #edd3ca;
  --cream: #f8f3ed; /* painel "O que pode estar incluído" */
  --blush: #efdcd2; /* forma de apoio do gato (mesmo peso visual que o verde do hero) */
  --taupe: #84705f; /* continuação de frases grandes (4.1:1) */
  --espresso: #2a1f19;
  --on-dark: #faf0e9;
  --on-dark-2: rgba(250, 240, 233, 0.74);
  --line: rgba(39, 32, 28, 0.12);
  --line-strong: rgba(39, 32, 28, 0.3);
  --line-dark: rgba(250, 240, 233, 0.16);
  --link-base: rgba(39, 32, 28, 0.22);

  /* tipografia */
  --font-serif: "Instrument Serif", "Instrument Serif Fallback", "Times New Roman", Times, serif;
  --font-sans: "Manrope", "Manrope Fallback", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, Arial, sans-serif;

  --fs-poster: clamp(3rem, 1.2rem + 7.4vw, 9.5rem);
  --fs-h2: clamp(2.25rem, 1.25rem + 3.4vw, 5rem);
  --fs-lead: clamp(1.625rem, 1.08rem + 2.05vw, 3.25rem);
  --fs-h3: clamp(1.75rem, 1.22rem + 1.75vw, 3.125rem);
  --fs-h4: clamp(1.3125rem, 1.15rem + 0.45vw, 1.625rem);
  --fs-body-l: clamp(1.0625rem, 1rem + 0.22vw, 1.1875rem);
  --fs-body: 1.0625rem;
  --fs-small: 0.9375rem;
  --fs-label: 0.75rem;

  /* grelha e ritmo */
  --max: 1440px;
  --gutter: clamp(1.25rem, 4.4vw, 4rem);
  --gap: clamp(1rem, 2vw, 2rem);
  --section: clamp(5.5rem, 11vw, 11rem);
  /* ritmo entre secções: cada secção usa o que a composição pede (ver secção 21) */
  --rhythm-s: clamp(3.5rem, 6.4vw, 5.75rem);  /* ≈ 92px a 1440 */
  --rhythm-m: clamp(4.5rem, 8vw, 7.25rem);    /* ≈ 115px */
  --rhythm-l: clamp(5rem, 8.9vw, 8rem);       /* ≈ 128px */
  --seam-overlap: clamp(1rem, 3.3vw, 3rem);   /* 16px no mobile → 48px no desktop */
  --header-h: 4.5rem;

  /* escala de espaçamento */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* movimento */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

@media (min-width: 1024px) {
  :root {
    --header-h: 5.5rem;
  }
}

/* 3. Base ----------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  overflow-x: hidden;
}

@supports (overflow: clip) {
  body {
    overflow-x: clip;
  }
}

h1,
h2,
h3,
h4,
p,
ol,
ul,
figure,
blockquote,
dl,
dd {
  margin: 0;
}

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

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

img {
  height: auto;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

em {
  font-style: italic;
}

::selection {
  background: var(--rose-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--clay);
  outline-offset: 4px;
}

[id] {
  scroll-margin-top: calc(var(--header-h) + 0.5rem);
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--fs-small);
  font-weight: 500;
  transform: translateY(-160%);
  transition: transform 0.3s var(--ease);
}

.skip-link:focus-visible {
  transform: none;
}

.nowrap {
  white-space: nowrap;
}

/* 4. Grelha editorial ------------------------------------------------------
   14 faixas: [full] margem | 12 colunas | margem [full].
   Os itens podem sangrar até à borda (full-start/full-end) sem sair da grelha. */

.frame {
  --col: calc((min(100%, var(--max)) - 2 * var(--gutter) - 11 * var(--gap)) / 12);
  display: grid;
  grid-template-columns:
    [full-start] minmax(0, 1fr)
    [content-start] repeat(12, [col] var(--col))
    [content-end] minmax(0, 1fr)
    [full-end];
  column-gap: var(--gap);
}

.frame > * {
  grid-column: content;
  min-width: 0;
}

.section {
  padding-block: var(--section);
  position: relative;
}

.section--linen {
  background: var(--linen);
}

.section--dark {
  background: var(--espresso);
  color: var(--on-dark);
  --link-base: rgba(250, 240, 233, 0.3);
}

.section--dark :focus-visible {
  outline-color: var(--rose);
}

.section--dark ::selection {
  background: var(--rose);
  color: var(--espresso);
}

/* 5. Tipografia ----------------------------------------------------------- */

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  font-family: var(--font-sans);
  font-size: var(--fs-label);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.label::before {
  content: "";
  flex: none;
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.section--dark .label,
.label--light {
  color: var(--rose);
}

.h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.h2 em {
  color: var(--clay);
}

.section--dark .h2 em,
.on-photo em {
  color: var(--rose);
}

.lead {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-lead);
  line-height: 1.2;
  letter-spacing: -0.012em;
  text-wrap: pretty;
}

.body-l {
  font-size: var(--fs-body-l);
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
}

.section--dark .body-l {
  color: var(--on-dark-2);
}

/* 6. Ícones, botões e ligações -------------------------------------------- */

.icon {
  width: 1rem;
  height: 1rem;
  flex: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: 3.375rem;
  padding: 0 1.375rem 0 1.5rem;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--font-sans);
  font-size: 0.90625rem;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.btn .icon {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s var(--ease);
}

.btn:hover {
  background: #3a2f29;
}

.btn:hover .icon,
.link:hover .icon,
.header__cta:hover .icon {
  transform: translate(3px, -3px);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: var(--rose-soft);
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding-block: 0.3rem;
  font-weight: 500;
  font-size: var(--fs-small);
  background:
    linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat,
    linear-gradient(var(--link-base), var(--link-base)) 0 100% / 100% 1px no-repeat;
  transition: background-size 0.35s var(--ease);
}

.link:hover {
  background-size: 100% 1px, 100% 1px;
}

.link .icon {
  transition: transform 0.3s var(--ease);
}

.link:hover .icon--static {
  transform: none;
}

.link .icon--static {
  color: var(--terracotta);
}

.link--down:hover .icon {
  transform: translateY(3px);
}

/* ligações de texto simples (listas de contacto) */
.tlink {
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.5s var(--ease), color 0.3s var(--ease);
}

.tlink:hover {
  background-size: 100% 1px;
}

/* 7. Header ----------------------------------------------------------------
   Lockup da marca (símbolo do logótipo oficial + nome), navegação pequena com
   espaço e um CTA escuro e contido. Hairline inferior sempre presente. */

.header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  transition:
    background-color 0.4s var(--ease),
    height 0.4s var(--ease),
    -webkit-backdrop-filter 0.4s var(--ease),
    backdrop-filter 0.4s var(--ease);
}

.header.is-scrolled {
  background: rgba(245, 238, 231, 0.92);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.header__frame {
  height: 100%;
  align-content: center;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
}

/* lockup: símbolo + nome + descritor */
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  flex: none;
  color: var(--ink);
}

.brand__mark {
  width: auto;
  height: 2.625rem;
  transition: height 0.4s var(--ease);
}

.brand__text {
  display: grid;
  gap: 0.3rem;
}

.brand__name {
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  line-height: 1;
  letter-spacing: -0.005em;
  white-space: nowrap;
}

.brand__tag {
  font-size: 0.59375rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--olive-ink);
}

.header__right {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  gap: 2.25rem;
}

.nav a {
  position: relative;
  display: inline-block;
  padding-block: var(--space-2);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink-2);
  transition: color 0.25s var(--ease);
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.3rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s var(--ease);
}

.nav a:hover,
.nav a[aria-current="true"] {
  color: var(--ink);
}

.nav a:hover::after,
.nav a[aria-current="true"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header__ig {
  display: none;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: calc(-1 * var(--space-4));
  border-radius: 50%;
  color: var(--ink-2);
  transition:
    color 0.25s var(--ease),
    background-color 0.25s var(--ease);
}

.header__ig svg {
  width: 1.25rem;
  height: 1.25rem;
}

.header__ig:hover {
  color: var(--terracotta);
  background: rgba(168, 97, 80, 0.08);
}

.header__cta {
  display: none;
  align-items: center;
  gap: 0.625rem;
  min-height: 2.75rem;
  padding: 0 1rem 0 1.25rem;
  border-radius: 10px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.84375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background-color 0.3s var(--ease);
}

.header__cta .icon {
  width: 0.75rem;
  height: 0.75rem;
  transition: transform 0.3s var(--ease);
}

.header__cta:hover {
  background: #3a2f29;
}

.menu-toggle {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-height: 2.75rem;
  padding: 0 var(--space-1) 0 var(--space-3);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.menu-toggle__icon {
  position: relative;
  width: 1.375rem;
  height: 0.625rem;
}

.menu-toggle__icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.5s var(--ease), top 0.5s var(--ease);
}

.menu-toggle__icon span:first-child {
  top: 0;
}

.menu-toggle__icon span:last-child {
  top: calc(100% - 1.5px);
}

.menu-open .menu-toggle__icon span:first-child {
  top: calc(50% - 0.75px);
  transform: rotate(45deg);
}

.menu-open .menu-toggle__icon span:last-child {
  top: calc(50% - 0.75px);
  transform: rotate(-45deg);
}

.menu-open .header {
  background: var(--paper);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

@media (max-width: 359px) {
  .brand__tag {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header.is-scrolled {
    --header-h: 4.5rem;
  }

  .brand {
    gap: 0.875rem;
  }

  .brand__mark {
    height: 3.25rem;
  }

  .header.is-scrolled .brand__mark {
    height: 2.75rem;
  }

  .brand__name {
    font-size: 1.5rem;
  }

  .brand__tag {
    font-size: 0.625rem;
  }

  .nav {
    display: block;
  }

  .header__cta {
    display: inline-flex;
  }

  .header__ig {
    display: grid;
  }

  .menu-toggle {
    display: none;
  }
}

/* 8. Menu mobile ---------------------------------------------------------- */

.menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: flex;
  flex-direction: column;
  padding-top: var(--header-h);
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0.45s;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.menu.is-open {
  visibility: visible;
  opacity: 1;
  transition:
    opacity 0.45s var(--ease),
    visibility 0s linear 0s;
}

.menu__frame {
  flex: 1;
}

.menu__inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 3rem;
  padding-block: clamp(2rem, 6vh, 3.5rem) max(2rem, env(safe-area-inset-bottom));
}

.menu__list {
  border-top: 1px solid var(--line);
}

.menu__list li {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.menu__list a {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  padding-block: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.125rem, 1.4rem + 3.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  transform: translateY(105%);
  transition: transform 0.7s var(--ease);
  transition-delay: calc(var(--i, 0) * 60ms + 80ms);
}

.menu.is-open .menu__list a {
  transform: none;
}

.menu__num {
  font-style: italic;
  font-size: 1rem;
  color: var(--clay);
  min-width: 1.5rem;
}

.menu__foot {
  display: grid;
  gap: 1.25rem;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s var(--ease) 0.3s, transform 0.6s var(--ease) 0.3s;
}

.menu.is-open .menu__foot {
  opacity: 1;
  transform: none;
}

.menu__foot .btn {
  width: 100%;
}

.menu__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.menu__ig {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.menu__ig svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--terracotta);
}

.menu-open,
.menu-open body {
  overflow: hidden;
}

@media (min-width: 1024px) {
  .menu {
    display: none;
  }
}

/* 9. Hero ------------------------------------------------------------------
   Texto à esquerda (~47%); à direita (~53%) a fotografia recortada, grande,
   assente na base do hero. A forma orgânica verde fica ancorada no canto
   inferior direito e aparece à direita e por trás da fotografia. Os detalhes
   desenhados à mão estão posicionados em relação à fotografia. */

.hero {
  --hero-pad: clamp(2.5rem, 5vw, 3.5rem);
  position: relative;
  grid-template-rows: var(--header-h) auto auto;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.hero__content {
  grid-row: 2;
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding-top: var(--space-7);
}

.hero__eyebrow {
  margin-bottom: var(--space-5);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--olive-ink);
}

.hero__title {
  margin-bottom: var(--space-5);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.9rem + 2.6vw, 3.5rem);
  line-height: 1;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.hero__title-line {
  display: block;
}

.hero__text {
  max-width: 28rem;
  margin-bottom: var(--space-6);
  font-size: var(--fs-body-l);
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
}

.hero__actions .btn {
  width: 100%;
}

.hero__benefits {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line);
}

.hero__benefits li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.84375rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--ink);
}

.hero__benefit-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
  color: var(--terracotta);
}

/* bloco visual: forma verde, fotografia e detalhes */
.hero__visual {
  grid-column: full-start / full-end;
  grid-row: 3;
  position: relative;
  padding-top: var(--space-8);
}

.hero__shape {
  position: absolute;
  z-index: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 56%;
  overflow: visible;
}

.hero__shape-fill {
  fill: #dde3d1;
}

.hero__shape-line {
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.55;
}

.hero__figure {
  position: relative;
  z-index: 1;
  width: min(86vw, 27rem);
  aspect-ratio: 1122 / 1402;
  margin-inline: auto;
}

.hero__figure picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero__photo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 50% 100%;
}

.hero__doodles {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.doodle {
  position: absolute;
  display: block;
  overflow: visible;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* traços junto à cabeça do cão (zona transparente à esquerda) */
.doodle--rays {
  left: 7%;
  top: 19%;
  width: 7.5%;
  stroke: var(--terracotta);
}

/* coração no canto superior direito (zona transparente) */
.doodle--heart {
  right: 1.5%;
  top: 3%;
  width: 7%;
  stroke: var(--terracotta);
  rotate: 8deg;
}

.hero__note {
  position: absolute;
  margin: 0;
  font-family: "Sacramento", cursive;
  font-weight: 400;
  line-height: 1.05;
  white-space: nowrap;
}

/* "Carinho em cada visita": por cima da cabeça do cão, com seta */
.hero__note--a {
  left: 1%;
  top: 3.5%;
  font-size: clamp(1.375rem, 1rem + 1vw, 1.875rem);
  color: var(--clay);
  rotate: -5deg;
}

.doodle--arrow {
  left: 64%;
  top: 88%;
  width: 1.3em;
  stroke: var(--terracotta);
  stroke-width: 1.4;
}

/* "Mais dias felizes juntos": perto da base, sobre a forma verde */
.hero__note--b {
  display: none;
  font-size: clamp(1.375rem, 1rem + 0.8vw, 1.75rem);
  color: var(--olive-ink);
  rotate: -4deg;
}

.doodle--swoosh {
  position: relative;
  width: 100%;
  height: 0.45em;
  margin-top: 0.1em;
  stroke: var(--olive);
  stroke-width: 1.3;
}

/* tablet: empilhado, fotografia à direita com a frase de base à esquerda */
@media (min-width: 768px) {
  .hero__content {
    padding-top: var(--space-8);
  }

  .hero__intro {
    max-width: 38rem;
  }

  .hero__actions {
    flex-direction: row;
    align-items: center;
    gap: var(--space-4) var(--space-6);
  }

  .hero__actions .btn {
    width: auto;
  }

  .hero__benefits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-5);
  }

  .hero__benefits li {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  .hero__shape {
    width: 82%;
    height: 72%;
  }

  .hero__figure {
    width: min(62vw, 31rem);
    margin-left: auto;
    margin-right: calc(var(--gutter) + 5vw);
  }

  .hero__note--b {
    display: block;
    right: 104%;
    top: 64%;
  }
}

/* desktop: duas colunas; a fotografia ocupa quase toda a altura útil */
@media (min-width: 1024px) {
  .hero {
    grid-template-rows: var(--header-h) minmax(0, 1fr);
    /* pelo menos o ecrã, e nunca menos de 56% da largura: em portáteis largos e
       baixos a fotografia continua a ocupar a coluna da direita */
    min-height: clamp(42rem, max(100svh, 56vw), 64rem);
  }

  .hero__content {
    grid-column: col 1 / col 7;
    grid-row: 2;
    padding-block: var(--space-8) var(--hero-pad);
  }

  .hero__intro {
    max-width: none;
    margin-block: auto;
  }

  .hero__title {
    margin-bottom: var(--space-6);
    font-size: clamp(3rem, -0.35rem + 5.53vw, 4.75rem);
  }

  .hero__text {
    margin-bottom: 2.25rem;
  }

  .hero__visual {
    /* espaço à direita da fotografia, onde a forma verde fica visível */
    --fig-right: max(7vw, calc((100vw - var(--max)) / 2));
    /* a margem transparente do recorte pode entrar ligeiramente no intervalo entre colunas */
    --fig-overlap: clamp(0rem, (100vw - 1024px) * 0.06, 1rem);
    grid-column: col 7 / full-end;
    grid-row: 2;
    padding-top: 0;
    container-type: size;
  }

  .hero__shape {
    width: 100%;
    height: 74%;
  }

  .hero__figure {
    --fig-w: min(100cqw - var(--fig-right) + var(--fig-overlap), 83.2cqh);
    position: absolute;
    right: var(--fig-right);
    /* assente na base; se for mais alta do que o espaço, o topo fica a 2% e a base
       ultrapassa subtilmente o fundo do hero */
    top: max(2cqh, 100cqh - var(--fig-w) * 1.2496);
    width: var(--fig-w);
    margin: 0;
  }

  .hero__note--b {
    display: none;
  }
}

@media (min-width: 1280px) {
  .hero__note--b {
    display: block;
    right: auto;
    left: 98%;
    top: 69%;
    font-size: 1.375rem;
  }
}

@media (min-width: 1600px) {
  .hero__note--b {
    font-size: 1.625rem;
  }
}

/* 10. Manifesto ------------------------------------------------------------
   Rótulo e gato na coluna da esquerda; a frase grande à direita, com a oval do
   cão a dormir no meio. O gato espreita por cima de uma forma cor-de-rosa suave:
   o topo da forma coincide com o corte do corpo na fotografia, por isso as patas
   ficam à frente dela. A forma, os traços e a nota estão posicionados em relação
   à fotografia (o SVG usa as mesmas coordenadas da imagem) e acompanham-na. */

.manifesto {
  row-gap: var(--space-7);
}

.manifesto__label {
  display: flex;
  align-items: flex-start;
  align-self: start;
}

.manifesto__label::before {
  /* alinhada com o centro da primeira linha (line-height 1.4) */
  margin-top: calc(0.7em - 0.5px);
}

.manifesto__text {
  font-size: clamp(1.75rem, 1.15rem + 2.4vw, 3.5rem);
  line-height: 1.16;
  color: var(--ink);
}

.manifesto__text .muted {
  color: var(--taupe);
}

.pill {
  display: inline-block;
  width: 2.15em;
  height: 0.9em;
  margin: 0 0.08em;
  vertical-align: -0.1em;
  border-radius: 999px;
  overflow: hidden;
  background: var(--linen-deep);
  clip-path: inset(0 0 0 0 round 999px);
  transition: clip-path 1.2s var(--ease) 0.25s;
}

.pill img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.6s var(--ease) 0.25s;
}

.js [data-reveal]:not(.is-in) .pill {
  clip-path: inset(0 38% 0 38% round 999px);
}

.js [data-reveal]:not(.is-in) .pill img {
  transform: scale(1.35);
}

/* gato + forma + detalhes */
.manifesto__cat {
  --cat-w: min(52vw, 14rem);
  position: relative;
  width: var(--cat-w);
  margin: var(--space-4) 0 calc(var(--cat-w) * 0.22) calc(var(--cat-w) * 0.15);
}

.manifesto__cat picture {
  display: block;
  position: relative;
  z-index: 1;
}

.manifesto__cat-img {
  width: 100%;
  height: auto;
}

.manifesto__blob {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.manifesto__blob-fill {
  fill: var(--blush);
}

.manifesto__blob-line {
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.6;
}

/* traços junto à orelha esquerda (zona transparente da fotografia) */
.manifesto__strokes {
  position: absolute;
  z-index: 2;
  left: -4.5%;
  top: 18.5%;
  width: 10%;
  overflow: visible;
  fill: none;
  stroke: var(--olive);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* nota manuscrita: no mobile, em cima à direita, com a seta a apontar para o gato */
.manifesto__note {
  position: absolute;
  z-index: 2;
  left: 86%;
  top: -2%;
  margin: 0;
  font-family: "Sacramento", var(--font-serif);
  font-size: 1.375rem;
  line-height: 1.05;
  white-space: nowrap;
  color: var(--clay);
  rotate: -4deg;
}

.manifesto__arrow {
  position: absolute;
  left: 8%;
  top: 100%;
  width: 2.2em;
  overflow: visible;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  rotate: -62deg;
}

/* tablet: composição por baixo da frase, nota à direita do gato */
@media (min-width: 768px) {
  .manifesto__cat {
    --cat-w: 17rem;
    margin-top: var(--space-6);
  }

  .manifesto__note {
    left: 100%;
    top: 62%;
    margin-left: 3.5rem;
    font-size: 1.625rem;
  }

  .manifesto__arrow {
    left: auto;
    right: 100%;
    top: -10%;
    margin-right: 0.15em;
    rotate: none;
  }
}

/* desktop: rótulo e gato na coluna da esquerda, frase à direita */
@media (min-width: 1024px) {
  .manifesto {
    row-gap: 0;
    grid-template-rows: auto 1fr;
  }

  .manifesto__label {
    grid-column: col 1 / col 5;
    grid-row: 1;
    padding-top: 0.9rem;
  }

  .manifesto__text {
    grid-column: col 5 / content-end;
    grid-row: 1 / span 2;
  }

  .manifesto__cat {
    --cat-w: min(86%, 22.5rem);
    grid-column: col 1 / col 5;
    grid-row: 2;
    align-self: end;
    margin-top: var(--space-8);
    margin-left: 8%;
  }
}

/* 11. Fotografia (base) --------------------------------------------------- */

.ph {
  position: relative;
  overflow: hidden;
  background: var(--linen-deep);
}

.section--dark .ph {
  background: #3a2c24;
}

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

/* 12. Serviços ------------------------------------------------------------ */

.services__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.services__intro {
  max-width: 30ch;
}

.services__list {
  border-top: 1px solid var(--line-strong);
}

.service {
  padding-block: 2rem 2.25rem;
  border-bottom: 1px solid var(--line-strong);
}

.service__media {
  aspect-ratio: 5 / 4;
  margin-bottom: 1.75rem;
}

.service__row {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}

.service__index {
  flex: none;
  min-width: 1.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--clay);
}

.service__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h3);
  line-height: 1.04;
  letter-spacing: -0.016em;
  transition: transform 0.7s var(--ease);
}

.service__arrow {
  display: none;
}

.service__text {
  max-width: 44ch;
  margin-top: 1rem;
  padding-left: 3rem;
  color: var(--ink-2);
  text-wrap: pretty;
}

.services__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.25rem;
}

.services__foot p {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

.services__frame {
  display: none;
}

@media (min-width: 768px) {
  .services__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }

  .services__head .label {
    grid-column: 1 / -1;
  }

  .services__head .h2 {
    grid-column: 1 / 9;
  }

  .services__intro {
    grid-column: 9 / -1;
    padding-bottom: 0.5rem;
  }

  .service__text {
    padding-left: 3rem;
  }
}

@media (min-width: 768px) {
  .service {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    grid-template-rows: auto 1fr;
    column-gap: var(--gap);
    align-items: start;
  }

  .service__media {
    grid-column: 1 / 6;
    grid-row: 1 / span 2;
    margin-bottom: 0;
    aspect-ratio: 4 / 3;
  }

  .service__row,
  .service__text {
    grid-column: 6 / -1;
  }

  .service__row {
    padding-top: 0.25rem;
  }
}

/* Interação editorial: lista + fotografia que muda (apenas com rato/trackpad) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
  .services__list {
    grid-column: col 1 / col 7;
    grid-row: 1;
  }

  .services__foot {
    grid-column: col 1 / col 7;
    grid-row: 2;
  }

  .services__frame {
    display: block;
    grid-column: col 8 / content-end;
    grid-row: 1 / span 2;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 2rem);
  }

  .services__frame .ph {
    aspect-ratio: 5 / 4;
  }

  .services__frame img {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: scale(1.045);
    transition:
      opacity 0.8s var(--ease),
      transform 1.4s var(--ease);
  }

  .services__frame img.is-active {
    opacity: 1;
    transform: none;
  }

  .services__frame-caption {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    font-size: 0.8125rem;
    color: var(--ink-2);
  }

  .service__media {
    display: none;
  }

  .service {
    display: block;
    cursor: default;
    padding-block: 2.25rem 2.5rem;
  }

  .service__row {
    position: relative;
  }

  .service__arrow {
    display: block;
    margin-left: auto;
    align-self: center;
    width: 1.25rem;
    height: 1.25rem;
    color: var(--clay);
    opacity: 0;
    transform: translate(-6px, 6px);
    transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
  }

  .service.is-active .service__arrow {
    opacity: 1;
    transform: none;
  }

  .service:hover .service__title {
    transform: translateX(0.3em);
  }

  .service__index {
    transition: color 0.5s var(--ease);
  }

  .service:not(.is-active) .service__index {
    color: var(--ink-2);
  }
}

/* 13. Casa (pausa emocional) ----------------------------------------------
   Mobile/tablet: fotografia e texto empilhados (o texto nunca tapa o animal).
   Desktop: fotografia quase em ecrã inteiro com o texto sobre a zona escura. */

.casa {
  position: relative;
  grid-template-rows: auto auto;
  color: var(--on-dark);
  background: var(--espresso);
  overflow: hidden;
}

.casa__media {
  grid-column: full-start / full-end;
  grid-row: 1;
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.casa__parallax {
  position: absolute;
  inset: -7% 0;
  will-change: transform;
}

.casa__parallax > picture {
  height: 100%;
}

.casa__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}

.casa__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--espresso) 0%, rgba(42, 31, 25, 0) 30%);
  pointer-events: none;
}

.casa__content {
  grid-row: 2;
  z-index: 1;
  margin-top: -2.5rem;
  padding-bottom: 5rem;
}

.casa__content .label {
  margin-bottom: 1.5rem;
}

.casa__title {
  margin-bottom: 1.5rem;
}

.casa__text {
  max-width: 38ch;
  font-size: var(--fs-body-l);
  line-height: 1.6;
  color: var(--on-dark-2);
}

@media (min-width: 768px) {
  .casa__media {
    aspect-ratio: 16 / 10;
  }

  .casa__media img {
    object-position: 58% 50%;
  }

  .casa__content {
    margin-top: -4rem;
    padding-bottom: 6rem;
  }
}

@media (min-width: 1024px) {
  .casa {
    grid-template-rows: 1fr;
    min-height: clamp(36rem, 92svh, 62rem);
  }

  .casa__media {
    aspect-ratio: auto;
  }

  .casa__media img {
    object-position: 62% 50%;
  }

  .casa__media::after {
    background:
      linear-gradient(to right, rgba(26, 19, 15, 0.72) 0%, rgba(26, 19, 15, 0.35) 38%, rgba(26, 19, 15, 0) 62%),
      linear-gradient(to top, rgba(26, 19, 15, 0.45) 0%, rgba(26, 19, 15, 0) 45%);
  }

  .casa__content {
    grid-column: col 1 / col 9;
    grid-row: 1;
    align-self: end;
    margin-top: 0;
    padding-block: 6rem clamp(3rem, 7vw, 6.5rem);
  }
}

/* 14. O que pode estar incluído --------------------------------------------
   Um painel editorial com três peças: o título (esquerda), a lista (direita)
   e o cão e o gato deitados sobre a base do painel. A silhueta dos animais
   desce para a direita; por isso a lista pode terminar logo acima do dorso
   deles (padding inferior = 80% da altura da imagem). No mobile os animais
   deitam-se sobre o primeiro filete da lista. */

.care__panel {
  --pad: clamp(1.5rem, 5vw, 4.5rem);
  position: relative;
  display: grid;
  padding: calc(var(--pad) * 1.15) var(--pad) var(--pad);
  background: var(--cream);
  border: 1px solid rgba(39, 32, 28, 0.07);
  border-radius: clamp(1.25rem, 2.2vw, 1.875rem);
  box-shadow:
    0 1px 2px rgba(39, 32, 28, 0.03),
    0 40px 80px -60px rgba(74, 52, 38, 0.2);
  overflow: hidden;
  isolation: isolate;
}

.care__label::before {
  background: var(--terracotta);
  opacity: 1;
}

.care__title {
  margin-block: var(--space-5);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.5rem, 1.2rem + 4vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.015em;
  color: var(--ink);
  text-wrap: balance;
}

.care__title em {
  color: var(--terracotta);
}

.care__note {
  max-width: 26.25rem;
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}

/* cão + gato */
.care__visual {
  position: relative;
  z-index: 0;
  width: 112%;
  margin: var(--space-7) -6% -1px;
}

.care__visual img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* luz ambiente, quase imperceptível, atrás dos animais */
.care__visual::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -12% 4% 10% 0;
  background: radial-gradient(closest-side, rgba(255, 252, 247, 0.85), rgba(255, 252, 247, 0));
  pointer-events: none;
}

/* sombra de contacto: os animais assentam, não flutuam */
.care__visual::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 5%;
  right: 1%;
  bottom: -3%;
  height: 16%;
  background: radial-gradient(closest-side, rgba(92, 66, 50, 0.16), rgba(92, 66, 50, 0));
  pointer-events: none;
}

/* lista */
.care__list {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
}

@media (min-width: 1024px) {
  /* o primeiro filete fica no mesmo eixo que a linha do rótulo */
  .care__list {
    margin-top: calc(var(--fs-label) * 0.7 - 0.5px);
  }
}

.care__item {
  display: grid;
  grid-template-columns: 1.625rem 2.75rem minmax(0, 1fr);
  align-items: center;
  column-gap: var(--space-4);
  padding-block: 1.375rem;
  border-bottom: 1px solid var(--line);
  transition: border-color 0.3s var(--ease);
}

.care__num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.0625rem;
  line-height: 1;
  color: var(--clay);
}

.care__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(168, 97, 80, 0.075);
  color: var(--terracotta);
  transition: transform 0.3s var(--ease);
}

.care__icon svg {
  width: 1.375rem;
  height: 1.375rem;
}

.care__text {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1rem + 1.25vw, 2.125rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
  transition: transform 0.3s var(--ease);
}

.care__text em {
  font-size: 0.62em;
  letter-spacing: 0;
  white-space: nowrap;
  color: var(--clay);
}

@media (hover: hover) {
  .care__item:hover {
    border-bottom-color: var(--line-strong);
  }

  .care__item:hover .care__icon {
    transform: translateX(2px);
  }

  .care__item:hover .care__text {
    transform: translateX(3px);
  }
}

/* linha orgânica fina: nasce junto à cauda do gato e sobe até ao fim da lista */
.care__flourish {
  display: none;
  position: absolute;
  z-index: 0;
  left: calc(var(--pad) * 0.45 + var(--img-w) * 0.97);
  right: calc(var(--pad) * 0.7);
  bottom: calc(var(--img-w) * 0.3345 * 0.12);
  height: calc(var(--img-w) * 0.3345 * 0.62);
  overflow: visible;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.2;
  stroke-linecap: round;
  opacity: 0.55;
  pointer-events: none;
}

/* tablet: coluna única, mais ar e tipografia maior */
@media (min-width: 768px) {
  .care__title {
    max-width: 14ch;
    font-size: clamp(3rem, 1rem + 4.2vw, 3.75rem);
  }

  .care__visual {
    width: 100%;
    margin-inline: 0;
  }

  .care__item {
    grid-template-columns: 2rem 3.25rem minmax(0, 1fr);
    column-gap: var(--space-5);
  }

  .care__icon {
    width: 3.25rem;
    height: 3.25rem;
  }

  .care__icon svg {
    width: 1.5rem;
    height: 1.5rem;
  }
}

/* desktop: duas colunas (≈43/57); os animais saem do fluxo e deitam-se na base */
@media (min-width: 1024px) {
  .care__panel {
    --img-w: min(58vw, 52rem);
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    column-gap: clamp(3rem, 5.5vw, 5.5rem);
    align-items: start;
    padding: var(--pad) var(--pad) calc(var(--img-w) * 0.3345 * 0.8 + var(--space-6));
  }

  .care__intro {
    grid-column: 1;
    grid-row: 1;
  }

  .care__title {
    max-width: none;
    font-size: clamp(3rem, 4.5vw, 4.5rem);
  }

  .care__list {
    grid-column: 2;
    grid-row: 1;
  }

  .care__visual {
    position: absolute;
    left: calc(var(--pad) * 0.45);
    bottom: 0;
    width: var(--img-w);
    margin: 0;
  }

  .care__flourish {
    display: block;
  }
}

/* 15. Como funciona ------------------------------------------------------- */

.how__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3.5rem, 7vw, 6.5rem);
}

.how__intro .label {
  margin-bottom: 1.5rem;
}

.how__title {
  max-width: 16ch;
}

.how__figure {
  display: none;
}

.steps {
  position: relative;
  display: grid;
  gap: 2.5rem;
  padding-left: 2rem;
}

.steps::before {
  /* linha da timeline — desenha-se ao entrar no ecrã */
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.55rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--line-strong);
  transform-origin: top;
  transition: transform 1.6s var(--ease-io);
}

.js .steps:not(.is-in)::before {
  transform: scaleY(0);
}

.step {
  position: relative;
}

.step__dot {
  position: absolute;
  left: -2rem;
  top: 0.3rem;
  width: 0.5625rem;
  height: 0.5625rem;
  border-radius: 50%;
  background: var(--linen);
  border: 1px solid var(--ink);
  transition: background-color 0.5s var(--ease);
}

.steps.is-in .step__dot {
  background: var(--ink);
  transition-delay: calc(var(--i) * 280ms + 300ms);
}

.step__num {
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.2;
  color: var(--clay);
}

.step__title {
  margin-bottom: 0.75rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 18ch;
  text-wrap: balance;
}

.step__text {
  max-width: 30ch;
  color: var(--ink-2);
  font-size: var(--fs-small);
  line-height: 1.6;
}

.how__cta {
  margin-top: clamp(3rem, 6vw, 5rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.how__cta p {
  font-size: var(--fs-small);
  color: var(--ink-2);
}

@media (min-width: 768px) {
  .how__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }

  .how__intro {
    grid-column: 1 / 9;
  }

  .how__figure {
    display: block;
    grid-column: 9 / -1;
  }

  .how__figure .ph {
    aspect-ratio: 4 / 5;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: 3.5rem;
    padding-left: 0;
    padding-top: 2.5rem;
  }

  .steps::before {
    left: 0;
    right: 0;
    top: 2.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
    transform-origin: left;
    display: none;
  }

  .step {
    padding-top: 1.75rem;
    border-top: 1px solid var(--line-strong);
  }

  .step__dot {
    left: 0;
    top: calc(-0.28rem - 0.5px);
  }

  .step__num {
    position: absolute;
    top: -2.5rem;
    left: 0;
    margin: 0;
  }
}

@media (min-width: 1024px) {
  .how__figure {
    grid-column: 10 / -1;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 0;
  }

  .steps::before {
    display: block;
  }

  .js .steps:not(.is-in)::before {
    transform: scaleX(0);
  }

  .step {
    border-top: 0;
    padding-right: 1rem;
  }
}

/* 16. Fotos e notícias em tempo real -------------------------------------- */

.live {
  row-gap: 3.5rem;
}

.live__text .label {
  margin-bottom: 1.75rem;
}

.live__text .h2 {
  margin-bottom: 1.75rem;
}

.live__text .body-l {
  max-width: 34ch;
}

.diary {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: var(--gap);
  row-gap: 2.5rem;
}

.diary__entry {
  display: grid;
  gap: 1rem;
}

.diary__entry--a {
  grid-column: 1 / 6;
}

.diary__entry--b {
  grid-column: 2 / -1;
}

.diary__entry--a .ph {
  aspect-ratio: 4 / 5;
}

.diary__entry--b .ph {
  aspect-ratio: 4 / 3;
}

.diary__caption {
  display: grid;
  gap: 0.35rem;
}

.diary__caption time {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--rose);
  font-variant-numeric: tabular-nums;
}

.diary__caption span {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.25;
  color: var(--on-dark);
}

.diary__note {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: rgba(250, 240, 233, 0.62);
}

@media (min-width: 768px) {
  .diary__entry {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }

  .diary__entry--a,
  .diary__entry--b {
    grid-column: 1 / -1;
  }

  .diary__entry--a .ph {
    grid-column: 1 / 5;
  }

  .diary__entry--a .diary__caption {
    grid-column: 5 / -1;
    padding-bottom: 0.25rem;
  }

  .diary__entry--b {
    margin-top: clamp(1.5rem, 3vw, 3rem);
  }

  .diary__entry--b .ph {
    grid-column: 3 / -1;
    grid-row: 1;
  }

  .diary__entry--b .diary__caption {
    grid-column: 1 / 3;
    grid-row: 1;
    align-self: center;
    text-align: right;
  }
}

@media (min-width: 1024px) {
  .live__text {
    grid-column: col 1 / col 5;
    align-self: start;
    position: sticky;
    top: calc(var(--header-h) + 3rem);
  }

  .diary {
    grid-column: col 6 / content-end;
  }
}

/* 17. Dia a dia ----------------------------------------------------------- */

.days__head {
  display: grid;
  gap: 1.5rem;
  margin-bottom: clamp(3rem, 6vw, 5.5rem);
}

.days__follow {
  justify-self: start;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--gap);
}

.gallery .ph img {
  transition: transform 1.4s var(--ease);
}

@media (hover: hover) {
  .gallery .ph:hover img {
    transform: scale(1.025);
  }
}

.g1 {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.g2 {
  aspect-ratio: 4 / 5;
}

.g3 {
  aspect-ratio: 4 / 5;
  margin-top: 3rem;
}

.g4 {
  grid-column: 1 / -1;
  aspect-ratio: 3 / 2;
}

.g5 {
  grid-column: 1 / -1;
  width: 72%;
  margin-left: auto;
  aspect-ratio: 3 / 2;
}

@media (min-width: 768px) {
  .days__head {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    align-items: end;
  }

  .days__head .label {
    grid-column: 1 / -1;
  }

  .days__head .h2 {
    grid-column: 1 / 8;
  }

  .days__follow {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .gallery {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    row-gap: 0;
    align-items: start;
  }

  .g1 {
    grid-column: 1 / 8;
    grid-row: 1;
  }

  .g2 {
    grid-column: 9 / -1;
    grid-row: 1;
    margin-top: clamp(4rem, 9vw, 9rem);
  }

  .g3 {
    grid-column: 2 / 5;
    grid-row: 2;
    margin-top: clamp(2rem, 4vw, 4rem);
  }

  .g4 {
    grid-column: 6 / 11;
    grid-row: 2;
    margin-top: clamp(4.5rem, 10vw, 10rem);
  }

  .g5 {
    grid-column: 9 / -1;
    grid-row: 3;
    width: auto;
    margin-top: clamp(-3rem, -3vw, -1.5rem);
    display: none;
  }
}

@media (min-width: 1024px) {
  .days__follow {
    grid-column: 8 / -1;
    justify-self: end;
    padding-bottom: var(--space-2);
  }

  .g2 {
    margin-top: clamp(5rem, 9vw, 9rem);
  }

  .g3 {
    grid-column: 2 / 5;
    margin-top: clamp(-5rem, -4.5vw, -3rem);
  }

  .g4 {
    grid-column: 6 / 10;
    margin-top: clamp(2rem, 3vw, 3rem);
  }

  .g5 {
    display: block;
    grid-column: 10 / -1;
    grid-row: 2;
    width: auto;
    margin: clamp(6rem, 11vw, 11rem) 0 0;
    aspect-ratio: 3 / 2;
  }
}

/* 18. Sobre ----------------------------------------------------------------
   Fotografia editorial à esquerda, nome em destaque à direita. No mobile a
   ordem é: rótulo, nome, função, fotografia, texto, frase. O selo e o ramo
   são apenas decorativos. */

.about {
  position: relative;
  overflow: hidden;
}

@supports (overflow: clip) {
  .about {
    overflow: clip;
  }
}

.about__head {
  position: relative;
}

.about__label {
  margin-bottom: var(--space-5);
  font-size: 0.8125rem;
  letter-spacing: 0.18em;
  color: var(--clay);
}

.about__label::before {
  width: 2.5rem;
  background: var(--terracotta);
  opacity: 1;
}

.about__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 13vw, 4rem);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.about__role {
  max-width: 34ch;
  margin-top: var(--space-5);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}

/* selo: anel de texto + patinha, muito discreto (só a partir do tablet) */
.about__seal {
  display: none;
  position: absolute;
  top: -0.75rem;
  right: 0;
  width: 4.75rem;
  height: auto;
  overflow: visible;
  color: var(--terracotta);
  opacity: 0.75;
  rotate: -10deg;
  pointer-events: none;
}

.about__seal text {
  fill: currentColor;
  font-family: var(--font-sans);
  font-size: 9.6px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about__seal-ring {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.6;
  opacity: 0.6;
}

/* fotografia */
.about__media {
  position: relative;
  margin-top: var(--space-7);
  height: 30rem;
  border-radius: 1.375rem;
  overflow: hidden;
  background: var(--linen-deep);
  box-shadow: 0 20px 60px rgba(50, 35, 25, 0.06);
}

.about__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% 45%;
}

/* texto */
.about__body {
  margin-top: var(--space-7);
}

.about__copy {
  display: grid;
  gap: var(--space-5);
  max-width: 38.75rem;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink-2);
  text-wrap: pretty;
}

.about__links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4) var(--space-6);
  margin-top: var(--space-6);
}

/* frase final: fio curto por cima, sublinhado desenhado à mão por baixo */
.about__quote {
  margin-top: var(--space-7);
}

.about__quote::before {
  content: "";
  display: block;
  max-width: 20rem;
  height: 1px;
  margin-bottom: var(--space-6);
  background: var(--line-strong);
}

.about__line {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.875rem, 1.3rem + 1.6vw, 2.625rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.about__underline {
  display: block;
  width: 11rem;
  height: auto;
  margin-top: var(--space-3);
  overflow: visible;
  fill: none;
  stroke: var(--terracotta);
  stroke-width: 1.5;
  stroke-linecap: round;
}

/* ramo botânico (só contorno), cortado pelo canto inferior direito */
.about__leaf {
  display: none;
  position: absolute;
  z-index: 0;
  right: -2.5rem;
  bottom: -3.5rem;
  width: clamp(13rem, 20vw, 18rem);
  height: auto;
  fill: none;
  stroke: rgba(160, 120, 90, 0.24);
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.about__head,
.about__media,
.about__body {
  position: relative;
  z-index: 1;
}

/* tablet (coluna única, mais ar) */
@media (min-width: 600px) {
  .about__media {
    height: clamp(30rem, 70vw, 38rem);
    border-radius: 1.5rem;
  }

  .about__copy {
    font-size: 1.125rem;
  }

  .about__seal {
    display: block;
    width: 6.5rem;
  }
}

/* duas colunas a partir de ~900px: fotografia 6/12, texto 5/12 depois de uma coluna livre */
@media (min-width: 900px) {
  .about {
    grid-template-rows: 1fr auto auto 1fr;
  }

  .about__media {
    grid-column: col 1 / col 7;
    grid-row: 1 / -1;
    align-self: center;
    height: clamp(34rem, 47vw, 42.5rem);
    margin-top: 0;
    border-radius: clamp(1.625rem, 2.2vw, 2rem);
  }

  .about__head {
    grid-column: col 8 / content-end;
    grid-row: 2;
  }

  .about__body {
    grid-column: col 8 / content-end;
    grid-row: 3;
  }

  .about__name {
    font-size: clamp(3.625rem, 5vw, 5.125rem);
  }

  .about__media img {
    object-position: 50% 42%;
  }

  .about__copy {
    font-size: clamp(1.125rem, 0.95rem + 0.3vw, 1.3125rem);
  }

  .about__seal {
    top: -4.5rem;
    width: clamp(6.5rem, 8.5vw, 7.75rem);
  }
}

/* o ramo só aparece quando tem espaço próprio ao lado da frase final */
@media (min-width: 1200px) {
  .about__leaf {
    display: block;
  }
}

/* 19. Contacto (CTA final) --------------------------------------------------
   Desktop: título, texto, botão e contactos à esquerda (7 colunas); fotografia
   à direita, alinhada em cima com o rótulo e em baixo com o último contacto.
   Tablet: título; texto + fotografia lado a lado; contactos. Mobile: empilhado. */

.contact {
  padding-bottom: clamp(4.5rem, 7.5vw, 7rem);
}

.contact__head .label {
  margin-bottom: var(--space-5);
}

.contact__title {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(3rem, 1rem + 9vw, 6rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}

.contact__title .line {
  display: block;
}

.contact__title em {
  color: var(--rose);
}

.contact__intro {
  margin-top: var(--space-6);
}

.contact__sub {
  max-width: 30rem;
  font-size: var(--fs-body-l);
  line-height: 1.65;
  color: var(--on-dark-2);
  text-wrap: pretty;
}

.contact__cta {
  min-height: 3.5rem;
  margin-top: var(--space-6);
  padding-inline: 1.75rem 1.5rem;
}

/* fotografia */
.contact__media {
  display: flex;
  flex-direction: column;
  margin-top: var(--space-7);
}

.contact__photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: clamp(1.25rem, 2vw, 1.75rem);
  overflow: hidden;
  background: #3a2c24;
}

.contact__photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.contact__caption {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-4);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.contact__caption::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* contactos: rótulo pequeno, valor em serif, seta discreta */
.contact__list {
  margin-top: var(--space-7);
  border-top: 1px solid var(--line-dark);
}

.contact__list li {
  border-bottom: 1px solid var(--line-dark);
}

.contact__list a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "key key"
    "value icon";
  align-items: baseline;
  row-gap: var(--space-2);
  padding-block: 1.125rem;
  color: var(--on-dark);
}

.contact__key {
  grid-area: key;
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.contact__value {
  grid-area: value;
  font-family: var(--font-serif);
  font-size: clamp(1.3125rem, 1.1rem + 0.6vw, 1.625rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact__list .icon {
  grid-area: icon;
  align-self: center;
  width: 0.875rem;
  height: 0.875rem;
  color: var(--on-dark-2);
  transition:
    color 0.3s var(--ease),
    transform 0.3s var(--ease);
}

.contact__list a:hover .contact__value {
  color: var(--rose-soft);
  transform: translateX(3px);
}

.contact__list a:hover .icon {
  color: var(--rose);
  transform: translate(3px, -3px);
}

.contact__ig-icon {
  display: inline-block;
  width: 0.9em;
  height: 0.9em;
  margin-right: 0.4em;
  vertical-align: -0.1em;
  color: var(--rose);
}

.contact__hint {
  display: none;
  grid-area: hint;
  margin-right: var(--space-4);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--on-dark-2);
  transition: color 0.3s var(--ease);
}

.contact__ig:hover .contact__hint {
  color: var(--rose);
}

@media (min-width: 600px) {
  .contact__list a {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto;
    grid-template-areas: "key value icon";
    column-gap: var(--space-5);
    padding-block: 1.375rem;
  }
}

@media (min-width: 768px) {
  .contact__list .contact__ig {
    grid-template-columns: 7.5rem minmax(0, 1fr) auto auto;
    grid-template-areas: "key value hint icon";
  }

  .contact__hint {
    display: block;
  }
}

/* tablet: texto e fotografia lado a lado, contactos por baixo */
@media (min-width: 768px) and (max-width: 1023px) {
  .contact__intro {
    grid-column: col 1 / col 8;
    grid-row: 2;
    align-self: start;
  }

  .contact__media {
    grid-column: col 8 / content-end;
    grid-row: 2;
    margin-top: var(--space-6);
  }

  .contact__list {
    grid-row: 3;
  }
}

/* desktop: duas colunas, fotografia a toda a altura do bloco de texto */
@media (min-width: 1024px) {
  .contact {
    grid-template-rows: auto auto 1fr;
  }

  .contact__head {
    grid-column: col 1 / col 7;
    grid-row: 1;
  }

  /* "O carinho pode ficar." cabe sempre numa linha em 6 colunas */
  .contact__title {
    font-size: min(5.8vw, 5.2rem);
  }

  .contact__intro {
    grid-column: col 1 / col 7;
    grid-row: 2;
    margin-top: var(--space-7);
  }

  .contact__list {
    grid-column: col 1 / col 7;
    grid-row: 3;
    align-self: end;
    margin-top: var(--space-8);
  }

  .contact__media {
    grid-column: col 8 / content-end;
    grid-row: 1 / -1;
    margin-top: 0;
  }

  /* entre 1024 e 1279 a coluna é estreita demais para o convite */
  .contact__hint {
    display: none;
  }
}

@media (min-width: 1280px) {
  .contact__hint {
    display: block;
  }

  .contact__photo {
    flex: 1;
    aspect-ratio: auto;
    min-height: 30rem;
  }
}

/* 20. Footer ----------------------------------------------------------------
   Bloco de marca à esquerda (logótipo maior), navegação e contactos à direita.
   O fundo da página deixa espaço para o botão flutuante do WhatsApp. */

.footer {
  --float-clear: 5.5rem;
  padding-block: 0 calc(var(--float-clear) + env(safe-area-inset-bottom));
  background: var(--espresso);
  color: var(--on-dark);
  --link-base: rgba(250, 240, 233, 0.3);
}

/* divisor entre o contacto e o rodapé: dentro do contentor, com uma patinha ao centro */
.footer__rule {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: clamp(3rem, 5.5vw, 4.5rem);
  color: var(--rose);
}

.footer__rule::before,
.footer__rule::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-dark);
}

.footer__rule svg {
  width: 1rem;
  height: 1rem;
  opacity: 0.55;
}

.footer :focus-visible {
  outline-color: var(--rose);
}

.footer__grid {
  display: grid;
  gap: var(--space-7);
}

/* marca */
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-5);
}

.footer__logo {
  width: auto;
  height: 5.75rem;
  flex: none;
}

.footer__ig {
  margin-top: var(--space-6);
}

.footer__name {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(1.875rem, 1.5rem + 1vw, 2.375rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.footer__tag {
  margin-top: var(--space-2);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.footer__motto {
  max-width: 24ch;
  margin-top: var(--space-5);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1875rem;
  line-height: 1.35;
  color: var(--on-dark-2);
}

/* colunas */
.footer__col h2 {
  margin-bottom: var(--space-5);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose);
}

.footer__nav ul {
  display: grid;
  gap: var(--space-3);
}

.footer__nav a {
  font-size: 1rem;
}

.footer__contacts dl {
  display: grid;
  gap: var(--space-4);
}

.footer__contacts dt {
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

.footer__contacts dd {
  margin-top: var(--space-1);
  font-size: 0.9375rem;
  overflow-wrap: anywhere;
}

/* linha inferior */
.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  margin-top: clamp(3.5rem, 6vw, 5rem);
  padding-top: var(--space-5);
  border-top: 1px solid var(--line-dark);
  font-size: 0.8125rem;
  color: var(--on-dark-2);
}

.footer__top {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--on-dark);
}

.footer__top-icon {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line-dark);
  border-radius: 50%;
  transition: border-color 0.3s var(--ease);
}

.footer__top-icon svg {
  width: 0.875rem;
  height: 0.875rem;
  transition: transform 0.3s var(--ease);
}

.footer__top:hover .footer__top-icon {
  border-color: var(--rose);
}

.footer__top:hover .footer__top-icon svg {
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .footer {
    --float-clear: 6.25rem;
  }

  .footer__grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
    column-gap: var(--gap);
    row-gap: var(--space-8);
  }

  .footer__brand {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    gap: var(--space-6);
  }

  .footer__logo {
    height: 7.25rem;
  }

  .footer__nav {
    grid-column: 1 / 6;
  }

  .footer__contacts {
    grid-column: 6 / -1;
  }
}

@media (min-width: 1024px) {
  .footer__brand {
    grid-column: 1 / 7;
    align-items: flex-start;
  }

  .footer__logo {
    height: clamp(7.25rem, 9.5vw, 8.5rem);
  }

  .footer__nav {
    grid-column: 8 / 10;
    padding-top: var(--space-2);
  }

  .footer__contacts {
    grid-column: 10 / -1;
    padding-top: var(--space-2);
  }
}

/* 21. Ritmo e transições entre secções -------------------------------------
   Em vez do mesmo padding em todas as secções, cada encontro tem o seu
   tratamento, escolhido pelo que vem antes e depois:
   · hero → manifesto: um fio terracota atravessa a linha do hero e termina na
     linha do rótulo seguinte (convida a continuar o scroll);
   · manifesto → serviços: o creme passa ao linho num degradê quase invisível;
   · serviços → casa: corte seco, a secção seguinte é guiada pela imagem;
   · casa → cuidados: o painel sobe ligeiramente sobre a fotografia;
   · cuidados → como funciona: o linho começa por trás da base do painel;
   · dia a dia → sobre: a fotografia mais baixa da galeria entra no linho;
   · restantes: espaçamentos mais curtos, para o título seguinte entrar cedo. */

.manifesto {
  --pt: clamp(4rem, 7.2vw, 6.5rem);
  padding-block: var(--pt) var(--rhythm-s);
}

.manifesto__label::before {
  background: var(--terracotta);
  opacity: 1;
}

.services {
  padding-block: var(--rhythm-m);
  background: linear-gradient(to bottom, var(--paper) 0, var(--linen) clamp(6rem, 12vw, 11rem));
}

.care {
  padding-block: 0;
  background: linear-gradient(to bottom, transparent calc(100% - 14rem), var(--linen) calc(100% - 6rem));
}

.care__panel {
  z-index: 2;
  margin-top: calc(-1 * var(--seam-overlap));
}

.how {
  padding-block: var(--rhythm-s);
}

.live {
  padding-block: var(--rhythm-m) var(--rhythm-s);
}

.days {
  z-index: 1;
  padding-block: var(--rhythm-m) 0;
}

.days .gallery {
  margin-bottom: calc(-1 * var(--seam-overlap));
}

.about {
  padding-block: var(--rhythm-l) var(--rhythm-s);
}

.contact {
  padding-top: var(--rhythm-m);
}

@media (min-width: 768px) {
  /* fio condutor: nasce dentro do hero e desce até à linha do rótulo */
  .manifesto::before {
    content: "";
    position: absolute;
    z-index: 1;
    top: -1.75rem;
    left: calc((100% - min(100%, var(--max))) / 2 + var(--gutter));
    width: 1px;
    height: calc(1.75rem + var(--pt) + 0.7 * var(--fs-label));
    background: linear-gradient(to bottom, rgba(168, 97, 80, 0), var(--terracotta) 65%);
    opacity: 0.75;
    pointer-events: none;
  }
}

@media (min-width: 1024px) {
  .manifesto::before {
    /* no desktop o rótulo tem 0.9rem de espaço por cima */
    height: calc(1.75rem + var(--pt) + 0.9rem + 0.7 * var(--fs-label));
  }
}

/* 22. Movimento ------------------------------------------------------------
   Estados iniciais só existem com JS ativo (classe .js no <html>). */

.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity 0.9s var(--ease),
    transform 0.9s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* máscara de linhas para títulos */
.js [data-reveal="lines"] {
  opacity: 1;
  transform: none;
}

.js [data-reveal="lines"] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
  padding-right: 0.08em;
}

.js [data-reveal="lines"] .line > span {
  display: inline-block;
  transform: translate3d(0, 108%, 0);
  transition: transform 1.05s var(--ease);
  transition-delay: calc(var(--delay, 0ms) + var(--i, 0) * 90ms);
}

.js [data-reveal="lines"].is-in .line > span {
  transform: none;
}

/* imagens: aparecem com um ligeiro zoom-out */
.js [data-reveal="image"] {
  transform: none;
  transition: opacity 1.1s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal="image"] img {
  transform: scale(1.06);
  transition: transform 1.8s var(--ease), opacity 0.8s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js [data-reveal="image"].is-in img {
  transform: none;
}

.js .services__frame[data-reveal="image"] img {
  transform: scale(1.045);
}

.js .services__frame[data-reveal="image"].is-in img.is-active {
  transform: none;
}

/* hero: entrada suave ao carregar. A fotografia nunca parte de opacidade 0 (LCP). */
.js .hero [data-hero] {
  opacity: 0;
  translate: 0 var(--rise, 15px);
  transition:
    opacity 0.7s var(--ease),
    translate 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.js .hero.is-ready [data-hero] {
  opacity: 1;
  translate: none;
}

.js .hero__photo {
  opacity: 0.95;
  translate: 0 10px;
  scale: 1.02;
  transition:
    opacity 0.8s var(--ease),
    translate 0.9s var(--ease),
    scale 0.9s var(--ease);
  transition-delay: 100ms;
}

.js .hero.is-ready .hero__photo {
  opacity: 1;
  translate: none;
  scale: none;
}

.js .hero__shape {
  opacity: 0;
  transition: opacity 0.9s var(--ease);
}

.js .hero.is-ready .hero__shape {
  opacity: 1;
}

.js .hero__doodles > * {
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 0.7s var(--ease),
    translate 0.7s var(--ease);
}

.js .hero.is-ready .hero__doodles > * {
  opacity: 1;
  translate: none;
}

.js .hero.is-ready .doodle--rays {
  transition-delay: 650ms;
}

.js .hero.is-ready .hero__note--a {
  transition-delay: 750ms;
}

.js .hero.is-ready .doodle--heart {
  transition-delay: 850ms;
}

.js .hero.is-ready .hero__note--b {
  transition-delay: 950ms;
}

/* manifesto: nota e traços aparecem depois do gato */
.js .manifesto__cat .manifesto__note,
.js .manifesto__cat .manifesto__strokes {
  opacity: 0;
  transition: opacity 0.7s var(--ease) 0.7s;
}

.js .manifesto__cat.is-in .manifesto__note,
.js .manifesto__cat.is-in .manifesto__strokes {
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .js [data-reveal],
  .js [data-reveal] img,
  .js [data-reveal="lines"] .line > span {
    opacity: 1 !important;
    transform: none !important;
  }

  .js .hero [data-hero],
  .js .hero__photo,
  .js .hero__shape,
  .js .hero__doodles > * {
    opacity: 1 !important;
    translate: none !important;
    scale: none !important;
  }

  .js .steps:not(.is-in)::before {
    transform: none !important;
  }

  .js [data-reveal]:not(.is-in) .pill {
    clip-path: inset(0 0 0 0 round 999px);
  }

  .js .manifesto__cat .manifesto__note,
  .js .manifesto__cat .manifesto__strokes {
    opacity: 1 !important;
  }

  .casa__parallax {
    transform: none !important;
  }
}

/* 23. WhatsApp flutuante ---------------------------------------------------
   Círculo castanho com um fio terracota interior; no desktop abre para a
   esquerda e revela "Fale connosco" (hover e teclado). Sobre secções escuras
   inverte para creme (classe .is-on-dark, em main.js). Entra uma única vez,
   sem repetições. Fica abaixo do menu mobile (z-index 55), acima do resto. */

.wa-float {
  --size: 3.375rem;
  position: fixed;
  z-index: 50;
  right: calc(1.125rem + env(safe-area-inset-right));
  bottom: calc(1.125rem + env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  height: var(--size);
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow:
    inset 0 0 0 1px rgba(168, 97, 80, 0.5),
    0 12px 30px -14px rgba(39, 32, 28, 0.45);
  animation: wa-float-in 0.5s var(--ease) 0.6s both;
  transition:
    background-color 0.35s var(--ease),
    color 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}

.wa-float__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: var(--size);
  height: var(--size);
}

.wa-float__icon svg {
  width: 1.5rem;
  height: 1.5rem;
}

/* no mobile o rótulo nunca aparece: só o círculo */
.wa-float__label {
  display: none;
}

.wa-float:focus-visible {
  outline: 2px solid var(--terracotta);
  outline-offset: 3px;
}

/* sobre fundos escuros (casa, tempo real, contacto, rodapé) */
.wa-float.is-on-dark {
  background: var(--paper);
  color: var(--ink);
  box-shadow:
    inset 0 0 0 1px rgba(168, 97, 80, 0.55),
    0 12px 30px -14px rgba(0, 0, 0, 0.6);
}

.wa-float.is-on-dark:focus-visible {
  outline-color: var(--rose);
}

@keyframes wa-float-in {
  from {
    opacity: 0;
    translate: 0 10px;
  }
}

@media (min-width: 768px) {
  .wa-float {
    --size: 3.625rem;
    right: calc(1.75rem + env(safe-area-inset-right));
    bottom: calc(1.75rem + env(safe-area-inset-bottom));
  }
}

/* desktop com rato: o botão abre para revelar o texto */
@media (hover: hover) and (pointer: fine) {
  .wa-float {
    flex-direction: row-reverse;
  }

  .wa-float__label {
    display: block;
    max-width: 0;
    overflow: hidden;
    padding-left: 0;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    white-space: nowrap;
    opacity: 0;
    transition:
      max-width 0.38s var(--ease),
      padding-left 0.38s var(--ease),
      opacity 0.25s var(--ease);
  }

  .wa-float:hover .wa-float__label,
  .wa-float:focus-visible .wa-float__label {
    max-width: 8.5rem;
    padding-left: 1.375rem;
    opacity: 1;
    transition-delay: 0s, 0s, 0.08s;
  }

  .wa-float:hover {
    background: #3a2f29;
  }

  .wa-float.is-on-dark:hover {
    background: var(--rose-soft);
  }
}

/* 24. Convite para o Instagram ----------------------------------------------
   Anel fino com o ícone, uma linha pequena de contexto e o @ em serif. Usado no
   "Dia a dia" (fundo claro) e no rodapé (fundo escuro, --dark). */

.ig-follow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  color: var(--ink);
}

.ig-follow__icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(168, 97, 80, 0.45);
  border-radius: 50%;
  color: var(--terracotta);
  transition:
    background-color 0.3s var(--ease),
    border-color 0.3s var(--ease),
    color 0.3s var(--ease);
}

.ig-follow__icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.ig-follow__text {
  display: grid;
  gap: 0.2rem;
}

.ig-follow__kicker {
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--ink-2);
}

.ig-follow__handle {
  justify-self: start;
  padding-bottom: 0.1em;
  font-family: var(--font-serif);
  font-size: clamp(1.25rem, 1.1rem + 0.4vw, 1.5rem);
  line-height: 1.1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0% 1px no-repeat;
  transition: background-size 0.4s var(--ease);
}

.ig-follow__arrow {
  width: 0.875rem;
  height: 0.875rem;
  margin-left: var(--space-1);
  color: var(--ink-2);
  transition:
    transform 0.3s var(--ease),
    color 0.3s var(--ease);
}

.ig-follow:hover .ig-follow__icon {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: var(--paper);
}

.ig-follow:hover .ig-follow__handle {
  background-size: 100% 1px;
}

.ig-follow:hover .ig-follow__arrow {
  color: var(--terracotta);
  transform: translate(3px, -3px);
}

.ig-follow--dark {
  color: var(--on-dark);
}

.ig-follow--dark .ig-follow__icon {
  border-color: rgba(211, 162, 151, 0.5);
  color: var(--rose);
}

.ig-follow--dark .ig-follow__kicker,
.ig-follow--dark .ig-follow__arrow {
  color: var(--on-dark-2);
}

.ig-follow--dark:hover .ig-follow__icon {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--espresso);
}

.ig-follow--dark:hover .ig-follow__arrow {
  color: var(--rose);
}
