/* ==========================================================================
   Eco Energia — Design System
   ========================================================================== */

:root {
  /* Brand palette */
  --navy-950: #001233;
  --navy-900: #001845;
  --navy-800: #062159;
  --blue-600: #0156f4;
  --blue-500: #206dfe;
  --blue-400: #3f8efc;
  --blue-300: #87bfff;
  --blue-200: #add7f6;
  --blue-100: #e6f1ff;
  --green-500: #27fb6b;
  --green-600: #16c95a;
  --lime-500: #53f10e;
  --lime-600: #32cd32;

  /* Neutrals */
  --white: #ffffff;
  --gray-50: #f6f9fd;
  --gray-100: #edf2f9;
  --gray-200: #dde5f0;
  --gray-300: #c3ceda;
  --gray-400: #93a1b8;
  --gray-500: #6b7890;
  --gray-600: #4d5a72;
  --gray-700: #333f56;
  --gray-800: #1c2436;
  --gray-900: #0f1420;

  /* Semantic */
  --bg: var(--white);
  --bg-alt: var(--gray-50);
  --bg-dark: var(--navy-950);
  --bg-dark-alt: var(--navy-900);
  --text: var(--gray-800);
  --text-muted: var(--gray-500);
  --text-inverse: var(--white);
  --text-inverse-muted: var(--blue-200);
  --brand: var(--blue-600);
  --brand-dark: var(--navy-950);
  --accent: var(--green-500);
  --border: var(--gray-200);
  --border-dark: rgba(255, 255, 255, 0.12);

  /* Type */
  --font-head: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Layout */
  --container: 1220px;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --shadow-sm: 0 2px 10px rgba(0, 18, 51, 0.06);
  --shadow: 0 12px 32px rgba(0, 18, 51, 0.10);
  --shadow-lg: 0 24px 60px rgba(0, 18, 51, 0.16);
  --ease: cubic-bezier(.25, .8, .25, 1);
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, picture, svg { display: block; max-width: 100%; }
input, button, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 600;
  line-height: 1.15;
  color: var(--gray-900);
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 4.4vw, 4rem); }
h2 { font-size: clamp(1.9rem, 3.2vw, 2.75rem); }
h3 { font-size: clamp(1.3rem, 1.8vw, 1.6rem); }
h4 { font-size: 1.1rem; }

p { color: var(--text-muted); }

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

section { position: relative; }

.section-pad { padding: 96px 0; }
@media (max-width: 768px) { .section-pad { padding: 64px 0; } }

.bg-alt { background: var(--bg-alt); }
.bg-dark {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: var(--text-inverse);
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: var(--text-inverse-muted); }

.pattern-dots { overflow: hidden; }
.pattern-dots::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 0%, #000 0%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.pattern-dots > .container { position: relative; z-index: 1; }

/* ==========================================================================
   Eyebrow / kicker
   ========================================================================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.bg-dark .eyebrow { color: var(--blue-300); }

.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 16px; font-size: 1.05rem; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 100px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: var(--white); box-shadow: 0 10px 24px rgba(1, 86, 244, 0.28); }
.btn-primary:hover { background: var(--blue-500); transform: translateY(-2px); box-shadow: 0 14px 30px rgba(1, 86, 244, 0.34); }

.btn-accent { background: var(--accent); color: var(--navy-950); box-shadow: 0 10px 24px rgba(39, 251, 107, 0.28); }
.btn-accent:hover { background: var(--lime-500); transform: translateY(-2px); }

.btn-outline { background: transparent; color: var(--gray-900); border-color: var(--border); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); transform: translateY(-2px); }

.bg-dark .btn-outline { color: var(--white); border-color: var(--border-dark); }
.bg-dark .btn-outline:hover { border-color: var(--blue-300); color: var(--blue-300); }

.btn-ghost-light { background: rgba(255,255,255,0.08); color: var(--white); border-color: var(--border-dark); backdrop-filter: blur(6px); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

.btn-sm { padding: 11px 22px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), box-shadow .35s var(--ease);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.site-header.is-scrolled,
.site-header.is-solid {
  padding: 14px 0;
  background: rgba(0, 18, 51, 0.92);
  box-shadow: 0 8px 30px rgba(0,18,51,0.18);
}
/* No backdrop-filter here: on WebKit/Safari it makes this fixed-position header
   a new containing block for the fixed-position mobile nav nested inside it,
   confining the "full-screen" menu overlay to the header's own small box
   instead of the viewport once the page has scrolled. */

.brand { display: flex; align-items: center; z-index: 20; }
.brand-logo { height: 48px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a,
.main-nav > ul > li > button.nav-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 100px;
  font-size: 0.92rem;
  font-weight: 500;
  color: rgba(255,255,255,0.86);
  background: transparent;
  border: none;
  transition: background .2s, color .2s;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > button.nav-toggle:hover,
.main-nav > ul > li.is-active > a,
.main-nav > ul > li.is-active > button.nav-toggle { background: rgba(255,255,255,0.1); color: var(--white); }
.main-nav .chev { width: 11px; height: 11px; transition: transform .25s var(--ease); }
.main-nav li.has-dropdown:hover .chev,
.main-nav li.has-dropdown.open .chev { transform: rotate(180deg); }

.dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 300px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
.main-nav li.has-dropdown:hover .dropdown,
.main-nav li.has-dropdown.open .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: background .2s, color .2s;
}
.dropdown a:hover { background: var(--blue-100); color: var(--brand); }
.dropdown a .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue-300); flex-shrink: 0; }
.dropdown a:hover .dot { background: var(--brand); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: flex; align-items: center; gap: 8px; color: var(--white); font-size: 0.88rem; font-weight: 500; }
.nav-phone svg { width: 16px; height: 16px; color: var(--accent); }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
  content: '';
  display: block;
  width: 18px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  position: relative;
  transition: transform .25s var(--ease), opacity .25s var(--ease), background .25s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-open .menu-toggle span { background: transparent; }
.menu-open .menu-toggle span::before { transform: translateY(6px) rotate(45deg); background: var(--white); }
.menu-open .menu-toggle span::after { transform: translateY(-6px) rotate(-45deg); background: var(--white); }

@media (max-width: 980px) {
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--navy-950);
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 100px 32px 40px;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .menu-open .main-nav { transform: translateX(0); }
  .main-nav > ul { flex-direction: column; align-items: stretch; gap: 4px; width: 100%; }
  .main-nav > ul > li > a, .main-nav > ul > li > button.nav-toggle { width: 100%; justify-content: space-between; padding: 16px 6px; font-size: 1.1rem; border-radius: 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .dropdown {
    position: static; left: auto; transform: none; opacity: 1; visibility: visible;
    min-width: 0; width: 100%; max-height: 0; overflow: hidden; box-shadow: none; background: rgba(255,255,255,0.04);
    border-radius: 10px; padding: 0; margin: 0; transition: max-height .3s var(--ease), padding .3s var(--ease);
  }
  .main-nav li.has-dropdown:hover .dropdown,
  .main-nav li.has-dropdown.open .dropdown {
    transform: none; opacity: 1; visibility: visible;
  }
  .main-nav li.open .dropdown { max-height: 600px; padding: 8px; margin-bottom: 6px; }
  .dropdown a { color: rgba(255,255,255,0.78); }
  .dropdown a:hover { background: rgba(255,255,255,0.08); color: var(--white); }
  .nav-cta { flex-direction: column; align-items: stretch; margin-top: 28px; }
  .nav-phone { color: rgba(255,255,255,0.7); margin-bottom: 16px; justify-content: center; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 180px 0 100px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.hero .hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero .hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,18,51,.86) 0%, rgba(0,18,51,.78) 45%, rgba(0,18,51,.94) 100%);
}
.hero h1, .hero h2, .hero h3, .hero h4 { color: var(--white); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center; }
.hero-copy p.lead { font-size: 1.15rem; max-width: 540px; margin-top: 22px; color: var(--blue-100); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 140px 0 70px; min-height: 0; }
}
.hero-actions { display: flex; gap: 16px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; margin-top: 56px; max-width: 520px; }
.hero-stats div strong { display: block; font-family: var(--font-head); font-size: 1.9rem; color: var(--accent); }
.hero-stats div span { font-size: 0.82rem; color: var(--blue-200); }

.hero-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  backdrop-filter: blur(16px);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.hero-card .row { display: flex; align-items: flex-start; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--border-dark); }
.hero-card .row:last-child { border-bottom: none; }
.hero-card .icon { width: 44px; height: 44px; border-radius: 12px; background: rgba(39,251,107,0.14); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hero-card .icon svg { width: 22px; height: 22px; color: var(--accent); }
.hero-card h4 { color: var(--white); font-size: 1rem; margin-bottom: 4px; }
.hero-card p { font-size: 0.88rem; margin: 0; }

.scroll-cue { position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-200); }
.scroll-cue .line { width: 1px; height: 34px; background: linear-gradient(var(--accent), transparent); animation: scrollcue 1.8s infinite; }
@keyframes scrollcue { 0% { opacity: 0; transform: scaleY(0); transform-origin: top;} 40% {opacity:1; transform: scaleY(1); transform-origin: top;} 100% {opacity:0; transform: scaleY(1); transform-origin: bottom;} }

/* Page header (inner pages) */
.page-header {
  position: relative;
  padding: 180px 0 90px;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}
.page-header .hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-header .hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-header .hero-bg::after { content:''; position:absolute; inset:0; background: linear-gradient(140deg, rgba(0,18,51,.92), rgba(1,86,244,.55)); }
.breadcrumbs { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--blue-200); margin-bottom: 20px; }
.breadcrumbs a:hover { color: var(--white); }
.page-header h1, .page-header h2, .page-header h3, .page-header h4 { color: var(--white); }
.page-header h1 { max-width: 760px; }
.page-header p.lead { max-width: 620px; margin-top: 18px; font-size: 1.08rem; color: var(--blue-100); }

/* ==========================================================================
   Cards / Grids
   ========================================================================== */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.icon-tile { width: 54px; height: 54px; border-radius: 14px; background: var(--blue-100); display: flex; align-items: center; justify-content: center; margin-bottom: 22px; flex-shrink: 0; }
.icon-tile svg { width: 26px; height: 26px; color: var(--brand); }
.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { font-size: 0.94rem; margin: 0; }
.card .num { font-family: var(--font-head); font-size: 0.85rem; color: var(--blue-300); font-weight: 700; margin-bottom: 14px; display: block; }

/* Service / sector link cards with image */
.tile-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/5;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 30px;
  isolation: isolate;
}
.tile-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.tile-card::after { content:''; position:absolute; inset:0; z-index:-1; background: linear-gradient(180deg, rgba(0,18,51,0.05) 20%, rgba(0,18,51,0.92) 100%); }
.tile-card:hover img { transform: scale(1.08); }
.tile-card .tag { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin-bottom: 10px; }
.tile-card h3 { color: var(--white); margin-bottom: 8px; }
.tile-card p { color: var(--blue-100); font-size: 0.88rem; margin-bottom: 14px; }
.tile-card .go { display: inline-flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--white); }
.tile-card .go svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.tile-card:hover .go svg { transform: translateX(4px); }

.tile-card.compact { aspect-ratio: 5/4; padding: 24px; }

/* Process steps */
.process-list { display: flex; flex-direction: column; }
.process-item { display: grid; grid-template-columns: 90px 1fr; gap: 24px; padding: 32px 0; border-top: 1px solid var(--border); }
.process-item:last-child { border-bottom: 1px solid var(--border); }
.process-item .step-num { font-family: var(--font-head); font-size: 2.2rem; font-weight: 700; color: var(--blue-200); }
.process-item h3 { margin-bottom: 8px; }
.bg-dark .process-item { border-color: var(--border-dark); }
.bg-dark .process-item .step-num { color: var(--navy-800); -webkit-text-stroke: 1px var(--blue-400); color: transparent; }

/* Timeline (Our Journey) */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content:''; position:absolute; left: 9px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--blue-300), var(--accent)); }
.timeline-item { position: relative; padding-bottom: 44px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before { content:''; position:absolute; left: -40px; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 3px solid var(--brand); }
.timeline-item h4 { color: var(--brand); font-family: var(--font-head); font-size: 0.95rem; letter-spacing: 0.04em; margin-bottom: 6px; }
.timeline-item h3 { margin-bottom: 10px; }

/* Stats strip */
.stats-strip { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stats-strip .stat { text-align: center; }
.stats-strip strong { display: block; font-family: var(--font-head); font-size: clamp(2rem, 3vw, 2.7rem); color: var(--accent); }
.stats-strip span { font-size: 0.85rem; color: var(--blue-200); }
@media (max-width: 768px) { .stats-strip { grid-template-columns: repeat(2,1fr); row-gap: 36px; } }

/* Logos strip */
.logo-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 28px; opacity: 0.75; }
.logo-strip span { font-family: var(--font-head); font-weight: 700; color: var(--gray-400); font-size: 1rem; letter-spacing: 0.02em; }

/* Testimonial */
.quote-block { border-left: 3px solid var(--accent); padding-left: 28px; }
.quote-block p { font-family: var(--font-head); font-size: 1.3rem; color: var(--gray-900); font-weight: 500; line-height: 1.5; }
.bg-dark .quote-block p { color: var(--white); }
.quote-block cite { display: block; margin-top: 18px; font-style: normal; font-size: 0.88rem; color: var(--text-muted); }

/* Values / differentiators */
.value-row { display: flex; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.value-row:last-child { border-bottom: 1px solid var(--border); }
.value-row .icon-tile { flex-shrink: 0; margin-bottom: 0; }

/* Accordion (FAQ style, used in service pages "scope") */
.accordion-item { border-bottom: 1px solid var(--border); }
.accordion-item button {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: none; text-align: left;
  font-family: var(--font-head); font-size: 1.02rem; font-weight: 600; color: var(--gray-900);
}
.accordion-item .plus { width: 22px; height: 22px; flex-shrink: 0; position: relative; }
.accordion-item .plus::before, .accordion-item .plus::after { content:''; position:absolute; background: var(--brand); border-radius: 2px; transition: transform .3s var(--ease); }
.accordion-item .plus::before { width: 100%; height: 2px; top: 50%; left: 0; transform: translateY(-50%); }
.accordion-item .plus::after { width: 2px; height: 100%; left: 50%; top: 0; transform: translateX(-50%); }
.accordion-item.open .plus::after { transform: translateX(-50%) rotate(90deg); opacity: 0; }
.accordion-item .panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.accordion-item .panel-inner { padding: 0 4px 24px; }
.accordion-item .panel-inner p, .accordion-item .panel-inner li { color: var(--text-muted); }
.accordion-item .panel-inner ul { margin-top: 10px; }
.accordion-item .panel-inner li { position: relative; padding-left: 22px; margin-bottom: 8px; font-size: 0.94rem; }
.accordion-item .panel-inner li::before { content:''; position:absolute; left:0; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); }

/* CTA band */
.cta-band { border-radius: var(--radius-lg); padding: 64px; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content:''; position:absolute; inset:0; z-index:-1; background: linear-gradient(120deg, var(--navy-950), var(--navy-900)); }
.cta-band::after { content:''; position:absolute; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(39,251,107,0.22), transparent 70%); top: -180px; right: -120px; z-index: -1; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-inner h2 { color: var(--white); max-width: 520px; }
.cta-inner p { color: var(--blue-100); margin-top: 12px; max-width: 480px; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ==========================================================================
   Forms
   ========================================================================== */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--gray-700); }
.field input, .field select, .field textarea {
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--white);
  font-size: 0.95rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(1,86,244,0.12);
}
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 0.82rem; color: var(--text-muted); margin-top: 14px; }
.hp-field { position: absolute; left: -9999px; top: -9999px; }
.form-status { display: none; margin-top: 16px; padding: 14px 16px; border-radius: var(--radius-sm); font-size: 0.9rem; }
.form-status.success { display: block; background: rgba(39,251,107,0.12); color: #0d7a3a; border: 1px solid rgba(39,251,107,0.35); }
.form-status.error { display: block; background: rgba(244,67,54,0.08); color: #b3261e; border: 1px solid rgba(244,67,54,0.3); }

.upload-field {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 24px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-muted);
  position: relative;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-field:hover { border-color: var(--brand); background: var(--blue-100); }
.upload-field input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Info cards on contact page */
.contact-info-card { display: flex; gap: 18px; padding: 26px 0; border-top: 1px solid var(--border-dark); }
.contact-info-card:first-child { border-top: none; }
.contact-info-card .icon-tile { background: rgba(255,255,255,0.08); flex-shrink: 0; }
.contact-info-card .icon-tile svg { color: var(--accent); }
.contact-info-card h4 { color: var(--white); margin-bottom: 6px; }
.contact-info-card p, .contact-info-card a { color: var(--blue-100); font-size: 0.92rem; }
.contact-info-card a:hover { color: var(--white); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow); }
.map-frame iframe { display: block; width: 100%; height: 420px; border: 0; }

/* ==========================================================================
   Sidebar (service / sector detail pages)
   ========================================================================== */
.detail-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 60px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } }
.detail-body h2 { margin-top: 48px; margin-bottom: 18px; }
.detail-body h2:first-child { margin-top: 0; }
.detail-body p { margin-bottom: 16px; font-size: 1rem; }
.detail-body ul { margin: 20px 0; display: flex; flex-direction: column; gap: 12px; }
.detail-body ul li { position: relative; padding-left: 30px; color: var(--gray-700); }
.detail-body ul li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 6px;
  background: var(--blue-100);
}
.detail-body ul li::after {
  content: ''; position: absolute; left: 5px; top: 8px; width: 8px; height: 5px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg);
}
.detail-body figure { margin: 36px 0; border-radius: var(--radius); overflow: hidden; }
.detail-body figure img { width: 100%; }
.detail-body figure figcaption { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }

.sidebar-box {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: sticky;
  top: 110px;
}
.sidebar-box h4 { margin-bottom: 18px; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
.sidebar-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 4px; border-bottom: 1px solid var(--border); font-size: 0.92rem; font-weight: 500; color: var(--gray-700);
  transition: color .2s, padding-left .2s;
}
.sidebar-list a:last-child { border-bottom: none; }
.sidebar-list a:hover { color: var(--brand); padding-left: 8px; }
.sidebar-list a.is-current { color: var(--brand); font-weight: 700; }
.sidebar-cta { margin-top: 26px; padding-top: 26px; border-top: 1px solid var(--border); }
.sidebar-cta p { font-size: 0.9rem; margin-bottom: 16px; }

/* ==========================================================================
   Careers — job listing
   ========================================================================== */
.job-item {
  display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 18px;
  padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.job-item:hover { border-color: transparent; box-shadow: var(--shadow-sm); }
.job-item h4 { margin-bottom: 6px; }
.job-item .meta { font-size: 0.84rem; color: var(--text-muted); }
.job-item .badge { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand); background: var(--blue-100); padding: 6px 12px; border-radius: 100px; white-space: nowrap; }
@media (max-width: 768px) { .job-item { grid-template-columns: 1fr; text-align: left; } }

.perk-card { text-align: center; padding: 36px 24px; }
.perk-card .icon-tile { margin: 0 auto 20px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--bg-dark); color: var(--text-inverse); padding-top: 90px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 64px; border-bottom: 1px solid var(--border-dark); }
@media (max-width: 980px) { .footer-top { grid-template-columns: 1fr 1fr; row-gap: 44px; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { max-width: 320px; margin-bottom: 22px; font-size: 0.92rem; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.08); display: flex; align-items: center; justify-content: center; transition: background .2s; }
.footer-social a:hover { background: var(--accent); }
.footer-social a svg { width: 16px; height: 16px; color: var(--white); }
.footer-social a:hover svg { color: var(--navy-950); }
.footer-col h4 { color: var(--white); font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 22px; }
.footer-col ul { display: flex; flex-direction: column; gap: 13px; }
.footer-col a { font-size: 0.92rem; color: var(--blue-100); transition: color .2s, padding-left .2s; }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--blue-100); margin-bottom: 16px; }
.footer-contact svg { width: 17px; height: 17px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; font-size: 0.82rem; color: var(--blue-200); flex-wrap: wrap; gap: 12px; }
.footer-bottom a:hover { color: var(--white); }
.footer-legal { display: flex; gap: 22px; }

.back-to-top {
  position: fixed; right: 26px; bottom: 26px; width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: var(--white); display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 26px rgba(1,86,244,0.35); opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .3s, transform .3s, visibility .3s; z-index: 500; border: none;
}
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top svg { width: 18px; height: 18px; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].in-view { opacity: 1; transform: translateY(0); }
[data-reveal-delay="1"] { transition-delay: .1s; }
[data-reveal-delay="2"] { transition-delay: .2s; }
[data-reveal-delay="3"] { transition-delay: .3s; }
[data-reveal-delay="4"] { transition-delay: .4s; }

/* ==========================================================================
   Misc utilities
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 36px; } }
.img-frame { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }
.tag-pill { display: inline-flex; align-items: center; gap: 8px; background: var(--blue-100); color: var(--brand); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 7px 14px; border-radius: 100px; margin-bottom: 18px; }

::selection { background: var(--accent); color: var(--navy-950); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--brand); color: #fff; padding: 12px 20px; z-index: 2000; border-radius: 0 0 8px 0; }
.skip-link:focus { left: 0; }
