/* Triaperformance — shared stylesheet.
   Extracted verbatim from the inline <style> block of website/index.html
   (which was byte-identical across the ES, EN and PT homepages).
   Brand tokens per brand-guidelines.md §3-§7. */

:root {
  --blue: #004aad;
  --blue-deep: #003a89;
  --ink: #1e2019;
  --white: #ffffff;
  --wash: #edf3fb;
  --slate: #565a52;
  --mist: #e4e6e1;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }

/* Nav */
header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 24px 0;
}
/* The logo is a link on every page now (it was a plain <div> only on the three
   homepages). text-decoration:none was duplicated into every non-home page's
   inline CSS for exactly this reason — it lives here once instead. */
.logo { font-weight: 700; font-size: 20px; color: var(--blue); letter-spacing: -0.01em; text-decoration: none; }
nav a {
  color: var(--ink); text-decoration: none; font-size: 15px; margin-left: 32px;
}
nav a:hover { color: var(--blue); }
.nav-cta {
  background: var(--blue); color: var(--white) !important; padding: 10px 20px;
  border-radius: 4px; font-weight: 700;
}
.nav-cta:hover { background: var(--blue-deep); }
.lang-switch { margin-left: 32px; font-size: 14px; }
.lang-switch a { margin-left: 0; }
.lang-switch .sep { color: var(--mist); margin: 0 4px; }
.lang-active { color: var(--blue); font-weight: 700; }
.nav-dropdown { position: relative; display: inline-block; margin-left: 32px; }
.nav-dropdown > a { margin-left: 0; }
.nav-dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--white); border: 1px solid var(--mist); border-radius: 6px;
  box-shadow: 0 4px 12px rgba(30,32,25,.1); min-width: 240px; padding: 14px 0 8px; z-index: 10;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu a {
  display: block; margin-left: 0; padding: 10px 16px; font-size: 14px; white-space: nowrap;
}
.nav-dropdown-menu a:hover { background: var(--wash); color: var(--blue); }
.card-links { list-style: none; margin-top: 16px; }
.card-links li { margin-bottom: 8px; }
.card-links a { color: var(--blue); font-size: 14px; font-weight: 700; text-decoration: none; }
.card-links a:hover { text-decoration: underline; }

/* Hero — full-bleed photo section (brand guideline: one allowed per page).
   Ink overlay at 35-50% opacity per guideline §6 when text sits on a photo. */
.hero {
  position: relative;
  background: var(--ink) url("/images/hero.jpg") center center / cover no-repeat;
  color: var(--white); text-align: center;
  padding: 128px 0;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--ink); opacity: 0.45;
}
.hero .wrap { position: relative; z-index: 1; }
@media (max-width: 640px) { .hero { padding: 80px 0; } }
.label {
  font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 16px; display: block;
}
.hero .label { color: var(--white); opacity: 0.85; }
.hero h1 {
  font-size: 56px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .hero h1 { font-size: 36px; } }
.hero p {
  font-size: 19px; max-width: 560px; margin: 0 auto 40px; opacity: 0.92;
}
.btn-primary {
  display: inline-block; background: var(--white); color: var(--blue);
  padding: 16px 32px; border-radius: 4px; font-weight: 700; text-decoration: none;
  font-size: 16px;
}
.btn-primary:hover { background: var(--wash); }
.btn-secondary {
  display: inline-block; background: transparent; color: var(--white);
  border: 1.5px solid var(--white); padding: 16px 32px; border-radius: 4px;
  font-weight: 700; text-decoration: none; font-size: 16px; margin-left: 12px;
}
@media (max-width: 480px) {
  .btn-secondary { margin-left: 0; margin-top: 12px; }
}

/* Section headers */
h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 12px; }
@media (max-width: 640px) { h2 { font-size: 28px; } }
.section-intro { color: var(--slate); font-size: 17px; max-width: 65ch; margin-bottom: 56px; }

/* Services */
.grid-3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 800px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--white); border: 1px solid var(--mist); border-radius: 8px;
  padding: 32px; transition: box-shadow 0.15s;
}
.card:hover { box-shadow: 0 1px 3px rgba(30,32,25,.08); }
.card h3 { font-size: 22px; font-weight: 700; margin-bottom: 12px; }
.card p { color: var(--slate); font-size: 16px; }

/* Pricing */
.pricing {
  background: var(--wash);
}
.price-card {
  background: var(--white); border: 1px solid var(--mist); border-radius: 8px;
  padding: 48px; max-width: 420px; margin: 0 auto; text-align: center;
}
.price-card .amount {
  font-size: 56px; font-weight: 700; letter-spacing: -0.02em; color: var(--blue);
  margin: 16px 0 8px;
}
.price-card .amount span { font-size: 20px; font-weight: 400; color: var(--slate); }
.price-card ul { list-style: none; text-align: left; margin: 32px 0; }
.price-card li {
  padding: 10px 0; border-bottom: 1px solid var(--mist); font-size: 16px;
}
.price-card li:last-child { border-bottom: none; }
.price-card .btn-primary { background: var(--blue); color: var(--white); width: 100%; }
.price-card .btn-primary:hover { background: var(--blue-deep); }

/* Testimonials — plain text, no card chrome (per guideline) */
.testimonial { margin-bottom: 40px; max-width: 65ch; }
.testimonial p.quote { font-size: 17px; margin-bottom: 8px; }
.testimonial p.quote::before { content: "“"; }
.testimonial p.quote::after { content: "”"; }
.testimonial .attribution { font-size: 14px; color: var(--slate); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 56px; }
@media (max-width: 800px) { .grid-2 { grid-template-columns: 1fr; } }

/* Lead magnet CTA */
.cta-final {
  background: var(--wash); text-align: center;
}
.cta-final h2 { margin-bottom: 16px; }
.cta-final p { color: var(--slate); max-width: 560px; margin: 0 auto 32px; font-size: 17px; }
.cta-final .btn-primary { background: var(--blue); color: var(--white); }
.cta-final .btn-primary:hover { background: var(--blue-deep); }

footer {
  padding: 48px 0; text-align: center; color: var(--slate); font-size: 14px;
  border-top: 1px solid var(--mist);
}
footer a { color: var(--slate); }

/* Contact form — brand guideline §7: single column, Mist borders, 4px radius, labels above fields */
.contact-form {
  max-width: 480px; margin: 0 auto; text-align: left;
}
.contact-form .field { margin-bottom: 20px; }
.contact-form label {
  display: block; font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 6px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%; border: 1px solid var(--mist); border-radius: 4px;
  padding: 12px 14px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: var(--white);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--blue);
}
.contact-form textarea { resize: vertical; min-height: 96px; }
.contact-form .phone-row { display: flex; gap: 8px; }
.contact-form .phone-row select { flex: 0 0 128px; }
.contact-form .phone-row input { flex: 1; }
.contact-form .btn-primary {
  background: var(--blue); color: var(--white); border: none; width: 100%;
  font-size: 16px; cursor: pointer;
}
.contact-form .btn-primary:hover { background: var(--blue-deep); }
.contact-form .btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }
.form-status {
  margin-top: 16px; font-size: 15px; text-align: center; display: none;
}
.form-status.success { color: #1a7a3c; display: block; }
.form-status.error { color: #b3261e; display: block; }
.contact-divider {
  text-align: center; color: var(--slate); font-size: 14px; margin: 32px 0;
}

/* Sticky nav + mobile menu */
.site-nav-sticky {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 1px solid var(--mist);
}
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px; flex-direction: column;
  justify-content: center; align-items: center; gap: 5px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 1px; transition: all .2s; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-overlay { display: none; position: fixed; inset: 0; background: rgba(30,32,25,.4); z-index: 90; }
.nav-overlay.show { display: block; }
@media (max-width: 860px) {
  .nav-toggle { display: flex; }
  header nav {
    position: fixed; top: 0; right: -100%; width: min(320px, 85vw); height: 100vh;
    background: var(--white); box-shadow: -8px 0 24px rgba(30,32,25,.15);
    flex-direction: column; align-items: flex-start; padding: 96px 28px 28px;
    transition: right .25s ease; overflow-y: auto; z-index: 95;
  }
  header nav.mobile-open { right: 0; }
  header nav a, header nav .nav-cta { margin-left: 0; margin-bottom: 20px; font-size: 17px; display: block; width: 100%; }
  header nav .nav-dropdown { margin-left: 0; width: 100%; }
  header nav .nav-dropdown-menu {
    display: block; position: static; box-shadow: none; border: none;
    background: none; padding: 8px 0 0 12px; min-width: 0;
  }
  header nav .nav-dropdown-menu a { margin-bottom: 12px; }
  header nav .lang-switch { margin-left: 0; margin-top: 8px; }
}
