/* ============================================================
   EPALFER — Main Stylesheet
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,100;0,300;0,400;0,700;0,900;1,300;1,400&display=swap');

/* === VARIABLES === */
:root {
  --blue:        #596AAA;   /* blue-purple — headings / primary */
  --blue-mid:    #6B7BBB;   /* blue-purple mid — icons, active */
  --blue-light:  #7D8EC8;   /* blue-purple light — hover */
  --yellow:      #596AAA;   /* blue-purple — CTA / highlight */
  --yellow-dark: #4558A0;   /* blue-purple deep — hover states */
  --dark:        #1C1C1E;   /* dark charcoal — hero / footer / dark blocks */
  --dark2:       #2A2A2E;   /* charcoal mid — footer, page heroes */
  --light:       #EEF4FB;   /* cool off-white — alternate section bg */
  --white:       #FFFFFF;
  --text:        #3A4470;   /* blue-purple dark — body text */
  --text-muted:  #7A86B0;   /* blue-purple muted */
  --border:      #C8CDE8;   /* soft blue-purple border */

  --font-head:  'Lato', sans-serif;
  --font-body:  'Lato', sans-serif;
  --font-mono:  'Lato', sans-serif;

  --max:    1200px;
  --radius: 2px;
  --shadow: 0 8px 40px rgba(89,106,170,0.14);
  --trans:  0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; }
body  {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img  { max-width: 100%; height: auto; display: block; }
a    { text-decoration: none; color: inherit; }
ul   { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5 {
  font-family: var(--font-head);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--blue);
}
h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; }
h2 { font-size: clamp(2rem,  4vw, 3rem);  font-weight: 700; }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.8rem); font-weight: 600; }
h4 { font-size: 1.2rem; font-weight: 600; }
p  { line-height: 1.75; color: var(--text-muted); }

/* === LAYOUT === */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
.section { padding: 100px 0; }

.section--dark         { background: var(--dark);  color: var(--white); }
.section--dark  h2,
.section--dark  h3     { color: var(--white); }
.section--dark  p      { color: rgba(255,255,255,0.65); }

.section--blue         { background: var(--dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--white); }
.section--blue  h2,
.section--blue  h3     { color: var(--white); }
.section--blue  p      { color: rgba(255,255,255,0.62); }

.section--light        { background: var(--light); }

.section__header       { margin-bottom: 60px; }

.section__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 12px;
}
.section__tag--dark { color: var(--blue-mid); }

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: var(--trans);
  white-space: nowrap;
}
.btn--primary { background: transparent; color: var(--yellow); border: 1px solid var(--yellow); }
.btn--primary:hover {
  background: var(--yellow);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(89,106,170,0.28);
}
.btn--outline { border: 1px solid rgba(255,255,255,0.35); color: var(--white); }
.btn--outline:hover { background: rgba(255,255,255,0.10); color: var(--yellow); border-color: var(--yellow); transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: var(--white); border: 1px solid var(--blue); }
.btn--blue:hover { background: var(--blue-mid); border-color: var(--blue-mid); color: var(--white); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(12,31,63,0.25); }
.btn svg { width: 18px; height: 18px; }

/* === HEADER / NAV === */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--dark);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 2px 24px rgba(0,0,0,0.30);
  transition: var(--trans);
}
.header.scrolled,
.header.page-header {
  background: var(--dark);
  box-shadow: 0 2px 24px rgba(0,0,0,0.35);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  padding: 0 2rem;
  max-width: 1400px;
  margin: 0 auto;
}
.nav__logo { display: flex; align-items: center; gap: 12px; }
.nav__logo-mark {
  width: 42px; height: 42px;
  background: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  clip-path: polygon(10% 0%, 90% 0%, 100% 50%, 90% 100%, 10% 100%, 0% 50%);
}
.nav__logo-mark span { font-family: var(--font-head); font-size: 1.1rem; font-weight: 800; color: var(--blue); }
.nav__logo-text { font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--white); letter-spacing: 0.1em; }
.nav__logo-img { height: 60px; width: auto; display: block; object-fit: contain; filter: invert(1); }
.nav__logo { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; }
.nav__slogan {
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}

/* footer slogan */
.footer__slogan {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: 10px;
  display: block;
}

.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__link {
  font-family: var(--font-head);
  font-size: 0.95rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.70);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--trans);
  position: relative;
}
.nav__link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: var(--trans);
}
.nav__link:hover,
.nav__link.active { color: var(--white); }
.nav__link:hover::after,
.nav__link.active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 16px; }

.lang-switcher { display: flex; background: rgba(255,255,255,0.10); border-radius: 20px; padding: 3px; border: 1px solid rgba(255,255,255,0.15); }
/* now anchors (each language is its own page), sized as a comfortable tap target */
.lang-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 46px; min-height: 34px;
  font-family: var(--font-head); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.08em; color: rgba(255,255,255,0.55);
  padding: 5px 12px; border-radius: 16px; transition: var(--trans);
  text-decoration: none; cursor: pointer;
}
.lang-btn.active { background: var(--yellow); color: var(--white); }
.lang-btn:hover:not(.active) { color: var(--white); }

.nav__hamburger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav__hamburger span { display: block; width: 24px; height: 2px; background: var(--white); transition: var(--trans); }

/* === MOBILE NAV === */
.nav__mobile {
  display: none;
  position: fixed;
  top: 88px; left: 0; right: 0;
  background: rgba(28,28,30,0.98);
  backdrop-filter: blur(20px);
  padding: 20px 2rem 28px;
  z-index: 999;
  border-top: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
}
.nav__mobile.open { display: block; }
.nav__mobile .nav__link { display: block; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.08); font-size: 1.1rem; color: rgba(255,255,255,0.75); }
.nav__mobile .nav__link::after { display: none; }
.nav__mobile .lang-switcher { margin-top: 20px; display: inline-flex; }

/* === HERO (HOME) === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark);
}
.hero__bg {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(28,28,30,0.98) 0%, rgba(42,42,46,0.90) 60%, rgba(28,28,30,0.95) 100%);
  z-index: 1;
}
.hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  opacity: 0.35;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(89,106,170,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89,106,170,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  z-index: 2;
}
.hero__accent {
  position: absolute;
  top: 0; right: 22%; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, var(--yellow), transparent);
  opacity: 0.7; z-index: 2;
}
.hero__accent::after {
  content: '';
  position: absolute;
  top: 0; left: 20px; width: 1px; height: 100%;
  background: linear-gradient(to bottom, transparent, rgba(0,200,232,0.25), transparent);
}
.hero__content {
  position: relative; z-index: 3;
  padding-top: 80px;
}
.hero__tag {
  display: inline-flex; align-items: center;
  gap: 12px; margin-bottom: 20px;
}
.hero__tag span {
  font-family: var(--font-head); font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--yellow);
}
.hero__tag::before { content: ''; width: 40px; height: 2px; background: var(--yellow); }
.hero__title { color: var(--white); max-width: 740px; margin-bottom: 20px; }
.hero__title em { color: var(--yellow); font-style: normal; }
.hero__subtitle {
  font-size: 1.15rem; color: rgba(255,255,255,0.65);
  max-width: 520px; margin-bottom: 44px; line-height: 1.7;
}
.hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.hero__scroll {
  position: absolute; bottom: 40px; left: 50%;
  transform: translateX(-50%); z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.35);
  font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase;
  animation: scrollBounce 2s infinite;
}
.hero__scroll::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.35), transparent);
}
@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* === STATS BAR === */
.stats-bar { background: var(--dark); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-bar__inner {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: var(--max); margin: 0 auto;
}
.stats-bar__item {
  padding: 40px 28px;
  border-right: 1px solid rgba(255,255,255,0.15);
  text-align: center;
}
.stats-bar__item:last-child { border-right: none; }
.stats-bar__num {
  font-family: var(--font-mono); font-size: 2.8rem; font-weight: 700;
  color: var(--yellow); line-height: 1; display: block;
  text-shadow: 0 0 20px rgba(0,200,232,0.5);
}
.stats-bar__label {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-top: 8px; display: block;
}

/* === ABOUT TEASER === */
.about-teaser {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.about-teaser__content h2 { margin-bottom: 20px; }
.about-teaser__content p  { margin-bottom: 14px; }
.about-teaser__image {
  position: relative;
  aspect-ratio: 4/3; overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
  border: 1px solid var(--border);
}
.about-teaser__image img { width: 100%; height: 100%; object-fit: cover; }
.about-teaser__image::after {
  content: '';
  position: absolute;
  bottom: -20px; left: -20px;
  width: 100px; height: 100px;
  border: 4px solid var(--yellow);
  z-index: -1;
}
.about-teaser__image-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

/* === SERVICE CARDS (HOME) === */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: var(--trans);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(to right, var(--yellow), var(--blue-light));
  transform: scaleX(0); transition: var(--trans); transform-origin: left;
}
.service-card::after {
  content: '';
  position: absolute; bottom: 0; right: 0;
  width: 12px; height: 12px;
  border-bottom: 1px solid var(--yellow); border-right: 1px solid var(--yellow);
  opacity: 0; transition: var(--trans);
}
.service-card:hover { box-shadow: 0 0 0 1px var(--yellow), var(--shadow); transform: translateY(-4px); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-card:hover::after { opacity: 1; }
.service-card__icon {
  width: 56px; height: 56px;
  background: rgba(89,106,170,0.08);
  border: 1px solid rgba(89,106,170,0.18);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 24px;
}
.service-card__icon svg { width: 28px; height: 28px; color: var(--blue); }
.service-card h3 { margin-bottom: 12px; color: var(--blue); }
.service-card p  { font-size: 0.95rem; margin-bottom: 24px; }
.service-card__link {
  font-family: var(--font-head); font-size: 0.9rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--yellow);
  display: inline-flex; align-items: center; gap: 8px;
  transition: var(--trans);
}
.service-card__link:hover { color: var(--yellow-dark); gap: 14px; }
.service-card__link svg { width: 16px; height: 16px; }

/* === SERVICE ROWS (SERVICES PAGE) === */
.service-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}
.service-row:last-of-type { border-bottom: none; }
.service-row--rev { direction: rtl; }
.service-row--rev > * { direction: ltr; }
.service-row__visual {
  aspect-ratio: 16/10; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
  border: 1px solid var(--border);
  position: relative;
}
.service-row__visual img { width: 100%; height: 100%; object-fit: cover; }
.service-row__visual-icon {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.service-row__num {
  font-family: var(--font-head); font-size: 5rem; font-weight: 800;
  color: var(--border); line-height: 1; margin-bottom: -8px;
}
.service-row h2    { margin-bottom: 16px; }
.service-row p     { margin-bottom: 20px; }
.service-features  { margin: 20px 0; }
.service-features li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; font-size: 0.95rem; color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}
.service-features li:last-child { border-bottom: none; }
.service-features li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); margin-top: 8px; flex-shrink: 0;
}

/* === PROCESS === */
.process { background: var(--dark); padding: 100px 0; }
.process__steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: 8px; margin-top: 60px; position: relative;
}
.process__steps::before {
  content: '';
  position: absolute; top: 31px; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--yellow), var(--blue-light), var(--yellow), transparent);
  z-index: 0;
}
.process__step { text-align: center; position: relative; z-index: 1; padding: 0 12px; }
.process__step-num {
  width: 64px; height: 64px;
  background: var(--white); border: 2px solid var(--yellow); border-radius: 50%;
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 700; color: var(--yellow);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; transition: var(--trans);
}
.process__step:hover .process__step-num { background: var(--yellow); color: var(--white); box-shadow: 0 4px 16px rgba(89,106,170,0.30); }
.process__step h4 { color: var(--white); font-size: 1rem; margin-bottom: 8px; }
.process__step p  { font-size: 0.85rem; color: rgba(255,255,255,0.55); }

/* === WHY US === */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.why-item { text-align: center; padding: 40px 24px; }
.why-item__icon {
  width: 72px; height: 72px; margin: 0 auto 24px;
  background: rgba(89,106,170,0.08);
  border: 1px solid rgba(89,106,170,0.20);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: none;
}
.why-item__icon svg { width: 32px; height: 32px; color: var(--yellow); }
.why-item h3 { color: var(--blue); margin-bottom: 12px; }

/* === PROJECTS GRID === */
.projects-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project-card {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden; border-radius: var(--radius); cursor: pointer;
  background: linear-gradient(135deg, var(--dark) 0%, var(--light) 100%);
  border: 1px solid var(--border);
}
.project-card__img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.project-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,30,0.97) 0%, transparent 60%);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 28px;
  transform: translateY(40px); opacity: 0; transition: var(--trans);
}
.project-card:hover .project-card__overlay { transform: translateY(0); opacity: 1; }
.project-card:hover .project-card__img { transform: scale(1.06); }
.project-card__label {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 6px;
}
.project-card h4 { color: var(--white); font-size: 1.1rem; }

/* === CTA BANNER === */
.cta-banner {
  background: var(--dark); padding: 80px 0; text-align: center;
  position: relative; overflow: hidden;
  border-top: 1px solid rgba(0,200,232,0.20);
  border-bottom: 1px solid rgba(0,200,232,0.20);
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background:
    linear-gradient(rgba(0,200,232,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,232,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.cta-banner .container { position: relative; z-index: 1; }
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p  { color: rgba(255,255,255,0.7); margin-bottom: 36px; font-size: 1.1rem; }
/* label for the cross-area banner (Area 01 pages point to Area 02 and vice versa) */
.cta-banner__tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--blue-mid);
  margin-bottom: 14px;
}

/* === CONTACT === */
.contact-grid {
  display: grid; grid-template-columns: 1fr 1.6fr;
  gap: 80px; align-items: start;
}
.contact-info h3 { margin-bottom: 32px; }
.contact-item { display: flex; gap: 16px; margin-bottom: 28px; align-items: flex-start; }
.contact-item__icon {
  width: 44px; height: 44px;
  background: rgba(89,106,170,0.08); border: 1px solid rgba(89,106,170,0.18); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-item__icon svg { width: 20px; height: 20px; color: var(--blue); }
.contact-item__label {
  font-family: var(--font-head); font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 4px;
}
.contact-item__value { font-weight: 500; color: var(--text); }

.contact-form { background: var(--light); padding: 48px; border-radius: var(--radius); }
.contact-form h3 { margin-bottom: 32px; }
.form-group { margin-bottom: 22px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label {
  display: block;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 7px;
}
input, textarea, select {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--text);
  background: var(--white); transition: var(--trans); outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(89,106,170,0.12);
}
textarea { resize: vertical; min-height: 120px; }

/* === PAGE HERO (inner pages) === */
.page-hero {
  background: var(--dark);
  padding: 160px 0 80px;
  position: relative; overflow: hidden;
}
.page-hero__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.40;
  z-index: 0;
}
/* blue-wash variant — used on company, quality and services only; the photo
   runs at full strength and a blue gradient replaces the neutral dark one,
   instead of the grey 40%-opacity treatment every other inner page keeps */
.page-hero--blue .page-hero__bg { opacity: 1; }
.page-hero--blue::before {
  background:
    linear-gradient(135deg, rgba(8,14,38,0.80) 0%, rgba(20,32,74,0.58) 45%,
      rgba(14,24,60,0.64) 70%, rgba(6,12,34,0.82) 100%) !important;
  opacity: 1 !important;
}
/* the shared tag/paragraph colours were tuned for the grey wash; against the
   lightest point of the blue one they fall below a readable contrast ratio */
.page-hero--blue .page-hero__tag { color: rgb(240,244,252); text-shadow: 0 1px 10px rgba(0,0,0,0.4); }
/* .page-hero.page-hero--blue (two classes) outranks the plain .page-hero p
   rule defined further down, which would otherwise win on source order */
.page-hero.page-hero--blue p { color: rgba(255,255,255,0.90); }
.page-hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--dark2) 0%, var(--dark) 100%);
  opacity: 0.72;
  z-index: 1;
}
.page-hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(89,106,170,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(89,106,170,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: 2;
}
.page-hero .container { position: relative; z-index: 3; }
.page-hero__tag {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 400;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 12px; display: block;
  text-shadow: 0 0 12px rgba(0,200,232,0.4);
}
.page-hero h1 { color: var(--white); margin-bottom: 16px; }
.page-hero p  { color: rgba(255,255,255,0.65); max-width: 600px; font-size: 1.1rem; }
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; font-size: 0.85rem;
}
.breadcrumb a      { color: rgba(255,255,255,0.45); transition: var(--trans); }
.breadcrumb a:hover { color: var(--yellow); }
.breadcrumb span   { color: rgba(255,255,255,0.25); }
.breadcrumb strong { color: var(--white); font-weight: 500; }

/* === MISSION / VISION / VALUES === */
.mvv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mvv-card {
  border-radius: var(--radius);
  padding: 48px 36px;
  background: var(--white);
  border: 1px solid var(--border);
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
/* hover highlight */
.mvv-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: var(--shadow);
}
.mvv-card__label {
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 16px; display: block;
  color: var(--yellow);
}
.mvv-card h3 { font-size: 1.6rem; margin-bottom: 16px; color: var(--blue); }
.mvv-card p { font-size: 0.95rem; color: var(--text-muted); }
.mvv-card__list {
  list-style: none; margin: 0 0 20px; padding: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.mvv-card__list li {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.95rem; font-weight: 500;
  color: var(--text);
}
.mvv-card__list li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow); flex-shrink: 0;
}

/* === STORY / TIMELINE === */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.story__image {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--light) 0%, var(--dark) 100%);
  border: 1px solid var(--border);
  position: sticky; top: 100px;
}
.story__image img,
.story__image video { width: 100%; height: 100%; object-fit: cover; display: block; }
/* wide variant — for 16:9 footage, which the 3/4 portrait slot would crop badly */
.story__image--wide { aspect-ratio: 16/9; position: static; }

/* two-column block (certifications / inspection) */
.qual-two { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; }
.qual-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.qual-list li { border-left: 2px solid var(--border); padding-left: 18px; }
.qual-list strong {
  display: block; margin-bottom: 6px;
  font-family: var(--font-head); font-size: 0.95rem; color: var(--blue);
}
.qual-list span { font-size: 0.93rem; color: var(--text-muted); line-height: 1.6; }
@media (max-width: 900px) {
  .qual-two { grid-template-columns: 1fr; gap: 48px; }
}
.timeline-item {
  display: flex; gap: 24px;
  padding-bottom: 40px; position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute; left: 19px; top: 42px; bottom: 0;
  width: 2px; background: var(--border);
}
.timeline-item:last-child::before { display: none; }
.timeline-dot {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 2px solid var(--yellow);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  box-shadow: none;
}
.timeline-year { font-family: var(--font-head); font-size: 0.7rem; font-weight: 700; color: var(--blue-mid); }
.timeline-content h4 { color: var(--blue); margin-bottom: 6px; }
.timeline-content p  { font-size: 0.9rem; }

/* === FILTER TABS === */
.filter-tabs { display: flex; gap: 8px; margin-bottom: 48px; flex-wrap: wrap; }
.filter-tab {
  padding: 10px 24px;
  font-family: var(--font-head); font-size: 0.88rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 2px solid var(--border); border-radius: 24px;
  color: var(--text-muted); transition: var(--trans);
}
.filter-tab:hover, .filter-tab.active { background: var(--blue); border-color: var(--blue); color: var(--white); box-shadow: none; }

/* === FOOTER === */
.footer { background: var(--dark); padding: 80px 0 0; }
.footer__top {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 60px; padding-bottom: 60px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.footer__brand .nav__logo { margin-bottom: 16px; }
.footer__brand p { color: rgba(255,255,255,0.4); font-size: 0.9rem; max-width: 280px; }
.footer__col h5 {
  font-family: var(--font-head); font-size: 0.82rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--yellow); margin-bottom: 20px;
}
.footer__col ul li { margin-bottom: 10px; }
.footer__col ul li a { font-size: 0.9rem; color: rgba(255,255,255,0.4); transition: var(--trans); }
.footer__col ul li a:hover { color: var(--white); padding-left: 4px; }
.footer__contact-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; }
.footer__contact-item svg { width: 16px; height: 16px; color: var(--yellow); margin-top: 2px; flex-shrink: 0; }
.footer__contact-item span { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.5; }
.footer__contact-item a { font-size: 0.88rem; color: rgba(255,255,255,0.4); line-height: 1.5; text-decoration: none; transition: var(--trans); }
.footer__contact-item a:hover { color: var(--yellow); }
/* social icons */
.footer__social { display: flex; gap: 12px; margin-top: 22px; }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius);
  color: rgba(255,255,255,0.45);
  transition: var(--trans);
}
.footer__social a:hover { color: var(--yellow); border-color: var(--yellow); }
.footer__social svg { width: 17px; height: 17px; }
.footer__bottom {
  padding: 24px 0;
  display: flex; justify-content: space-between; align-items: center;
}
.footer__bottom p { font-size: 0.82rem; color: rgba(255,255,255,0.28); }
.footer__bottom a { font-size: 0.82rem; color: rgba(255,255,255,0.4); transition: var(--trans); }
.footer__bottom a:hover { color: var(--yellow); }
/* Portugal 2030 co-funding badge — links to the project sheet (PDF) */
.footer__funding { display: inline-flex; align-items: center; opacity: 0.85; transition: opacity var(--trans); }
.footer__funding:hover { opacity: 1; }
.footer__funding img { height: 48px; width: auto; display: block; }
@media (max-width: 768px) {
  .footer__funding img { height: 40px; }
}

/* === AREA BLOCKS (Services page) === */
.area-block { padding: 96px 0; }
.area-block:not(:last-child) { border-bottom: 1px solid var(--border); }
.area-block--light { background: var(--light); }

.area-intro {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 48px;
  align-items: flex-start;
  margin-bottom: 64px;
}
.area-intro__num {
  font-family: var(--font-head);
  font-size: 7rem; font-weight: 800;
  color: var(--border);
  line-height: 1;
  padding-top: 4px;
}
.area-intro__badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 2px;
  margin-bottom: 14px;
}
.area-intro__badge--blue   { background: transparent; border: 1px solid var(--yellow); color: var(--yellow); font-family: var(--font-mono); }
.area-intro__badge--yellow { background: transparent; border: 1px solid var(--yellow); color: var(--yellow); font-family: var(--font-mono); }
.area-intro h2 { margin-bottom: 14px; }
.area-intro p  { max-width: 580px; }
.area-intro__tagline {
  display: block;
  color: var(--blue-mid);
  font-size: 1.05rem; font-weight: 700;
  margin-bottom: 18px;
}

/* value proposition cards */
.vp-block { margin: 64px 0; }
.vp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 20px; }
.vp-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-top: 2px solid var(--blue);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: transform var(--trans), box-shadow var(--trans);
}
.vp-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.vp-card h4 { color: var(--blue); font-size: 1.05rem; margin-bottom: 10px; }
.vp-card p  { color: var(--text-muted); font-size: 0.92rem; max-width: none; }
@media (max-width: 768px) {
  .vp-grid { grid-template-columns: 1fr; }
}

/* === SUBCAT GRID === */
.subcat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.subcat-grid--wide { grid-template-columns: repeat(4, 1fr); }

.subcat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: var(--trans);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
  color: inherit;
}
.subcat-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0; width: 3px;
  border-radius: var(--radius) 0 0 var(--radius);
  transform: scaleY(0);
  transition: var(--trans);
  transform-origin: bottom;
}
.subcat-card--blue::before   { background: var(--blue-mid); }
.subcat-card--yellow::before { background: var(--yellow); }
.subcat-card:hover {
  box-shadow: 0 8px 28px rgba(0,0,0,0.15);
  transform: translateY(-4px);
  border-color: transparent;
}
.subcat-card:hover::before { transform: scaleY(1); }

.subcat-card__icon {
  width: 48px; height: 48px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.subcat-card--blue   .subcat-card__icon { background: rgba(89,106,170,0.08); border: 1px solid rgba(89,106,170,0.18); }
.subcat-card--yellow .subcat-card__icon { background: rgba(89,106,170,0.08); border: 1px solid rgba(89,106,170,0.18); }
.subcat-card__icon svg { width: 22px; height: 22px; }
.subcat-card--blue   .subcat-card__icon svg { color: var(--yellow); }
.subcat-card--yellow .subcat-card__icon svg { color: var(--yellow); }

.subcat-card h4 { color: var(--blue); font-size: 1rem; margin-bottom: 10px; line-height: 1.3; }
.subcat-card p  { font-size: 0.875rem; line-height: 1.68; }

/* homepage 2-col services */
.services-grid--2col { grid-template-columns: repeat(2, 1fr); max-width: 860px; margin: 0 auto; }

/* === DETAIL PAGE — image + text layout === */
.detail-section { padding: 96px 0; }
.detail-section--light { background: var(--light); }

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.detail-layout--rev { direction: rtl; }
.detail-layout--rev > * { direction: ltr; }

.detail-visual {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--light);
}
.detail-visual img,
.detail-visual video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  position: relative; z-index: 1;
}
/* portrait variant — for vertical (9:16) footage, capped so it doesn't tower over the text column */
.detail-visual--portrait {
  aspect-ratio: 9/16;
  max-width: 360px;
  margin: 0 auto;
}
/* wide variant — for 16:9 footage, so cover doesn't crop the sides */
.detail-visual--wide { aspect-ratio: 16/9; }
.detail-visual__placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 12px;
  color: rgba(12,31,63,0.25);
  font-family: var(--font-head);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.detail-visual__placeholder svg { width: 48px; height: 48px; opacity: 0.25; }
.detail-visual__accent {
  position: absolute; z-index: 2;
  bottom: 0; left: 0; right: 0;
  height: 4px;
}
.detail-visual__accent--blue   { background: var(--blue-mid); }
.detail-visual__accent--yellow { background: var(--yellow); }

.detail-content {}
.detail-content .page-hero__tag { display: inline-block; margin-bottom: 16px; font-size: 0.72rem; }
.detail-content h2 { font-size: clamp(1.9rem, 3vw, 2.6rem); line-height: 1.12; margin-bottom: 22px; }
.detail-content .lead { font-size: 1.0625rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 28px; }

/* features list */
.feat-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 36px;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--text);
  line-height: 1.5;
}
.feat-list li::before {
  content: '';
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--blue-mid);
}
.feat-list--yellow li::before { background: var(--yellow-dark); }

/* related services grid */
.related-section { padding: 72px 0; background: var(--dark); border-top: 1px solid var(--border); }
.related-section .section__header { margin-bottom: 40px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.related-card {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.related-card:hover {
  background: rgba(89,106,170,0.07);
  border-color: var(--yellow);
  transform: translateY(-3px);
  box-shadow: 0 0 16px rgba(89,106,170,0.15);
}
.related-card__num { font-family: var(--font-head); font-size: 0.7rem; letter-spacing: 0.12em; margin-bottom: 8px; }
.related-card--blue   .related-card__num { color: var(--blue-mid); }
.related-card--yellow .related-card__num { color: var(--yellow); }
.related-card h5 {
  color: #fff;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.3;
}

/* image gallery strip */
.gallery-section { padding: 64px 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* two-photo variant — keeps cards from stretching into an empty third slot */
.gallery-grid--2 { grid-template-columns: repeat(2, 1fr); }
/* four-photo variant — one full row instead of a stranded fourth card */
.gallery-grid--4 { grid-template-columns: repeat(4, 1fr); }
.gallery-item {
  aspect-ratio: 4/3;
  border-radius: 4px;
  overflow: hidden;
  background: var(--light);
  position: relative;
}
/* the image sits above the placeholder, so the fallback label only shows when there is no photo */
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.4s ease; position: relative; z-index: 1; }
.gallery-item:hover img { transform: scale(1.04); }
.gallery-placeholder {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  color: rgba(12,31,63,0.20);
  font-family: var(--font-head);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* responsive — detail pages */
@media (max-width: 1024px) {
  .related-grid { grid-template-columns: repeat(3, 1fr); }
  .gallery-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr; gap: 40px; }
  .detail-layout--rev { direction: ltr; }
  .detail-section { padding: 64px 0; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .related-grid { grid-template-columns: 1fr 1fr; }
  .gallery-grid { grid-template-columns: 1fr; }
}

/* === SCROLL REVEAL === */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
[data-reveal].visible { opacity: 1; transform: translateY(0); }
[data-reveal="left"]  { transform: translateX(-28px); }
[data-reveal="left"].visible  { transform: translateX(0); }
[data-reveal="right"] { transform: translateX(28px); }
[data-reveal="right"].visible { transform: translateX(0); }
/* on phones these blocks are full-width, so a sideways offset spills past the
   viewport and creates horizontal scroll — reveal them vertically instead */
@media (max-width: 768px) {
  [data-reveal="left"],
  [data-reveal="right"] { transform: translateY(28px); }
  [data-reveal="left"].visible,
  [data-reveal="right"].visible { transform: translateY(0); }
}

/* === UTILITIES === */
.text-center  { text-align: center; }
.text-yellow  { color: var(--yellow) !important; }
.mt-8  { margin-top:  8px; }
.mt-16 { margin-top: 16px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom:  8px; }
.mb-32 { margin-bottom: 32px; }
.d-flex        { display: flex; }
.align-center  { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-16 { gap: 16px; }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .stats-bar__inner { grid-template-columns: repeat(2, 1fr); }
  .stats-bar__item:nth-child(2) { border-right: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .process__steps { grid-template-columns: repeat(3, 1fr); }
  .process__steps::before { display: none; }
  .subcat-grid--wide { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .nav__links { display: none; }
  .nav__actions .btn { display: none; }
  .nav__hamburger { display: flex; }
  .nav { height: 72px; }
  .nav__logo-img { height: 46px; }
  .nav__mobile { top: 72px; }
  .about-teaser, .story, .service-row, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .service-row--rev { direction: ltr; }
  .services-grid, .services-grid--2col, .projects-grid, .mvv-grid, .why-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .footer__top { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
  .process__steps { grid-template-columns: 1fr 1fr; gap: 32px; }
  h1 { font-size: 2.4rem; }
  .contact-form { padding: 28px 20px; }
  .story__image { position: static; aspect-ratio: 16/9; }
  .area-intro { grid-template-columns: 1fr; gap: 20px; }
  .area-intro__num { font-size: 4rem; }
  .subcat-grid, .subcat-grid--wide { grid-template-columns: repeat(2, 1fr); }
  .area-block { padding: 64px 0; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .stats-bar__inner { grid-template-columns: 1fr 1fr; }
  .stats-bar__item { padding: 24px 16px; }
  .stats-bar__num { font-size: 2.2rem; }
  .mvv-grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .subcat-grid, .subcat-grid--wide { grid-template-columns: 1fr; }
}

/* ============================================================
   FUTURISTIC DESIGN SYSTEM EXTRAS
   ============================================================ */

/* Hero scanline overlay */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.08) 3px,
    rgba(0,0,0,0.08) 4px
  );
  z-index: 2;
  pointer-events: none;
}

/* Corner bracket marks on subcat cards */
.subcat-card::after {
  content: '';
  position: absolute;
  bottom: 0; right: 0;
  width: 14px; height: 14px;
  border-bottom: 1px solid var(--yellow);
  border-right: 1px solid var(--yellow);
  opacity: 0;
  transition: var(--trans);
}
.subcat-card:hover::after { opacity: 1; }

/* Glowing active nav link */
.nav__link.active {
  color: var(--yellow);
  background: rgba(89,106,170,0.06);
}
.nav__link::after { background: var(--yellow); }

/* Section divider accent */
.section--dark { border-top: 1px solid var(--border); }

/* Monospace technical label in footer */
.footer__col h5 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.05em;
}

/* Area number in services — wire-frame style */
.area-intro__num {
  color: transparent;
  -webkit-text-stroke: 1px rgba(89,106,170,0.35);
}

/* Gallery item hover glow */
.gallery-item:hover img { transform: scale(1.04); }
.gallery-item::after {
  content: '';
  position: absolute; inset: 0; z-index: 3;
  border: 1px solid rgba(89,106,170,0.0);
  transition: border-color 0.3s;
  pointer-events: none;
}
.gallery-item:hover::after { border-color: rgba(89,106,170,0.45); }

/* Gallery caption — overlaid label on the photo */
.gallery-item__caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 40px 18px 16px;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(to top, rgba(12,18,38,0.82) 0%, rgba(12,18,38,0.45) 45%, transparent 100%);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.45);
  pointer-events: none;
}

/* Detail visual bottom accent — glowing line */
.detail-visual__accent--blue   { background: linear-gradient(to right, transparent, var(--blue-mid), transparent); height: 1px; }
.detail-visual__accent--yellow { background: linear-gradient(to right, transparent, var(--yellow), transparent); height: 1px; }

/* Breadcrumb mono */
.breadcrumb { font-family: var(--font-mono); font-size: 0.72rem; }

/* Timeline dot extra glow on hover */
.timeline-item:hover .timeline-dot { box-shadow: 0 4px 12px rgba(89,106,170,0.25); }

/* Mobile nav links futuristic */
.nav__mobile .nav__link { border-bottom-color: var(--border); color: var(--text-muted); }
.nav__mobile .nav__link:hover { color: var(--yellow); }

/* ============================================================
   HOME PAGE — EXCLUSIVE LAYOUT
   ============================================================ */

/* ── SPLIT HERO ── */
.home-hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--dark);
  overflow: hidden;
}
.home-hero__slides { position: absolute; inset: 0; z-index: 0; }
.home-hero__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.home-hero__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .home-hero__img { transition: none; }
}
/* flat dark mask — lifts the title off the photo without a gradient */
.home-hero__mask {
  position: absolute; inset: 0;
  /* blue wash: deepest at the corners, lifting through the middle where the
     title sits — never light enough to put the wordmark at risk */
  background:
    linear-gradient(135deg,
      rgba(8,14,38,0.74)  0%,
      rgba(20,32,74,0.52) 42%,
      rgba(14,24,60,0.58) 68%,
      rgba(6,12,34,0.76) 100%);
  z-index: 1;
  pointer-events: none;
}
.home-hero__title {
  position: relative;
  z-index: 2;
  color: var(--white);
  font-size: clamp(2.2rem, 6.5vw, 6rem);
  line-height: 1;
  letter-spacing: 0.01em;
  text-align: center;
  text-transform: uppercase;
  padding: 140px 6vw 80px;
  margin: 0;
}
.home-hero__title span {
  display: block;
  font-weight: 200;
  /* a touch more opaque than before: the blue wash behind it is now lighter */
  color: rgba(255,255,255,0.82);
  line-height: 0.95;
  /* tracked out so this line matches the width of METAL FORMING below;
     the padding re-centres the line, since letter-spacing also adds a trailing gap */
  letter-spacing: 0.214em;
  padding-left: 0.214em;
}
.home-hero__title em {
  display: block;
  font-style: normal;
  font-weight: 900;
  color: var(--white);
  line-height: 0.95;
}

/* ── HOME INTRO (subtitle + actions moved out of the hero) ── */
.home-intro { background: var(--dark); padding: 72px 0; }
.home-intro__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.home-intro__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  margin-bottom: 20px;
  display: flex; align-items: center; gap: 12px;
}
.home-intro__tag::before {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--yellow);
  flex-shrink: 0;
}
.home-intro__text {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.62);
  line-height: 1.75;
  margin: 0;
}
.home-intro__actions { display: flex; gap: 16px; flex-wrap: wrap; }
@media (max-width: 900px) {
  .home-intro__inner { grid-template-columns: 1fr; gap: 32px; }
  .home-intro__inner > * { min-width: 0; }
}
/* the long CTA label is nowrap by default and cannot shrink — stack and wrap it on phones */
@media (max-width: 560px) {
  .home-intro__actions { flex-direction: column; align-items: stretch; }
  .home-intro__actions .btn {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
    padding-left: 20px; padding-right: 20px;
  }
}

/* ── MARQUEE STRIP ── */
.marquee-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-strip__inner {
  display: inline-flex;
  animation: marqueeMove 28s linear infinite;
}
.marquee-strip__item {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 0 28px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.marquee-strip__item::after {
  content: '//';
  color: var(--yellow);
  opacity: 0.6;
}
@keyframes marqueeMove {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── HOME ABOUT — EDITORIAL ── */
.home-about {
  padding: 120px 0;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.home-about__inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.home-about__num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: block;
}
.home-about h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  color: var(--blue);
  line-height: 1.1;
  margin-bottom: 24px;
}
.home-about p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 14px;
}
.home-about__visual {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--light);
  border: 1px solid var(--border);
  overflow: hidden;
}
.home-about__visual img,
.home-about__visual video {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-about__visual-corner {
  position: absolute;
  width: 20px; height: 20px;
  z-index: 2;
}
.home-about__visual-corner--tl { top: 0; left: 0;   border-top: 2px solid var(--yellow); border-left:  2px solid var(--yellow); }
.home-about__visual-corner--tr { top: 0; right: 0;  border-top: 2px solid var(--yellow); border-right: 2px solid var(--yellow); }
.home-about__visual-corner--bl { bottom: 0; left: 0;  border-bottom: 2px solid var(--yellow); border-left:  2px solid var(--yellow); }
.home-about__visual-corner--br { bottom: 0; right: 0; border-bottom: 2px solid var(--yellow); border-right: 2px solid var(--yellow); }
.home-about__visual-label {
  position: absolute;
  bottom: 12px; left: 16px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  color: rgba(89,106,170,0.6);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── HOME SERVICES — FULL-WIDTH PANELS ── */
.home-services { padding: 0; }
.home-services__header {
  padding: 96px 0 72px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  text-align: center;
}
.home-services__tag {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  display: block;
}
.home-services__header h2 {
  color: var(--blue);
  margin: 0;
  font-size: clamp(2.1rem, 3.6vw, 3.4rem);
}
/* the two areas sit side by side */
.home-services__panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.service-panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;          /* the hover zoom must stay inside the panel */
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid rgba(255,255,255,0.10);
  border-right: 1px solid rgba(255,255,255,0.10);
  padding: 56px 56px 48px;
  /* dark panel so the photo can show through strongly and the text stays legible */
  background: var(--dark);
  transition: opacity 0.3s;
  text-decoration: none;
  color: inherit;
}
.service-panel:last-child { border-right: none; }
.service-panel--alt { background: var(--dark2); }
.service-panel__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform 0.6s ease;
  pointer-events: none;
}
/* flat scrim over the photo: keeps text contrast predictable whatever the
   image happens to show, instead of relying on the photo's own tones */
.service-panel::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,16,40,0.58);
  z-index: -1;
  pointer-events: none;
}
.service-panel:hover .service-panel__bg { transform: scale(1.05); }

/* When any panel is hovered, dim all siblings */
.home-services:has(.service-panel:hover) .service-panel:not(:hover) {
  opacity: 0.55;
}
.service-panel:hover { opacity: 1; }
.service-panel__num {
  font-family: var(--font-mono);
  font-size: 4rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255,255,255,0.40);
  line-height: 1;
  align-self: flex-start;
  padding-top: 6px;
}
.service-panel__body {
  padding: 0;
  border: none;
  flex: 1;
  margin-top: 24px;
}
.service-panel__tag {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  /* pale blue rather than --blue-light: this is small text over a photo */
  color: rgba(214,224,248,0.95);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: block;
}
.service-panel h3, .service-panel h2 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  color: var(--white);
  margin-bottom: 14px;
  font-weight: 700;
  text-shadow: 0 1px 12px rgba(0,0,0,0.35);
}
.service-panel p {
  color: rgba(255,255,255,0.88);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 28px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.service-panel__features {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.service-panel__features li {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.88);
  display: flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 1px 10px rgba(0,0,0,0.35);
}
.service-panel__features li::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}
.service-panel__action {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 0;
  margin-top: 32px;
}
.service-panel__arrow {
  width: 56px; height: 56px;
  border: 1px solid rgba(255,255,255,0.40);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: var(--trans);
  flex-shrink: 0;
}
.service-panel:hover .service-panel__arrow {
  background: var(--white);
  color: var(--dark);
  border-color: var(--white);
}
.service-panel__arrow svg { width: 22px; height: 22px; }

/* two areas side by side down to tablet width; single column below */
@media (max-width: 900px) {
  .home-services__panels { grid-template-columns: 1fr; }
  .service-panel { border-right: none; }
}

/* ── HOME WHY — NUMBERED COLUMNS ── */
.home-why {
  padding: 120px 0;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.home-why__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 72px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 40px;
}
.home-why__header h2 { color: var(--blue); margin: 0; }
.home-why__list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.home-why__item {
  padding: 0 48px 0 0;
  border-right: 1px solid var(--border);
}
.home-why__item:last-child  { border-right: none; padding-right: 0; padding-left: 48px; }
.home-why__item:not(:first-child) { padding-left: 48px; }
.home-why__n {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(89,106,170,0.30);
  line-height: 1;
  margin-bottom: 28px;
  display: block;
}
.home-why__icon {
  width: 48px; height: 48px;
  border: 1px solid rgba(89,106,170,0.28);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  color: var(--yellow);
  transition: var(--trans);
}
.home-why__item:hover .home-why__icon {
  border-color: var(--yellow);
  background: rgba(89,106,170,0.07);
  box-shadow: none;
}
.home-why__item h3 {
  font-size: 1.2rem;
  color: var(--blue);
  margin-bottom: 12px;
  font-weight: 600;
}
.home-why__item p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── HOME PROJECTS — ASYMMETRIC ── */
.home-projects {
  padding: 120px 0;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.home-projects__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 48px;
}
.home-projects__grid {
  display: grid;
  grid-template-columns: 1.65fr 1fr;
  gap: 10px;
}
.home-projects__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.proj-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--light);
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.proj-card--featured { min-height: 480px; }
.home-projects__stack .proj-card { flex: 1; min-height: 0; }
.proj-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  display: block;
}
.proj-card__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,28,30,0.94) 0%, rgba(28,28,30,0.25) 55%, transparent 100%);
  transition: background 0.3s;
}
.proj-card:hover .proj-card__bg { transform: scale(1.05); }
.proj-card:hover .proj-card__overlay { background: linear-gradient(to top, rgba(28,28,30,0.97) 0%, rgba(28,28,30,0.4) 65%, transparent 100%); }
.proj-card:hover { border-color: var(--yellow); box-shadow: 0 4px 24px rgba(89,106,170,0.15); }
.proj-card__content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px 28px;
}
.proj-card__label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--yellow);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.proj-card h4 {
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.3;
}
.proj-card--featured h4 { font-size: 1.5rem; }

/* ── HOME CTA — BOLD TYPOGRAPHIC ── */
.home-cta {
  padding: 160px 0;
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.home-cta__bg-text {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-head);
  font-size: clamp(6rem, 16vw, 18rem);
  font-weight: 900;
  color: transparent;
  -webkit-text-stroke: 1px rgba(0,200,232,0.055);
  white-space: nowrap;
  letter-spacing: 0.08em;
  pointer-events: none;
  user-select: none;
}
.home-cta .container { position: relative; z-index: 1; }
.home-cta__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--yellow);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  display: block;
}
.home-cta h2 {
  font-size: clamp(2.4rem, 4vw, 4rem);
  color: var(--white);
  margin-bottom: 16px;
  line-height: 1.1;
}
.home-cta p {
  color: rgba(255,255,255,0.60);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 44px;
}

/* ── HOME RESPONSIVE ── */
@media (max-width: 1200px) {
  .service-panel { padding: 48px 40px 40px; }
}
@media (max-width: 1024px) {
  .home-about__inner { grid-template-columns: 1fr; gap: 48px; }
  .service-panel { padding: 44px 32px 36px; }
  .home-projects__grid { grid-template-columns: 1fr; }
  .proj-card--featured { min-height: 380px; }
  .home-projects__stack { flex-direction: row; }
  .home-projects__stack .proj-card { min-height: 220px; }
}
@media (max-width: 768px) {
  .home-why__list { grid-template-columns: 1fr; gap: 0; }
  .home-why__item { border-right: none; border-bottom: 1px solid var(--border); padding: 32px 0 !important; }
  .home-why__item:last-child { border-bottom: none; }
  .home-why__header { flex-direction: column; gap: 12px; align-items: flex-start; }
  .home-projects__header { flex-direction: column; gap: 20px; align-items: flex-start; }
  .home-projects__stack { flex-direction: column; }
  .home-projects__stack .proj-card { min-height: 200px; }
  .service-panel { padding: 40px 24px 32px; }
  .service-panel__num { font-size: 2.8rem; }
  .home-cta { padding: 100px 0; }
  .home-about { padding: 80px 0; }
  .home-why { padding: 80px 0; }
  .home-projects { padding: 80px 0; }
}

/* === LEGAL / PRIVACY PAGE === */
.legal { max-width: 780px; }
.legal__updated {
  font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em;
  padding-bottom: 20px; margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 1.15rem; color: var(--blue);
  margin: 44px 0 14px;
}
.legal h2:first-of-type { margin-top: 0; }
.legal p { margin-bottom: 14px; color: var(--text-muted); font-size: 0.95rem; line-height: 1.75; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--blue-light); }
.legal__list { list-style: none; margin: 0 0 18px; padding: 0; }
.legal__list li {
  position: relative; padding-left: 20px; margin-bottom: 9px;
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.6;
}
.legal__list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--yellow);
}

/* === SETORES === */
.sector-row { background: var(--white); }
.sector-row--alt { background: var(--light); }
.sector-row__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;          /* a coluna da imagem estica a altura toda */
  gap: 0;
}
/* every other sector flips the two columns */
.sector-row--rev .sector-row__inner { direction: rtl; }
.sector-row--rev .sector-row__inner > * { direction: ltr; }

/* the text column carries the page gutter; the carousel bleeds to the edge */
.sector-row__text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px clamp(32px, 5vw, 88px);
  max-width: 720px;
  margin-left: auto;             /* alinha com a grelha do resto do site */
}
.sector-row--rev .sector-row__text { margin-left: 0; margin-right: auto; }

.sector-row__num {
  font-family: var(--font-mono);
  font-size: 3.4rem; font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1px rgba(89,106,170,0.35);
  line-height: 1; display: block; margin-bottom: 18px;
}
.sector-row__text h2 { color: var(--blue); margin-bottom: 18px; font-size: clamp(1.8rem, 3vw, 2.6rem); }
.sector-row__text p  { color: var(--text-muted); line-height: 1.8; margin-bottom: 28px; }
.sector-row__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sector-row__points li {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.92rem; color: var(--text);
}
.sector-row__points li::before {
  content: ''; width: 18px; height: 1px;
  background: var(--yellow); flex-shrink: 0;
}

/* carousel — fills its half of the row, edge to edge */
.sector-carousel {
  position: relative;
  overflow: hidden;
  background: var(--dark2);
  min-height: 520px;
}
.sector-carousel__track { position: absolute; inset: 0; }
.sector-carousel__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.sector-carousel__img.is-active { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .sector-carousel__img { transition: none; }
}

/* arrows */
.carousel-btn {
  position: absolute; top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 50%;
  background: rgba(12,14,20,0.42);
  color: #fff;
  cursor: pointer;
  transition: var(--trans);
  backdrop-filter: blur(4px);
}
.carousel-btn:hover { background: var(--yellow); border-color: var(--yellow); }
.carousel-btn:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
.carousel-btn svg { width: 22px; height: 22px; }
.carousel-btn--prev { left: 20px; }
.carousel-btn--next { right: 20px; }

@media (max-width: 900px) {
  .sector-row__inner { grid-template-columns: 1fr; }
  .sector-row--rev .sector-row__inner { direction: ltr; }
  .sector-row__inner > .sector-carousel { order: -1; }
  .sector-row__text { padding: 48px clamp(20px, 6vw, 40px) 56px; margin: 0 auto; max-width: none; }
  .sector-carousel { min-height: 0; aspect-ratio: 4/3; }
  .sector-row__num { font-size: 2.6rem; }
  .carousel-btn { width: 44px; height: 44px; }
  .carousel-btn--prev { left: 12px; }
  .carousel-btn--next { right: 12px; }
}

/* === SERVICES PAGE — one card per area, side by side ===
   Split layout: photo band on top, copy on a solid surface below, so the text
   never sits over the image and stays legible whatever the photo shows. */
.services-wrap {
  max-width: none;
  margin: 0;
  padding: 0 clamp(24px, 4vw, 64px);
}
.services-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: stretch;
}

.area-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--trans), box-shadow var(--trans), border-color var(--trans);
}
.area-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--blue);
}

.area-card__media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
}
.area-card__img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.area-card:hover .area-card__img { transform: scale(1.05); }
/* outlined ghost numeral over the photo — decorative, the area number is also
   stated in the tag below */
.area-card__num {
  position: absolute;
  left: clamp(20px, 2.5vw, 32px);
  bottom: 14px;
  font-size: clamp(3.4rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255,255,255,0.55);
  pointer-events: none;
  user-select: none;
}

.area-card__body {
  flex: 1;                      /* equalises the copy blocks across both cards */
  display: flex;
  flex-direction: column;
  padding: 40px clamp(28px, 3vw, 44px) 36px;
}
.area-card__tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.area-card__title {
  font-size: clamp(1.7rem, 2.4vw, 2.3rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 16px;
}
.area-card__text {
  /* darker than --text-muted, which only reaches 3.6:1 on the white card */
  color: #626E9C;
  line-height: 1.75;
  margin-bottom: 28px;
  flex: 1;                      /* pushes the link to the foot of every card */
}
.area-card__link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--blue);
}
.area-card__link svg {
  width: 16px; height: 16px;
  transition: transform var(--trans);
}
.area-card:hover .area-card__link svg { transform: translateX(5px); }
.area-card:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

@media (max-width: 900px) {
  .services-cols { grid-template-columns: 1fr; gap: 32px; }
}
