/*
 * Theme Name:        Satlink Clima
 * Theme URI:         https://satlinkclima.pt
 * Author:            Satlink Clima
 * Author URI:        https://satlinkclima.pt
 * Description:       Tema premium personalizado para a Satlink Clima — climatização TEKA.
 * Version:           1.1.0
 * Requires at least: 6.0
 * Tested up to:      6.8
 * Requires PHP:      8.0
 * License:           GNU General Public License v2 or later
 * License URI:       https://www.gnu.org/licenses/gpl-2.0.html
 * Text Domain:       satlink-clima
 * Tags:              custom-logo, custom-menu, featured-images, translation-ready
 */


/* ==========================================================================
   1. DESIGN TOKENS
   Variáveis globais — cores, tipografia, espaçamento, sombras e transições.
   ========================================================================== */

:root {
  /* — Cores institucionais — */
  --color-navy:        #082a45;
  --color-navy-mid:    #103b5d;
  --color-navy-deep:   #061f33;
  --color-navy-soft:   #0b334f;
  --color-red:         #d81828;
  --color-red-hover:   #b81422;
  --color-red-light:   #ff4050;
  --color-white:       #ffffff;
  --color-soft:        #f4f7f9;
  --color-ink:         #15212b;
  --color-muted:       #61707d;
  --color-line:        #dfe7ed;
  --color-line-soft:   #e6edf2;

  /* — Tipografia — */
  --font-sans:         "Inter", system-ui, -apple-system, BlinkMacSystemFont,
                       "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-semibold: 600;
  --font-weight-bold:    700;
  --font-weight-extrabold: 800;

  /* — Escala tipográfica — */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   2rem;
  --text-4xl:   2.5rem;
  --text-5xl:   3.5rem;
  --text-hero:  clamp(2.5rem, 6vw, 5.6rem);

  /* — Espaçamento — */
  --space-xs:   0.5rem;
  --space-sm:   0.75rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --section-y:  clamp(4.5rem, 8.5vw, 6.25rem);
  --section-head-gap: clamp(2.5rem, 5vw, 3.25rem);
  --content-max: 42rem;
  --accent-mark: 36px;

  /* — Layout — */
  --container-max: 1180px;
  --container-gutter: clamp(1.25rem, 4vw, 2.5rem);
  --header-height: 92px;
  --header-height-scrolled: 80px;
  --hero-peek: 12.5rem;
  --radius-sm:  12px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-full: 999px;

  /* — Sombras — */
  --shadow-sm:  0 4px 16px rgba(8, 42, 69, 0.06);
  --shadow-md:  0 12px 32px rgba(8, 42, 69, 0.08);
  --shadow-lg:  0 18px 45px rgba(8, 42, 69, 0.10);
  --shadow-xl:  0 24px 60px rgba(8, 42, 69, 0.14);

  /* — Transições — */
  --ease-out:   cubic-bezier(0.22, 1, 0.36, 1);
  --duration-fast:   150ms;
  --duration-normal: 250ms;
  --duration-slow:   400ms;
}


/* ==========================================================================
   2. RESET & BASE
   Normalização mínima e estilos fundamentais do documento.
   ========================================================================== */

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

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: var(--font-weight-regular);
  line-height: 1.6;
  color: var(--color-ink);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

#main-content {
  width: 100%;
}

/* Imagens responsivas por defeito */
img,
picture,
video,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Links — sem sublinhado, cor herdada */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-normal) var(--ease-out);
}

/* Listas sem estilo por defeito (redefinidas onde necessário) */
ul,
ol {
  margin: 0;
  padding: 0;
}

/* Tipografia base de headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-weight: var(--font-weight-extrabold);
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: inherit;
  text-rendering: optimizeLegibility;
}

p {
  margin: 0 0 var(--space-md);
}

p:last-child {
  margin-bottom: 0;
}

/* Foco acessível — visível apenas com teclado */
:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--color-red);
  outline-offset: 3px;
}

/* Respeitar preferência de movimento reduzido */
@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;
  }
}


/* ==========================================================================
   3. UTILITÁRIOS DE LAYOUT
   Container, acessibilidade e classes auxiliares.
   ========================================================================== */

.container {
  width: min(var(--container-max), calc(100% - var(--container-gutter) * 2));
  margin-inline: auto;
}

/* Texto apenas para leitores de ecrã */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  position: fixed;
  top: var(--space-sm);
  left: var(--space-sm);
  z-index: 100000;
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: normal;
  background: var(--color-navy);
  color: var(--color-white);
  border-radius: var(--radius-sm);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
}


/* ==========================================================================
   4. COMPONENTES TIPOGRÁFICOS
   Eyebrows, títulos de secção e texto de apoio.
   ========================================================================== */

.eyebrow {
  display: inline-block;
  margin-bottom: 0.625rem;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-extrabold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-red);
}

.eyebrow-light {
  color: var(--color-white);
  opacity: 0.94;
}

.section-heading {
  max-width: var(--content-max);
  margin-bottom: var(--section-head-gap);
}

.section-heading h2,
.product-copy h2,
.about-grid h2,
.cta-inner h2 {
  font-size: clamp(var(--text-3xl), 4vw, var(--text-5xl));
  line-height: 1.06;
  letter-spacing: -0.055em;
  margin: 0.2rem 0 0.875rem;
}

.section-heading p,
.product-copy p,
.about-grid p,
.cta-inner p {
  font-size: var(--text-lg);
  color: var(--color-muted);
  line-height: 1.65;
  max-width: 36rem;
}


/* ==========================================================================
   5. BOTÕES
   Botões primários, secundários e variantes claras.
   ========================================================================== */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.9375rem 1.5rem;
  border: 2px solid transparent;
  border-radius: var(--radius-full);
  font-family: inherit;
  font-size: var(--text-base);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out);
}

.button:hover {
  transform: translateY(-1px);
}

.button:active {
  transform: translateY(0);
}

/* Botão primário — vermelho Satlink */
.button-primary {
  background-color: var(--color-red);
  color: var(--color-white);
  box-shadow: 0 8px 24px rgba(216, 24, 40, 0.28);
}

.button-primary:hover {
  background-color: var(--color-red-hover);
  color: var(--color-white);
  box-shadow: 0 12px 32px rgba(216, 24, 40, 0.34);
}

/* Botão claro — para fundos escuros ou coloridos */
.button-light {
  background-color: var(--color-white);
  color: var(--color-navy);
  box-shadow: var(--shadow-md);
}

.button-light:hover {
  background-color: var(--color-soft);
  color: var(--color-navy);
}


/* ==========================================================================
   6. CABEÇALHO & NAVEGAÇÃO
   Header fixo com blur, marca e menu principal.
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-line);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

/* Estado sticky refinado — mais sólido e definido durante o scroll */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: rgba(8, 42, 69, 0.06);
  box-shadow: 0 10px 32px rgba(8, 42, 69, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  min-height: var(--header-height);
  transition: min-height var(--duration-normal) var(--ease-out);
}

.site-header.is-scrolled .header-inner {
  min-height: var(--header-height-scrolled);
}

/* — Marca / Logótipo — */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.04em;
  flex-shrink: 0;
  padding: 0.35rem 0;
  margin-right: 0.25rem;
}

.brand-main {
  font-size: 1.45rem;
  color: var(--color-navy);
  line-height: 1;
  transition: font-size var(--duration-normal) var(--ease-out);
}

.brand-sub {
  font-size: 1.12rem;
  color: var(--color-red);
  line-height: 1;
  transition: font-size var(--duration-normal) var(--ease-out);
}

.site-header.is-scrolled .brand-main {
  font-size: 1.34rem;
}

.site-header.is-scrolled .brand-sub {
  font-size: 1.04rem;
}

.custom-logo {
  display: block;
  width: auto;
  height: auto;
  max-height: 78px;
  max-width: 312px;
  object-fit: contain;
  transition:
    max-height var(--duration-normal) var(--ease-out),
    max-width var(--duration-normal) var(--ease-out);
}

.site-header.is-scrolled .custom-logo {
  max-height: 70px;
  max-width: 280px;
}

.footer-custom-logo {
  max-height: 72px;
  max-width: 288px;
  background: transparent;
}

/* — Navegação principal — */
.main-nav {
  display: flex;
  align-items: center;
  gap: 2.125rem;
  font-size: 0.95rem;
  font-weight: var(--font-weight-semibold);
}

.main-nav a {
  position: relative;
  color: var(--color-ink);
  padding: 0.4rem 0.2rem;
}

.main-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-red);
  transition: width var(--duration-normal) var(--ease-out);
}

.main-nav a:not(.nav-cta):hover,
.main-nav a:not(.nav-cta):focus-visible {
  color: var(--color-navy);
}

.main-nav a:not(.nav-cta):hover::after,
.main-nav a:not(.nav-cta):focus-visible::after {
  width: 100%;
}

/* CTA no menu */
.nav-cta {
  margin-left: 0.5rem;
  padding: 0.82rem 1.45rem !important;
  font-size: 0.9rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.02em;
  background-color: var(--color-red);
  color: var(--color-white) !important;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 24px rgba(216, 24, 40, 0.24);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.nav-cta::after {
  display: none;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background-color: var(--color-red-hover);
  color: var(--color-white) !important;
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 12px 32px rgba(216, 24, 40, 0.32);
}

/* — Botão mobile — */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-sm);
  background-color: var(--color-white);
  color: var(--color-navy);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out);
}

.mobile-toggle:hover {
  background-color: var(--color-soft);
  border-color: var(--color-line-soft);
}

.mobile-toggle__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Estado ativo — animação hamburger para X */
.mobile-toggle.is-active .mobile-toggle__line--top {
  transform: translateY(5px) rotate(45deg);
  transform-origin: center;
}

.mobile-toggle.is-active .mobile-toggle__line--mid {
  opacity: 0;
}

.mobile-toggle.is-active .mobile-toggle__line--bot {
  transform: translateY(-5px) rotate(-45deg);
  transform-origin: center;
}

.mobile-toggle__line {
  transition:
    transform var(--duration-normal) var(--ease-out),
    opacity var(--duration-fast) var(--ease-out);
}

.mobile-toggle__svg path {
  transform-box: fill-box;
  transform-origin: center;
}

/* — Menu mobile (ativado via JS) — */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-height) 0 0 0;
  z-index: 99;
  padding: var(--space-xl) var(--container-gutter);
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--color-line);
  overflow-y: auto;
}

.mobile-nav.is-open {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  animation: fadeSlideDown var(--duration-slow) var(--ease-out);
}

.mobile-nav a {
  display: block;
  padding: var(--space-md) 0;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-semibold);
  color: var(--color-ink);
  border-bottom: 1px solid var(--color-line-soft);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav .nav-cta {
  margin-top: var(--space-md);
  margin-left: 0;
  padding: 1rem 1.5rem !important;
  text-align: center;
  border-bottom: none;
}

/* Bloquear scroll do body quando menu aberto */
body.nav-open {
  overflow: hidden;
}


/* ==========================================================================
   7. HERO
   Secção principal com imagem full-width e overlay elegante.
   ========================================================================== */

.hero {
  position: relative;
  overflow: hidden;
  height: clamp(
    300px,
    calc(100svh - var(--header-height) - var(--hero-peek)),
    calc(100svh - var(--header-height) - 7rem)
  );
}

.hero-media {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  display: block;
  object-fit: cover;
  object-position: center 40%;
}

.hero-copy {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: min(var(--container-max), calc(100% - var(--container-gutter) * 2));
  justify-content: center;
  align-items: end;
  padding-inline: var(--container-gutter);
  padding-bottom: clamp(2.25rem, 4vh, 3.25rem);
  background: linear-gradient(
    180deg,
    rgba(3, 25, 43, 0.18) 0%,
    rgba(3, 25, 43, 0.42) 48%,
    rgba(3, 25, 43, 0.72) 100%
  );
  color: var(--color-white);
}

.hero-copy-inner {
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.25rem, 5.5vmin, var(--text-hero));
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 clamp(0.75rem, 1.5vmin, 1.125rem);
  max-width: 38rem;
}

.hero p {
  font-size: clamp(var(--text-base), 1.75vmin, 1.25rem);
  max-width: 34rem;
  margin: 0 0 clamp(1rem, 2vmin, 1.625rem);
  color: rgba(237, 245, 248, 0.92);
  line-height: 1.6;
}

.hero .button-primary {
  margin-top: 0.125rem;
  padding: clamp(0.75rem, 1.4vmin, 0.95rem) clamp(1.25rem, 2.5vmin, 1.75rem);
  font-size: clamp(0.9rem, 1.4vmin, 1rem);
}


/* Desktop — hero maior, com espaço reservado para a secção seguinte */
@media (min-width: 901px) {
  .hero {
    height: clamp(
      440px,
      calc(100svh - var(--header-height) - var(--hero-peek)),
      680px
    );
  }

  .hero img {
    object-position: center 36%;
  }

  .hero-copy {
    padding-bottom: clamp(1.75rem, 3.5vmin, 3.25rem);
  }
}


/* ==========================================================================
   8. DUAL BRAND
   Parceria institucional — Grupo Service Partners e TEKA com peso igual.
   ========================================================================== */

.dual-brand {
  background-color: var(--color-white);
  border-bottom: 1px solid var(--color-line);
  padding-block: clamp(0.25rem, 1vw, 0.5rem);
}

.dual-brand-grid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr;
  align-items: stretch;
}

.brand-panel {
  padding: clamp(2.5rem, 4.5vw, 3.25rem) clamp(1rem, 2.5vw, 1.75rem);
}

.brand-panel h2 {
  font-size: clamp(var(--text-3xl), 4vw, 3.8rem);
  margin: 0.15rem 0 0.75rem;
  letter-spacing: -0.05em;
  line-height: 1.04;
}

.group-panel h2 {
  color: var(--color-navy);
}

.teka-panel h2 {
  color: var(--color-red);
}

.brand-panel p:last-child {
  max-width: 28rem;
  color: var(--color-muted);
  line-height: 1.65;
  font-size: 1.02rem;
}

.brand-divider {
  background-color: var(--color-line);
  align-self: stretch;
}


/* ==========================================================================
   9. SECÇÕES GERAIS
   Espaçamento vertical e variantes de fundo.
   ========================================================================== */

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

.section-light {
  background-color: var(--color-soft);
}


/* ==========================================================================
   9b. PÁGINAS INTERNAS
   Cabeçalhos e contactos das páginas dedicadas.
   ========================================================================== */

.page-hero {
  padding-block: clamp(3rem, 6vw, 4.75rem);
  background-color: var(--color-soft);
  border-bottom: 1px solid var(--color-line);
}

.page-hero.section {
  padding-block: clamp(3rem, 6vw, 4.75rem);
}

.page-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.05em;
  margin: 0 0 0.875rem;
  max-width: 40rem;
  color: var(--color-navy);
}

.page-hero p {
  max-width: 36rem;
  color: var(--color-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.65;
}

.inner-page--servicos .section-light,
.inner-page--produtos .products-section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}

.contact-section {
  background-color: var(--color-white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(2rem, 4vw, 3rem);
  align-items: start;
}

.contact-grid h2 {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  color: var(--color-navy);
  margin-bottom: 0.875rem;
}

.contact-grid p {
  color: var(--color-muted);
  line-height: 1.65;
}

.contact-details p {
  margin-bottom: 1.25rem;
}

.contact-details strong {
  display: block;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.contact-details a {
  color: var(--color-red);
  font-weight: var(--font-weight-semibold);
}

.contact-details a:hover,
.contact-details a:focus-visible {
  color: var(--color-red-hover);
}

.inner-page--contactos .cta-section {
  margin-top: 0;
}


/* ==========================================================================
   10. CARTÕES DE SERVIÇOS
   Grid de três colunas — estilo premium com detalhe gráfico da marca.
   ========================================================================== */

.cards {
  display: grid;
  gap: 2rem;
}

.three-cols {
  grid-template-columns: repeat(3, 1fr);
}

.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: linear-gradient(180deg, var(--color-white) 0%, #fafbfc 100%);
  border: 1px solid rgba(8, 42, 69, 0.07);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.625rem 2.5rem;
  box-shadow:
    0 1px 2px rgba(8, 42, 69, 0.03),
    0 8px 28px rgba(8, 42, 69, 0.06),
    0 20px 48px rgba(8, 42, 69, 0.04);
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

/* Detalhe gráfico — traço vermelho superior */
.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 2.625rem;
  width: var(--accent-mark);
  height: 3px;
  background-color: var(--color-red);
  border-radius: 0 0 3px 3px;
  transition: width var(--duration-normal) var(--ease-out);
}

/* Detalhe gráfico — reflexo subtil no canto inferior */
.service-card::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  bottom: -1.5rem;
  width: 7rem;
  height: 7rem;
  background: radial-gradient(circle, rgba(216, 24, 40, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(8, 42, 69, 0.11);
  box-shadow:
    0 2px 4px rgba(8, 42, 69, 0.04),
    0 14px 36px rgba(8, 42, 69, 0.08),
    0 28px 56px rgba(8, 42, 69, 0.06);
}

.service-card:hover::before {
  width: calc(var(--accent-mark) + 16px);
}

.service-card img {
  display: block;
  width: 108px;
  height: 108px;
  object-fit: contain;
  margin-bottom: 1.875rem;
  padding: 1.125rem;
  background-color: var(--color-soft);
  border: 1px solid rgba(8, 42, 69, 0.05);
  border-radius: var(--radius-md);
  transition:
    transform var(--duration-normal) var(--ease-out),
    background-color var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.service-card:hover img {
  transform: scale(1.03);
  background-color: var(--color-white);
  border-color: rgba(216, 24, 40, 0.12);
}

.service-card h3 {
  font-size: 1.5rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.035em;
  line-height: 1.15;
  margin: 0 0 0.875rem;
  color: var(--color-navy);
}

.service-card p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--color-muted);
  line-height: 1.7;
}


/* ==========================================================================
   11. PRODUTOS TEKA
   Composição editorial — imagens protagonistas, copy compacta.
   ========================================================================== */

.products-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, var(--color-white) 0%, var(--color-soft) 52%, var(--color-white) 100%);
}

.products-section::before {
  content: "";
  position: absolute;
  top: 8%;
  right: -6%;
  width: 42%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(216, 24, 40, 0.045) 0%, transparent 68%);
  pointer-events: none;
}

.products-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(2rem, 4.5vw, 3.75rem);
  align-items: center;
}

.product-copy {
  max-width: 24rem;
}

.product-copy .eyebrow {
  margin-bottom: 0.5rem;
}

.product-copy h2 {
  font-size: clamp(1.65rem, 2.8vw, 2.35rem);
  letter-spacing: -0.045em;
  margin-bottom: 0.75rem;
}

.product-copy p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.product-copy .check-list {
  margin: 1.125rem 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.2rem 1.125rem;
}

.product-copy .check-list li {
  padding: 0.35rem 0 0.35rem 1.35rem;
  font-size: 0.88rem;
}

.product-copy .button-primary {
  padding: 0.875rem 1.4rem;
  font-size: 0.95rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 1.75rem 0;
}

.check-list li {
  position: relative;
  padding: 0.5625rem 0 0.5625rem 1.75rem;
  color: var(--color-ink);
  font-weight: var(--font-weight-medium);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.5625rem;
  color: var(--color-red);
  font-weight: var(--font-weight-extrabold);
}

/* Grelha simétrica — unidades interior e exterior com o mesmo peso visual */
.product-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
  min-height: clamp(300px, 30vw, 400px);
}

.product-visuals figure {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  min-height: clamp(280px, 28vw, 380px);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  background: linear-gradient(160deg, var(--color-white) 0%, #eef2f6 100%);
  border: 1px solid rgba(8, 42, 69, 0.06);
  border-radius: var(--radius-lg);
  box-shadow:
    0 1px 2px rgba(8, 42, 69, 0.03),
    0 10px 36px rgba(8, 42, 69, 0.07);
  position: relative;
  overflow: hidden;
  transition:
    transform var(--duration-slow) var(--ease-out),
    box-shadow var(--duration-slow) var(--ease-out);
}

.product-visuals figure::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(1.25rem, 2.5vw, 1.75rem);
  width: var(--accent-mark);
  height: 3px;
  background-color: var(--color-red);
  border-radius: 0 0 3px 3px;
}

.product-visuals figure::after {
  content: "";
  position: absolute;
  right: -1.25rem;
  bottom: -1.25rem;
  width: 6.5rem;
  height: 6.5rem;
  background: radial-gradient(circle, rgba(216, 24, 40, 0.06) 0%, transparent 68%);
  pointer-events: none;
}

.product-visuals figure:hover {
  transform: translateY(-3px);
  box-shadow:
    0 2px 4px rgba(8, 42, 69, 0.04),
    0 16px 44px rgba(8, 42, 69, 0.09);
}

.product-visuals img {
  width: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 28px rgba(8, 42, 69, 0.1));
  transition: transform var(--duration-normal) var(--ease-out);
}

.product-visuals figure:hover img {
  transform: scale(1.025);
}


/* ==========================================================================
   12. SOBRE
   Secção escura com grid de duas colunas.
   ========================================================================== */

.about-section {
  background-color: var(--color-navy);
  color: var(--color-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(3rem, 6vw, 4.75rem);
  align-items: center;
}

.about-grid .eyebrow {
  color: var(--color-red-light);
  opacity: 0.96;
}

.about-grid h2 {
  margin-bottom: 0;
}

.about-grid p {
  color: rgba(217, 230, 238, 0.92);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
  max-width: 34rem;
}

.about-grid p:last-child {
  margin-bottom: 0;
}


/* ==========================================================================
   13. BENEFÍCIOS
   Barra de quatro pilares com numeração elegante.
   ========================================================================== */

.benefits-section {
  padding-block: clamp(3.5rem, 6.5vw, 4.75rem);
  background-color: var(--color-navy-soft);
  color: var(--color-white);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.25rem);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: start;
}

.benefits-grid > li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-top: 0.25rem;
}

.benefits-grid strong {
  flex-shrink: 0;
  min-width: 2rem;
  font-size: 1.2rem;
  font-weight: var(--font-weight-extrabold);
  color: var(--color-red-light);
  line-height: 1.25;
}

.benefits-grid span {
  font-size: 0.98rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.92);
}


/* ==========================================================================
   14. CTA — PEDIDO DE ORÇAMENTO
   Secção de conversão — composição reforçada, botão em destaque.
   ========================================================================== */

.cta-section {
  padding-block: clamp(4.5rem, 7vw, 5.5rem);
  background: linear-gradient(135deg, var(--color-red) 0%, #c41624 52%, var(--color-red) 100%);
  color: var(--color-white);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 4vw, 3.5rem);
}

.cta-inner > div {
  max-width: 44rem;
}

.cta-inner .eyebrow-light {
  margin-bottom: 0.5rem;
  opacity: 0.95;
}

.cta-inner h2 {
  max-width: 40rem;
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  margin: 0 0 0.75rem;
}

.cta-inner p {
  margin: 0;
  max-width: 34rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
}

.cta-section .button-light {
  position: relative;
  flex-shrink: 0;
  min-width: 15.5rem;
  padding: 1.0625rem 1.875rem;
  font-size: 1.05rem;
  font-weight: var(--font-weight-extrabold);
  letter-spacing: -0.01em;
  border: 2px solid rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 10px 28px rgba(6, 31, 51, 0.16);
  transition:
    background-color var(--duration-normal) var(--ease-out),
    color var(--duration-normal) var(--ease-out),
    transform var(--duration-normal) var(--ease-out),
    box-shadow var(--duration-normal) var(--ease-out),
    border-color var(--duration-normal) var(--ease-out);
}

.cta-section .button-light::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 58%;
  background-color: rgba(255, 255, 255, 0.28);
}

.cta-section .button-light:hover,
.cta-section .button-light:focus-visible {
  background-color: var(--color-white);
  color: var(--color-navy);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 14px 34px rgba(6, 31, 51, 0.2);
}


/* ==========================================================================
   15. RODAPÉ
   Footer institucional com parceiros e contactos Satlink.
   ========================================================================== */

.site-footer {
  padding: clamp(3.75rem, 6.5vw, 4.75rem) 0 1.75rem;
  background-color: var(--color-navy-deep);
  color: #dce8ef;
}

.footer-brand {
  margin-bottom: var(--space-md);
}

.footer-brand .brand-main {
  color: var(--color-white);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: clamp(2.5rem, 5vw, 3.75rem);
  align-items: start;
}

.footer-grid > div > p {
  max-width: 22rem;
}

.footer-grid h3 {
  font-size: var(--text-lg);
  margin-bottom: 1.125rem;
  color: var(--color-white);
  letter-spacing: -0.02em;
}

.footer-grid p,
.footer-grid a {
  color: #aebfca;
  line-height: 1.65;
}

.footer-grid a:hover,
.footer-grid a:focus-visible {
  color: var(--color-white);
}

/* Parceiros institucionais — Grupo e TEKA com peso visual igual */
.footer-partners {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: stretch;
}

.footer-partner {
  flex: 1;
  min-width: 150px;
  min-height: 92px;
  padding: 1rem 1.125rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-md);
  background-color: rgba(255, 255, 255, 0.03);
  transition: border-color var(--duration-normal) var(--ease-out);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.footer-partner:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.footer-partner span {
  display: block;
  font-size: 0.72rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #8fa3b0;
}

.footer-partner strong {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--text-lg);
  font-weight: var(--font-weight-extrabold);
  color: var(--color-white);
}

.footer-partner-logo {
  display: block;
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 42px;
  margin-top: 0.5rem;
  object-fit: contain;
  object-position: left center;
}

/* Cartão Grupo Service Partners — mesmo tamanho que TEKA, logótipo maior */
.footer-partner--group {
  padding: 0;
  overflow: hidden;
  background-color: var(--color-white);
  border-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-partner--group .footer-partner-logo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 92px;
  margin: 0;
  object-fit: contain;
  object-position: center center;
  border-radius: 0;
  transform: scale(1.75);
  transform-origin: center center;
}

.teka-wordmark {
  justify-content: center;
}

.teka-wordmark strong {
  font-size: 1.45rem;
  color: #ff3947;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--text-sm);
  color: #8fa3b0;
}


/* ==========================================================================
   16. TEMPLATES INTERNOS
   Estilos para page.php, single.php e conteúdo WordPress.
   ========================================================================== */

/* Área de conteúdo genérica */
.page-content,
.post-content,
.entry-content {
  max-width: 720px;
}

.page-content h1,
.post-content h1,
.entry-content h1 {
  font-size: clamp(var(--text-3xl), 5vw, var(--text-4xl));
  margin-bottom: var(--space-lg);
  color: var(--color-navy);
}

.page-content h2,
.post-content h2,
.entry-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
  color: var(--color-navy);
}

.page-content h3,
.post-content h3,
.entry-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0 var(--space-sm);
  color: var(--color-navy-mid);
}

.page-content p,
.post-content p,
.entry-content p {
  margin-bottom: var(--space-md);
  color: var(--color-ink);
  line-height: 1.7;
}

.page-content a,
.post-content a,
.entry-content a {
  color: var(--color-red);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover,
.post-content a:hover,
.entry-content a:hover {
  color: var(--color-red-hover);
}

.page-content ul,
.page-content ol,
.post-content ul,
.post-content ol,
.entry-content ul,
.entry-content ol {
  margin: 0 0 var(--space-lg) var(--space-lg);
  color: var(--color-ink);
}

.page-content li,
.post-content li,
.entry-content li {
  margin-bottom: var(--space-xs);
}

.page-content blockquote,
.post-content blockquote,
.entry-content blockquote {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) var(--space-xl);
  border-left: 4px solid var(--color-red);
  background-color: var(--color-soft);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--color-muted);
}

/* Meta de artigos */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--color-muted);
}

.post-meta time {
  font-weight: var(--font-weight-medium);
}


/* ==========================================================================
   17. PÁGINA 404
   Erro elegante e discreto, alinhado com a identidade.
   ========================================================================== */

.error-404 {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding-block: var(--section-y);
}

.error-404__code {
  font-size: clamp(4rem, 12vw, 8rem);
  font-weight: var(--font-weight-extrabold);
  line-height: 1;
  letter-spacing: -0.06em;
  color: var(--color-navy);
  opacity: 0.12;
  margin-bottom: var(--space-md);
}

.error-404 h1 {
  font-size: clamp(var(--text-2xl), 4vw, var(--text-3xl));
  color: var(--color-navy);
  margin-bottom: var(--space-md);
}

.error-404 p {
  max-width: 420px;
  color: var(--color-muted);
  margin-bottom: var(--space-xl);
}


/* ==========================================================================
   18. ANIMAÇÕES DISCRETAS
   Entrada suave de elementos — ativadas via JS com .is-visible.
   ========================================================================== */

@keyframes fadeSlideDown {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Elementos com animação de entrada (Intersection Observer via JS) */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger para cartões de serviço */
.service-card.reveal:nth-child(2) {
  transition-delay: 80ms;
}

.service-card.reveal:nth-child(3) {
  transition-delay: 160ms;
}


/* ==========================================================================
   20. RESPONSIVO — TABLET
   Breakpoint intermédio para layouts de duas colunas.
   ========================================================================== */

@media (max-width: 900px) {
  :root {
    --header-height: 76px;
    --header-height-scrolled: 68px;
  }

  .custom-logo {
    max-height: 60px;
    max-width: min(240px, 52vw);
  }

  .site-header.is-scrolled .custom-logo {
    max-height: 54px;
    max-width: min(216px, 50vw);
  }

  /* Navegação desktop oculta, mobile visível */
  .main-nav {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  /* Grids passam a uma coluna */
  .dual-brand-grid,
  .products-grid,
  .about-grid,
  .footer-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .brand-divider {
    width: 100%;
    height: 1px;
  }

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

  .cards {
    gap: 1.5rem;
  }

  .service-card {
    padding: 2.25rem 2rem 2.125rem;
  }

  .service-card::before {
    left: 2rem;
  }

  .service-card img {
    width: 100px;
    height: 100px;
    padding: 1rem;
    margin-bottom: 1.625rem;
  }

  .service-card h3 {
    font-size: 1.35rem;
  }

  /* CTA empilhado */
  .cta-inner {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 2rem;
  }

  .cta-section .button-light {
    width: 100%;
    min-width: 0;
    justify-content: center;
    text-align: center;
  }

  .cta-section .button-light::before {
    display: none;
  }

  /* Produtos — visuais primeiro no tablet */
  .product-visuals {
    order: -1;
  }

  .products-grid {
    gap: 2.5rem;
  }

  .product-copy {
    max-width: none;
  }

  .product-copy .check-list {
    grid-template-columns: 1fr 1fr;
  }

  .product-visuals {
    grid-template-columns: 1fr 1fr;
    min-height: auto;
  }

  .product-visuals figure {
    min-height: 260px;
  }

  /* Hero — escala com a janela, mantendo secção seguinte visível */
  .hero {
    height: clamp(
      320px,
      calc(100svh - var(--header-height) - 10rem),
      calc(100svh - var(--header-height) - 6rem)
    );
  }

  .hero img {
    object-position: center center;
  }

  .hero-copy {
    grid-template-columns: 1fr;
    justify-content: stretch;
    align-items: end;
    padding-bottom: 2.75rem;
  }

  .hero-copy-inner {
    width: min(var(--container-max), 100%);
  }
}


/* ==========================================================================
   21. RESPONSIVO — MOBILE
   Breakpoint principal mobile-first.
   ========================================================================== */

@media (max-width: 620px) {
  .hero {
    height: clamp(
      300px,
      calc(100svh - var(--header-height) - 8rem),
      calc(100svh - var(--header-height) - 5rem)
    );
  }

  .hero img {
    object-position: center center;
  }

  .hero-copy {
    padding-bottom: 2.25rem;
    background: linear-gradient(
      180deg,
      rgba(3, 25, 43, 0.12) 0%,
      rgba(3, 25, 43, 0.5) 55%,
      rgba(3, 25, 43, 0.78) 100%
    );
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 2.65rem);
    margin-bottom: 0.875rem;
  }

  .hero p {
    font-size: 1rem;
    margin-bottom: 1.25rem;
  }

  .custom-logo {
    max-height: 52px;
    max-width: min(208px, 58vw);
  }

  .footer-custom-logo {
    max-height: 60px;
    max-width: min(240px, 72vw);
  }

  .site-header.is-scrolled .custom-logo {
    max-height: 48px;
    max-width: min(192px, 56vw);
  }

  .section {
    padding-block: 4.25rem;
  }

  .three-cols,
  .benefits-grid,
  .product-visuals {
    grid-template-columns: 1fr;
  }

  .product-copy .check-list {
    grid-template-columns: 1fr;
  }

  .product-visuals figure {
    min-height: 260px;
  }

  .brand-panel {
    padding: 2.25rem 0;
  }

  .dual-brand-grid {
    width: min(var(--container-max), calc(100% - var(--container-gutter) * 2));
    margin-inline: auto;
  }

  .service-card {
    padding: 2rem 1.75rem 1.875rem;
  }

  .service-card::before {
    left: 1.75rem;
    width: 32px;
  }

  .service-card:hover::before {
    width: 44px;
  }

  .service-card img {
    width: 96px;
    height: 96px;
    padding: 0.875rem;
    margin-bottom: 1.5rem;
  }

  .service-card h3 {
    font-size: 1.28rem;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-partners {
    flex-direction: column;
  }

  .products-grid {
    gap: 2.5rem;
  }

  .about-grid {
    gap: 2.5rem;
  }
}


/* ==========================================================================
   22. IMPRESSÃO
   Estilos mínimos para impressão limpa.
   ========================================================================== */

@media print {
  .site-header,
  .mobile-nav,
  .mobile-toggle,
  .cta-section,
  .button {
    display: none !important;
  }

  body {
    color: #000;
    background: #fff;
  }

  a {
    text-decoration: underline;
  }
}
