/* =========================
   Endura — Services Hero Only
   (Variation of the home hero: shorter height)
   ========================= */

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

html, body { height: 100%; }

body{
  margin: 0;
  background: #000;
  color: #f5f7ff;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.45;
}

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

:root{
  /* brand */
  --blue:  #0f5096;
  --blue2: #2e77b7;

  /* layout */
  --padX: clamp(14px, 2.1vw, 26px);
  --padTop: max(10px, env(safe-area-inset-top));

  /* logo size (same feel as home) */
  --logoH: clamp(86px, 5.8vw, 112px);
}

/* =========================
   HERO (shorter than home)
   ========================= */

.pageHero{
  position: relative;
  height: clamp(420px, 58vh, 720px);
  overflow: clip;
  isolation: isolate;
  background: #000;
}

.pageHero__bg{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  /* cinematic but clean */
  filter: contrast(1.06) saturate(1.04) brightness(1.06);
  transform: scale(1.02);
  z-index: -3;
}

.pageHero__scrim{
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 520px at 18% 22%, rgba(46,119,183,0.10), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,0.78) 0%, rgba(0,0,0,0.35) 22%, rgba(0,0,0,0.00) 46%),
    radial-gradient(1100px 700px at 50% 120%, rgba(0,0,0,0.42), transparent 62%),
    linear-gradient(180deg, rgba(0,0,0,0.00) 62%, rgba(0,0,0,0.34) 100%);
}

.pageHero__grain{
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

/* =========================
   HUD / NAV
   ========================= */

.hud{
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: var(--padTop) var(--padX) 0;
  z-index: 10;
}

.hud__inner{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand{
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.brand__logo{
  height: var(--logoH);
  width: auto;
  max-width: min(520px, 56vw);

  /* mounted / machined (same as home) */
  border-radius: 6px;

  /* subtle edge + depth (no outline) */
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 14px 34px rgba(0,0,0,0.42);
}

/* NAV */
.nav{
  display: flex;
  align-items: center;
  gap: 14px;
}

.navLinks{
  display: flex;
  align-items: center;
  gap: 22px;
}

/* Mobile menu toggle */
.navToggle{
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.32);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 46px rgba(0,0,0,0.40);
  backdrop-filter: blur(10px) saturate(1.2);
  -webkit-backdrop-filter: blur(10px) saturate(1.2);
  cursor: pointer;
  color: rgba(245,247,255,0.92);
}

.navToggle__icon{
  width: 16px;
  height: 10px;
  position: relative;
  display: block;
}

.navToggle__icon::before,
.navToggle__icon::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 999px;
  background: rgba(245,247,255,0.92);
  transition: transform 170ms ease, top 170ms ease, bottom 170ms ease;
}

.navToggle__icon::before{ top: 0; }
.navToggle__icon::after{ bottom: 0; }

.navToggle__label{
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
}

.nav__link{
  position: relative;
  padding: 12px 0;

  /* Porsche-like: firm, architectural */
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 0.82rem;

  color: rgba(245,247,255,0.90);
}

.nav__link:hover{
  color: rgba(245,247,255,0.98);
}

.nav__link::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 5px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(46,119,183,0.95), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease;
  opacity: 0.95;
}

.nav__link:hover::after{ transform: scaleX(1); }

.nav__link--active{
  color: rgba(255,255,255,0.96);
}

.nav__link--active::after{
  transform: scaleX(1);
}

/* Quote button */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(0,0,0,0.28);

  color: #f5f7ff;
  font-weight: 880;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    0 18px 46px rgba(0,0,0,0.35);

  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
  user-select: none;
}

.btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.38);
  border-color: rgba(255,255,255,0.22);
}

.btn--primary{
  border-color: rgba(46,119,183,0.55);
  background: linear-gradient(180deg, rgba(46,119,183,0.98), rgba(11,63,123,0.98));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    inset 0 -18px 28px rgba(0,0,0,0.22),
    0 18px 52px rgba(0,0,0,0.46);
}

.btn__arrow{
  font-weight: 950;
  transform: translateY(-1px);
  transition: transform 140ms ease;
}

.btn:hover .btn__arrow{
  transform: translateY(-1px) translateX(2px);
}

/* =========================
   PAGE TITLE (centered lockup)
   ========================= */

.pageHero__content{
  position: absolute;
  left: 50%;
  top: 60%;
  transform: translate(-50%, -50%);
  z-index: 6;

  width: min(980px, calc(100% - (2 * var(--padX))));
  padding: 14px 10px;

  display: grid;
  justify-items: center;
  gap: 12px;

  text-align: center;
  isolation: isolate;
}

/* Not a card — just a soft vignette for readability */
.pageHero__content::before{
  content:"";
  position: absolute;
  inset: -56px -26px;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(0,0,0,0.62), transparent 74%);
  opacity: 0.95;
}

.pageHero__eyebrow{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.78rem;
  font-weight: 760;
  color: rgba(245,247,255,0.68);
}

.pageHero__line{
  position: relative;
  width: min(560px, 84vw);
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(46,119,183,0.95), transparent);
  opacity: 0.85;
}

.pageHero__line::after{
  content:"";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(46,119,183,0.95);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 10px rgba(46,119,183,0.10);
}

.pageHero__title{
  margin: 0;
  text-transform: uppercase;

  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.92;

  font-size: clamp(2.05rem, 4.7vw, 3.45rem);

  color: rgba(255,255,255,0.96);
  text-shadow: 0 30px 96px rgba(0,0,0,0.62);
}

.pageHero__titleTop,
.pageHero__titleBottom{
  display: block;
}

.pageHero__titleBottom{
  font-size: 0.94em;
  letter-spacing: -0.012em;
}

.pageHero__amp{
  color: rgba(46,119,183,0.96);
  text-shadow: 0 24px 80px rgba(46,119,183,0.22);
}

.pageHero__sub{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 760;
  font-size: 0.72rem;
  color: rgba(245,247,255,0.58);
  max-width: 100ch;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Focus */
:focus-visible{
  outline: 3px solid rgba(46,119,183,0.75);
  outline-offset: 3px;
  border-radius: 12px;
}

/* Mobile */
@media (max-width: 920px){
  /* Mobile menu */
  .navToggle{ display: inline-flex; }

  .navLinks{
    position: fixed;
    left: var(--padX);
    right: var(--padX);
    top: calc(var(--padTop) + var(--logoH) + 14px);

    background: rgba(0,0,0,0.78);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;

    backdrop-filter: blur(18px) saturate(1.25);
    -webkit-backdrop-filter: blur(18px) saturate(1.25);

    box-shadow: 0 36px 120px rgba(0,0,0,0.72);
    padding: 10px;

    display: grid;
    gap: 8px;

    transform: translateY(-10px);
    opacity: 0;
    pointer-events: none;

    transition: opacity 160ms ease, transform 160ms ease;
    z-index: 999;
  }

  .navLinks .nav__link{
    padding: 12px 12px;
    border-radius: 14px;
  }
  .navLinks .nav__link:hover{
    background: rgba(46,119,183,0.10);
  }
  .navLinks .nav__link::after{
    left: 12px;
    right: 12px;
  }

  .navLinks .btn{
    width: 100%;
    justify-content: center;
  }

  body.nav-open .navLinks{
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  body.nav-open .navToggle__icon::before{ top: 4px; transform: rotate(45deg); }
  body.nav-open .navToggle__icon::after{ bottom: 4px; transform: rotate(-45deg); }
  body.nav-open{ overflow: hidden; }

  /* Hero lockup placement micro-tune */
  .pageHero__content{ top: 64%; }
  .pageHero__line{ width: min(520px, 86vw); }
}

@media (max-width: 560px){
  .pageHero__sub{ letter-spacing: 0.10em; }
  .pageHero__title{ font-size: clamp(1.85rem, 7.2vw, 2.6rem); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce){
  .btn, .btn__arrow, .nav__link::after{ transition: none; }
}


/* =========================
   SERVICES LIST SECTION
   Beautiful full-width tiles
   ========================= */

.section{
  background: linear-gradient(180deg, #0b0f14 0%, #070a0f 100%);
  padding: clamp(70px, 7vw, 110px) 0;
}

.section__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--padX);
}

.services__head{
  max-width: 70ch;
  margin-bottom: clamp(18px, 3vw, 28px);
}

.eyebrow{
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  font-weight: 760;
  color: rgba(245,247,255,0.70);
}

.services__title{
  margin: 0 0 10px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.95;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  color: rgba(255,255,255,0.96);
  text-shadow: 0 26px 88px rgba(0,0,0,0.55);
}

.services__sub{
  margin: 0;
  color: rgba(245,247,255,0.74);
  font-size: 1.02rem;
  line-height: 1.55;
}

/* If the section is light, switch the heading copy to dark for contrast */
.section--light .services__title{
  color: rgba(11,15,20,0.94);
  text-shadow: none;
}

.section--light .services__sub{
  color: rgba(11,15,20,0.68);
}

/* Tiles */
.servicesList{
  display: grid;
  gap: clamp(12px, 1.6vw, 16px);
}

.serviceRow{
  position: relative;
  display: block;
  overflow: hidden;

  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.03);

  height: clamp(170px, 19vh, 220px);

  box-shadow: 0 34px 120px rgba(0,0,0,0.55);
  transform: translateZ(0);
  isolation: isolate;
}

.serviceRow img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;

  filter: contrast(1.06) saturate(1.06);
  transform: scale(1.02);
  transition: transform 240ms ease, filter 240ms ease;
}

.serviceRow__overlay{
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(900px 300px at 20% 20%, rgba(46,119,183,0.18), transparent 62%),
    linear-gradient(90deg, rgba(0,0,0,0.64) 0%, rgba(0,0,0,0.22) 48%, rgba(0,0,0,0.10) 100%),
    linear-gradient(180deg, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.52) 100%);
}

.serviceRow__content{
  position: absolute;
  left: 18px;
  bottom: 16px;
  z-index: 2;
  display: grid;
  gap: 6px;
}

.serviceRow__kicker{
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 760;
  font-size: 0.72rem;
  color: rgba(245,247,255,0.70);
}

.serviceRow__name{
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 950;
  font-size: clamp(1.0rem, 1.6vw, 1.22rem);
  text-wrap: balance;
  color: rgba(255,255,255,0.96);
  text-shadow: 0 18px 60px rgba(0,0,0,0.58);
}

.serviceRow__btn{
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;

  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 10px 12px;
  border-radius: 999px;

  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 900;
  font-size: 0.72rem;

  color: rgba(255,255,255,0.92);

  background: rgba(0,0,0,0.34);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  box-shadow: 0 18px 55px rgba(0,0,0,0.45);
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.serviceRow__arrow{
  font-weight: 950;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

/* Hover = tougher, not bouncy */
.serviceRow:hover{
  border-color: rgba(255,255,255,0.16);
}

.serviceRow:hover img{
  transform: scale(1.06);
  filter: contrast(1.10) saturate(1.08);
}

.serviceRow:hover .serviceRow__btn{
  transform: translateY(-1px);
  background: rgba(0,0,0,0.46);
  border-color: rgba(255,255,255,0.20);
}

.serviceRow:hover .serviceRow__arrow{
  transform: translateY(-1px) translateX(2px);
}

/* Focus */
.serviceRow:focus-visible{
  outline: 3px solid rgba(46,119,183,0.75);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 920px){
  .serviceRow{
    height: clamp(180px, 24vh, 240px);
  }
  .serviceRow__overlay{
    background:
      linear-gradient(180deg, rgba(0,0,0,0.22) 0%, rgba(0,0,0,0.62) 100%);
  }
  .serviceRow__content{
    left: 16px;
    right: 16px;
  }
}

@media (max-width: 560px){
  /* Keep the "View" control visible for mobile (tap clarity) */
  .serviceRow__btn{
    padding: 9px 11px;
    font-size: 0.70rem;
    letter-spacing: 0.12em;
  }
}


/* =========================
   EXTERIOR APPLICATIONS + CONTACT CTA
   ========================= */

.section--light{
  background: linear-gradient(180deg, #f4f6f8 0%, #eceff3 100%);
  border-top: 1px solid rgba(11,15,20,0.10);
  color: rgba(11,15,20,0.92);
}

.section--light .eyebrow{
  color: rgba(11,15,20,0.62);
}

.applications{
  position: relative;
}

.applications::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 18% 10%, rgba(46,119,183,0.10), transparent 60%),
    radial-gradient(900px 700px at 110% 120%, rgba(0,0,0,0.06), transparent 62%),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: auto, auto, 84px 84px;
  opacity: 0.9;
}

.apps{
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(18px, 3vw, 44px);
  align-items: start;
}

.apps__copy{
  max-width: 70ch;
}

.apps__title{
  margin: 0 0 12px;
  text-transform: uppercase;
  font-weight: 950;
  letter-spacing: -0.02em;
  line-height: 0.98;
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
  color: rgba(11,15,20,0.94);
}

.apps__text{
  margin: 0;
  font-size: 1.04rem;
  line-height: 1.6;
  color: rgba(11,15,20,0.72);
}

.apps__cta{
  position: relative;
  overflow: hidden;

  border-radius: 18px;
  padding: clamp(18px, 2.4vw, 26px);

  background: linear-gradient(180deg, rgba(0,0,0,0.94) 0%, rgba(9,12,18,0.94) 100%);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 46px 160px rgba(0,0,0,0.22);

  color: rgba(245,247,255,0.90);
  display: grid;
  gap: 10px;
  align-content: start;
}

.apps__cta::before{
  content:"";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 20% 0%, rgba(46,119,183,0.24), transparent 60%),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: auto, 88px 88px;
  opacity: 0.85;
}

.apps__ctaTitle,
.apps__ctaText,
.apps__hint,
.btn--cta{
  position: relative;
  z-index: 1;
}

.apps__ctaTitle{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 920;
  color: rgba(255,255,255,0.94);
}

.apps__ctaText{
  margin: 0 0 6px;
  color: rgba(245,247,255,0.72);
}

.btn--cta{
  width: fit-content;
  padding: 14px 18px;
  border-radius: 10px;
}

.apps__hint{
  margin: 2px 0 0;
  color: rgba(245,247,255,0.60);
  font-size: 0.95rem;
}

@media (max-width: 980px){
  .apps{
    grid-template-columns: 1fr;
  }
}


@media (max-width: 720px){
  .pageHero__content{ top: 64%; }
  .pageHero__line{ width: min(520px, 86vw); }
  .pageHero__sub{ letter-spacing: 0.10em; }
}


/* =========================
   FOOTER
   ========================= */

.footer{
  background: linear-gradient(180deg, #05070a 0%, #000 100%);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 40px 0 28px;
}

.footer__inner{
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--padX);
}

.footer__top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 26px;
  flex-wrap: wrap;
}

.footer__brand{
  max-width: 58ch;
}

.footer__logoLink{
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.footer__logo{
  height: clamp(62px, 4.8vw, 78px);
  width: auto;
  max-width: min(520px, 78vw);

  border-radius: 6px;

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 18px 58px rgba(0,0,0,0.60);
}

.footer__tagline{
  margin: 12px 0 6px;
  color: rgba(245,247,255,0.74);
  font-weight: 720;
  letter-spacing: 0.02em;
}

.footer__area{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 820;
  font-size: 0.74rem;
  color: rgba(245,247,255,0.55);
}

.footer__contact{
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.footer__contactLink{
  position: relative;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: baseline;
  padding: 6px 0;
  color: rgba(245,247,255,0.72);
}

.footer__contactLabel{
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-weight: 880;
  font-size: 0.72rem;
  color: rgba(245,247,255,0.52);
}

.footer__contactValue{
  font-weight: 760;
  font-size: 0.96rem;
  color: rgba(245,247,255,0.84);
  word-break: break-word;
}

.footer__contactLink::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(46,119,183,0.85), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease;
  opacity: 0.9;
}

.footer__contactLink:hover{
  color: rgba(245,247,255,0.95);
}

.footer__contactLink:hover .footer__contactValue{
  color: rgba(255,255,255,0.96);
}

.footer__contactLink:hover::after{
  transform: scaleX(1);
}

.footer__nav{
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: 160px;
}

.footer__link{
  position: relative;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 860;
  font-size: 0.78rem;
  color: rgba(245,247,255,0.72);
  padding: 6px 0;
}

.footer__link::after{
  content:"";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(46,119,183,0.9), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 170ms ease;
  opacity: 0.9;
}

.footer__link:hover{
  color: rgba(245,247,255,0.95);
}

.footer__link:hover::after{
  transform: scaleX(1);
}

.footer__link--cta{
  color: rgba(255,255,255,0.92);
}

.footer__bottom{
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.06);

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer__copy{
  color: rgba(245,247,255,0.60);
  font-size: 0.92rem;
}

.footer__fine{
  color: rgba(245,247,255,0.44);
  font-size: 0.92rem;
}

@media (max-width: 720px){
  .footer__nav{
    justify-items: start;
  }
}