/* ============================================================
   ESPRESSOTECHNIC — corporate site v2 "graphite & verde"
   (previous theme versions are archived in the design repository)
   Hand-built, dependency-free. pt-PT / EN.
   ============================================================ */

:root {
  --ink0: #0f1216;          /* graphite — dark sections */
  --ink0-2: #161b21;        /* raised on dark */
  --ground: #f4f5f7;        /* cool light page ground */
  --paper: #ffffff;         /* raised surfaces */
  --ink: #1d232b;           /* body text */
  --ink-soft: #5b6470;      /* secondary text */
  --line: #e3e6ea;          /* hairlines on light */
  --line-dark: #262d36;     /* hairlines on dark */
  --verde: #046a38;         /* Portuguese green — actions */
  --verde-2: #0b7f46;       /* hover */
  --rubro: #da291c;         /* Portuguese red — micro accent only */
  --accent: #0b7f46;        /* green accent on light surfaces */
  --accent-soft: #63b98a;   /* lighter green accent, legible on graphite */
  --on-dark: #e9ecf1;
  --on-dark-soft: #9aa3ae;
  --ok: #2e6e4e;
  --err: #a33a2a;
  --radius: 14px;
  --w: 1120px;
  --serif: Georgia, "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --flag-stripe: linear-gradient(90deg, var(--verde) 0 40%, var(--rubro) 40% 100%);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; height: auto; }

a { color: var(--verde); text-decoration: none; }
a:hover, a:focus-visible { text-decoration: underline; text-underline-offset: 3px; }
/* Links inside running text are underlined, not told apart by colour alone (WCAG 1.4.1) */
:where(p, li, dd, td, small, figcaption, blockquote) a:not([class]) {
  text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--verde);
  outline-offset: 2px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink0); color: #fff;
  padding: .6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 22px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink0);
}
.site-head::after {
  content: ""; display: block; height: 3px;
  background: var(--flag-stripe);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 18px; min-height: 66px;
}
.wordmark {
  font-family: var(--sans);
  font-weight: 700;
  letter-spacing: .14em;
  font-size: 1.02rem;
  color: var(--on-dark);
  white-space: nowrap;
}
.wordmark:hover { text-decoration: none; }
.wordmark .tld { color: var(--accent-soft); }
.wordmark small {
  display: block; font-weight: 400; letter-spacing: .34em;
  font-size: .56rem; color: #7f8894; margin-top: 2px; text-transform: uppercase;
}
.site-nav { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 22px; }
.site-nav a {
  color: var(--on-dark); font-size: .92rem; letter-spacing: .02em;
}
.site-nav a:hover { color: var(--accent-soft); text-decoration: none; }
.lang-switch {
  border: 1px solid #3a424d;
  border-radius: 999px;
  padding: .28rem .85rem;
  font-size: .8rem; letter-spacing: .08em;
  color: var(--accent-soft) !important;
}
.lang-switch:hover { background: var(--ink0-2); text-decoration: none; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1100px 560px at 88% -12%, rgba(4, 106, 56, .18), transparent 62%),
    radial-gradient(700px 420px at -8% 110%, rgba(4, 106, 56, .10), transparent 60%),
    var(--ink0);
  color: var(--on-dark);
  overflow: hidden;
}
.hero-art {
  position: absolute; right: -140px; top: 50%;
  transform: translateY(-50%);
  width: 640px; opacity: .09; pointer-events: none;
}
.hero .wrap { position: relative; padding: 96px 22px 88px; max-width: var(--w); }
.eyebrow {
  display: inline-block;
  font-size: .74rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent-soft); margin: 0 0 18px;
}
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 4.6vw, 3.35rem);
  line-height: 1.14;
  margin: 0 0 20px;
  max-width: 15em;
  color: #f5f7fa;
}
.hero p.lead {
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  color: var(--on-dark-soft);
  max-width: 34em;
  margin: 0 0 34px;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-block;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  font-size: .95rem; letter-spacing: .04em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-solid { background: var(--verde); color: #fff; }
.btn-solid:hover { background: var(--verde-2); color: #fff; }
.btn-ghost { border-color: #46505c; color: var(--on-dark); }
.btn-ghost:hover { border-color: var(--accent-soft); color: var(--accent-soft); }
.hero-badges {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 46px; padding-top: 26px;
  border-top: 1px solid var(--line-dark);
  font-size: .84rem; color: var(--on-dark-soft);
}
.hero-badges span { display: inline-flex; align-items: center; gap: 8px; }
.hero-badges .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent-soft); flex: none;
}

/* ---------- sections ---------- */
section { padding: 84px 0; }
section.tight { padding: 64px 0; }
.sec-head { max-width: 620px; margin-bottom: 44px; }
.sec-head .eyebrow { color: var(--accent); }
.sec-head h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  line-height: 1.2;
  margin: 0 0 14px;
  color: var(--ink0);
}
.sec-head p { color: var(--ink-soft); margin: 0; }

/* about */
.about-grid {
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 48px;
  align-items: start;
}
.about-copy p { margin: 0 0 1.1em; }
.about-copy p:last-child { margin-bottom: 0; }
.fact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 3px solid var(--verde);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: 0 10px 30px rgba(15, 18, 22, .06);
}
.fact-card h3 {
  margin: 0 0 16px; font-size: .78rem; letter-spacing: .24em;
  text-transform: uppercase; color: var(--accent);
  font-weight: 600;
}
.fact-card dl { margin: 0; }
.fact-card dt {
  font-size: .78rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 14px;
}
.fact-card dt:first-child { margin-top: 0; }
.fact-card dd { margin: 2px 0 0; font-size: .97rem; }

/* futura band */
.futura {
  background: var(--ink0);
  color: var(--on-dark);
}
.futura .inner {
  display: grid; grid-template-columns: auto 1fr; gap: 40px;
  align-items: center;
}
.futura .seal { width: 130px; flex: none; color: var(--accent-soft); }
.futura h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  margin: 0 0 14px;
  color: #f5f7fa;
}
.futura p { color: var(--on-dark-soft); margin: 0 0 1em; max-width: 56em; }
.futura p:last-child { margin: 0; }
.futura strong { color: var(--on-dark); }

/* brands */
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.brand-chip {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .85rem 1rem;
  text-align: center;
  font-size: .93rem;
  letter-spacing: .05em;
  color: var(--ink);
}
.brand-note {
  margin-top: 26px; font-size: .8rem; color: var(--ink-soft);
  max-width: 62em;
}

/* services */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
}
.svc .ico { width: 44px; height: 44px; color: var(--verde); margin-bottom: 18px; }
.svc h3 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.22rem; margin: 0 0 10px; color: var(--ink0);
}
.svc p { margin: 0; font-size: .94rem; color: var(--ink-soft); }

/* coming soon */
.soon {
  background: linear-gradient(180deg, #e9ecef, var(--ground));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.soon .inner { text-align: center; max-width: 640px; margin: 0 auto; }
.soon .tag {
  display: inline-block;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: .72rem; letter-spacing: .26em; text-transform: uppercase;
  padding: .35rem 1.1rem; margin-bottom: 20px;
}
.soon h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2rem); margin: 0 0 14px; color: var(--ink0);
}
.soon p { color: var(--ink-soft); margin: 0 0 26px; }

/* contact */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px;
  align-items: start;
}
.contact-info p { margin: 0 0 1em; color: var(--ink-soft); }
.contact-info .block { margin-bottom: 22px; }
.contact-info .block h3 {
  font-size: .78rem; letter-spacing: .22em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 6px; font-weight: 600;
}
.contact-info .block p { margin: 0; color: var(--ink); }
.contact-info a.mail { font-size: 1.05rem; }

form.contact {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: 0 10px 30px rgba(15, 18, 22, .06);
}
.field { margin-bottom: 18px; }
.field label {
  display: block; font-size: .82rem; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px;
}
.field input, .field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  padding: .72rem .9rem;
  font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus { border-color: var(--verde); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 14px; margin-top: 6px;
}
.form-foot small { color: var(--ink-soft); max-width: 26em; }
/* honeypot — invisible to humans, present for bots */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px; overflow: hidden;
}
.form-msg {
  border-radius: 9px; padding: .8rem 1rem; margin-bottom: 18px;
  font-size: .92rem;
}
.form-msg.err { background: #f9e8e4; color: var(--err); border: 1px solid #ecc9c1; }

/* ---------- footer ---------- */
.site-foot {
  background: var(--ink0);
  color: #98a1ac;
  padding: 0 0 40px;
  font-size: .86rem;
}
.site-foot::before {
  content: ""; display: block; height: 3px;
  background: var(--flag-stripe);
  margin-bottom: 52px;
}
.foot-top {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line-dark);
}
.foot-top .wordmark { font-size: .95rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; }
.foot-links a { color: #cfd5dc; }
.foot-links a:hover { color: var(--accent-soft); }
.legal-line { margin-top: 26px; line-height: 1.8; color: #7f8894; }
.legal-line strong { color: #b6bec8; font-weight: 600; }

/* ---------- legal / inner pages ---------- */
.page { padding: 72px 0 90px; }
.page .wrap { max-width: 780px; }
.page h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(1.8rem, 3.4vw, 2.5rem);
  color: var(--ink0); margin: 0 0 8px;
}
.page .updated { color: var(--ink-soft); font-size: .86rem; margin: 0 0 40px; }
.page h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: 1.4rem; color: var(--ink0);
  margin: 2.2em 0 .6em;
}
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: .4em; }
.page .back { display: inline-block; margin-top: 48px; }

/* thank-you / 404 */
.center-page {
  min-height: 62vh; display: flex; align-items: center;
  text-align: center;
}
.center-page .wrap { max-width: 560px; }
.center-page h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: 2.2rem; color: var(--ink0); margin: 0 0 14px;
}
.center-page p { color: var(--ink-soft); margin: 0 0 30px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .futura .inner { grid-template-columns: 1fr; gap: 24px; }
  .futura .seal { width: 96px; }
  .hero .wrap { padding: 72px 22px 64px; }
  .hero-art { display: none; }
  section { padding: 64px 0; }
}
@media (max-width: 620px) {
  .site-head .wrap { flex-direction: column; align-items: flex-start; padding-top: 12px; padding-bottom: 12px; }
  .two-col { grid-template-columns: 1fr; }
  body { font-size: 16px; }
}

/* print */
@media print {
  .site-head, .cta-row, form.contact, .site-foot .foot-links { display: none; }
  body { background: #fff; color: #000; }
}

/* ---------- brand mark (ET) in wordmark — added 2026-09-15 ---------- */
.wordmark { display: inline-flex; align-items: center; gap: 12px; }
.wordmark .mark { height: 30px; width: auto; flex: none; }
.wordmark .wm-text { display: inline-block; line-height: 1.05; }
.foot-top .wordmark .mark { height: 24px; }
