/*
Theme Name: TMF — Arqueologia e Património
Theme URI: https://tmf-arqueologia.tmfsrv-3058.chatgpt.site
Author: TMF
Description: Tema institucional responsivo para serviços de arqueologia preventiva, acompanhamento de obra e estudos patrimoniais.
Version: 1.2.5
Requires at least: 6.2
Requires PHP: 7.4
Text Domain: tmf-arqueologia
*/


:root {
  --ink: #17382f;
  --ink-deep: #0e2a23;
  --moss: #5e735a;
  --sand: #f1ecdf;
  --paper: #fbfaf5;
  --clay: #ce6447;
  --line: rgba(23, 56, 47, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
}
a { color: inherit; text-decoration: none; }

.site-header {
  align-items: center;
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid var(--line);
  display: flex;
  height: 88px;
  justify-content: space-between;
  padding: 0 clamp(24px, 5vw, 76px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.brand { align-items: center; display: inline-flex; gap: 13px; }
.brand-mark {
  align-items: center;
  background: var(--ink);
  color: var(--sand);
  display: flex;
  font-family: Georgia, serif;
  font-size: 16px;
  height: 46px;
  justify-content: center;
  letter-spacing: .08em;
  width: 46px;
}
.brand-name { font-size: 10px; font-weight: 700; letter-spacing: .12em; line-height: 1.35; text-transform: uppercase; }
nav { align-items: center; display: flex; gap: 34px; font-size: 13px; font-weight: 700; }
nav a { transition: opacity .2s ease; }
nav a:hover { opacity: .55; }
.nav-contact { border-left: 1px solid var(--line); padding-left: 34px; }
.nav-contact span { color: var(--clay); margin-left: 6px; }

.hero { min-height: calc(100vh - 88px); padding: clamp(58px, 8vw, 108px) clamp(24px, 5vw, 76px) 0; }
.hero-grid { align-items: center; display: grid; gap: clamp(50px, 8vw, 120px); grid-template-columns: minmax(0, 1.12fr) minmax(320px, .88fr); margin: 0 auto; max-width: 1440px; }
.eyebrow { align-items: center; display: flex; font-size: 11px; font-weight: 800; gap: 10px; letter-spacing: .2em; margin: 0 0 28px; text-transform: uppercase; }
.eyebrow span { background: var(--clay); display: inline-block; height: 7px; width: 7px; }
h1, h2 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; letter-spacing: -.045em; margin: 0; }
h1 { font-size: clamp(54px, 6.4vw, 102px); line-height: .96; max-width: 870px; }
h1 em, .method-panel h2 em { color: var(--clay); font-weight: 400; }
.hero-lead { font-size: clamp(16px, 1.4vw, 21px); line-height: 1.65; margin: 34px 0 0; max-width: 650px; }
.hero-actions { align-items: center; display: flex; gap: 30px; margin-top: 38px; }
.button { align-items: center; display: inline-flex; font-size: 13px; font-weight: 800; gap: 34px; justify-content: space-between; padding: 17px 20px; }
.button-primary { background: var(--ink); color: white; min-width: 245px; transition: background .2s ease, transform .2s ease; }
.button-primary:hover { background: var(--clay); transform: translateY(-2px); }
.text-link { border-bottom: 1px solid var(--ink); font-size: 13px; font-weight: 700; padding-bottom: 4px; }

.hero-visual { display: flex; justify-content: flex-end; }
.hero-photo-card { background: var(--sand); border: 1px solid var(--line); box-shadow: 24px 24px 0 rgba(23,56,47,.07); margin: 0; padding: 16px; position: relative; transform: rotate(1.5deg); width: min(100%, 520px); }
.hero-photo-card img { display: block; filter: saturate(.72) contrast(1.04); height: 415px; object-fit: cover; width: 100%; }
.hero-photo-card::after { background-image: linear-gradient(rgba(241,236,223,.24) 1px, transparent 1px), linear-gradient(90deg, rgba(241,236,223,.24) 1px, transparent 1px); background-size: 32px 32px; content: ""; inset: 16px 16px 54px; pointer-events: none; position: absolute; }
.photo-index { background: var(--sand); font-size: 9px; font-weight: 800; left: 28px; letter-spacing: .16em; padding: 8px 10px; position: absolute; text-transform: uppercase; top: 28px; z-index: 2; }
.photo-target { border: 1px solid var(--clay); border-radius: 50%; height: 62px; left: 48%; position: absolute; top: 43%; width: 62px; z-index: 2; }
.photo-target::before { background: var(--clay); border: 4px solid rgba(241,236,223,.85); border-radius: 50%; content: ""; height: 14px; left: 50%; position: absolute; top: 50%; transform: translate(-50%,-50%); width: 14px; }
.hero-photo-card figcaption { display: flex; font-size: 9px; font-weight: 800; justify-content: space-between; letter-spacing: .12em; padding: 16px 2px 0; text-transform: uppercase; }
.hero-foot { align-items: center; border-top: 1px solid var(--line); display: flex; font-size: 10px; font-weight: 800; gap: 18px; justify-content: center; letter-spacing: .15em; margin-top: 80px; min-height: 72px; text-transform: uppercase; }
.hero-foot i { background: var(--clay); border-radius: 50%; height: 3px; width: 3px; }

.section { padding: clamp(90px, 11vw, 170px) clamp(24px, 5vw, 76px); }
.services { background: var(--sand); }
.section-heading { display: grid; gap: 24px 50px; grid-template-columns: .7fr 1.25fr .8fr; margin: 0 auto 70px; max-width: 1440px; }
.section-heading .eyebrow { align-self: start; }
.section-heading h2 { font-size: clamp(46px, 5vw, 76px); line-height: 1.03; }
.section-heading > p:last-child { align-self: end; font-size: 16px; line-height: 1.7; margin: 0; }
.service-list { border-top: 1px solid var(--line); margin: 0 auto; max-width: 1440px; }
.service-card { border-bottom: 1px solid var(--line); display: grid; gap: 30px; grid-template-columns: 80px 1fr 50px; padding: 38px 6px; transition: background .25s ease, padding .25s ease; }
.service-card:hover { background: rgba(251,250,245,.65); padding-left: 20px; padding-right: 20px; }
.service-number { color: var(--clay); font-family: Georgia, serif; font-size: 16px; }
.service-card h3 { font-family: Georgia, serif; font-size: clamp(25px, 2.3vw, 37px); font-weight: 400; margin: 0 0 12px; }
.service-card p { line-height: 1.65; margin: 0 0 18px; max-width: 760px; }
.service-card small { font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.service-arrow { align-self: center; color: var(--clay); font-size: 26px; text-align: right; }

.experience { background: var(--ink-deep); color: white; }
.experience-intro { align-items: end; display: grid; gap: 40px 90px; grid-template-columns: 1.2fr .8fr; margin: 0 auto 70px; max-width: 1440px; }
.experience-intro h2 { font-size: clamp(48px, 5.6vw, 84px); line-height: 1; }
.experience-intro h2 em { color: var(--clay); font-weight: 400; }
.experience-intro > p { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.75; margin: 0; max-width: 620px; }
.experience-stats { border-bottom: 1px solid rgba(255,255,255,.18); border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(4,1fr); margin: 0 auto 100px; max-width: 1440px; }
.experience-stats div { border-right: 1px solid rgba(255,255,255,.18); display: flex; flex-direction: column; padding: 38px 28px; }
.experience-stats div:last-child { border-right: 0; }
.experience-stats strong { color: var(--sand); font-family: Georgia, serif; font-size: clamp(42px,4.3vw,68px); font-weight: 400; letter-spacing: -.04em; }
.experience-stats sup { color: var(--clay); font-size: .45em; }
.experience-stats span { color: rgba(255,255,255,.62); font-size: 9px; font-weight: 800; letter-spacing: .16em; margin-top: 8px; text-transform: uppercase; }
.project-heading { align-items: end; display: flex; justify-content: space-between; margin: 0 auto 32px; max-width: 1440px; }
.project-heading .eyebrow { margin: 0; }
.project-heading > p:last-child { color: rgba(255,255,255,.58); font-size: 13px; margin: 0; }
.project-grid { display: grid; gap: 1px; grid-template-columns: repeat(3,1fr); margin: 0 auto; max-width: 1440px; background: rgba(255,255,255,.16); }
.project-card { background: var(--ink-deep); display: flex; flex-direction: column; min-height: 330px; padding: 34px; transition: background .25s ease; }
.project-card:hover { background: #17382f; }
.project-featured { background: var(--clay); color: var(--ink-deep); grid-row: span 2; min-height: 661px; }
.project-type { font-size: 9px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.project-code { color: var(--clay); font-family: Georgia, serif; font-size: 17px; margin-bottom: 10px; }
.project-featured .project-code { color: var(--ink-deep); }
.project-card h3 { font-family: Georgia, serif; font-size: clamp(25px,2.2vw,35px); font-weight: 400; line-height: 1.15; margin: auto 0 18px; }
.project-featured h3 { font-size: clamp(35px,3.4vw,54px); }
.project-card p { color: rgba(255,255,255,.68); font-size: 14px; line-height: 1.65; margin: 0 0 26px; }
.project-featured p { color: rgba(14,42,35,.78); }
.project-card small { border-top: 1px solid rgba(255,255,255,.2); font-size: 9px; font-weight: 800; letter-spacing: .1em; padding-top: 18px; text-transform: uppercase; }
.project-featured small { border-color: rgba(14,42,35,.24); }

.field-gallery { background: var(--paper); padding: clamp(90px, 11vw, 165px) clamp(24px, 5vw, 76px); }
.gallery-heading { align-items: end; display: grid; gap: 30px 54px; grid-template-columns: .62fr 1.1fr .72fr; margin: 0 auto 64px; max-width: 1440px; }
.gallery-heading .eyebrow { align-self: start; }
.gallery-heading h2 { font-size: clamp(48px, 5.4vw, 82px); line-height: 1; }
.gallery-heading h2 em { color: var(--clay); font-weight: 400; }
.gallery-heading > p:last-child { font-size: 16px; line-height: 1.7; margin: 0; }
.gallery-grid { display: grid; gap: 20px; grid-template-columns: 1.35fr .7fr; grid-template-rows: 330px 330px; margin: 0 auto; max-width: 1440px; }
.gallery-image { margin: 0; overflow: hidden; position: relative; }
.gallery-image::after { background: linear-gradient(transparent 55%, rgba(14,42,35,.77)); content: ""; inset: 0; pointer-events: none; position: absolute; }
.gallery-image img { display: block; filter: saturate(.72); height: 100%; object-fit: cover; transition: filter .35s ease, transform .6s ease; width: 100%; }
.gallery-image:hover img { filter: saturate(.95); transform: scale(1.025); }
.gallery-image figcaption { bottom: 22px; color: white; font-size: 11px; font-weight: 800; left: 24px; letter-spacing: .13em; position: absolute; text-transform: uppercase; z-index: 2; }
.gallery-image figcaption span { color: #e98a6d; font-family: Georgia, serif; margin-right: 12px; }
.gallery-wide { grid-row: 1 / 3; }
.gallery-wide img { object-position: center; }
.gallery-tall img { object-position: center 58%; }
.gallery-underwater img { object-position: center 58%; }

.method-contact { display: grid; grid-template-columns: 1.15fr .85fr; }
.method-panel { background: var(--ink); color: white; padding: clamp(80px, 9vw, 140px) clamp(24px, 6vw, 100px); }
.eyebrow-light { color: var(--sand); }
.method-panel h2 { font-size: clamp(48px, 5.4vw, 82px); line-height: 1.02; }
.method-intro { color: rgba(255,255,255,.72); font-size: 17px; line-height: 1.7; margin: 30px 0 56px; max-width: 610px; }
.phase-list { border-top: 1px solid rgba(255,255,255,.19); }
.phase { border-bottom: 1px solid rgba(255,255,255,.19); display: grid; gap: 24px; grid-template-columns: 55px 1fr; padding: 25px 0; }
.phase > span { color: var(--clay); font-family: Georgia, serif; }
.phase h3 { font-size: 17px; margin: 0 0 7px; }
.phase p { color: rgba(255,255,255,.65); font-size: 13px; line-height: 1.55; margin: 0; }
.contact-panel { background: var(--clay); color: var(--ink-deep); display: flex; flex-direction: column; justify-content: space-between; padding: clamp(80px, 9vw, 140px) clamp(24px, 6vw, 90px); }
.contact-panel .eyebrow span { background: var(--ink); }
.contact-panel h2 { font-size: clamp(44px, 4.6vw, 72px); line-height: 1.02; }
.contact-panel > div > p { font-size: 16px; line-height: 1.65; margin: 28px 0 38px; max-width: 500px; }
.contact-email { align-items: center; border-bottom: 2px solid var(--ink); display: flex; font-family: Georgia, serif; font-size: clamp(20px, 2vw, 30px); justify-content: space-between; padding-bottom: 12px; }
.placeholder-note { font-size: 10px !important; font-weight: 700; letter-spacing: .05em; margin: 10px 0 0 !important; opacity: .72; }
.contact-meta { border-top: 1px solid rgba(14,42,35,.25); display: flex; font-size: 9px; font-weight: 800; justify-content: space-between; letter-spacing: .12em; margin-top: 70px; padding-top: 20px; text-transform: uppercase; }

footer { align-items: center; background: var(--paper); display: grid; gap: 30px; grid-template-columns: 1fr 1fr 1fr; padding: 44px clamp(24px, 5vw, 76px); }
footer p { font-family: Georgia, serif; font-size: 14px; margin: 0; text-align: center; }
footer > a:last-child { font-size: 11px; font-weight: 800; text-align: right; text-transform: uppercase; }

/* CEO */
.ceo-page { background: var(--paper); }
.ceo-header nav .active { color: var(--clay); }
.ceo-hero { align-items: center; display: grid; gap: clamp(50px,8vw,120px); grid-template-columns: 1.05fr .95fr; min-height: calc(100vh - 88px); padding: clamp(60px,8vw,110px) clamp(24px,7vw,110px); }
.ceo-hero h1 { font-size: clamp(62px,8vw,124px); }
.ceo-hero h1 em { color: var(--clay); font-weight: 400; }
.ceo-lead { font-size: clamp(18px,1.6vw,23px); line-height: 1.65; margin: 38px 0 0; max-width: 650px; }
.ceo-portrait { background: var(--sand); box-shadow: 28px 28px 0 rgba(23,56,47,.08); margin: 0; padding: 16px; transform: rotate(1.2deg); }
.ceo-portrait img { display: block; filter: saturate(.78); height: min(68vh,720px); object-fit: cover; object-position: center top; width: 100%; }
.ceo-portrait figcaption { display: flex; font-size: 9px; font-weight: 800; justify-content: space-between; letter-spacing: .12em; padding: 16px 2px 0; text-transform: uppercase; }
.ceo-profile { display: grid; gap: 60px 100px; grid-template-columns: .92fr 1.08fr; }
.ceo-profile h2, .science-heading h2, .publications-heading h2, .ceo-recognition h2 { font-size: clamp(46px,5vw,78px); line-height: 1.02; }
.ceo-profile h2 em, .ceo-recognition h2 em { color: var(--clay); font-weight: 400; }
.ceo-profile-copy { border-top: 1px solid var(--line); padding-top: 26px; }
.ceo-profile-copy p { font-size: 17px; line-height: 1.8; margin: 0 0 24px; }
.ceo-numbers { background: var(--clay); color: var(--ink-deep); display: grid; grid-template-columns: repeat(4,1fr); padding: 0 clamp(24px,5vw,76px); }
.ceo-numbers div { border-right: 1px solid rgba(14,42,35,.25); display: flex; flex-direction: column; padding: 46px 28px; }
.ceo-numbers div:last-child { border-right: 0; }
.ceo-numbers strong { font-family: Georgia,serif; font-size: clamp(45px,5vw,76px); font-weight: 400; }
.ceo-numbers sup { font-size: .45em; }
.ceo-numbers span { font-size: 9px; font-weight: 800; letter-spacing: .15em; margin-top: 8px; text-transform: uppercase; }
.science-section { background: var(--ink-deep); color: white; }
.science-heading { align-items: end; display: grid; gap: 30px 65px; grid-template-columns: .55fr 1.05fr .7fr; margin: 0 auto 75px; max-width: 1440px; }
.science-heading > p:last-child { color: rgba(255,255,255,.65); line-height: 1.75; margin: 0; }
.science-columns { border-top: 1px solid rgba(255,255,255,.18); display: grid; grid-template-columns: repeat(3,1fr); margin: 0 auto; max-width: 1440px; }
.science-columns article { border-right: 1px solid rgba(255,255,255,.18); padding: 38px; }
.science-columns article:last-child { border-right: 0; }
.science-number { color: var(--clay); font-family: Georgia,serif; }
.science-columns h3 { font-family: Georgia,serif; font-size: 30px; font-weight: 400; margin: 70px 0 20px; }
.science-columns p { color: rgba(255,255,255,.64); font-size: 14px; line-height: 1.7; }
.publications { background: var(--sand); display: grid; gap: 60px 100px; grid-template-columns: .85fr 1.15fr; }
.publication-list { border-top: 1px solid var(--line); }
.publication-list article { border-bottom: 1px solid var(--line); display: grid; gap: 24px; grid-template-columns: 66px 1fr; padding: 27px 0; }
.publication-list > article > span { color: var(--clay); font-family: Georgia,serif; }
.publication-list h3 { font-family: Georgia,serif; font-size: 25px; font-weight: 400; margin: 0 0 8px; }
.publication-list p { font-size: 13px; line-height: 1.6; margin: 0; }
.ceo-recognition { align-items: end; background: var(--ink); color: white; display: grid; gap: 50px 100px; grid-template-columns: 1fr .8fr; padding: clamp(85px,10vw,150px) clamp(24px,7vw,110px); }
.ceo-recognition > p { color: rgba(255,255,255,.68); font-size: 17px; line-height: 1.8; margin: 0; }

@media (max-width: 900px) {
  .hero-grid, .section-heading, .experience-intro, .gallery-heading, .method-contact, .ceo-hero, .ceo-profile, .science-heading, .publications, .ceo-recognition { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-copy { max-width: 760px; }
  .hero-visual { justify-content: flex-start; }
  .hero-photo-card { width: min(88vw, 520px); }
  .section-heading > p:last-child { max-width: 620px; }
  .gallery-heading > p:last-child { max-width: 620px; }
  .contact-panel { min-height: 680px; }
  .experience-stats { grid-template-columns: repeat(2,1fr); }
  .experience-stats div:nth-child(2) { border-right: 0; }
  .experience-stats div:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.18); }
  .project-grid { grid-template-columns: 1fr 1fr; }
  .project-featured { grid-column: span 2; grid-row: auto; min-height: 460px; }
  .ceo-hero { min-height: auto; }
  .ceo-portrait { max-width: 620px; }
  .ceo-numbers { grid-template-columns: repeat(2,1fr); }
  .ceo-numbers div:nth-child(2) { border-right: 0; }
  .science-columns { grid-template-columns: 1fr; }
  .science-columns article { border-bottom: 1px solid rgba(255,255,255,.18); border-right: 0; }
}

@media (max-width: 640px) {
  .site-header { height: 74px; }
  .brand-mark { height: 40px; width: 40px; }
  nav > a:not(.nav-contact) { display: none; }
  .nav-contact { border: 0; padding-left: 0; }
  .hero { padding-top: 54px; }
  .hero-actions { align-items: stretch; flex-direction: column; gap: 22px; }
  .button-primary { min-width: 0; }
  .hero-photo-card img { height: 330px; }
  .hero-photo-card figcaption span:last-child { display: none; }
  .hero-foot { align-items: flex-start; flex-wrap: wrap; gap: 10px 14px; justify-content: flex-start; padding: 24px 0; }
  .service-card { grid-template-columns: 46px 1fr; }
  .service-arrow { display: none; }
  .experience-stats { grid-template-columns: 1fr 1fr; }
  .experience-stats div { padding: 26px 18px; }
  .project-heading { align-items: flex-start; flex-direction: column; gap: 20px; }
  .project-grid { display: flex; flex-direction: column; }
  .project-card, .project-featured { min-height: 330px; }
  .gallery-grid { display: flex; flex-direction: column; }
  .gallery-image { height: 360px; }
  .gallery-wide { height: 430px; }
  .ceo-portrait img { height: 520px; }
  .ceo-numbers div { padding: 28px 18px; }
  .contact-meta, footer { align-items: flex-start; flex-direction: column; }
  footer { display: flex; }
  footer p, footer > a:last-child { text-align: left; }
}

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


/* WordPress integration */
.primary-menu { align-items: center; display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.primary-menu li { margin: 0; }
.custom-logo-wrap .custom-logo-link { display: block; }
.custom-logo-wrap img { display: block; height: auto; max-height: 58px; max-width: 240px; width: auto; }
.contact-phone { border-bottom: 1px solid rgba(14,42,35,.35); display: inline-block; font-size: 17px; font-weight: 700; margin-top: 22px; padding-bottom: 5px; }
.wp-content { margin: 0 auto; max-width: 1100px; min-height: 65vh; }
.wp-content h1 { font-size: clamp(42px, 6vw, 78px); margin-bottom: 36px; }
.wp-content p { font-size: 17px; line-height: 1.75; }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 640px) { .primary-menu > li:not(:last-child) { display: none; } .primary-menu { gap: 0; } }
