/*
Theme Name: TMF Arqueologia 2026
Theme URI: https://tiagomiguelfraga.pt
Author: Tiago Miguel Fraga, Unipessoal, Lda.
Description: Tema institucional e comercial para a TMF, estruturado em cinco linhas comerciais de arqueologia e património.
Version: 1.1.1
Requires at least: 6.4
Requires PHP: 7.4
Text Domain: tmf-2026
*/

:root {
  --tmf-ink: #25313a;
  --tmf-navy: #0d4e63;
  --tmf-teal: #14afa8;
  --tmf-teal-dark: #168a86;
  --tmf-blue: #35658f;
  --tmf-green: #5c7f4b;
  --tmf-muted: #68747c;
  --tmf-line: #d8e0e2;
  --tmf-soft: #f3f5f6;
  --tmf-mint: #e8f7f5;
  --tmf-paper: #fbfcfc;
  --tmf-white: #fff;
  --tmf-max: 1240px;
  --tmf-radius: 4px;
  --tmf-shadow: 0 24px 60px rgba(13, 78, 99, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--tmf-ink);
  background: var(--tmf-paper);
  font-family: "Aptos", "Segoe UI", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.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; }
.skip-link:focus { position: fixed; z-index: 9999; top: 12px; left: 12px; width: auto; height: auto; padding: 10px 14px; margin: 0; clip: auto; background: var(--tmf-white); color: var(--tmf-navy); }

.tmf-wrap { width: min(calc(100% - 48px), var(--tmf-max)); margin-inline: auto; }
.tmf-eyebrow { margin: 0 0 18px; color: var(--tmf-teal-dark); font-size: .76rem; font-weight: 800; letter-spacing: .17em; text-transform: uppercase; }
.tmf-title { margin: 0; color: var(--tmf-navy); font-size: clamp(2.55rem, 6vw, 5.75rem); line-height: .98; letter-spacing: -.045em; }
.tmf-title em { color: var(--tmf-teal-dark); font-weight: 500; }
.tmf-section-title { max-width: 800px; margin: 0; color: var(--tmf-navy); font-size: clamp(2rem, 4vw, 3.7rem); line-height: 1.05; letter-spacing: -.035em; }
.tmf-section-lead { max-width: 760px; margin: 22px 0 0; color: var(--tmf-muted); font-size: 1.08rem; }
.tmf-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border: 1px solid var(--tmf-navy); background: var(--tmf-navy); color: var(--tmf-white); font-size: .88rem; font-weight: 800; letter-spacing: .02em; text-decoration: none; transition: background .2s ease, color .2s ease, transform .2s ease; }
.tmf-button:hover, .tmf-button:focus-visible { background: var(--tmf-teal-dark); border-color: var(--tmf-teal-dark); transform: translateY(-2px); }
.tmf-button--ghost { background: transparent; color: var(--tmf-navy); }
.tmf-button--ghost:hover, .tmf-button--ghost:focus-visible { color: var(--tmf-white); }

.tmf-header { position: sticky; z-index: 100; top: 0; border-bottom: 1px solid rgba(104,116,124,.2); background: rgba(251,252,252,.94); backdrop-filter: blur(16px); }
.tmf-header__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; min-height: 88px; gap: 32px; }
.tmf-brand { display: inline-flex; align-items: center; gap: 12px; color: var(--tmf-navy); text-decoration: none; }
.tmf-brand__mark { color: var(--tmf-teal); font-size: 1.9rem; font-weight: 900; letter-spacing: -.06em; }
.tmf-brand__name { max-width: 190px; font-size: .75rem; font-weight: 800; line-height: 1.2; letter-spacing: .06em; text-transform: uppercase; }
.tmf-header__contact { justify-self: start; color: var(--tmf-muted); font-size: .88rem; text-decoration: none; }
.tmf-header__contact:hover { color: var(--tmf-teal-dark); }
.tmf-nav { justify-self: end; }
.tmf-nav ul { display: flex; align-items: center; gap: 25px; margin: 0; padding: 0; list-style: none; }
.tmf-nav a { color: var(--tmf-navy); font-size: .8rem; font-weight: 800; text-decoration: none; }
.tmf-nav a:hover, .tmf-nav a:focus-visible { color: var(--tmf-teal-dark); }
.tmf-menu-toggle { display: none; border: 0; background: transparent; color: var(--tmf-navy); font: inherit; font-weight: 800; }

.tmf-hero { padding: clamp(80px, 10vw, 150px) 0 70px; overflow: hidden; }
.tmf-hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: clamp(50px, 8vw, 110px); }
.tmf-hero__lead { max-width: 710px; margin: 30px 0 0; color: var(--tmf-muted); font-size: clamp(1.05rem, 1.7vw, 1.28rem); }
.tmf-hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.tmf-hero__visual { position: relative; min-height: 540px; padding: 30px; border: 1px solid var(--tmf-line); background: var(--tmf-white); box-shadow: var(--tmf-shadow); transform: rotate(1.3deg); }
.tmf-hero__visual::after { position: absolute; z-index: -1; right: -34px; bottom: -34px; width: 74%; height: 72%; background: var(--tmf-mint); content: ""; }
.tmf-hero__visual img { width: 100%; height: 430px; object-fit: cover; filter: saturate(.82) contrast(1.04); }
.tmf-hero__caption { display: flex; justify-content: space-between; gap: 20px; padding-top: 18px; color: var(--tmf-navy); font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.tmf-proofbar { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 72px; border-top: 1px solid var(--tmf-line); border-bottom: 1px solid var(--tmf-line); }
.tmf-proofbar__item { padding: 25px 24px; border-right: 1px solid var(--tmf-line); text-align: center; }
.tmf-proofbar__item:last-child { border-right: 0; }
.tmf-proofbar strong { display: block; color: var(--tmf-navy); font-size: 1.7rem; line-height: 1.1; }
.tmf-proofbar span { color: var(--tmf-muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }

.tmf-section { padding: clamp(78px, 10vw, 135px) 0; }
.tmf-section--soft { background: var(--tmf-soft); }
.tmf-section--navy { background: var(--tmf-navy); color: var(--tmf-white); }
.tmf-section--navy .tmf-eyebrow { color: var(--tmf-teal); }
.tmf-section--navy .tmf-section-title { color: var(--tmf-white); }
.tmf-section--navy .tmf-section-lead { color: #d8e0e2; }
.tmf-lines { display: grid; grid-template-columns: repeat(6, 1fr); margin-top: 55px; border-top: 1px solid var(--tmf-line); border-left: 1px solid var(--tmf-line); }
.tmf-line-card { position: relative; min-height: 360px; padding: 42px; border-right: 1px solid var(--tmf-line); border-bottom: 1px solid var(--tmf-line); background: var(--tmf-white); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease; }
.tmf-line-card { grid-column: span 2; }
.tmf-line-card:nth-child(n+4) { grid-column: span 3; }
.tmf-line-card:hover { z-index: 2; transform: translateY(-5px); box-shadow: var(--tmf-shadow); }
.tmf-line-card::before { position: absolute; top: 0; left: 0; width: 6px; height: 100%; background: var(--accent, var(--tmf-teal)); content: ""; }
.tmf-line-card__number { color: var(--accent, var(--tmf-teal)); font-size: .8rem; font-weight: 900; letter-spacing: .16em; }
.tmf-line-card h3 { max-width: 430px; margin: 56px 0 18px; color: var(--tmf-navy); font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.04; letter-spacing: -.03em; }
.tmf-line-card p { max-width: 520px; margin: 0; color: var(--tmf-muted); }
.tmf-line-card__link { display: inline-block; margin-top: 30px; color: var(--tmf-navy); font-size: .8rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }

.tmf-verticals { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 54px; border: 1px solid rgba(255,255,255,.18); }
.tmf-vertical { min-height: 310px; padding: 32px; border-right: 1px solid rgba(255,255,255,.18); color: var(--tmf-white); text-decoration: none; }
.tmf-vertical:last-child { border-right: 0; }
.tmf-vertical span { color: var(--tmf-teal); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.tmf-vertical h3 { margin: 90px 0 16px; font-size: 1.65rem; line-height: 1.05; }
.tmf-vertical p { margin: 0; color: #d8e0e2; font-size: .94rem; }
.tmf-vertical:hover { background: rgba(255,255,255,.06); }

.tmf-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 54px; }
.tmf-case { padding: 30px; border-top: 5px solid var(--accent, var(--tmf-teal)); background: var(--tmf-white); }
.tmf-case__image { width: calc(100% + 60px); max-width: none; height: 210px; margin: -30px -30px 26px; object-fit: cover; }
.tmf-case__meta { color: var(--accent, var(--tmf-teal-dark)); font-size: .72rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tmf-case h3 { margin: 26px 0 14px; color: var(--tmf-navy); font-size: 1.35rem; line-height: 1.25; }
.tmf-case p { margin: 0; color: var(--tmf-muted); font-size: .94rem; }

.tmf-process { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 52px; border-top: 1px solid var(--tmf-line); }
.tmf-process__step { padding: 34px 26px 0 0; }
.tmf-process__step strong { color: var(--tmf-teal-dark); font-size: .8rem; letter-spacing: .12em; }
.tmf-process__step h3 { margin: 28px 0 12px; color: var(--tmf-navy); font-size: 1.25rem; }
.tmf-process__step p { margin: 0; color: var(--tmf-muted); font-size: .93rem; }

.tmf-contact { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 70px; }
.tmf-contact__links { display: grid; gap: 12px; }
.tmf-contact__links a { display: flex; justify-content: space-between; padding: 20px 0; border-bottom: 1px solid rgba(255,255,255,.25); color: var(--tmf-white); font-size: clamp(1.1rem, 2vw, 1.6rem); text-decoration: none; }

.tmf-page-hero { padding: clamp(80px, 10vw, 145px) 0 80px; border-bottom: 1px solid var(--tmf-line); }
.tmf-page-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 70px; align-items: end; }
.tmf-page-hero .tmf-title { font-size: clamp(3rem, 7vw, 6.4rem); }
.tmf-page-hero__aside { padding: 28px; border-left: 5px solid var(--accent, var(--tmf-teal)); background: var(--tmf-soft); color: var(--tmf-muted); }
.tmf-page-hero__aside strong { display: block; margin-bottom: 12px; color: var(--tmf-navy); }
.tmf-page-hero__visual { margin: 0; border-left: 5px solid var(--accent, var(--tmf-teal)); background: var(--tmf-white); box-shadow: var(--tmf-shadow); }
.tmf-page-hero__visual img { width: 100%; height: 300px; object-fit: cover; }
.tmf-page-hero__visual figcaption { padding: 24px 28px; color: var(--tmf-muted); }
.tmf-page-hero__visual strong { display: block; margin-bottom: 8px; color: var(--tmf-navy); }
.tmf-content-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 70px; }
.tmf-sticky-label { position: sticky; top: 125px; align-self: start; color: var(--tmf-teal-dark); font-size: .75rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.tmf-rich h2 { margin: 0 0 28px; color: var(--tmf-navy); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.08; letter-spacing: -.03em; }
.tmf-rich h3 { margin: 48px 0 14px; color: var(--tmf-navy); font-size: 1.35rem; }
.tmf-rich p { color: var(--tmf-muted); }
.tmf-deliverables { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 34px 0 0; padding: 0; list-style: none; }
.tmf-deliverables li { min-height: 96px; padding: 22px; border: 1px solid var(--tmf-line); background: var(--tmf-white); color: var(--tmf-navy); font-weight: 700; }
.tmf-deliverables li::before { color: var(--accent, var(--tmf-teal)); content: "●"; margin-right: 10px; }
.tmf-page-cases { margin-top: 55px; }

.tmf-service-hero { padding: clamp(70px, 9vw, 125px) 0 78px; border-bottom: 1px solid var(--tmf-line); overflow: hidden; }
.tmf-service-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); align-items: center; gap: clamp(48px, 7vw, 95px); }
.tmf-service-hero__copy .tmf-title { font-size: clamp(3rem, 6vw, 5.7rem); }
.tmf-service-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 34px 0 0; padding: 25px 0 0; border-top: 1px solid var(--tmf-line); list-style: none; color: var(--tmf-navy); font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.tmf-service-proof li::before { margin-right: 8px; color: var(--accent, var(--tmf-teal)); content: "●"; }
.tmf-service-hero__media { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; transform: rotate(1deg); }
.tmf-service-hero__media figure { position: relative; min-width: 0; margin: 0; padding: 10px; background: var(--tmf-white); box-shadow: var(--tmf-shadow); }
.tmf-service-hero__media img { width: 100%; height: 220px; object-fit: cover; }
.tmf-service-hero__media figcaption { padding: 10px 4px 2px; color: var(--tmf-muted); font-size: .63rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.tmf-service-hero__main-image { grid-column: 1 / -1; }
.tmf-service-hero__main-image img { height: 330px; }
.tmf-trigger-list { display: grid; gap: 0; margin: 34px 0 28px; padding: 0; border-top: 1px solid var(--tmf-line); list-style: none; }
.tmf-trigger-list li { position: relative; padding: 20px 20px 20px 38px; border-bottom: 1px solid var(--tmf-line); color: var(--tmf-navy); font-weight: 700; }
.tmf-trigger-list li::before { position: absolute; left: 8px; color: var(--tmf-teal-dark); content: "✓"; }
.tmf-text-link { color: var(--tmf-navy); font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.tmf-text-link:hover, .tmf-text-link:focus-visible { color: var(--tmf-teal-dark); }
.tmf-audiences { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 54px; border: 1px solid rgba(255,255,255,.18); }
.tmf-audiences article { min-height: 320px; padding: 34px; border-right: 1px solid rgba(255,255,255,.18); }
.tmf-audiences article:last-child { border-right: 0; }
.tmf-audiences span { color: var(--tmf-teal); font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.tmf-audiences h3 { margin: 80px 0 16px; font-size: 1.55rem; }
.tmf-audiences p { margin: 0; color: #d8e0e2; font-size: .94rem; }
.tmf-process--five { grid-template-columns: repeat(5, 1fr); }
.tmf-faq-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(50px, 8vw, 100px); }
.tmf-document-list { display: grid; gap: 8px; margin: 34px 0; padding: 0; list-style: none; }
.tmf-document-list li { padding: 14px 18px; border-left: 4px solid var(--tmf-teal); background: var(--tmf-soft); color: var(--tmf-navy); font-weight: 700; }
.tmf-faq { border-top: 1px solid var(--tmf-line); }
.tmf-faq .tmf-eyebrow { margin-top: 28px; }
.tmf-faq details { border-bottom: 1px solid var(--tmf-line); }
.tmf-faq summary { position: relative; padding: 25px 42px 25px 0; color: var(--tmf-navy); font-size: 1.08rem; font-weight: 800; cursor: pointer; list-style: none; }
.tmf-faq summary::-webkit-details-marker { display: none; }
.tmf-faq summary::after { position: absolute; right: 5px; color: var(--tmf-teal-dark); content: "+"; font-size: 1.45rem; }
.tmf-faq details[open] summary::after { content: "−"; }
.tmf-faq details p { margin: -5px 0 24px; color: var(--tmf-muted); }

.tmf-footer { padding: 48px 0; border-top: 1px solid var(--tmf-line); background: var(--tmf-white); }
.tmf-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.tmf-footer p { margin: 0; color: var(--tmf-muted); font-size: .82rem; }
.tmf-footer a { color: var(--tmf-navy); font-weight: 800; text-decoration: none; }

.entry-content { width: min(calc(100% - 48px), 850px); margin: 70px auto 110px; }
.entry-content h1, .entry-content h2, .entry-content h3 { color: var(--tmf-navy); line-height: 1.15; }
.entry-content a { color: var(--tmf-teal-dark); }

@media (max-width: 1050px) {
  .tmf-header__contact { display: none; }
  .tmf-header__row { grid-template-columns: auto 1fr; }
  .tmf-hero__grid, .tmf-page-hero__grid, .tmf-service-hero__grid { grid-template-columns: 1fr; }
  .tmf-hero__visual { max-width: 760px; }
  .tmf-lines { grid-template-columns: repeat(2, 1fr); }
  .tmf-line-card, .tmf-line-card:nth-child(n+4) { grid-column: auto; }
  .tmf-verticals { grid-template-columns: repeat(2, 1fr); }
  .tmf-vertical { border-bottom: 1px solid rgba(255,255,255,.18); }
  .tmf-vertical:nth-child(2) { border-right: 0; }
  .tmf-cases { grid-template-columns: repeat(2, 1fr); }
  .tmf-process--five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .tmf-wrap { width: min(calc(100% - 30px), var(--tmf-max)); }
  .tmf-header__row { min-height: 74px; }
  .tmf-brand__name { display: none; }
  .tmf-menu-toggle { display: block; justify-self: end; }
  .tmf-nav { position: fixed; inset: 74px 0 auto; display: none; padding: 26px 22px 38px; border-bottom: 1px solid var(--tmf-line); background: var(--tmf-white); }
  .nav-open .tmf-nav { display: block; }
  .tmf-nav ul { align-items: flex-start; flex-direction: column; gap: 18px; }
  .tmf-nav a { font-size: 1rem; }
  .tmf-hero { padding-top: 70px; }
  .tmf-title { font-size: clamp(2.7rem, 14vw, 4.6rem); }
  .tmf-hero__visual { min-height: auto; padding: 15px; transform: none; }
  .tmf-hero__visual img { height: 310px; }
  .tmf-proofbar { grid-template-columns: repeat(2, 1fr); }
  .tmf-proofbar__item:nth-child(2) { border-right: 0; }
  .tmf-proofbar__item:nth-child(-n+2) { border-bottom: 1px solid var(--tmf-line); }
  .tmf-lines, .tmf-cases, .tmf-process, .tmf-contact, .tmf-content-grid, .tmf-deliverables, .tmf-audiences, .tmf-faq-layout { grid-template-columns: 1fr; }
  .tmf-line-card { min-height: 310px; padding: 30px; }
  .tmf-verticals { grid-template-columns: 1fr; }
  .tmf-vertical { min-height: 245px; border-right: 0; }
  .tmf-vertical h3 { margin-top: 62px; }
  .tmf-service-hero__media { gap: 8px; transform: none; }
  .tmf-service-hero__main-image img { height: 260px; }
  .tmf-service-hero__media img { height: 180px; }
  .tmf-service-proof { align-items: flex-start; flex-direction: column; }
  .tmf-audiences article { min-height: auto; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.18); }
  .tmf-audiences h3 { margin-top: 45px; }
  .tmf-sticky-label { position: static; }
  .tmf-footer__row { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
