@import "./tokens/fonts.css";
@import "./tokens/colors.css";
@import "./tokens/typography.css";
@import "./tokens/spacing.css";
@import "./tokens/motion.css";
@import "./tokens/base.css";

/* Public website responsiveness for the inline component layouts. */
@media (max-width: 800px) {
  header nav {
    display: none !important;
  }

  header > div {
    gap: 12px !important;
  }

  header > div > a:last-child {
    margin-left: auto;
  }

  section div[style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  section div.stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  section div[style*="justify-content: space-between"] {
    align-items: flex-start !important;
  }
}

@media (max-width: 480px) {
  header > div > a:last-child {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}

/* Evita que secções fora do primeiro ecrã atrasem a apresentação inicial. */
#servicos,
#sobre,
#valores,
#contacto {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* Serviços: narrativa em scroll no desktop e cartões sequenciais no mobile. */
.services-story { background: #FAF9F6; padding: var(--section-y) 0; }
.services-story__inner { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--container-pad); }
.services-story__intro { display: none; }
.services-story__intro > span { display: block; margin-bottom: 14px; color: var(--brand-accent); font-size: 12px; font-weight: 700; letter-spacing: .13em; }
.services-story__intro h2 { margin: 0; color: var(--text-heading); font-size: clamp(36px, 4vw, 58px); line-height: 1.05; letter-spacing: -.045em; }
.services-story__intro p { max-width: 580px; margin: 20px 0 0; color: var(--text-body); font-size: var(--fs-lead); }
.services-story__layout { display: grid; grid-template-columns: minmax(320px, .86fr) minmax(0, 1.14fr); gap: clamp(42px, 7vw, 96px); align-items: start; }
.services-story__copy { position: sticky; top: 142px; padding: 44px 0 26px; }
.services-story__number { display: block; color: var(--brand-accent); font-size: 14px; font-weight: 800; letter-spacing: .16em; }
.services-story__line { width: 58px; height: 3px; margin: 22px 0; background: var(--brand-primary); }
.services-story__copy h3 { min-height: 1.2em; margin: 0; color: var(--text-heading); font-size: clamp(36px, 3vw, 48px); font-weight: 650; line-height: 1.06; letter-spacing: -.04em; }
.services-story__copy p { max-width: 390px; min-height: 0; margin: 20px 0 26px; color: var(--text-body); font-size: 17px; line-height: 1.58; }
.services-story__copy a { color: var(--brand-primary); font-weight: 750; text-decoration: none; }
.services-story__copy a span { color: var(--brand-accent); font-size: 20px; }
.services-story__cards { position: relative; padding-bottom: 12vh; }
.services-story__stage { position: sticky; top: 130px; width: min(100%, 470px); aspect-ratio: 1; overflow: hidden; border-radius: 28px; background: #FAF9F6; opacity: 0; transform: translateY(18px) scale(.96); transition: opacity .38s var(--ease-out), transform .52s var(--ease-out); }
.services-story__stage.is-visible { opacity: 1; transform: translateY(0) scale(1); }
.services-story__stage img { width: 100%; height: 100%; display: block; object-fit: contain; filter: brightness(1.015) saturate(.96) contrast(1.01); }
.services-story__card { position: relative; height: 72vh; min-height: 520px; border: 0; pointer-events: none; opacity: 0; }
.services-story__card.is-active { opacity: 0; }
.services-story__image { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 28px; background: transparent; }
.services-story__image img { width: 100%; height: 100%; display: block; object-fit: contain; filter: brightness(1.015) saturate(.96) contrast(1.01); transition: transform .6s var(--ease-out); }
.services-story__card:hover img { transform: scale(1.025); }
.services-story__card-meta { display: none; }
.services-story__card-meta span { color: var(--brand-accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; }
.services-story__card-meta strong { font-size: 19px; }
.services-story__card-meta i { margin-left: auto; color: var(--brand-primary); font-size: 22px; font-style: normal; }
.services-story__mobile-text { display: none; }

@media (max-width: 800px) {
  .services-story__intro { margin-bottom: 36px; }
  .services-story__layout { display: block; }
  .services-story__copy { position: relative; top: auto; padding: 0 0 28px; }
  .services-story__copy p { min-height: 0; font-size: 16px; }
  .services-story__cards { display: grid; grid-template-columns: 1fr; gap: 20px; padding-bottom: 0; }
  .services-story__stage { display: none; }
  .services-story__card, .services-story__card:nth-child(n) { position: relative; top: auto; width: 100%; height: auto; min-height: 0; opacity: 1; pointer-events: auto; transform: none; }
  .services-story__image { aspect-ratio: 1 / 1; }
  .services-story__card-meta { display: flex; align-items: center; gap: 16px; padding: 18px 22px 3px; color: var(--text-heading); }
  .services-story__mobile-text { display: block; margin: 8px 22px 22px; color: var(--text-body); font-size: 15px; line-height: 1.5; }
}

@media (prefers-reduced-motion: reduce) {
  .services-story__card, .services-story__image img { transition: none; }
}

/* Secção Sobre da homepage: conteúdo editorial sobre fotografia de equipa. */
.about-hero { position: relative; min-height: 650px; overflow: hidden; display: flex; align-items: center; background: var(--surface-dark); }
.about-hero__media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.about-hero__overlay { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(13,31,36,.94) 0%, rgba(13,31,36,.83) 44%, rgba(13,31,36,.28) 100%); }
.about-hero__inner { position: relative; z-index: 1; width: min(100% - (2 * var(--container-pad)), var(--container-max)); margin: 0 auto; padding: clamp(72px,9vw,128px) 0; color: #fff; }
.about-hero__eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; color: var(--cf-teal-400); font-size: 12px; font-weight: 750; letter-spacing: .14em; }
.about-hero__eyebrow i { width: 32px; height: 2px; background: var(--brand-accent); }
.about-hero h2 { max-width: 700px; margin: 0; color: #fff; font-size: clamp(42px,5vw,72px); line-height: 1.02; letter-spacing: -.045em; }
.about-hero p { max-width: 610px; margin: 26px 0 28px; color: var(--cf-ink-100); font-size: clamp(17px,1.5vw,21px); line-height: 1.55; }
.about-hero ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 28px; max-width: 780px; margin: 0; padding: 0; list-style: none; }
.about-hero li { display: flex; gap: 10px; align-items: flex-start; color: #fff; font-size: 15px; line-height: 1.45; }
.about-hero li::before { content: '✓'; color: var(--cf-teal-400); font-weight: 800; }
.about-hero__cta { display: inline-flex; align-items: center; gap: 12px; margin-top: 34px; padding: 14px 22px; border-radius: 999px; background: var(--brand-primary); color: #fff; font-weight: 750; text-decoration: none; }
.about-hero__cta span { color: var(--brand-accent); font-size: 20px; line-height: 1; }

@media (max-width: 800px) {
  .about-hero { min-height: auto; }
  .about-hero__media { object-position: 66% center; }
  .about-hero__overlay { background: linear-gradient(90deg, rgba(13,31,36,.93), rgba(13,31,36,.66)); }
  .about-hero ul { grid-template-columns: 1fr; }
}
