/* ============================================
   IBEROBRITA - SHARED STYLES
   ============================================ */
/* Fonts loaded via <link> in <head> for better performance */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg-primary: #121212;
  --bg-card: rgba(58, 58, 58, 0.4);
  --bg-card-border: rgba(217, 45, 32, 0.15);
  --text-white: #F5F5F2;
  --text-muted: #A8A8AD;
  --text-body: #D9D9DE;
  --accent-red: #D92D20;
  --accent-red-dim: rgba(217, 45, 32, 0.3);
  --accent-red-light: #D92D20;
  --accent-red-dark: #B42318;
  --accent-red-muted: #B42318;
  --accent-red-alt: #D92D20;
  /* Legacy aliases for inline styles in HTML */
  --accent-green: var(--accent-red);
  --accent-cyan: var(--accent-red);
  --accent-yellow: var(--accent-red-dark);
  --accent-purple: var(--accent-red-muted);
  --navy-dark: #1a1a1a;
  --navy-light: #2a2a2a;
  --font-heading: 'Geist', sans-serif;
  --font-mono: 'Work Sans', sans-serif;
  --font-body: 'Geist', sans-serif;
  --border-subtle: rgba(217, 45, 32, 0.08);
  --grid-line: rgba(255, 255, 255, 0.07);
}

.skip-to-content {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 10000;
  padding: 8px 16px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 14px;
  border-radius: 0 0 4px 4px;
  transition: top 0.3s;
}
.skip-to-content:focus {
  top: 0;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-primary);
  color: var(--text-white);
  font-family: var(--font-body);
  overflow-x: hidden;
  line-height: 1.6;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ============================================
   BACKGROUND GRID
   ============================================ */
.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 200px 200px;
}

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.section { position: relative; z-index: 1; }

/* ============================================
   COOKIE BANNER
   ============================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.cookie-banner span {
  color: var(--text-muted);
}

.cookie-btn {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.7);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.cookie-btn:first-of-type {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

.cookie-btn:first-of-type:hover {
  background: #b82518;
  border-color: #b82518;
}

.cookie-btn:last-of-type:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

.cookie-banner.hidden { display: none; }

/* ============================================
   STATUS BAR
   ============================================ */
.status-bar {
  position: fixed;
  bottom: 20px;
  right: 40px;
  z-index: 999;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.status-brand {
  transition: opacity 0.4s ease;
}

/* ============================================
   SCROLLBAR
   ============================================ */
.scrollbar-track {
  position: fixed;
  right: 10px;
  top: 100px;
  bottom: 100px;
  width: 3px;
  background: rgba(255,255,255,0.05);
  z-index: 999;
  border-radius: 2px;
}

.scrollbar-thumb {
  width: 3px;
  height: 60px;
  background: var(--accent-red);
  border-radius: 2px;
  transition: top 0.1s;
}

/* Hide native browser scrollbar (transparent thumb/track)  keeps gutter & layout intact */
html {
  scrollbar-color: transparent transparent;   /* Firefox */
}
html::-webkit-scrollbar { width: 15px; height: 15px; background: transparent; }
html::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-track,
html::-webkit-scrollbar-corner { background: transparent; }
html::-webkit-scrollbar-button { display: none; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 32px 0;
  transition: padding 0.5s cubic-bezier(0.4, 0, 0.2, 1),
              background-color 0.4s ease,
              backdrop-filter 0.4s ease;
  background: linear-gradient(to bottom, rgba(18, 18, 18, 0.55) 0%, rgba(18, 18, 18, 0) 100%);
}

.header.scrolled {
  padding: 16px 0;
  background: rgba(18, 18, 18, 0.72);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .header.scrolled { background: rgba(18, 18, 18, 0.92); }
}

/* Header keeps white text on every page above the fold, including light-theme inner pages */
body.theme-light .header {
  --text-white: #FFFFFF;
  --text-body: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
}
/* On light-theme pages, when scrolled into the cream content, switch to cream backdrop + dark text */
body.theme-light .header.scrolled {
  background: rgba(245, 241, 235, 0.88);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  --text-white: #15151A;
  --text-body: #2E2E33;
  --text-muted: #55555C;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.theme-light .header.scrolled { background: rgba(245, 241, 235, 0.97); }
}

.header .container {
  display: grid;
  grid-template-columns: auto 1fr auto auto auto;
  align-items: start;
  gap: 0 40px;
}

.header-phone {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-white);
  opacity: 0.85;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
  white-space: nowrap;
}

.header-phone:hover { color: var(--accent-red); opacity: 1; }

.header-phone svg {
  flex-shrink: 0;
  stroke: var(--accent-red);
}

.logo {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 2px;
}

.logo-underscore {
  color: var(--accent-red);
  animation: blink 1.2s infinite;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.header-tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-white);
  letter-spacing: 1px;
  line-height: 1.6;
  max-width: 280px;
  padding-top: 4px;
}

.nav {
  display: flex;
  gap: 60px;
}

.nav-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-group-title {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-group-title .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

.nav-group-title .dot.green { background: var(--accent-red); }

.nav-dropdown-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
  max-height: 300px;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  opacity: 1;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-dropdown-links li { display: contents; }

.header.scrolled .nav-dropdown-links {
  max-height: 0;
  opacity: 0;
}

.nav-primary-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  overflow: hidden;
  max-height: 200px;
  opacity: 1;
  transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease, margin-top 0.4s ease;
  list-style: none;
  padding: 0;
}
.nav-primary-items li { display: contents; }
.header.scrolled .nav-primary-items {
  max-height: 0;
  opacity: 0;
  margin-top: 0;
}

.nav-primary-item {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-white);
  font-weight: 500;
  padding: 2px 0;
  transition: color 0.3s;
}

.nav-primary-item:hover { color: var(--accent-red); }

.nav-contact-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nav-contact-btn {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.3s;
}

.nav-contact-btn .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  display: inline-block;
}

.nav-contact-btn:hover { color: var(--accent-red); }

.nav-link {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-white);
  opacity: 0.85;
  letter-spacing: 0.5px;
  transition: color 0.3s, opacity 0.3s;
  padding: 2px 0;
  position: relative;
}
.nav-link:hover { opacity: 1; }

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--accent-red);
  transition: width 0.3s ease;
}

.nav-link:hover { color: var(--accent-red); }
.nav-link:hover::after { width: 100%; }

/* Photo art direction  consistent quarry grading */
img[src*="images/"] { filter: saturate(0.85) contrast(1.08) brightness(0.95); }

.lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.4s ease 0.15s, transform 0.4s ease 0.15s;
  pointer-events: none;
}

.header.scrolled .lang-switch {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.lang-switch .active { color: var(--text-white); }
.lang-switch .inactive { color: var(--text-muted); }

/* ============================================
   BUTTONS
   ============================================ */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  border: 1px solid var(--accent-red);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--bg-primary);
  background: var(--accent-red);
  transition: all 0.3s;
  cursor: pointer;
}

.btn-outline:hover {
  background: transparent;
  color: var(--accent-red);
}

.btn-outline .arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

/* ============================================
   PAGE HERO (for inner pages)
   ============================================ */
.page-hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 80px 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Subtle animated grid overlay on top of dark hero images */
.page-hero::after,
.story-intro::after,
.contact-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: heroGridScroll 24s linear infinite;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 95%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.25) 60%, rgba(0,0,0,0) 95%);
}
/* Ensure hero textual content stays above the grid overlay */
.page-hero-content,
.story-intro-content,
.story-scroll-hint,
.contact-hero-content { z-index: 3 !important; }
@keyframes heroGridScroll {
  from { background-position: 0 0; }
  to   { background-position: 0 80px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-hero::after,
  .story-intro::after,
  .contact-hero::after { animation: none; }
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-hero-bg::after,
.page-hero-overlay {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18,18,18,0.3) 0%, rgba(18,18,18,0.6) 60%, rgba(18,18,18,0.95) 100%);
  z-index: 0;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  padding: 0 40px;
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.page-hero .subtitle {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  max-width: 600px;
  line-height: 1.7;
}

/* Breadcrumbs */
.breadcrumb {
  position: relative;
  z-index: 1;
  padding: 12px 40px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-muted);
  max-width: 1440px;
  margin: 0 auto;
  width: 100%;
}
.breadcrumb a {
  color: var(--text-muted);
  transition: color 0.3s;
}
.breadcrumb a:hover {
  color: var(--accent-red);
}
.breadcrumb .separator {
  margin: 0 8px;
  opacity: 0.4;
}
@media (max-width: 480px) {
  .breadcrumb { padding: 12px 16px; font-size: 11px; }
}

/* ============================================
   ACTIVITY ICON NAV
   ============================================ */
.activity-icon-nav {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(auto-fit, 48px);
  gap: 8px;
  padding: 0 40px;
  margin-bottom: 8px;
}

.activity-icon-nav a {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  background: rgba(18,18,18,0.5);
}

.activity-icon-nav a:hover,
.activity-icon-nav a.active {
  border-color: var(--accent-red);
  background: rgba(217, 45, 32, 0.1);
}

.activity-icon-nav a svg {
  width: 24px;
  height: 24px;
  stroke: var(--text-muted);
  fill: none;
  stroke-width: 1.5;
}

.activity-icon-nav a:hover svg,
.activity-icon-nav a.active svg {
  stroke: var(--accent-red);
}

/* ============================================
   COMPETENCES / ACCORDION
   ============================================ */
.competences-section {
  padding: 120px 0;
}

.competences-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.competences-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.competences-label .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
}

.competences-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 3.5vw, 42px);
  font-weight: 400;
  color: var(--text-white);
  line-height: 1.35;
  letter-spacing: -0.5px;
  margin-bottom: 24px;
}

.competences-desc {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.accordion {
  display: flex;
  flex-direction: column;
}

.accordion-item {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  cursor: pointer;
  transition: color 0.3s;
}

.accordion-header:hover { color: var(--accent-red); }

.accordion-header h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.accordion-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  color: var(--accent-red);
  transition: transform 0.3s;
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.accordion-content p {
  padding: 0 0 20px 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}

.accordion-item.active .accordion-content {
  max-height: 300px;
}

.accordion-item.active .accordion-icon {
  transform: rotate(45deg);
}

/* ============================================
   PROJECTS LIST
   ============================================ */
.projects-section {
  padding: 80px 0;
}

.project-item {
  display: grid;
  grid-template-columns: 200px 1fr 120px 48px;
  gap: 24px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}

.project-item:hover {
  background: rgba(255,255,255,0.02);
}

.project-tags {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.project-tag .dot {
  width: 5px;
  height: 5px;
  flex-shrink: 0;
}

.project-tag .dot.green { background: var(--accent-red); }
.project-tag .dot.blue { background: var(--accent-blue); }
.project-tag .dot.purple { background: var(--accent-purple); }
.project-tag .dot.yellow { background: var(--accent-yellow); }

.project-title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 500;
  color: var(--text-white);
}

.project-image {
  width: 120px;
  height: 68px;
  background: var(--bg-card);
  border-radius: 4px;
  overflow: hidden;
}

.project-image-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a1a18, #3A3A3A);
}

.project-link {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  transition: all 0.3s;
}

.project-link:hover {
  border-color: var(--accent-red);
  color: var(--accent-red);
}

.project-links-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.project-doc-link {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  font-weight: 700;
  padding: 6px 14px;
  border: 1px solid rgba(217, 45, 32, 0.3);
  transition: all 0.3s;
  white-space: nowrap;
}

.project-doc-link:hover {
  background: var(--accent-red);
  color: #fff;
  border-color: var(--accent-red);
}

/* ============================================
   EXPERTISE CARDS
   ============================================ */
.expertise-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.expertise-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 32px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.4s;
}

.expertise-card:hover {
  border-color: var(--accent-red);
  transform: translateY(-4px);
}

.expertise-card-icon {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  font-size: 18px;
}

.expertise-card h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}

.expertise-card h3 .underscore { color: var(--accent-red); }

.expertise-card p {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
  flex-grow: 1;
}

.expertise-card .card-dots {
  display: grid;
  grid-template-columns: repeat(2, 4px);
  gap: 3px;
  justify-self: end;
  align-self: end;
  margin-top: 24px;
}

.expertise-card .card-dots span {
  width: 4px;
  height: 4px;
  opacity: 0.4;
}

.expertise-card:nth-child(1) .card-dots span { background: var(--accent-yellow); }
.expertise-card:nth-child(2) .card-dots span { background: var(--accent-red); }
.expertise-card:nth-child(3) .card-dots span { background: var(--accent-purple); }

/* ============================================
   IMAGE COLLAGE
   ============================================ */
.image-collage {
  padding: 120px 0;
  position: relative;
}

.collage-wrapper {
  position: relative;
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
  aspect-ratio: 4/3;
}

.collage-main {
  width: 70%;
  height: 80%;
  position: absolute;
  top: 0;
  left: 15%;
  background: linear-gradient(135deg, #2a1a18, #3A3A3A);
  border-radius: 4px;
  overflow: hidden;
}

.collage-small-1 {
  width: 25%;
  height: 30%;
  position: absolute;
  bottom: 0;
  left: 0;
  background: linear-gradient(135deg, #1e1412, #2a2a2a);
  border-radius: 4px;
}

.collage-small-2 {
  width: 25%;
  height: 30%;
  position: absolute;
  bottom: 10%;
  right: 0;
  background: linear-gradient(135deg, #1e1412, #3A3A3A);
  border-radius: 4px;
}

.collage-overlay {
  position: absolute;
  background: rgba(18,18,18,0.85);
  padding: 20px;
  z-index: 2;
}

.collage-overlay .label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--accent-red);
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.collage-overlay .text {
  font-family: var(--font-heading);
  font-size: 18px;
  color: #FFFFFF;
  line-height: 1.4;
}

/* Overlay keeps its dark surface even inside cream theme */
.theme-cream .collage-overlay {
  background: rgba(18,18,18,0.85);
}
.theme-cream .collage-overlay .label { color: var(--accent-red); }
.theme-cream .collage-overlay .text { color: #FFFFFF; }

/* ============================================
   TEAM GRID
   ============================================ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.team-member {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  cursor: pointer;
}

.team-member-photo {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #2a2a2a, #3A3A3A);
  transition: transform 0.4s;
}

.team-member:hover .team-member-photo {
  transform: scale(1.05);
}

.team-member-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  background: linear-gradient(transparent, rgba(18,18,18,0.9));
  opacity: 0;
  transition: opacity 0.3s;
}

.team-member:hover .team-member-info {
  opacity: 1;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
}

.team-member-role {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* ============================================
   CONTACT FORM
   ============================================ */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 80px;
  padding: 120px 0;
  align-items: start;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}

.form-label .required { color: var(--accent-red); }

.form-input,
.form-select,
.form-textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 12px 0;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-white);
  outline: none;
  transition: border-color 0.3s;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--accent-red);
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--text-muted);
  opacity: 0.5;
}

.form-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%23D92D20' stroke-width='1.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  padding-right: 20px;
  cursor: pointer;
}

.form-select option {
  background: var(--bg-primary);
  color: var(--text-white);
}

.form-textarea {
  resize: vertical;
  min-height: 80px;
}

.form-file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  padding: 12px 0;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
}

.form-file-icon {
  color: var(--accent-red);
  font-size: 18px;
}

.form-checkbox {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.form-checkbox input {
  margin-top: 4px;
  accent-color: var(--accent-red);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.breadcrumb {
  padding: 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.breadcrumb a { transition: color 0.3s; }
.breadcrumb a:hover { color: var(--accent-red); }
.breadcrumb span { margin: 0 8px; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta {
  padding: 180px 0 300px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(10, 10, 10, 0.3) 40%, rgba(10, 10, 10, 0.6) 100%);
  pointer-events: none;
}

.cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(217, 45, 32, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(217, 45, 32, 0.06) 1px, transparent 1px);
  background-size: 1px 12px, 1px 12px;
  background-position: 20% 0, 40% 0, 60% 0, 80% 0;
  background-repeat: repeat-y;
  mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0,0,0,0.3) 30%, rgba(0,0,0,0.3) 70%, transparent);
  pointer-events: none;
  opacity: 0.5;
}

.cta h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.cta h2 .muted { color: var(--text-muted); font-style: italic; }
.cta h2 .bold { color: var(--text-white); font-weight: 600; }
.cta h2 .green { color: var(--accent-red); font-style: italic; }
.cta h2 .underscore { color: var(--accent-red); }
.cta .btn-outline { position: relative; z-index: 1; }

/* ============================================
   ORGANOGRAMA
   ============================================ */
.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
}

.org-level {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.org-level--staff {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: 700px;
}

.org-level--departments {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

.org-level--sub {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  width: 100%;
}

.org-connector {
  width: 1px;
  height: 32px;
  background: rgba(217, 45, 32, 0.3);
  margin: 0 auto;
}

.org-connector--wide {
  width: 80%;
  height: 1px;
  background: rgba(217, 45, 32, 0.15);
  margin: 8px auto;
}

.org-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color 0.3s;
  text-align: center;
}

.org-card:hover {
  border-color: var(--accent-red);
}

.org-card--top {
  background: var(--accent-red);
  border-color: var(--accent-red);
  min-width: 200px;
  padding: 20px 24px;
}

.org-card--top .org-card-label {
  color: rgba(255,255,255,0.7);
}

.org-card--top .org-card-title {
  color: #fff;
}

.org-card--staff {
  background: rgba(217, 45, 32, 0.12);
  border-color: rgba(217, 45, 32, 0.3);
  padding: 12px 16px;
}

.org-card--staff .org-card-title {
  font-size: 13px;
  color: var(--text-white);
}

.org-card--sub {
  padding: 12px 10px;
  border-color: rgba(255,255,255,0.08);
}

.org-card--sub .org-card-title {
  font-size: 12px;
  color: var(--text-body);
}

.org-card-label {
  font-family: var(--font-mono);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  font-weight: 700;
}

.org-card-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.3px;
}

.org-card-desc {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 4px;
}

@media (max-width: 768px) {
  .org-level--staff { max-width: 100%; }
  .org-level--departments { grid-template-columns: repeat(3, 1fr); }
  .org-level--sub { grid-template-columns: repeat(3, 1fr); }
  .org-card--top { min-width: 0; }
  .org-card--staff { padding: 10px 12px; }
  .org-card--staff .org-card-title { font-size: 12px; }
}

@media (max-width: 480px) {
  .org-level--staff { gap: 6px; }
  .org-level--departments { grid-template-columns: repeat(2, 1fr); }
  .org-level--sub { grid-template-columns: repeat(2, 1fr); }
  .org-card { padding: 10px 8px; }
  .org-card--staff { padding: 8px 10px; }
  .org-card--staff .org-card-title { font-size: 11px; }
  .org-card-title { font-size: 12px; }
  .org-card-label { font-size: 8px; letter-spacing: 1px; }
}

/* ============================================
   CONTACT / CTA LINES
   ============================================ */
.contact-section {
  position: relative;
  padding: 200px 0 0;
  text-align: center;
  overflow: hidden;
}

.contact-gradient {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(ellipse 120% 80% at 50% 110%, rgba(217, 45, 32, 0.2) 0%, rgba(180, 35, 24, 0.08) 30%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.contact-lines-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-around;
  pointer-events: none;
  z-index: 1;
  padding: 0 10%;
}

.contact-line {
  width: 1px;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.contact-line-light {
  width: 1px;
  height: 8px;
  background: var(--accent-red);
  margin-bottom: 12px;
  opacity: 0.6;
  border-radius: 1px;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 40px;
}

.contact-content h2 .muted { color: var(--text-muted); font-style: italic; }
.contact-content h2 .bold { color: var(--text-white); font-weight: 600; }
.contact-content h2 .green { color: var(--accent-red); font-style: italic; }
.contact-content h2 .underscore { color: var(--accent-red); }

/* ============================================
   FOOTER  Dark top CTA → warm horizon → light bottom
   ============================================ */
.footer {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: #f5f0ea;
  margin-top: -1px;
  isolation: isolate;
}

.footer-dark-top {
  position: relative;
  padding: 96px 0 88px;
  text-align: center;
  overflow: hidden;
  background: #f5f0ea;
  border-top: 1px solid rgba(0,0,0,0.06);
}
.footer-dark-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 1px;
  background: var(--accent-red);
  z-index: 3;
}

.contact-content {
  position: relative;
  z-index: 2;
}

.contact-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 500;
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 40px;
  color: #15151A;
}

.footer-dark-top .contact-content h2 span[style*="text-muted"] { color: #6E6E76 !important; font-style: italic; }
.footer-dark-top .contact-content h2 span[style*="f5f5f3"] { color: #15151A !important; font-weight: 600; }
.contact-content h2 .green { color: var(--accent-red); font-style: italic; }
.contact-content h2 .underscore { color: var(--accent-red); }
.footer-dark-top .contact-content p { color: #3A3A40 !important; }

.footer-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  transition: background 0.3s;
}

.footer-cta-btn:hover {
  background: #b82318;
  color: #fff;
}

.footer-watermark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.footer-watermark svg { display: none; }

.footer-watermark::after {
  content: 'IBEROBRITA';
  font-family: 'Work Sans', sans-serif;
  font-weight: 700;
  font-size: 15vw;
  line-height: 0.85;
  letter-spacing: -0.045em;
  white-space: nowrap;
  display: block;
  text-align: center;
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  color: rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .footer-watermark::after { font-size: 22vw; }
}

.footer-horizon {
  position: relative;
  width: 100%;
  height: 0;
  z-index: 1;
  margin-top: 0;
  background: transparent;
}

.footer-horizon::after { display: none; }
.footer-horizon::before { display: none; }

.footer-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 64px;
}
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 4px;
  color: #1a1a1a;
}

.footer-logo .underscore { color: var(--accent-red); }

.footer-contact-details {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  line-height: 1.8;
  margin-top: 8px;
}

.footer-contact-details a {
  color: rgba(0,0,0,0.6);
  transition: color 0.3s;
}

.footer-contact-details a:hover { color: #1a1a1a; }

.footer-contact-details .detail-label {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: rgba(0,0,0,0.65);
  font-weight: 700;
  display: block;
  margin-top: 16px;
  margin-bottom: 4px;
}

.footer-contact-details .detail-label:first-child {
  margin-top: 0;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
}

.footer-section-label {
  font-family: var(--font-heading);
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: rgba(0,0,0,0.65);
  font-weight: 700;
  margin-bottom: 16px;
}

.footer-section-label + .footer-links + .footer-section-label {
  margin-top: 32px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links li { display: contents; }

.footer-link {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(0,0,0,0.6);
  letter-spacing: 0.5px;
  transition: color 0.3s;
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-weight: 400;
  padding: 2px 0;
}

.footer-link:hover { color: #1a1a1a; }

.footer-link-underscore {
  color: var(--accent-red, #D92D20);
  opacity: 0;
  transition: opacity 0.3s;
  margin-left: 1px;
}

.footer-link:hover .footer-link-underscore { opacity: 1; }

.footer-action-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.footer-contact-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: #D92D20;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 700;
  transition: all 0.3s;
}

.footer-contact-btn:hover {
  background: #b82318;
  color: #fff;
}

.footer-lang-switch {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 1px;
  color: rgba(0,0,0,0.65);
}

.footer-lang-switch a {
  color: rgba(0,0,0,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-lang-switch a:hover { color: var(--accent-red); }

.footer-lang-switch .active,
.footer-lang-switch a.active {
  color: #1a1a1a;
  font-weight: 700;
}

.nav-lang-switch {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.nav-lang-switch a {
  color: var(--text-white);
  opacity: 0.85;
  text-decoration: none;
  transition: color 0.3s, opacity 0.3s;
}

.nav-lang-switch a:hover { color: var(--accent-red); opacity: 1; }

.nav-lang-switch a.active {
  color: var(--text-white);
  opacity: 1;
  font-weight: 700;
}

/* Bottom metadata bar */
.footer-bottom {
  position: relative;
  z-index: 1;
  padding: 20px 0;
  border-top: 1px solid rgba(0,0,0,0.08);
  background: transparent;
}

.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom-left {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  letter-spacing: 1.5px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.footer-bottom-right a {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  color: rgba(0,0,0,0.65);
  letter-spacing: 1.5px;
  transition: color 0.3s;
}

.footer-bottom-right a:hover { color: #1a1a1a; }

.footer-credit {
  font-family: var(--font-heading);
  font-size: 11px;
  color: rgba(0,0,0,0.65);
}
.footer-credit a {
  color: rgba(0,0,0,0.7);
  text-decoration: none;
  transition: color 0.3s;
}
.footer-credit a:hover {
  color: var(--accent-red);
}

/* ============================================
   HEADER MOSAIC TRANSITION
   ============================================ */
.header-mosaic-wrapper {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  pointer-events: none;
}

.header-mosaic-tile {
  background-color: var(--mosaic-tile-color, var(--bg-primary));
  opacity: 0;
}

@media (max-width: 768px) {
  .header-mosaic-wrapper {
    top: 85%;
  }
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1), transform 0.9s cubic-bezier(0.16, 1, 0.3, 1), filter 0.9s ease-out;
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) translateX(0) scale(1);
  filter: blur(0);
}

/* Directional variants */
.reveal-up        { transform: translateY(60px); }
.reveal-down      { transform: translateY(-40px); }
.reveal-left      { transform: translateX(-60px); }
.reveal-right     { transform: translateX(60px); }
.reveal-left-soft { transform: translateX(-30px); }
.reveal-right-soft{ transform: translateX(30px); }
.reveal-scale     { transform: scale(0.92) translateY(20px); }
.reveal-blur      { transform: translateY(20px); filter: blur(8px); }
.reveal-fade      { transform: none; }

/* Heading-specific: stronger upward motion + slight blur */
.reveal-heading {
  opacity: 0;
  transform: translateY(80px);
  filter: blur(6px);
  transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1), transform 1.1s cubic-bezier(0.16, 1, 0.3, 1), filter 1.1s ease-out;
}
.reveal-heading.visible {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* Word-by-word staggered reveal  wrap each word in <span class="reveal-word"> */
.reveal-words .reveal-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal-words.visible .reveal-word {
  opacity: 1;
  transform: translateY(0);
}
/* Per-word stagger up to 12 words */
.reveal-words.visible .reveal-word:nth-child(1)  { transition-delay: 0.00s; }
.reveal-words.visible .reveal-word:nth-child(2)  { transition-delay: 0.06s; }
.reveal-words.visible .reveal-word:nth-child(3)  { transition-delay: 0.12s; }
.reveal-words.visible .reveal-word:nth-child(4)  { transition-delay: 0.18s; }
.reveal-words.visible .reveal-word:nth-child(5)  { transition-delay: 0.24s; }
.reveal-words.visible .reveal-word:nth-child(6)  { transition-delay: 0.30s; }
.reveal-words.visible .reveal-word:nth-child(7)  { transition-delay: 0.36s; }
.reveal-words.visible .reveal-word:nth-child(8)  { transition-delay: 0.42s; }
.reveal-words.visible .reveal-word:nth-child(9)  { transition-delay: 0.48s; }
.reveal-words.visible .reveal-word:nth-child(10) { transition-delay: 0.54s; }
.reveal-words.visible .reveal-word:nth-child(11) { transition-delay: 0.60s; }
.reveal-words.visible .reveal-word:nth-child(12) { transition-delay: 0.66s; }
.reveal-words.visible .reveal-word:nth-child(n+13){ transition-delay: 0.72s; }

/* Stagger groups (cards in a row) */
.reveal-stagger > * { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 0.55s; }
.reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 0.65s; }
.reveal-stagger.visible > *:nth-child(n+8) { opacity: 1; transform: translateY(0); transition-delay: 0.75s; }

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }
.reveal-delay-7 { transition-delay: 0.7s; }
.reveal-delay-8 { transition-delay: 0.8s; }

/* Fornecimentos: even cards are RTL-flipped, so flip the reveal direction too */
.project-card:nth-child(even) .project-card-image.reveal-left { transform: translateX(60px); }
.project-card:nth-child(even) .project-card-body.reveal-right { transform: translateX(-60px); }
.project-card:nth-child(even) .project-card-image.reveal-left.visible,
.project-card:nth-child(even) .project-card-body.reveal-right.visible { transform: translateX(0); }

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-heading,
  .reveal-words .reveal-word,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
}

/* ============================================
   MOBILE MENU
   ============================================ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-white);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(18, 18, 18, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 6px;
  padding: 96px 32px 48px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.mobile-menu.active {
  display: flex;
}

.mobile-menu a {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  transition: color 0.3s;
  padding: 8px 0;
}

.mobile-menu a:hover,
.mobile-menu a.active-link {
  color: var(--text-white);
}

.mobile-menu .mobile-menu-divider {
  width: 40px;
  height: 1px;
  background: rgba(255,255,255,0.1);
  margin: 12px 0;
}

.mobile-menu .mobile-menu-secondary {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--text-muted);
  padding: 10px 0;
}

.mobile-menu .mobile-menu-secondary:hover {
  color: var(--accent-red);
}

.mobile-menu .mobile-menu-lang {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 24px;
}

.mobile-menu .mobile-menu-lang a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.mobile-menu .mobile-menu-lang a:hover { color: var(--accent-red); }

.mobile-menu .mobile-menu-lang .active,
.mobile-menu .mobile-menu-lang a.active {
  color: var(--text-white);
}

.mobile-menu-call {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent-red);
  color: #fff !important;
  padding: 16px 32px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 13px !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-decoration: none;
  margin-top: 8px;
}

.mobile-menu-call svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
}

.mobile-menu-call:hover {
  background: #b82518;
  color: #fff !important;
}

/* Active nav link state */
.nav-link[aria-current="page"],
.nav-primary-item[aria-current="page"] {
  color: var(--text-white);
  font-weight: 600;
}

/* ============================================
   PAGE NAV CTA (end-of-page navigation)
   ============================================ */
.page-nav-cta { padding: 140px 0 120px; position: relative; background: #f5f0ea; color: #15151A; border-top: 1px solid rgba(0,0,0,0.08); }
.page-nav-cta::before { content: ''; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: 80px; height: 1px; background: var(--accent-red); }
.page-nav-cta-header { max-width: 780px; margin: 0 auto 72px; text-align: center; }
.page-nav-cta-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-red); display: inline-flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.page-nav-cta-label::before { content: ''; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent-red); }
.page-nav-cta-title { font-family: var(--font-heading); font-size: clamp(32px, 4.5vw, 56px); font-weight: 500; color: #6E6E76; letter-spacing: -1.5px; line-height: 1.1; }
.page-nav-cta-title .highlight { color: #15151A; font-weight: 600; }
.page-nav-cta-title .accent { color: var(--accent-red); }
.page-nav-cta-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(0,0,0,0.10); border: 1px solid rgba(0,0,0,0.10); }
.page-nav-card { background: #FAF7F2; padding: 48px 40px 56px; display: flex; flex-direction: column; gap: 14px; position: relative; color: inherit; text-decoration: none; transition: background 0.3s ease; min-height: 280px; overflow: hidden; }
.page-nav-card::after { content: ''; position: absolute; top: 0; left: 0; width: 0; height: 2px; background: var(--accent-red); transition: width 0.4s ease; }
.page-nav-card:hover { background: #fff; }
.page-nav-card:hover::after { width: 100%; }
.page-nav-card-num { font-family: var(--font-mono); font-size: 11px; color: var(--accent-red); letter-spacing: 1.5px; font-weight: 700; }
.page-nav-card h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: #15151A; letter-spacing: -0.5px; line-height: 1.3; margin: 0; }
.page-nav-card p { font-size: 14px; line-height: 1.7; color: #3A3A40; margin: 0; flex: 1; }
.page-nav-card-arrow { font-family: var(--font-mono); font-size: 18px; color: var(--accent-red); align-self: flex-start; margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; transition: gap 0.3s ease; }
.page-nav-card:hover .page-nav-card-arrow { gap: 16px; }
@media (max-width: 900px) {
  .page-nav-cta-grid { grid-template-columns: 1fr; }
  .page-nav-card { min-height: auto; padding: 36px 28px 44px; }
  .page-nav-cta { padding: 80px 0; }
  .page-nav-cta-header { margin-bottom: 48px; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .competences-layout { grid-template-columns: 1fr; gap: 60px; }
  .expertise-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-layout { grid-template-columns: 1fr; gap: 60px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav { gap: 40px; }
  .project-item { grid-template-columns: 160px 1fr 48px; }
  .project-image { display: none; }
}

@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .header .container { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
  .header .hamburger { margin-left: auto; }
  .expertise-cards { grid-template-columns: 1fr; }
  .footer-dark-top { padding: 32px 0 60px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-horizon { height: 150px; }
  .footer-contact-btn { width: 100%; justify-content: center; }
  .footer-link { padding: 4px 0; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
  .footer-bottom-left { text-align: center; }
  .footer-bottom-right { justify-content: center; }
  .nav { display: none; }
  .nav-contact-group { display: none; }
  .lang-switch { display: none; }
  .header-tagline { display: none; }
  .header-phone { display: none; }
  .hamburger { display: flex; }
  .status-bar { display: none; }
  .scrollbar-track { display: none; }
  .page-hero-content { padding: 0 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .project-item { grid-template-columns: 1fr auto; align-items: center; padding: 16px 0; gap: 12px; }
  .project-tags { display: none; }
  .project-item .project-link { display: none; }
  .project-title { font-size: 14px; line-height: 1.4; }
  .project-links-group { justify-self: end; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .activity-icon-nav { padding: 0 20px; }
  .page-hero { min-height: 70vh; padding-bottom: 60px; }
  .expertise-card { padding: 24px; min-height: auto; }
  .mobile-menu-secondary { font-size: 13px; }
  .mobile-menu .mobile-menu-lang { font-size: 13px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .header .container { gap: 12px; }
  .page-hero { min-height: 60vh; padding-bottom: 40px; }
  .page-hero-content { padding: 0 16px; }
  .page-hero h1 { font-size: 28px; }
  .team-grid { grid-template-columns: 1fr; }
  .fractions-grid { grid-template-columns: 1fr; }
  .expertise-card { padding: 20px; }
  .mobile-menu { padding: 88px 24px 40px; gap: 4px; }
  .mobile-menu a { font-size: 15px; padding: 8px 0; letter-spacing: 1.5px; }
  .mobile-menu .mobile-menu-secondary { font-size: 12px; }
  .mobile-menu-call { margin-top: 16px; padding: 14px 28px; font-size: 12px !important; }
  .fraction-chip { padding: 12px 16px; min-height: 44px; }
  .project-item { gap: 8px; }
  .footer-dark-top { padding: 24px 0 52px; }
  .contact-hero-action { min-height: auto; padding: 120px 0 60px; }
}

/* ============================================
   MOBILE TAP TARGETS (WCAG 2.5.5 — minimum 44×44px)
   Applied on touch devices and mobile breakpoints.
   ============================================ */
@media (pointer: coarse), (max-width: 768px) {
  .mobile-menu a,
  .mobile-menu .mobile-menu-secondary {
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .cookie-btn {
    padding: 12px 22px;
    min-height: 44px;
  }
  .form-input,
  .form-select,
  .form-textarea {
    padding-top: 14px;
    padding-bottom: 14px;
    min-height: 44px;
    font-size: 16px; /* prevents iOS auto-zoom on focus */
  }
  .form-textarea { min-height: 96px; }
  .form-file { min-height: 44px; padding-top: 14px; padding-bottom: 14px; }
  .glossario-letter-btn,
  .glossario-all-btn {
    min-width: 44px;
    height: 44px;
    line-height: 44px;
  }
  .bib-filter-btn { min-height: 44px; padding: 10px 18px; }
  .header-search-btn,
  .hamburger { min-width: 44px; min-height: 44px; }
}

/* ============================================
   COOKIE BANNER mobile layout — full-width bar
   ============================================ */
@media (max-width: 600px) {
  .cookie-banner {
    left: 0;
    right: 0;
    bottom: 0;
    flex-wrap: wrap;
    gap: 10px;
    padding: 14px 16px 16px;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    justify-content: center;
    text-align: center;
  }
  .cookie-banner span { width: 100%; text-align: center; }
  .cookie-btn { flex: 1; min-width: 140px; }
}

/* ============================================
   COMPARISON TABLE scroll hint (small screens only)
   ============================================ */
.compare-scroll-hint {
  display: none;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
@media (max-width: 800px) {
  .compare-scroll-hint { display: block; }
}

/* ============================================
   TECHNICAL SPECIFICATIONS  Product Pages
   ============================================ */

/* Override accordion max-height for tables/charts */
.accordion-item.active .accordion-content.accordion-content--large {
  max-height: 1200px;
}

/* Spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 20px 0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.spec-table caption {
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  padding-bottom: 12px;
  font-weight: 700;
}

.spec-table thead th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-red);
  font-weight: 700;
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(217, 45, 32, 0.3);
  white-space: nowrap;
}

.spec-table tbody td {
  padding: 10px 12px;
  color: var(--text-body);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  line-height: 1.5;
}

.spec-table tbody tr:hover td {
  background: rgba(255,255,255,0.02);
}

.spec-table tbody td:first-child {
  color: var(--text-white);
  font-weight: 500;
}

.spec-table .spec-unit {
  color: var(--text-muted);
  font-size: 10px;
  margin-left: 4px;
}

.spec-table .spec-norm {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Granulometric curve SVG chart */
.grading-chart {
  width: 100%;
  max-width: 560px;
  margin: 0 0 16px 0;
}

.grading-chart svg {
  width: 100%;
  height: auto;
}

.grading-chart-caption {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  margin-bottom: 12px;
  font-weight: 700;
}

/* Standards list */
.standards-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.standards-list li {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-body);
  display: flex;
  align-items: baseline;
  gap: 10px;
  line-height: 1.6;
}

.standards-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--accent-red);
  flex-shrink: 0;
  margin-top: 6px;
}

.standards-list .std-code {
  color: var(--text-white);
  font-weight: 700;
  white-space: nowrap;
}

.standards-list .std-desc {
  color: var(--text-muted);
}

/* Lab notice */
.lab-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: rgba(217, 45, 32, 0.06);
  border-left: 2px solid var(--accent-red);
  margin: 0 0 20px 0;
}

.lab-notice-icon {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--accent-red);
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
}

.lab-notice p {
  font-size: 13px !important;
  color: var(--text-body) !important;
  padding: 0 !important;
  line-height: 1.6 !important;
}

.lab-notice a {
  color: var(--accent-red);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lab-notice a:hover {
  color: var(--text-white);
}

/* Fractions grid */
.fractions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 0 0 16px 0;
}

.fraction-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-white);
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color 0.3s;
}

.fraction-chip:hover {
  border-color: var(--accent-red);
}

.fraction-chip.fraction-chip--primary {
  border-color: var(--accent-red);
  background: rgba(217, 45, 32, 0.08);
}

@media (max-width: 768px) {
  .spec-table { font-size: 13px; min-width: 520px; }
  .spec-table caption { font-size: 11px; }
  .spec-table thead th { font-size: 11px; padding: 10px 8px; }
  .spec-table tbody td { padding: 10px 8px; }
  .spec-table .spec-unit,
  .spec-table .spec-norm { font-size: 11px; }
  .fractions-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .spec-table { font-size: 12px; min-width: 480px; }
  .spec-table caption { font-size: 11px; }
  .spec-table thead th { font-size: 10px; padding: 8px 6px; }
  .spec-table tbody td { padding: 8px 6px; }
  .fractions-grid { grid-template-columns: 1fr; }
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--accent-red);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s, transform 0.3s;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
}
.scroll-to-top:hover {
  transform: scale(1.1);
}
@media (max-width: 768px) {
  .scroll-to-top { bottom: 80px; right: 16px; }
}

/* ============================================
   TECHNICAL DOCUMENTATION DOWNLOADS
   ============================================ */
.tech-docs-section {
  padding: 100px 0;
  border-top: 1px solid rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.tech-docs-header {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 48px;
}
.tech-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.06);
}
.tech-doc-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 28px;
  background: var(--bg-primary);
  color: var(--text-white);
  text-decoration: none;
  transition: background 0.2s;
}
.tech-doc-card:hover {
  background: rgba(217, 45, 32, 0.04);
}
.tech-doc-icon {
  width: 40px;
  height: 48px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 1px;
  color: var(--accent-red);
  position: relative;
}
.tech-doc-icon::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 10px;
  height: 10px;
  border-left: 1px solid rgba(255,255,255,0.2);
  border-bottom: 1px solid rgba(255,255,255,0.2);
  background: var(--bg-primary);
}
.tech-doc-body { flex: 1; min-width: 0; }
.tech-doc-code {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 4px;
}
.tech-doc-title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.3;
  margin-bottom: 2px;
}
.tech-doc-meta {
  font-size: 12px;
  color: var(--text-muted);
}
.tech-doc-arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--text-muted);
  transition: color 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.tech-doc-card:hover .tech-doc-arrow {
  color: var(--accent-red);
  transform: translateX(2px);
}
@media (max-width: 768px) {
  .tech-docs-section { padding: 60px 0; }
  .tech-docs-header { grid-template-columns: 1fr; }
  .tech-docs-grid { grid-template-columns: 1fr; }
}

/* Product RFQ CTA strip */
.product-rfq-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 32px;
  background: linear-gradient(135deg, rgba(217,45,32,0.08) 0%, rgba(217,45,32,0.02) 100%);
  border: 1px solid rgba(217,45,32,0.2);
  border-left: 4px solid var(--accent-red);
  padding: 32px 40px;
  margin: 32px 0;
}
.product-rfq-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.3px;
  line-height: 1.3;
  margin-bottom: 6px;
}
.product-rfq-cta-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.product-rfq-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 700;
  white-space: nowrap;
  transition: background 0.2s;
}
.product-rfq-cta-btn:hover {
  background: #b82318;
  color: #fff;
}
@media (max-width: 768px) {
  .product-rfq-cta { grid-template-columns: 1fr; padding: 24px 28px; }
}

/* ============================================
   LOGISTICS SECTION
   ============================================ */
.logistics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.logistics-cell {
  background: var(--bg-primary);
  padding: 40px 32px;
}
.logistics-cell-num {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: -1.5px;
  line-height: 1;
  margin-bottom: 12px;
}
.logistics-cell-num .accent { color: var(--accent-red); }
.logistics-cell-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 12px;
}
.logistics-cell-text {
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.7;
}
@media (max-width: 991px) {
  .logistics-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .logistics-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CANONICAL TYPOGRAPHY HIERARCHY
   ============================================ */

/* Section paddings */
.section-padding { padding: 120px 0; }
.section-padding-sm { padding: 80px 0; }
.section-padding-lg { padding: 160px 0; }
.section-padding-top { padding-top: 120px; padding-bottom: 0; }
.section-padding-bottom { padding-top: 0; padding-bottom: 120px; }

/* Eyebrow label (mono uppercase, above headings) */
.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-white);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  flex-shrink: 0;
}
.section-eyebrow.is-centered { justify-content: center; }

/* Section titles  h2 hierarchy */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -1px;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-title strong,
.section-title .em {
  color: var(--text-white);
  font-weight: 600;
}
.section-title .accent {
  color: var(--accent-red);
}
.section-title.is-centered { text-align: center; }

.section-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -1px;
  line-height: 1.25;
  margin-bottom: 24px;
}
.section-subtitle strong,
.section-subtitle .em { color: var(--text-white); font-weight: 600; }
.section-subtitle .accent { color: var(--accent-red); }
.section-subtitle.is-centered { text-align: center; }

/* Section lede (intro paragraph after title) */
.section-lede {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 32px;
  max-width: 820px;
}
.section-lede strong,
.section-lede .em { color: var(--text-white); font-weight: 600; }
.section-lede.is-centered { margin-left: auto; margin-right: auto; text-align: center; }

/* Panel titles (h3 inside cards/panels) */
.panel-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -0.5px;
  line-height: 1.3;
  margin-bottom: 12px;
}
.panel-title .accent { color: var(--accent-red); }

.panel-subtitle {
  font-family: var(--font-heading);
  font-size: clamp(16px, 1.4vw, 20px);
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.3px;
  line-height: 1.4;
  margin-bottom: 8px;
}

/* Panel body text */
.panel-text {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Stat group inside sections */
.section-stats {
  display: flex;
  gap: 48px;
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}
.section-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  color: var(--text-white);
  letter-spacing: -1px;
  line-height: 1;
}
.section-stat-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Header block (eyebrow + title + lede combined) */
.section-header {
  margin-bottom: 64px;
}
.section-header.is-centered {
  text-align: center;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.section-header.is-centered .section-eyebrow { justify-content: center; }

@media (max-width: 768px) {
  .section-padding { padding: 80px 0; }
  .section-padding-sm { padding: 60px 0; }
  .section-padding-lg { padding: 100px 0; }
  .section-stats { gap: 32px; margin-top: 40px; padding-top: 32px; }
  .section-header { margin-bottom: 48px; }
}

/* ============================================
   HISTORIA  STORY INTRO HERO
   ============================================ */
.story-intro {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 120px;
  overflow: hidden;
}
.story-intro-year {
  position: absolute;
  top: 50%;
  right: 6%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: clamp(140px, 22vw, 320px);
  font-weight: 700;
  letter-spacing: -8px;
  line-height: 0.9;
  color: rgba(255, 255, 255, 0.04);
  z-index: 1;
  pointer-events: none;
  user-select: none;
}
.story-intro-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.story-intro-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 28px;
}
.story-intro-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.story-intro h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -1.5px;
  color: var(--text-white);
  max-width: 1000px;
  margin-bottom: 28px;
}
.story-intro h1 .green { color: var(--accent-red); font-style: italic; }
.story-intro p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 680px;
}
.story-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  animation: scrollHintBob 2.4s ease-in-out infinite;
}
.story-scroll-hint svg { stroke: var(--accent-red); }
@keyframes scrollHintBob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.7; }
  50%      { transform: translateX(-50%) translateY(6px); opacity: 1; }
}

/* ============================================
   HISTORIA  TIMELINE
   ============================================ */
.timeline {
  position: relative;
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 40px 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 0.5px;
  background: rgba(255,255,255,0.55);
  z-index: 0;
  transform: translateX(-50%) scaleY(var(--line-scale, 0));
  transform-origin: top center;
}
.timeline-progress { display: none; }
.timeline-era {
  position: relative;
  margin-bottom: 120px;
  z-index: 2;
}
.timeline-era-label {
  text-align: center;
  margin-bottom: 80px;
  position: relative;
}
.timeline-era-label::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 110px;
  background: var(--bg-primary);
  border: 1px solid rgba(217, 45, 32, 0.3);
  border-radius: 4px;
  z-index: -1;
}
.timeline-era-period {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-red);
  margin-bottom: 12px;
}
.timeline-era-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text-white);
}
.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 100px;
}
.timeline-entry:nth-child(even) {
  direction: rtl;
}
.timeline-entry:nth-child(even) > * { direction: ltr; }
.timeline-entry-content {
  padding: 8px 0;
}
.timeline-entry-year {
  font-family: var(--font-heading);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -2px;
  color: var(--text-white);
  margin-bottom: 12px;
}
.timeline-entry-title {
  font-family: var(--font-heading);
  font-size: clamp(20px, 1.8vw, 26px);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--accent-red);
  margin-bottom: 18px;
}
.timeline-entry-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 28px;
}
.timeline-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 16px;
  padding: 16px 22px;
  border-left: 2px solid var(--accent-red);
  background: rgba(217, 45, 32, 0.04);
}
.timeline-stat-number {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1;
}
.timeline-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  line-height: 1.4;
}
.timeline-entry-marker {
  position: relative;
  width: 80px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 20px;
}
.timeline-marker-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-white);
  border: none;
  box-shadow: none;
  position: relative;
  z-index: 3;
}
.timeline-entry-media {
  position: relative;
}
.timeline-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--navy-light);
}
.timeline-media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.timeline-media-caption {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* ============================================
   HISTORIA  STORY END
   ============================================ */
.story-end {
  position: relative;
  text-align: center;
  padding: 140px 40px 160px;
  max-width: 880px;
  margin: 0 auto;
}
.story-end-year {
  font-family: var(--font-heading);
  font-size: clamp(80px, 12vw, 160px);
  font-weight: 700;
  letter-spacing: -6px;
  line-height: 1;
  color: rgba(255,255,255,0.06);
  margin-bottom: 24px;
}
.story-end h2 {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 600;
  letter-spacing: -1.2px;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 24px;
}
.story-end h2 .green { color: var(--accent-red); font-style: italic; }
.story-end p {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 auto 40px;
  max-width: 680px;
}

/* Historia responsive */
@media (max-width: 991px) {
  .timeline-entry {
    grid-template-columns: 40px 1fr;
    gap: 24px;
    direction: ltr !important;
    margin-bottom: 64px;
  }
  .timeline-entry > * { direction: ltr !important; }
  .timeline::before { left: 20px; transform: none; width: 1px; }
  .timeline-progress { left: 20px; transform: none; }
  .timeline-entry-marker {
    width: 40px;
    grid-row: 1 / span 2;
    justify-content: flex-start;
    padding-left: 16px;
  }
  .timeline-entry-content { grid-column: 2; }
  .timeline-entry-media   { grid-column: 2; }
  .timeline-era-label::before { width: 180px; height: 100px; }
}
@media (max-width: 600px) {
  .story-intro { padding-bottom: 80px; }
  .story-intro-content { padding: 0 20px; }
  .story-intro-year { right: 4%; font-size: 110px; letter-spacing: -3px; }
  .timeline { padding: 60px 20px 20px; }
  .timeline-era { margin-bottom: 80px; }
  .story-end { padding: 100px 20px 120px; }
}

/* ============================================
   FORNECIMENTOS  TEAM INTRO
   ============================================ */
.team-intro {
  padding: 100px 0 60px;
  position: relative;
}
.team-intro .container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.team-intro .reveal-heading {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 1000px;
}
.team-intro .reveal-heading .highlight { color: var(--text-white); font-weight: 600; }
.team-intro .reveal-heading .accent { color: var(--accent-red); }
.team-intro .subtitle {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.7;
  color: var(--text-body);
  max-width: 720px;
}

/* ============================================
   FORNECIMENTOS  PROJECT CARDS
   ============================================ */
.project-list {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-direction: column;
  gap: 80px;
}
.project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.project-card:nth-child(even) {
  direction: rtl;
}
.project-card:nth-child(even) > * { direction: ltr; }
.project-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.06);
  background: var(--navy-light);
}
.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.project-card:hover .project-card-image img { transform: scale(1.04); }
.project-card-body { padding: 16px 8px; }
.project-card-client {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 22px;
}
.project-card-client .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.project-card-title {
  font-family: var(--font-heading);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 22px;
}
.project-card-title .accent { color: var(--accent-red); }
.project-card-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 32px;
}
.project-card-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.project-card-stat-value {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text-white);
  line-height: 1;
}
.project-card-stat-value .accent { color: var(--accent-red); }
.project-card-stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 8px;
  line-height: 1.4;
}

/* ============================================
   FORNECIMENTOS  PROCESS SECTION
   ============================================ */
.process-section { padding: 120px 0; position: relative; }
.process-section .container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.process-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 22px;
}
.process-label::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.process-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.1;
  color: var(--text-muted);
  margin-bottom: 64px;
  max-width: 900px;
}
.process-title .highlight { color: var(--text-white); font-weight: 600; }
.process-title .accent { color: var(--accent-red); }
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
}
.process-step {
  background: var(--bg-primary);
  padding: 40px 32px 48px;
  position: relative;
  transition: background 0.3s ease;
}
.process-step:hover { background: rgba(217, 45, 32, 0.04); }
.process-step-number {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 28px;
}
.process-step h3 {
  font-family: var(--font-heading);
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text-white);
  margin-bottom: 14px;
}
.process-step p {
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-body);
}

/* Fornecimentos responsive */
@media (max-width: 991px) {
  .project-card {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr !important;
  }
  .project-card > * { direction: ltr !important; }
  .project-list { gap: 60px; padding: 0 20px; }
  .team-intro { padding: 80px 0 40px; }
  .team-intro .container,
  .process-section .container { padding: 0 20px; }
  .process-section { padding: 80px 0; }
  .process-title { margin-bottom: 48px; }
}

/* ============================================
   CONTACTOS  HERO
   ============================================ */
.contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 0 80px;
  overflow: hidden;
}
@media (max-width: 768px) {
  .contact-hero { min-height: 70vh; padding-bottom: 60px; }
}
@media (max-width: 480px) {
  .contact-hero { min-height: 60vh; padding-bottom: 40px; }
}
.contact-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.contact-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom,
    rgba(18,18,18,0.3) 0%,
    rgba(18,18,18,0.6) 60%,
    rgba(18,18,18,0.95) 100%);
}
.contact-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
}
.contact-hero-content h1 {
  font-family: var(--font-heading);
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--text-white);
  margin-bottom: 18px;
}
.contact-hero-content h1 .accent { color: var(--accent-red); }
.contact-hero-sub {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-body);
  max-width: 720px;
  line-height: 1.6;
}

/* ============================================
   CONTACTOS  TOP CARDS
   ============================================ */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  margin-top: -40px;
  position: relative;
  z-index: 4;
}
.contact-card {
  background: var(--bg-primary);
  padding: 36px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: background 0.3s ease;
}
.contact-card:hover { background: rgba(217, 45, 32, 0.04); }
.contact-card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: var(--accent-red);
}
.contact-card-icon svg {
  width: 24px;
  height: 24px;
  display: block;
  stroke: currentColor;
  fill: none;
}
.contact-card-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 4px;
}
.contact-card-value {
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.3px;
  line-height: 1.4;
}
.contact-card-value a { color: inherit; transition: color 0.3s; }
.contact-card-value a:hover { color: var(--accent-red); }
.contact-card-detail {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================
   CONTACTOS  MAIN GRID (info | form)
   ============================================ */
.contact-main { padding: 100px 0 80px; }
.contact-main .container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
  align-items: start;
}
.contact-info-section { padding-right: 20px; }
.contact-info-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 22px;
}
.contact-info-label .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
}
.contact-info-title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  line-height: 1.15;
  color: var(--text-white);
  margin-bottom: 20px;
}
.contact-info-title .accent { color: var(--accent-red); }
.contact-info-desc {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 40px;
}

/* Locations */
.location-block {
  padding: 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.location-block:last-of-type { border-bottom: 1px solid rgba(255,255,255,0.08); }
.location-name {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-red);
  margin-bottom: 10px;
}
.location-address {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
  line-height: 1.55;
  margin-bottom: 6px;
}
.location-phone {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-body);
}
.location-phone a { color: inherit; transition: color 0.3s; }
.location-phone a:hover { color: var(--accent-red); }

/* Hours */
.hours-block { margin-top: 40px; }
.hours-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
  margin-bottom: 18px;
}
.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  font-family: var(--font-body);
  font-size: 14px;
}
.hours-row:last-child { border-bottom: none; }
.hours-day { color: var(--text-white); font-weight: 500; }
.hours-time {
  color: var(--text-body);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3px;
}
.hours-time.closed { color: var(--accent-red); opacity: 0.85; }

/* Form wrapper */
.contact-form-wrapper {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.06);
  padding: 48px 44px 52px;
}
.contact-form-title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text-white);
  margin-bottom: 10px;
}
.contact-form-subtitle {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.6;
}

/* ============================================
   CONTACTOS  MAP
   ============================================ */
.map-section { padding: 60px 0 100px; }
.map-section .container { max-width: 1440px; margin: 0 auto; padding: 0 40px; }
.map-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 21 / 9;
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.4) invert(0.92) contrast(0.9); }
.map-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(18,18,18,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 8px 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-white);
  z-index: 2;
  border-left: 2px solid var(--accent-red);
}

/* Contactos responsive */
@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; gap: 60px; }
  .contact-info-section { padding-right: 0; }
  .contact-form-wrapper { padding: 36px 28px 40px; }
}
@media (max-width: 600px) {
  .contact-hero { min-height: 50vh; padding-bottom: 40px; }
  .contact-hero-content { padding: 0 20px; }
  .contact-cards { margin-top: -24px; }
  .contact-card { padding: 28px 24px 32px; }
  .contact-main { padding: 80px 0 60px; }
  .contact-main .container,
  .map-section .container { padding: 0 20px; }
  .map-section { padding: 40px 0 80px; }
  .map-frame { aspect-ratio: 4 / 3; }
}

/* ============================================
   CONTACTOS  ACTION HERO (variant)
   ============================================ */
.contact-hero-action {
  min-height: 100vh;
  padding: 160px 0 80px;
  justify-content: flex-end;
}
.contact-hero-action .contact-hero-overlay {
  background: linear-gradient(120deg,
    rgba(18,18,18,0.92) 0%,
    rgba(18,18,18,0.78) 50%,
    rgba(18,18,18,0.55) 100%);
}
.contact-hero-action .contact-hero-bg img {
  filter: grayscale(0.3) contrast(1.05);
}
.contact-hero-action .container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 40px;
}

.contact-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--accent-red);
  margin-bottom: 32px;
}
.contact-hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-red);
  animation: heroDotPulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes heroDotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(217,45,32, 0.5); }
  50%      { box-shadow: 0 0 0 8px rgba(217,45,32, 0); }
}

.contact-hero-h1 {
  font-family: var(--font-heading);
  font-size: clamp(38px, 5.6vw, 76px);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -2px;
  color: var(--text-white);
  max-width: 1100px;
  margin-bottom: 56px;
}
.contact-hero-h1 .accent { color: var(--accent-red); font-style: italic; }
.contact-hero-h1 .underscore { color: var(--accent-red); }

/* Massive clickable phone CTA */
.contact-hero-call {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  padding: 28px 40px 28px 0;
  border-top: 1px solid rgba(255,255,255,0.10);
  border-bottom: 1px solid rgba(255,255,255,0.10);
  margin-bottom: 40px;
  color: var(--text-white);
  text-decoration: none;
  position: relative;
  transition: padding 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  max-width: 920px;
}
.contact-hero-call::after {
  content: '';
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23F5F5F2' stroke-width='2'%3E%3Cpath d='M5 12h14M13 5l7 7-7 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-hero-call:hover { padding-left: 12px; }
.contact-hero-call:hover::after {
  background-color: var(--accent-red);
  border-color: var(--accent-red);
  transform: translateY(-50%) translateX(6px);
}
.contact-hero-call-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent-red);
}
.contact-hero-call-num {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  font-family: var(--font-heading);
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 600;
  letter-spacing: -2.5px;
  line-height: 1;
  color: var(--text-white);
  transition: color 0.3s ease;
}
.contact-hero-call-num svg {
  flex-shrink: 0;
  color: var(--accent-red);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-hero-call:hover .contact-hero-call-num { color: var(--text-white); }
.contact-hero-call:hover .contact-hero-call-num svg {
  transform: rotate(-12deg) scale(1.05);
}
.contact-hero-call-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Secondary chip row */
.contact-hero-chips {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.08);
  max-width: 920px;
}
.contact-hero-chip {
  background: rgba(18,18,18,0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  padding: 22px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-white);
  text-decoration: none;
  transition: background 0.3s ease, transform 0.3s ease;
}
.contact-hero-chip:hover {
  background: rgba(217,45,32,0.10);
}
.contact-hero-chip-label {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.8px;
  color: var(--accent-red);
}
.contact-hero-chip-value {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-white);
  letter-spacing: -0.2px;
  line-height: 1.4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-hero-chip-arrow {
  display: inline-block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.contact-hero-chip:hover .contact-hero-chip-arrow { transform: translateX(4px); }

@media (max-width: 991px) {
  .contact-hero-action { min-height: 78vh; padding: 120px 0 80px; }
  .contact-hero-call { padding-right: 32px; }
  .contact-hero-call::after { right: 16px; width: 38px; height: 38px; }
}
/* ============================================
   THEME  CREAM (light section variant)
   Wrap a region in <div class="theme-cream"> to invert
   text/background while keeping the red accent.
   ============================================ */
/* ============================================
   CREAM-THEME OVERRIDES for sections that are
   themselves .theme-cream (not wrapped):
   .footer-dark-top, .page-nav-cta, .story-end
   ============================================ */
/* Disable the dark-to-cream transition shadows when the section IS the theme block */
.footer-dark-top.theme-cream::before,
.footer-dark-top.theme-cream::after,
.page-nav-cta.theme-cream::after,
.story-end.theme-cream::before,
.story-end.theme-cream::after { display: none; }

/* Footer CTA in cream */
.footer-dark-top.theme-cream { background: #F5F1EB; }

/* Page-nav CTA in cream — keep red top stripe, swap grid lines */
.page-nav-cta.theme-cream { border-top-color: rgba(0,0,0,0.06); }
.page-nav-cta.theme-cream::before {
  /* override .theme-cream::before so the red 80px accent stays */
  background: var(--accent-red);
  height: 1px;
  width: 80px;
  left: 50%;
  transform: translateX(-50%);
  top: -1px;
  inset: auto;
  mask-image: none;
  -webkit-mask-image: none;
  animation: none;
  background-image: none;
  background-size: auto;
}
.page-nav-cta.theme-cream .page-nav-cta-grid {
  background: rgba(0,0,0,0.08);
  border-color: rgba(0,0,0,0.08);
}
.page-nav-cta.theme-cream .page-nav-card { background: #FAF7F2; }
.page-nav-cta.theme-cream .page-nav-card:hover { background: rgba(217,45,32,0.05); }

/* Story-end watermark year on cream */
.story-end.theme-cream .story-end-year { color: rgba(0,0,0,0.05); }

.theme-cream {
  /* Remap design tokens inside this block */
  --bg-primary: #F5F1EB;
  --bg-card: rgba(0, 0, 0, 0.025);
  --bg-card-border: rgba(217, 45, 32, 0.18);
  --text-white: #15151A;
  --text-body: #2E2E33;
  --text-muted: #55555C;
  --border-subtle: rgba(0, 0, 0, 0.10);
  --grid-line: rgba(0, 0, 0, 0.04);

  background: #F5F1EB;
  color: #15151A;
  position: relative;
  z-index: 1;
}

/* story-end on cream: override narrow max-width so cream covers full viewport */
.story-end.theme-cream { max-width: 100%; }

/* Soft top/bottom shadow gradients to ease the dark→light→dark transition */
.theme-cream::before,
.theme-cream::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 60px;
  pointer-events: none;
  z-index: 1;
}
.theme-cream::before {
  top: 0;
  background: linear-gradient(to bottom, rgba(18,18,18,0.18), transparent);
}
.theme-cream::after {
  bottom: 0;
  background: linear-gradient(to top, rgba(18,18,18,0.18), transparent);
}

/* Backgrounds inside cream sections  flip from var(--bg-primary) dark to cream */
.theme-cream .logistics-cell,
.theme-cream .process-step,
.theme-cream .ref-grid > * {
  background: #FAF7F2;
}

/* Grid borders/dividers  flip white-with-alpha to black-with-alpha */
.theme-cream .logistics-grid,
.theme-cream .process-steps {
  background: rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.10);
}
.theme-cream .ref-grid {
  background: rgba(0,0,0,0.08) !important;
  border-color: rgba(0,0,0,0.08) !important;
}
.theme-cream .project-card-meta {
  border-top-color: rgba(0,0,0,0.10);
}

/* Hover states  red tint becomes warmer cream */
.theme-cream .process-step:hover { background: rgba(217, 45, 32, 0.05); }

/* Headings & body inherit via vars, but force where inline styles override */
.theme-cream .team-intro .reveal-heading,
.theme-cream .process-title,
.theme-cream .project-card-title {
  color: #6E6E76;
}
.theme-cream .team-intro .reveal-heading .highlight,
.theme-cream .process-title .highlight {
  color: #15151A;
}

/* Stat numbers + values pop in dark */
.theme-cream .logistics-cell-num,
.theme-cream .project-card-stat-value {
  color: #15151A;
}
.theme-cream .logistics-cell-text,
.theme-cream .project-card-desc,
.theme-cream .process-step p {
  color: #3A3A40;
}

/* Image frames  soft warm placeholder when image missing */
.theme-cream .project-card-image {
  background: #E8E2D8;
  border-color: rgba(0,0,0,0.06);
}

/* Section eyebrow / labels keep red  already correct via var(--accent-red) */

/* Process step number kept red, no override needed */

/* Team intro subtitle (uses utility .subtitle if present) */
.theme-cream .subtitle { color: #3A3A40; }

/* Reference / inline-styled "ref-grid" cells  many use inline rgba(255,255,255,*).
   Fall back: any inline white border on direct child should appear black-tinted. */
.theme-cream .ref-grid > div { color: #15151A; }

/* === HISTORIA  TIMELINE inside cream === */
.theme-cream .timeline::before {
  background: #15151A;
}
.theme-cream .timeline-era-label::before {
  background: #F5F1EB;
  border-color: rgba(217, 45, 32, 0.4);
}
.theme-cream .timeline-marker-dot {
  background: #15151A;
  box-shadow: none;
}
.theme-cream .timeline-entry-year { color: #15151A; }
.theme-cream .timeline-entry-desc { color: #3A3A40; }
.theme-cream .timeline-stat {
  background: rgba(217, 45, 32, 0.06);
}
.theme-cream .timeline-stat-number { color: #15151A; }
.theme-cream .timeline-stat-label { color: #6E6E76; }
.theme-cream .timeline-media-frame {
  background: #E8E2D8;
  border-color: rgba(0,0,0,0.06);
}
.theme-cream .timeline-media-frame img {
  filter: grayscale(0.1) contrast(1.02);
}
.theme-cream .timeline-media-caption { color: #6E6E76; }
.theme-cream .timeline-era-title { color: #15151A; }

/* === CONTACTOS  CARDS + FORM + MAP inside cream === */
.theme-cream .contact-cards {
  background: rgba(0,0,0,0.10);
  border-color: rgba(0,0,0,0.10);
}
.theme-cream .contact-card { background: #FAF7F2; }
.theme-cream .contact-card:hover { background: rgba(217, 45, 32, 0.05); }
.theme-cream .contact-card-value { color: #15151A; }
.theme-cream .contact-card-detail { color: #6E6E76; }
.theme-cream .contact-info-title { color: #15151A; }
.theme-cream .contact-info-desc { color: #3A3A40; }
.theme-cream .location-block,
.theme-cream .location-block:last-of-type {
  border-color: rgba(0,0,0,0.10);
}
.theme-cream .location-address { color: #15151A; }
.theme-cream .location-phone { color: #3A3A40; }
.theme-cream .hours-row {
  border-bottom-color: rgba(0,0,0,0.08);
}
.theme-cream .hours-day { color: #15151A; }
.theme-cream .hours-time { color: #3A3A40; }
.theme-cream .contact-form-wrapper {
  background: #FAF7F2;
  border-color: rgba(0,0,0,0.08);
}
.theme-cream .contact-form-title { color: #15151A; }
.theme-cream .contact-form-subtitle { color: #6E6E76; }
.theme-cream .form-input,
.theme-cream .form-select,
.theme-cream .form-textarea {
  border-bottom-color: rgba(0,0,0,0.20);
  color: #15151A;
}
.theme-cream .form-input::placeholder,
.theme-cream .form-textarea::placeholder { color: #9A9AA0; }
.theme-cream .form-select option { background: #FAF7F2; color: #15151A; }
.theme-cream .map-frame {
  background: #E8E2D8;
  border-color: rgba(0,0,0,0.10);
}
.theme-cream .map-frame iframe {
  filter: none;
}

/* === SOBRE-NOS / PRODUTOS  competences + projects + collage inside cream === */
.theme-cream .competences-section,
.theme-cream .projects-section { background: transparent; }
.theme-cream .competences-label { color: var(--accent-red); }
.theme-cream .image-collage img,
.theme-cream .image-collage figure {
  border: 1px solid rgba(0,0,0,0.06);
}

/* Generic project-item cards (sobre-nos / produtos) */
.theme-cream .project-item {
  background: #FAF7F2;
  border-color: rgba(0,0,0,0.08);
}
.theme-cream .project-title { color: #15151A; }
.theme-cream .project-tag { color: #6E6E76; }

/* Team grid */
.theme-cream .team-grid > * {
  background: #FAF7F2;
  border-color: rgba(0,0,0,0.08);
}

/* Expertise / generic cards */
.theme-cream .expertise-cards > *,
.theme-cream .expertise-card {
  background: #FAF7F2;
  border-color: rgba(0,0,0,0.08);
}

/* Section eyebrow dot already red  borders that use rgba(255,255,255,*) inline
   should be overridden by the section-specific rules above. */

/* Section dividers (top borders on .section-stats etc.) */
.theme-cream .section-stats { border-top-color: rgba(0,0,0,0.10); }
.theme-cream .section-stat-value { color: #15151A; }
.theme-cream .section-stat-label { color: #6E6E76; }

/* Panel utility class (used in some pages) */
.theme-cream .panel-title,
.theme-cream .panel-subtitle { color: #15151A; }
.theme-cream .panel-text { color: #3A3A40; }

/* Mobile  keep transition gradients tighter */
@media (max-width: 600px) {
  .theme-cream::before,
  .theme-cream::after { height: 40px; }
}

@media (max-width: 600px) {
  .contact-hero-action { min-height: 0; padding: 100px 0 60px; }
  .contact-hero-action .container { padding: 0 20px; }
  .contact-hero-h1 { margin-bottom: 36px; letter-spacing: -1px; }
  .contact-hero-call { padding: 22px 56px 22px 0; }
  .contact-hero-call-num { gap: 14px; letter-spacing: -1.5px; }
  .contact-hero-call-num svg { width: 28px; height: 28px; }
  .contact-hero-call::after { width: 34px; height: 34px; right: 8px; }
  .contact-hero-chips { grid-template-columns: 1fr; }
  .contact-hero-chip { padding: 18px 20px 20px; }
}

/* ============================================
   BODY-LEVEL LIGHT THEME — all inner pages
   ============================================ */
body.theme-light {
  --bg-primary: #F5F1EB;
  --bg-card: rgba(0, 0, 0, 0.025);
  --bg-card-border: rgba(217, 45, 32, 0.18);
  --text-white: #15151A;
  --text-body: #2E2E33;
  --text-muted: #55555C;
  --border-subtle: rgba(0, 0, 0, 0.10);
  --grid-line: rgba(0, 0, 0, 0.04);
  background: #F5F1EB;
  color: #15151A;
}
body.theme-light .scrollbar-track {
  background: rgba(0, 0, 0, 0.06);
}
/* theme-cream transition shadows look wrong when body is already light */
body.theme-light .theme-cream::before,
body.theme-light .theme-cream::after { display: none; }

/* Form inputs in light-theme context: switch border from white-alpha to black-alpha */
body.theme-light .form-input,
body.theme-light .form-select,
body.theme-light .form-textarea,
body.theme-light .form-file {
  border-bottom-color: rgba(0, 0, 0, 0.18);
}
body.theme-light .form-input::placeholder,
body.theme-light .form-textarea::placeholder { color: rgba(0, 0, 0, 0.45); }
body.theme-light .form-select option {
  background: #FFFFFF;
  color: #15151A;
}

/* ============================================
   BUTTON SYSTEM — primary (filled red)
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent-red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.3s, transform 0.2s;
}
.btn-primary:hover { background: #b82518; color: #fff; }
.btn-primary:active { transform: translateY(1px); }
.btn-primary.btn-sm { padding: 12px 24px; font-size: 10px; }

/* Small text-only product reference link (used in aplicacoes cards) */
.product-link {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-red);
  text-decoration: none;
  transition: opacity 0.2s;
}
.product-link:hover { opacity: 0.7; }
/* Darker red on light backgrounds for WCAG AA at small sizes (#B42318 = ~6.0:1 on cream) */
body.theme-light .product-link,
.theme-cream .product-link { color: #B42318; }

/* /pt/aplicacoes — use-case cards: equal heights with bottom-aligned action links */
.use-case-grid > div { display: flex; flex-direction: column; }
.use-case-grid > div > :last-child { margin-top: auto; }

/* ============================================
   CONTACT CTA partial styling
   ============================================ */
.contact-cta-section {
  background: var(--bg-card);
  border-top: 1px solid var(--bg-card-border);
  padding: 64px 0;
}
.contact-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.contact-cta-title {
  font-family: var(--font-heading);
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 8px;
}
.contact-cta-text {
  font-size: 15px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.7;
  margin: 0;
}

/* ============================================
   FOCUS-VISIBLE — keyboard navigation rings (WCAG 2.1 AA)
   ============================================ */
.btn-outline:focus-visible,
.btn-primary:focus-visible,
.footer-cta-btn:focus-visible,
.footer-contact-btn:focus-visible,
.cookie-btn:focus-visible,
.mobile-menu-call:focus-visible,
.glossario-letter-btn:focus-visible,
.glossario-all-btn:focus-visible,
.bib-filter-btn:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 3px;
}
.form-input:focus-visible,
.form-select:focus-visible,
.form-textarea:focus-visible,
.form-file:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
}
.nav-link:focus-visible,
.nav-primary-item:focus-visible,
.nav-contact-btn:focus-visible,
.footer-link:focus-visible,
.nav-lang-switch a:focus-visible,
.footer-lang-switch a:focus-visible,
.mobile-menu a:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 4px;
  border-radius: 2px;
}
.logo:focus-visible,
.header-phone:focus-visible {
  outline: 2px solid var(--accent-red);
  outline-offset: 6px;
  border-radius: 2px;
}

/* ============================================
   FORM VALIDATION — error + success states
   ============================================ */
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-bottom-color: var(--accent-red);
}
.form-error {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.5px;
  color: var(--accent-red);
}
.form-flash {
  display: block;
  padding: 16px 20px;
  margin-bottom: 24px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.3px;
  border: 1px solid;
}
.form-flash-success {
  background: rgba(34, 139, 90, 0.08);
  border-color: rgba(34, 139, 90, 0.4);
  color: #228B5A;
}
.form-flash-error {
  background: rgba(217, 45, 32, 0.08);
  border-color: rgba(217, 45, 32, 0.4);
  color: var(--accent-red);
}

/* ============================================
   DISABLED + LOADING states
   ============================================ */
button:disabled,
.btn-outline:disabled,
.form-input:disabled,
.form-select:disabled,
.form-textarea:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.is-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.is-loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  color: var(--accent-red);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   BREADCRUMB TRAIL
   ============================================ */
.breadcrumb-trail {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb-trail a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb-trail a:hover { color: var(--accent-red); }
.breadcrumb-trail [aria-current="page"] { color: var(--text-white); }

/* ============================================
   WHATSAPP FAB
   ============================================ */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 998;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.2);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.whatsapp-fab:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45), 0 2px 6px rgba(0,0,0,0.25); }
.whatsapp-fab:focus-visible { outline: 2px solid var(--accent-red); outline-offset: 4px; }
@media (max-width: 480px) {
  .whatsapp-fab { width: 48px; height: 48px; bottom: 16px; right: 16px; }
  .whatsapp-fab svg { width: 24px; height: 24px; }
}

/* ============================================
   NEWS / BLOG FEED
   ============================================ */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.news-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 4px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  transition: transform 0.3s, border-color 0.3s;
}
.news-card:hover { transform: translateY(-4px); border-color: var(--accent-red); }
.news-card-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-card);
}
.news-card-body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.news-card-meta {
  display: flex;
  gap: 12px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.news-card-cat {
  background: rgba(217,45,32,0.12);
  border: 1px solid rgba(217,45,32,0.3);
  color: var(--accent-red);
  padding: 3px 8px;
  border-radius: 3px;
}
.news-card-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  line-height: 1.35;
  margin: 0;
}
.news-card-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.news-article p {
  font-size: 16px;
  line-height: 1.85;
  color: var(--text-white);
  margin: 0 0 18px;
}
.news-related { margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--bg-card-border); }
.news-related-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin: 0 0 24px;
}
.news-related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.news-related-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 18px;
  border-radius: 4px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color 0.3s;
}
.news-related-card:hover { border-color: var(--accent-red); }
.news-related-card h3 {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--text-white);
  margin: 0;
  line-height: 1.4;
}

/* ============================================
   COMPARE TABLE (product comparison)
   ============================================ */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
.compare-table th, .compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-card-border);
  font-size: 13px;
  color: var(--text-white);
  vertical-align: top;
  text-align: left;
}
.compare-table thead th {
  background: var(--bg-card);
  border-bottom: 2px solid var(--accent-red);
  vertical-align: bottom;
}
.compare-table .compare-row-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  width: 22%;
}
.compare-table .compare-section {
  background: rgba(217, 45, 32, 0.08);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  padding: 14px 16px;
  border-bottom: 1px solid var(--bg-card-border);
}
.compare-product-img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  border-radius: 3px;
  margin-bottom: 12px;
}
.compare-product-name {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
}
.compare-product-tagline {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 4px;
}

/* ============================================
   SEARCH PAGE — redesigned
   ============================================ */
.search-page { padding-top: 140px; padding-bottom: 64px; position: relative; }

.search-hero {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.search-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--text-white);
  margin: 12px 0 16px;
  line-height: 1.1;
}
.search-hero-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0 0 32px;
}
.search-hero .section-eyebrow { justify-content: center; display: inline-flex; align-items: center; }

.search-form-large {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 8px;
  padding: 6px 6px 6px 18px;
  transition: border-color 0.3s, box-shadow 0.3s;
  margin-bottom: 16px;
}
.search-form-large:focus-within {
  border-color: var(--accent-red);
  box-shadow: 0 0 0 4px rgba(217, 45, 32, 0.12);
}
.search-form-icon { color: var(--text-muted); flex-shrink: 0; }
.search-form-large:focus-within .search-form-icon { color: var(--accent-red); }
.search-input-large {
  flex: 1;
  min-width: 0;
  padding: 14px 4px;
  background: transparent;
  border: 0;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-white);
  outline: none;
}
.search-input-large::placeholder { color: var(--text-muted); }
.search-submit-btn {
  flex-shrink: 0;
  padding: 14px 24px;
  border-radius: 6px;
}

.search-meta {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  text-align: center;
}
.search-meta strong { color: var(--text-white); font-weight: 600; }
.search-meta-count {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-red);
  background: rgba(217, 45, 32, 0.1);
  border: 1px solid rgba(217, 45, 32, 0.3);
  padding: 2px 10px;
  border-radius: 999px;
  margin-right: 6px;
}
.search-meta-count--empty {
  color: var(--text-muted);
  background: var(--bg-card);
  border-color: var(--bg-card-border);
}

.search-results-wrapper {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.search-section { display: flex; flex-direction: column; gap: 16px; }
.search-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--bg-card-border);
}
.search-section-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-red);
  flex-shrink: 0;
}
.search-section-title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
  flex: 1;
}
.search-section-count {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  padding: 3px 10px;
  border-radius: 999px;
}

.search-results {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.search-results li { display: contents; }
.search-result-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.2s;
}
.search-result-link:hover {
  border-color: var(--accent-red);
  background: rgba(217, 45, 32, 0.04);
  transform: translateX(2px);
}
.search-result-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.search-result-title {
  display: block;
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}
.search-result-excerpt {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}
.search-result-arrow {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 18px;
  color: var(--accent-red);
  transition: transform 0.2s;
}
.search-result-link:hover .search-result-arrow { transform: translateX(4px); }

.search-noresults {
  text-align: center;
  padding: 64px 24px 48px;
  border: 1px dashed var(--bg-card-border);
  border-radius: 8px;
  background: var(--bg-card);
  margin-bottom: 56px;
}
.search-noresults svg { color: var(--text-muted); margin-bottom: 16px; }
.search-noresults h2 {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0 0 8px;
}
.search-noresults p {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

.search-empty { padding-top: 8px; }
.search-section-title-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin: 0 0 16px;
}
.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.search-suggestion {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
  color: var(--text-white);
  text-decoration: none;
  transition: border-color 0.3s, background 0.3s;
}
.search-suggestion:hover {
  border-color: var(--accent-red);
  background: rgba(217, 45, 32, 0.06);
  color: var(--accent-red);
}

.search-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.search-shortcut {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s;
}
.search-shortcut:hover { border-color: var(--accent-red); transform: translateY(-2px); }
.search-shortcut-label {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}
.search-shortcut-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}
.search-shortcut-cta { margin-top: 4px; font-style: normal; }

@media (max-width: 600px) {
  .search-form-large {
    flex-wrap: wrap;
    padding: 8px;
    gap: 8px;
  }
  .search-form-icon { margin-left: 8px; }
  .search-input-large { width: 100%; padding: 8px; }
  .search-submit-btn { width: 100%; justify-content: center; }
  .search-section-header { gap: 8px; }
  .search-section-title { font-size: 16px; }
  .search-result-link { padding: 14px 16px; }
}

/* Header search icon */

/* Header search icon */
.header-search-btn {
  background: none;
  border: none;
  color: var(--text-white);
  cursor: pointer;
  padding: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.3s;
  text-decoration: none;
}
.header-search-btn:hover { color: var(--accent-red); }

/* Section padding utilities */
.section-padding-sm { padding: 60px 0; }
@media (max-width: 768px) {
  .section-padding-sm { padding: 40px 0; }
}

/* ============================================
   PRODUCT CROSS-LINKS (on every product page)
   ============================================ */
.product-cross-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--bg-card-border);
  border: 1px solid var(--bg-card-border);
}
.product-cross-card {
  background: var(--bg-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  transition: background 0.3s, transform 0.3s;
}
.product-cross-card:hover { background: rgba(217,45,32,0.08); }
.product-cross-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-red);
  margin-bottom: 6px;
}
.product-cross-card h3 {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
  margin: 0;
  line-height: 1.35;
}
.product-cross-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.product-cross-cta {
  font-family: var(--font-mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-red);
  margin-top: 6px;
}

/* Page-top breadcrumb container (used after hero) */
.page-breadcrumb {
  padding: 24px 0 0;
}

/* ============================================
   PRODUCT SELECTOR WIZARD (on /produtos)
   ============================================ */
.produto-selector {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  align-items: end;
}
.produto-selector .form-group { gap: 8px; }
.produto-selector .form-select { background: rgba(0,0,0,0.06); padding: 12px 14px; border-radius: 4px; border: 1px solid var(--bg-card-border); border-bottom: 1px solid var(--bg-card-border); }
body.theme-light .produto-selector .form-select { background: rgba(0,0,0,0.03); }

.produto-recomendacao {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--bg-card-border);
}
.produto-recomendacao-label {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent-red);
  margin-bottom: 14px;
}
.produto-recomendacao-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.produto-recomendacao-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-primary);
  border: 1px solid var(--bg-card-border);
  border-radius: 4px;
  text-decoration: none;
  transition: border-color 0.3s, transform 0.2s;
}
.produto-recomendacao-card:hover { border-color: var(--accent-red); transform: translateY(-2px); }
.produto-recomendacao-card strong {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-white);
}
.produto-recomendacao-card span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}
.produto-recomendacao-card em {
  font-style: normal;
  margin-top: 6px;
}

/* Cookie banner: dark variant for light pages */
body.theme-light .cookie-banner {
  background: rgba(21, 21, 26, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
}
body.theme-light .cookie-banner span { color: rgba(255, 255, 255, 0.8); }
body.theme-light .cookie-btn:last-of-type {
  border-color: rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.85);
}
body.theme-light .cookie-btn:last-of-type:hover {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}

/* Sections that stay dark even on light pages — restore white text tokens */
body.theme-light .page-hero,
body.theme-light .contact-hero,
body.theme-light .footer-dark-top,
body.theme-light .page-nav-cta:not(.theme-cream),
body.theme-light .story-end:not(.theme-cream) {
  --text-white: #FFFFFF;
  --text-body: #FFFFFF;
  --text-muted: rgba(255, 255, 255, 0.7);
  color: #fff;
}
