/* =========================================================
   SANA DATA — STYLES
   Para mudar cores ou fontes, edite só as variáveis abaixo.
   ========================================================= */

:root {
  /* Colors */
  --color-white: #FFFFFF;
  --color-dark: #161616;
  --color-light: #EFEFEF;
  --color-accent: #35B89C;        /* buttons, details */
  --color-accent-hover: #2DA488;
  --color-accent-text: #1F7A66;   /* green for small text on white */
  --color-text: #161616;
  --color-text-soft: #3A3A3A;
  --color-muted: #6B6B6B;
  --color-border: #D2D2D2;
  --color-error: #B42318;

  /* Photo masks (last number = darkness, from 0 to 1) */
  --mask-hero: rgba(22, 22, 22, 0.7);
  --mask-photos: rgba(22, 22, 22, 0.3);
  --photo-saturation: 0.8;        /* 1 = original colors, 0 = black and white */

  /* Typography */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.125rem, 1.4rem + 3vw, 3.5rem);     /* 34px → 56px */
  --fs-h2: clamp(1.75rem, 1.35rem + 1.6vw, 2.25rem);  /* 28px → 36px */
  --fs-h3: clamp(1.1875rem, 1rem + 0.6vw, 1.375rem);  /* 19px → 22px */
  --fs-body: 1.0625rem;                               /* 17px */
  --fs-lead: 1.1875rem;                               /* 19px */
  --fs-nav: 0.9375rem;                                /* 15px */
  --fs-small: 0.8125rem;                              /* 13px */

  /* Layout */
  --container: 1240px;
  --gutter: 32px;
  --section-space: clamp(72px, 9vw, 120px);
  --radius: 2px;
  --transition: 0.3s ease;

  /* Partners carousel speed (bigger number = slower) */
  --partners-speed: 45s;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.015em; }
p { margin: 0 0 1.25em; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--color-accent-text);
  outline-offset: 3px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--color-dark);
  color: var(--color-white);
  font-size: var(--fs-nav);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--transition);
}
.btn span { transition: transform var(--transition); }
.btn:hover span { transform: translateX(3px); }

.btn-primary {
  background: var(--color-accent);
  color: var(--color-dark);
}
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-primary:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: wait; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: var(--color-white);
  border-bottom: 1px solid #E6E6E6;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}

.logo img { height: 32px; width: auto; }

.site-nav ul {
  display: flex;
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  font-size: var(--fs-nav);
  font-weight: 500;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition);
}
.site-nav a:hover {
  color: var(--color-accent-text);
  border-bottom-color: var(--color-accent);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-dark);
  transition: transform var(--transition), opacity var(--transition);
}
.nav-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Sections (shared) ---------- */
.section { padding: var(--section-space) 0; }

.section h2 {
  font-size: var(--fs-h2);
  line-height: 1.2;
  margin-bottom: 24px;
}
.section h2::before {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  margin-bottom: 20px;
  background: var(--color-accent);
}

.section-header { margin-bottom: 56px; }
.section-header h2 { margin-bottom: 12px; }
.section-intro {
  font-size: var(--fs-lead);
  color: var(--color-text-soft);
}

/* ---------- 1. Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(540px, 80vh, 760px);
  background: var(--color-dark);
  color: var(--color-white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  color: transparent; /* hides alt text if the photo is missing */
  filter: saturate(var(--photo-saturation));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: var(--mask-hero);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero h1 {
  max-width: 780px;
  font-size: var(--fs-h1);
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 620px;
  margin: 24px 0 40px;
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

/* ---------- 2. About ---------- */
.prose { max-width: 760px; }
.prose p { color: var(--color-text-soft); }

/* Speed is key card */
.speed-card {
  max-width: 760px;
  margin-top: 48px;
  padding: 32px 36px;
  background: #E8F6F2;               /* soft tint of the brand green */
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius);
}
.speed-card h3 {
  margin-bottom: 12px;
  font-size: var(--fs-h3);
  color: var(--color-dark);
}
.speed-card p { color: var(--color-text-soft); }

/* ---------- 3. Services ---------- */
.section-services { background: var(--color-light); }

.services-layout {
  display: grid;
  grid-template-columns: 42fr 58fr;
  gap: 64px;
  align-items: start;
}

/* Photos: stacked, only the active one is visible (fade between them) */
.services-media {
  position: relative;
  margin: 0;
  aspect-ratio: 4 / 5;
  background: var(--color-dark);
  overflow: hidden;
}
.services-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  filter: saturate(var(--photo-saturation));
  opacity: 0;
  transition: opacity 0.6s ease;
}
.services-media img.is-active { opacity: 1; }
.services-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mask-photos);
  pointer-events: none;
}

/* Accordion */
.accordion { border-top: 1px solid var(--color-border); }
.accordion-item { border-bottom: 1px solid var(--color-border); }
.accordion-heading { font-size: inherit; letter-spacing: normal; }

.accordion-trigger {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 24px 0;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-align: left;
  color: var(--color-text);
  cursor: pointer;
}
.accordion-trigger:hover .accordion-title { color: var(--color-accent-text); }

.accordion-number {
  min-width: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-muted);
  font-variant-numeric: tabular-nums;
}
.accordion-title { flex: 1; transition: color var(--transition); }

/* plus / minus icon */
.accordion-icon {
  position: relative;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}
.accordion-icon::before,
.accordion-icon::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 16px;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
  transition: transform var(--transition);
}
.accordion-icon::after { transform: rotate(90deg); }

.accordion-item.is-open .accordion-number,
.accordion-item.is-open .accordion-icon { color: var(--color-accent-text); }
.accordion-item.is-open .accordion-icon::after { transform: rotate(0deg); }

.accordion-panel-inner p {
  max-width: 640px;
  padding: 0 0 28px 48px;
  color: var(--color-text-soft);
}

/* Collapse only when JavaScript is running (without JS, all items stay open) */
.js .accordion-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--transition);
}
.js .accordion-panel-inner {
  overflow: hidden;
  visibility: hidden;
  transition: visibility 0s linear 0.3s;
}
.js .accordion-item.is-open .accordion-panel { grid-template-rows: 1fr; }
.js .accordion-item.is-open .accordion-panel-inner {
  visibility: visible;
  transition-delay: 0s;
}

/* ---------- How We Work ---------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-step {
  position: relative;
  padding-top: 28px;
  border-top: 1px solid var(--color-border);
}
.process-step::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
}

.process-number {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-accent-text);
  font-variant-numeric: tabular-nums;
}

.process-step h3 {
  margin: 12px 0 12px;
  font-size: var(--fs-h3);
  line-height: 1.3;
}

.process-step p {
  font-size: 1rem;
  color: var(--color-text-soft);
}

/* ---------- Selected Experience ---------- */
.section-experience { background: var(--color-light); }

.cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.case {
  padding: 36px;
  background: var(--color-white);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius);
}

.case-title {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.5;
  color: var(--color-accent-text);
}
.case-title span { color: var(--color-border); margin: 0 4px; }

.case-stat {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 20px 0 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid #E6E6E6;
}
.case-stat-value {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-dark);
}
.case-stat-label {
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--color-muted);
}

.case > p:last-child {
  font-size: 1rem;
  color: var(--color-text-soft);
}

/* ---------- Partners (logo carousel) ---------- */
.section-partners {
  padding: 72px 0 80px;
}

.section-partners h2 {
  margin-bottom: 40px;
  font-size: var(--fs-h3);
  text-align: center;
}
.section-partners h2::before { margin: 0 auto 16px; }

.partners-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.partners-track { display: flex; width: max-content; }

.partners-list {
  display: flex;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0 64px 0 0;
  list-style: none;
}

.partners-list img {
  width: 160px;
  height: 80px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.55;
  transition: opacity var(--transition);
}
.partners-list li:hover img { opacity: 0.9; }

.js .partners-track { animation: partners-scroll var(--partners-speed) linear infinite; }
.partners-marquee:hover .partners-track { animation-play-state: paused; }

@keyframes partners-scroll {
  to { transform: translateX(-50%); }
}

/* Without JavaScript: static, centered grid */
.no-js .partners-track { width: auto; }
.no-js .partners-list { flex-wrap: wrap; justify-content: center; padding: 0; }
.no-js .partners-marquee { -webkit-mask-image: none; mask-image: none; }

/* ---------- 4. Why Brazil ---------- */
.section-dark {
  background: var(--color-dark);
  color: var(--color-white);
}
.section-dark :focus-visible { outline-color: var(--color-accent); }

.why-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 72px;
  align-items: stretch;
}

.why-subheading {
  margin-bottom: 28px;
  font-size: var(--fs-h3);
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.92);
}

.why-content p { color: rgba(255, 255, 255, 0.78); }
.why-content .why-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}
.why-content .why-lead strong { display: block; margin-bottom: 8px; font-size: 1.375rem; line-height: 1.35; }
.why-content .why-race {
  margin-top: 28px;
  padding-left: 16px;
  border-left: 2px solid var(--color-accent);
  color: var(--color-white);
}
.why-content .why-race strong { color: var(--color-accent); }
.why-content strong { color: var(--color-white); font-weight: 600; }

.stat {
  margin: 40px 0;
  padding-left: 24px;
  border-left: 3px solid var(--color-accent);
}
.stat p { margin: 0; }
.why-content .stat-value {
  font-size: clamp(3rem, 2.2rem + 3vw, 4.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--color-accent);
}
.why-content .stat-label {
  margin-top: 12px;
  font-size: var(--fs-nav);
  font-weight: 500;
  color: var(--color-white);
}

.why-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 40px 0 0;
  padding: 32px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  list-style: none;
}
.why-highlights li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: var(--fs-nav);
  font-weight: 500;
}
.why-highlights li::before {
  content: "";
  width: 16px;
  height: 2px;
  background: var(--color-accent);
}

.why-media {
  position: relative;
  margin: 0;
  min-height: 480px;
  background: #222;
  overflow: hidden;
}
.why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  color: transparent;
  filter: saturate(var(--photo-saturation));
}
.why-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--mask-photos);
}

/* ---------- Key Markets (map) ---------- */
.section-markets { padding-top: 0; }
.section-markets .container > .markets-layout {
  padding-top: var(--section-space);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.markets-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  align-items: center;
}

.markets-intro { color: rgba(255, 255, 255, 0.78); }

.markets-tabs {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  margin: 32px 0 20px;
}

.market-tab {
  position: relative;
  padding: 10px 0 10px 22px;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 1.0625rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition);
}
.market-tab::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: background-color var(--transition), border-color var(--transition);
}
.market-tab:hover,
.market-tab.is-active { color: var(--color-white); }
.market-tab.is-active::before {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.markets-note {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
}

.markets-map {
  position: relative;
  max-width: 600px;
  width: 100%;
  margin-left: auto;
}
.markets-map-canvas { position: relative; }
.markets-map-img { width: 100%; height: auto; }

/* Pins */
.map-pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  padding: 0;
  border: 2px solid var(--color-dark);
  border-radius: 50%;
  background: var(--color-accent);
  cursor: pointer;
  z-index: 2;
  transition: transform var(--transition), border-color var(--transition);
}
.map-pin::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 1px solid var(--color-accent);
  animation: pin-pulse 2.8s ease-out infinite;
  pointer-events: none;
}
.map-pin::before {
  /* bigger invisible area for touch */
  content: "";
  position: absolute;
  inset: -14px;
}
.map-pin:hover,
.map-pin.is-active { transform: scale(1.2); border-color: var(--color-white); }
.map-pin:focus-visible { outline: 2px solid var(--color-white); outline-offset: 4px; }

@keyframes pin-pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  100% { transform: scale(2.6); opacity: 0; }
}

/* Info cards */
.market-card {
  width: 300px;
  padding: 20px 22px;
  background: var(--color-white);
  color: var(--color-text);
  border-radius: var(--radius);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.market-card + .market-card { margin-top: 16px; }

.market-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.market-card-head img { width: 28px; height: 28px; flex-shrink: 0; }

.market-card-kicker {
  margin: 0 0 2px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-accent-text);
}
.market-card h3 { font-size: 1.125rem; line-height: 1.25; }

.market-card ul { margin: 0; padding: 0; list-style: none; }
.market-card li {
  position: relative;
  padding-left: 16px;
  color: var(--color-text-soft);
}
.market-card li + li { margin-top: 8px; }
.market-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 2px;
  background: var(--color-accent);
}

.market-card-tags {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid #E6E6E6;
  font-size: var(--fs-small);
  color: var(--color-muted);
}

/* With JavaScript: only the selected card is shown */
.js .market-card { display: none; }
.js .market-card.is-active {
  display: block;
  animation: card-in 0.25s ease;
}
@keyframes card-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Desktop: the card opens over the west of the map, never covering the pins */
@media (min-width: 901px) {
  .js .market-cards { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
  .js .market-card {
    position: absolute;
    left: 0;
    top: var(--top, 40%);
    pointer-events: auto;
  }
  .js .market-card + .market-card { margin-top: 0; }
}

/* ---------- 5. Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.contact-intro {
  max-width: 480px;
  font-size: var(--fs-lead);
  color: var(--color-text-soft);
}

.contact-details { margin: 32px 0 36px; }
.contact-details div + div { margin-top: 20px; }
.contact-details dt {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-muted);
}
.contact-details dd {
  margin: 4px 0 0;
  font-size: 1.125rem;
  font-weight: 500;
}
.contact-details a { text-decoration: none; transition: color var(--transition); }
.contact-details a:hover { color: var(--color-accent-text); text-decoration: underline; text-underline-offset: 3px; }

.contact-form-wrap {
  padding: 40px;
  background: var(--color-light);
  border-radius: var(--radius);
}

.form-field { margin-bottom: 20px; }

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 500;
}
.required { color: var(--color-accent-text); }
.optional { font-weight: 400; color: var(--color-muted); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 1rem;   /* 16px avoids zoom on iPhone */
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-field textarea { min-height: 140px; resize: vertical; }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-accent-text);
  box-shadow: 0 0 0 3px rgba(53, 184, 156, 0.25);
}

.form-field.has-error input,
.form-field.has-error textarea { border-color: var(--color-error); }

.field-error {
  margin: 6px 0 0;
  font-size: var(--fs-small);
  color: var(--color-error);
}
.field-error:empty { display: none; }

/* Antispam field: invisible to people */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status { margin: 16px 0 0; font-size: var(--fs-nav); }
.form-status:empty { display: none; }
.form-status.is-error { color: var(--color-error); }

.form-success h3 { font-size: var(--fs-h3); margin-bottom: 12px; }
.form-success p { color: var(--color-text-soft); }

/* ---------- 6. Footer ---------- */
.site-footer {
  background: var(--color-dark);
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
  line-height: 1.7;
}
.site-footer :focus-visible { outline-color: var(--color-accent); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding-top: 56px;
  padding-bottom: 40px;
}

.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin: 16px 0 0; }

.footer-contact {
  display: flex;
  gap: 56px;
  font-style: normal;
}
.footer-contact p { margin: 0; }
.footer-contact a { color: var(--color-white); text-decoration: none; }
.footer-contact a:hover { color: var(--color-accent); }

.footer-bottom {
  padding-top: 24px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Reveal on scroll (subtle fade) ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

/* Tablet */
@media (max-width: 1024px) {
  .services-layout { gap: 40px; }
  .why-layout { gap: 48px; }
  .contact-layout { gap: 48px; }
  .footer-contact { gap: 32px; }
  .cases { gap: 24px; }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; }
  .markets-layout { gap: 40px; }
}

/* Mobile menu + stacked layouts */
@media (max-width: 900px) {
  .js .nav-toggle { display: flex; }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    border-bottom: 1px solid #E6E6E6;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06);
  }
  .js .nav-open .site-nav { display: block; }
  .js .site-nav ul {
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 16px;
  }
  .js .site-nav a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid #F0F0F0;
  }
  .js .site-nav li:last-child a { border-bottom: 0; }

  /* Without JavaScript the menu simply wraps below the logo */
  .no-js .header-inner { flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
  .no-js .site-nav ul { gap: 24px; flex-wrap: wrap; margin-top: 12px; }

  .services-layout,
  .why-layout,
  .contact-layout { grid-template-columns: 1fr; }

  /* Photos stay vertical on mobile (same framing as desktop) */
  .services-media { aspect-ratio: 4 / 5; max-height: 80vh; }
  .why-media { min-height: 0; aspect-ratio: 4 / 5; max-height: 80vh; }

  .hero-bg { object-position: 60% center; }

  .markets-layout { grid-template-columns: 1fr; }
  .cases { grid-template-columns: 1fr; }
  .markets-tabs { flex-direction: row; flex-wrap: wrap; gap: 4px 24px; margin: 24px 0 12px; }
  .markets-map { margin: 0 auto; }
  .market-cards { margin-top: 24px; }
  .market-card { width: 100%; }
}

/* Small phones */
@media (max-width: 600px) {
  :root { --gutter: 20px; }

  body { font-size: 1rem; }

  .header-inner { min-height: 68px; }
  .logo img { height: 26px; }

  .hero { min-height: 560px; }
  .hero-content { padding-top: 72px; padding-bottom: 72px; }
  .hero-subtitle { font-size: 1.0625rem; margin: 20px 0 32px; }

  .section-header { margin-bottom: 40px; }

  .accordion-trigger { gap: 14px; padding: 20px 0; }
  .accordion-number { min-width: 22px; }
  .accordion-panel-inner p { padding-left: 0; }

  .section-partners { padding: 48px 0 56px; }
  .partners-list { gap: 40px; padding-right: 40px; }
  .partners-list img { width: 120px; height: 60px; }

  .stat { margin: 32px 0; padding-left: 18px; }

  .process-steps { grid-template-columns: 1fr; gap: 32px; }

  .speed-card { margin-top: 36px; padding: 24px 22px; }
  .case { padding: 28px 22px; }

  .contact-form-wrap { padding: 24px 20px; }
  .contact-info .btn { width: 100%; }

  .footer-inner { flex-direction: column; padding-top: 48px; }
  .footer-contact { flex-direction: column; gap: 20px; }
}

/* Respect users who prefer less motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  /* Partners: show the logos still, as a centered grid */
  .js .partners-track { animation: none; width: auto; }
  .partners-list { flex-wrap: wrap; justify-content: center; padding: 0; }
  .partners-list[aria-hidden="true"] { display: none; }
  .partners-marquee { -webkit-mask-image: none; mask-image: none; }

  /* No fade, no pulsing pins */
  .js .reveal { opacity: 1; transform: none; }
  .map-pin::after { animation: none; display: none; }
}