/* Art direction: Industrial boilermaking / steel fabrication → rugged, authoritative, honest
   Palette: Steel blue + dark slate. Brand colors from Roinox logo: #2e3337 (dark slate), #4e6b89 (steel blue).
   Typography: Cabinet Grotesk (display, bold industrial) + General Sans (body, clean engineering feel)
   Density: spacious — conveys confidence and quality */

/* ========================================
   FONTS
   ======================================== */
@import url('https://api.fontshare.com/v2/css?f[]=cabinet-grotesk@700,800&f[]=general-sans@400,500,600,700&display=swap');

:root {
  --font-display: 'Cabinet Grotesk', 'Arial Black', sans-serif;
  --font-body: 'General Sans', 'Helvetica Neue', sans-serif;
}

/* ========================================
   TYPE SCALE
   ======================================== */
:root {
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);
}

/* ========================================
   SPACING (4px base)
   ======================================== */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;
}

/* ========================================
   CUSTOM INDUSTRIAL PALETTE
   Steel Blue + Dark Slate
   ======================================== */
:root, [data-theme="light"] {
  /* Surfaces — cool steel/slate tones */
  --color-bg:             #f4f5f7;
  --color-surface:        #ebedf0;
  --color-surface-2:      #e1e4e8;
  --color-surface-offset: #d5d9df;
  --color-surface-offset-2: #c8cdd4;
  --color-surface-dynamic: #bcc2ca;
  --color-divider:        #c4c9d0;
  --color-border:         #b0b6be;

  /* Text — dark slate from logo #2e3337 */
  --color-text:           #2e3337;
  --color-text-muted:     #5a6168;
  --color-text-faint:     #8e949b;
  --color-text-inverse:   #f4f5f7;

  /* Primary Accent — Steel Blue from logo #4e6b89 */
  --color-primary:        #4e6b89;
  --color-primary-hover:  #3d5a78;
  --color-primary-active: #2f4a66;
  --color-primary-highlight: #dce4ed;

  /* Secondary — Darker Slate */
  --color-steel:          #2e3337;
  --color-steel-hover:    #23282c;
  --color-steel-active:   #1a1e21;

  /* Success */
  --color-success:        #437a22;
  --color-error:          #a13544;

  /* Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows — cool-toned steel */
  --shadow-sm: 0 1px 2px oklch(0.15 0.02 240 / 0.08);
  --shadow-md: 0 4px 12px oklch(0.15 0.02 240 / 0.1);
  --shadow-lg: 0 12px 32px oklch(0.15 0.02 240 / 0.14);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-full: 100%;
}

/* DARK MODE */
[data-theme="dark"] {
  --color-bg:             #121416;
  --color-surface:        #1a1d20;
  --color-surface-2:      #22262a;
  --color-surface-offset: #2a2e33;
  --color-surface-offset-2: #33383d;
  --color-surface-dynamic: #3d4248;
  --color-divider:        #3a3f44;
  --color-border:         #4a5058;
  --color-text:           #dce0e5;
  --color-text-muted:     #8e949b;
  --color-text-faint:     #5e656d;
  --color-text-inverse:   #121416;
  --color-primary:        #6a8fb3;
  --color-primary-hover:  #5a7fa3;
  --color-primary-active: #4a6f93;
  --color-primary-highlight: #1e2a38;
  --color-steel:          #8eaec8;
  --color-steel-hover:    #7e9eb8;
  --color-steel-active:   #6e8ea8;
  --color-success:        #6daa45;
  --color-error:          #dd6974;
  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
  --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
  --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg:             #121416;
    --color-surface:        #1a1d20;
    --color-surface-2:      #22262a;
    --color-surface-offset: #2a2e33;
    --color-surface-offset-2: #33383d;
    --color-surface-dynamic: #3d4248;
    --color-divider:        #3a3f44;
    --color-border:         #4a5058;
    --color-text:           #dce0e5;
    --color-text-muted:     #8e949b;
    --color-text-faint:     #5e656d;
    --color-text-inverse:   #121416;
    --color-primary:        #6a8fb3;
    --color-primary-hover:  #5a7fa3;
    --color-primary-active: #4a6f93;
    --color-primary-highlight: #1e2a38;
    --color-steel:          #8eaec8;
    --color-steel-hover:    #7e9eb8;
    --color-steel-active:   #6e8ea8;
    --color-success:        #6daa45;
    --color-error:          #dd6974;
    --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.25);
    --shadow-md: 0 4px 12px oklch(0 0 0 / 0.35);
    --shadow-lg: 0 12px 32px oklch(0 0 0 / 0.45);
  }
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

/* Links */
a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
a:hover { color: var(--color-primary-hover); }

/* Container */
.container {
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
}
@media (min-width: 768px) { .container { padding-inline: var(--space-8); } }

.container--narrow { max-width: var(--content-default); }

/* Section spacing */
.section {
  padding-block: clamp(var(--space-12), 8vw, var(--space-24));
}

/* ========================================
   HEADER / NAV
   ======================================== */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: oklch(from var(--color-bg) l c h / 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.header--scrolled { box-shadow: var(--shadow-sm); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-3);
  gap: var(--space-4);
}

.header__logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  color: var(--color-text);
}
.header__logo svg { width: 40px; height: 40px; }
.header__logo-text {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-text);
}
.header__logo-text span { color: var(--color-primary); }

.nav { display: flex; align-items: center; gap: var(--space-6); }
.nav__link {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
  white-space: nowrap;
}
.nav__link:hover, .nav__link--active { color: var(--color-text); }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-text-inverse);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: var(--color-text-inverse);
}
.nav__cta:active { transform: translateY(0); box-shadow: var(--shadow-sm); }

/* ========================================
   PREMIUM MOBILE MENU
   ======================================== */

/* Hide mobile-only elements on desktop */
.nav__mobile-info { display: none; }

/* Hamburger toggle button */
.mobile-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  position: relative;
  z-index: 200;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: background 0.3s;
}
.mobile-toggle:hover { background: oklch(from var(--color-text) l c h / 0.06); }

/* Three bars → morphing to X */
.mobile-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  position: absolute;
  left: 10px;
  transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1),
              opacity 0.3s cubic-bezier(0.23, 1, 0.32, 1),
              width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transform-origin: center;
}
.mobile-toggle span:nth-child(1) { top: 14px; }
.mobile-toggle span:nth-child(2) { top: 21px; width: 18px; }
.mobile-toggle span:nth-child(3) { top: 28px; width: 14px; }

/* X morphing state */
.mobile-toggle--active span:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}
.mobile-toggle--active span:nth-child(2) {
  opacity: 0;
  transform: translateX(10px);
  width: 24px;
}
.mobile-toggle--active span:nth-child(3) {
  top: 21px;
  width: 24px;
  transform: rotate(-45deg);
}

.theme-toggle {
  padding: var(--space-2);
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  transition: color var(--transition-interactive), background var(--transition-interactive);
}
.theme-toggle:hover { color: var(--color-text); background: var(--color-surface); }

@media (max-width: 899px) {
  .mobile-toggle { display: flex; }

  /* Full-screen overlay nav */
  .nav {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    background: var(--color-bg);
    padding: var(--space-8) var(--space-8) var(--space-8) var(--space-10);
    gap: 0;
    z-index: 150;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                visibility 0.45s;
  }

  /* Diagonal accent line behind links */
  .nav::before {
    content: '';
    position: absolute;
    top: -20%;
    right: -10%;
    width: 1px;
    height: 140%;
    background: linear-gradient(
      to bottom,
      transparent 0%,
      var(--color-primary) 30%,
      var(--color-primary) 70%,
      transparent 100%
    );
    opacity: 0;
    transform: rotate(15deg);
    transition: opacity 0.6s 0.2s;
  }

  /* RR watermark in bg */
  .nav::after {
    content: 'RR';
    position: absolute;
    bottom: var(--space-8);
    right: var(--space-6);
    font-family: var(--font-display);
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 800;
    color: oklch(from var(--color-primary) l c h / 0.06);
    letter-spacing: -0.05em;
    line-height: 1;
    pointer-events: none;
  }

  .nav--open {
    opacity: 1;
    visibility: visible;
  }
  .nav--open::before { opacity: 0.15; }

  /* Individual link animations — staggered slide-in */
  .nav__link, .nav__cta, .nav .theme-toggle {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.35s cubic-bezier(0.23, 1, 0.32, 1),
                transform 0.45s cubic-bezier(0.23, 1, 0.32, 1),
                color var(--transition-interactive),
                background var(--transition-interactive);
  }

  .nav--open .nav__link,
  .nav--open .nav__cta,
  .nav--open .theme-toggle {
    opacity: 1;
    transform: translateX(0);
  }

  /* Stagger delays for each link */
  .nav--open .nav__link:nth-child(1) { transition-delay: 0.08s; }
  .nav--open .nav__link:nth-child(2) { transition-delay: 0.14s; }
  .nav--open .nav__link:nth-child(3) { transition-delay: 0.20s; }
  .nav--open .nav__link:nth-child(4) { transition-delay: 0.26s; }
  .nav--open .nav__link:nth-child(5) { transition-delay: 0.32s; }
  .nav--open .theme-toggle { transition-delay: 0.38s; }
  .nav--open .nav__cta { transition-delay: 0.44s; }

  /* Link styling — big, bold, spaced */
  .nav__link {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    padding: var(--space-3) 0;
    border-radius: 0;
    color: var(--color-text);
    letter-spacing: -0.02em;
    position: relative;
    width: fit-content;
  }

  /* Underline hover effect */
  .nav__link::after {
    content: '';
    position: absolute;
    bottom: var(--space-2);
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  }
  .nav__link:hover::after,
  .nav__link:focus-visible::after {
    width: 100%;
  }
  .nav__link:hover { background: none; color: var(--color-primary); }

  /* CTA button in mobile nav */
  .nav__cta {
    margin-top: var(--space-8);
    justify-content: center;
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    width: fit-content;
  }

  /* Mobile nav bottom info */
  .nav__mobile-info {
    display: block;
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-10);
    font-size: var(--text-xs);
    color: var(--color-text-faint);
    line-height: 1.8;
  }
  .nav__mobile-info a {
    color: var(--color-text-muted);
    text-decoration: none;
  }
  .nav__mobile-info a:hover { color: var(--color-primary); }

  /* Remove old overlay — now using full-screen */
  .nav-overlay {
    display: none;
  }
}

/* ========================================
   HERO
   ======================================== */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(0.1 0.02 240 / 0.92) 0%,
    oklch(0.1 0.02 240 / 0.8) 40%,
    oklch(0.1 0.02 240 / 0.55) 70%,
    oklch(0.1 0.02 240 / 0.3) 100%
  );
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 700px;
  padding-block: var(--space-16);
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: oklch(from var(--color-primary) l c h / 0.2);
  border: 1px solid oklch(from var(--color-primary) l c h / 0.3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-6);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
[data-theme="dark"] .hero__badge,
:root:not([data-theme]) .hero__badge {
  color: var(--color-primary);
}
.hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.08;
  color: #f5f3ef;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}
.hero__title em {
  font-style: normal;
  color: var(--color-primary);
}
[data-theme="dark"] .hero__title em { color: var(--color-primary); }
.hero__subtitle {
  font-size: var(--text-base);
  color: #c0bab0;
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.7;
}
.hero__actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  align-items: center;
}
.hero__micro {
  font-size: var(--text-xs);
  color: #9a968e;
  margin-top: var(--space-3);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition-interactive),
              color var(--transition-interactive),
              transform var(--transition-interactive),
              box-shadow var(--transition-interactive);
  border: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--color-primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  color: #fff;
}
.btn--outline {
  background: transparent;
  color: #f5f3ef;
  border: 1px solid oklch(1 0 0 / 0.25);
}
.btn--outline:hover {
  background: oklch(1 0 0 / 0.08);
  border-color: oklch(1 0 0 / 0.4);
  transform: translateY(-1px);
  color: #fff;
}
.btn--secondary {
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn--secondary:hover {
  background: var(--color-surface-2);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn--large {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ========================================
   SERVICES / WHAT WE DO
   ======================================== */
.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }

.service-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  transition: box-shadow var(--transition-interactive),
              transform var(--transition-interactive);
}
.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.service-card__img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}
.service-card__body { padding: var(--space-6); }
.service-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}
.service-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.service-card__list {
  list-style: none;
  padding: 0;
}
.service-card__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.service-card__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 8px;
  height: 8px;
  background: var(--color-primary);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* ========================================
   SECTION HEADERS
   ======================================== */
.section-header {
  margin-bottom: var(--space-12);
}
.section-header__tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-3);
}
.section-header__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.section-header__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* ========================================
   SECTORS
   ======================================== */
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr));
  gap: var(--space-4);
}
.sector-item {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
  text-align: left;
  transition: box-shadow var(--transition-interactive), transform var(--transition-interactive);
}
.sector-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}
.sector-item__icon {
  width: 40px;
  height: 40px;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.sector-item__name {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.sector-item__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.sectors__callout {
  margin-top: var(--space-10);
  padding: var(--space-6) var(--space-8);
  background: var(--color-surface);
  border-left: 3px solid var(--color-primary);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.sectors__callout p {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--color-text);
}

/* ========================================
   PROCESS TIMELINE
   ======================================== */
.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  position: relative;
}
@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .process-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.process-step {
  display: flex;
  gap: var(--space-4);
}
.process-step__number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
  border-radius: var(--radius-md);
}
.process-step__content {}
.process-step__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.process-step__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========================================
   BENEFITS
   ======================================== */
.benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .benefits-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  padding: var(--space-8);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.benefit-card__icon {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  margin-bottom: var(--space-5);
}
.benefit-card__title {
  font-family: var(--font-body);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.benefit-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.benefit-card__micro {
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--color-primary);
  font-style: italic;
}

/* ========================================
   PROJECTS
   ======================================== */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 640px) { .projects-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .projects-grid { grid-template-columns: repeat(3, 1fr); } }

.project-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.project-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.project-card__body { padding: var(--space-5); }
.project-card__sector {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2);
}
.project-card__title {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}
.project-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.project-card__tag {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-2);
  padding: var(--space-1) var(--space-2);
  border-radius: var(--radius-sm);
}
.project-card__result {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* ========================================
   TRUST / SOCIAL PROOF
   ======================================== */
.trust-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  margin-bottom: var(--space-12);
}
@media (min-width: 768px) { .trust-stats { grid-template-columns: repeat(4, 1fr); } }

.stat {
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-1);
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

.testimonial {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.testimonial__quote {
  font-size: var(--text-base);
  color: var(--color-text);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.7;
}
.testimonial__quote::before { content: '\201C'; }
.testimonial__quote::after { content: '\201D'; }
.testimonial__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.testimonial__role {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* ========================================
   FAQ
   ======================================== */
.faq-list {
  max-width: 800px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--color-divider);
}
.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  background: none;
  border: none;
}
.faq-item__question:hover { color: var(--color-primary); }
.faq-item__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
}
.faq-item--open .faq-item__icon { transform: rotate(45deg); }
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              padding 0.3s;
}
.faq-item--open .faq-item__answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}
.faq-item__answer p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* ========================================
   CTA / CONTACT FORM
   ======================================== */
.cta-section {
  background: var(--color-surface);
}
.cta-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: start;
}
@media (min-width: 768px) { .cta-split { grid-template-columns: 1fr 1fr; } }

.cta-info {}
.cta-info__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.cta-info__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}
.cta-info__list {
  list-style: none;
  padding: 0;
}
.cta-info__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.cta-info__list li svg {
  width: 20px;
  height: 20px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

/* Form */
.form { display: flex; flex-direction: column; gap: var(--space-4); }
.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}
@media (min-width: 480px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }

.form-group { display: flex; flex-direction: column; gap: var(--space-1); }
.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text);
}
.form-group input,
.form-group select,
.form-group textarea {
  padding: var(--space-3) var(--space-4);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  color: var(--color-text);
  transition: border-color var(--transition-interactive),
              box-shadow var(--transition-interactive);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px oklch(from var(--color-primary) l c h / 0.15);
  outline: none;
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-divider);
  padding-block: var(--space-12) var(--space-8);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-8);
}
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.footer__brand {}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  text-decoration: none;
  color: var(--color-text);
}
.footer__brand-logo svg { width: 32px; height: 32px; }
.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 800;
}
.footer__brand-name span { color: var(--color-primary); }
.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 280px;
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.footer__links {
  list-style: none;
  padding: 0;
}
.footer__links li { margin-bottom: var(--space-2); }
.footer__links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color var(--transition-interactive);
}
.footer__links a:hover { color: var(--color-primary); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-divider);
}
.footer__copy {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__attrib {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__attrib:hover { color: var(--color-text-muted); }

/* ========================================
   MID-PAGE CTA BANNER
   ======================================== */
.cta-banner {
  background: linear-gradient(135deg, #1a1d20 0%, #2a3038 50%, #1a1d20 100%);
  padding: var(--space-12) var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  margin-block: var(--space-4);
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #f5f3ef;
  margin-bottom: var(--space-3);
}
.cta-banner__text {
  font-size: var(--text-base);
  color: #9a968e;
  margin-bottom: var(--space-6);
  max-width: 50ch;
  margin-inline: auto;
}

/* ========================================
   INTERNAL PAGES
   ======================================== */
.page-hero {
  background: var(--color-surface);
  padding-block: var(--space-16) var(--space-12);
  border-bottom: 1px solid var(--color-divider);
}
.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--color-text);
  margin-bottom: var(--space-4);
  letter-spacing: -0.02em;
}
.page-hero__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  max-width: 60ch;
}

/* Detail blocks for internal pages */
.detail-block {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 768px) {
  .detail-block { grid-template-columns: 1fr 1fr; }
  .detail-block--reverse .detail-block__img { order: -1; }
}
.detail-block__img {
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.detail-block__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.detail-block__content {}
.detail-block__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-4);
}
.detail-block__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}
.detail-block__list {
  list-style: none;
  padding: 0;
}
.detail-block__list li {
  position: relative;
  padding-left: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.detail-block__list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 6px;
  height: 6px;
  background: var(--color-primary);
  border-radius: 1px;
  transform: rotate(45deg);
}

/* Sector pages */
.sector-section { padding-block: var(--space-12); }
.sector-section:nth-child(even) { background: var(--color-surface); }
.sector-section__header {
  margin-bottom: var(--space-8);
}
.sector-section__icon {
  width: 48px;
  height: 48px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}
@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1fr; } }

.contact-info-block {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}
.contact-info-block svg {
  width: 24px;
  height: 24px;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-block__title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-1);
}
.contact-info-block__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
.fade-in { opacity: 1; }
@supports (animation-timeline: scroll()) {
  .fade-in {
    opacity: 0;
    animation: reveal-fade linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 80%;
  }
}
@keyframes reveal-fade { to { opacity: 1; } }

/* Projects filter */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}
.filter-btn {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  background: var(--color-surface);
  border: 1px solid oklch(from var(--color-text) l c h / 0.08);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-interactive);
}
.filter-btn:hover, .filter-btn--active {
  background: var(--color-primary);
  color: #fff;
  border-color: var(--color-primary);
}

/* Values grid (empresa page) */
.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
  gap: var(--space-6);
}
.value-card {
  padding: var(--space-6);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}
.value-card__icon {
  width: 36px;
  height: 36px;
  color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.value-card__title {
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}
.value-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Map placeholder */
.map-container {
  width: 100%;
  height: 350px;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  border: 1px solid oklch(from var(--color-text) l c h / 0.06);
}

/* ========================================
   LEGAL PAGES
   ======================================== */
.legal-page {
  padding-block: var(--space-12);
}
.legal-container {
  max-width: 800px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.75;
  color: var(--color-text-secondary);
}
.legal-container h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-2);
  border-bottom: 2px solid oklch(from var(--color-primary) l c h / 0.2);
}
.legal-container h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
}
.legal-container p {
  margin-bottom: var(--space-4);
}
.legal-container ul {
  list-style: disc;
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
}
.legal-container ul li {
  margin-bottom: var(--space-2);
}
.legal-container a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-container a:hover {
  color: var(--color-text);
}
.legal-container strong {
  color: var(--color-text);
  font-weight: 600;
}
.legal-container code {
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.9em;
  font-family: monospace;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--space-4) 0 var(--space-6);
  font-size: var(--text-sm);
}
.legal-table th,
.legal-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid oklch(from var(--color-text) l c h / 0.08);
}
.legal-table th {
  background: var(--color-surface);
  font-weight: 600;
  color: var(--color-text);
}
.legal-updated {
  margin-top: var(--space-10);
  padding-top: var(--space-6);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.08);
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* ========================================
   COOKIE CONSENT BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--color-bg);
  border-top: 1px solid oklch(from var(--color-text) l c h / 0.1);
  box-shadow: 0 -4px 24px oklch(0 0 0 / 0.12);
  padding: var(--space-6) var(--space-4);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cookie-banner--visible {
  transform: translateY(0);
}
.cookie-banner__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.cookie-banner__text {
  flex: 1;
  min-width: 280px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  line-height: 1.6;
}
.cookie-banner__text a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__actions {
  display: flex;
  gap: var(--space-3);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-banner__btn {
  padding: var(--space-2) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  white-space: nowrap;
}
.cookie-banner__btn--accept {
  background: var(--color-primary);
  color: #fff;
}
.cookie-banner__btn--accept:hover {
  filter: brightness(1.1);
}
.cookie-banner__btn--reject {
  background: transparent;
  color: var(--color-text-secondary);
  border: 1px solid oklch(from var(--color-text) l c h / 0.15);
}
.cookie-banner__btn--reject:hover {
  background: var(--color-surface);
}

@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: column;
    text-align: center;
  }
  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}
