/* =========================================================
   Switched On – main stylesheet
   Brand: navy #08172E · orange #F59621 · text grey #777C83
   Fonts: Teko (headings / UI) · Montserrat (body)
   ========================================================= */

:root {
  --navy: #08172E;
  --navy-2: #0d2244;
  --orange: #F59621;
  --orange-dark: #e2850f;
  --orange-alt: #FF6F2B;
  --grey: #777C83;
  --grey-light: #B0BAC7;
  --bg-light: #F3F3F3;
  --white: #FFFFFF;
  --font-head: "Teko", sans-serif;
  --font-body: "Montserrat", sans-serif;
  --container: 1170px;
  --header-h: 96px;
  --shadow: 0 10px 40px rgba(8, 23, 46, .08);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.7;
  color: var(--grey);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 500; text-transform: uppercase; line-height: 1.1; color: var(--navy); }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }

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

/* ---------- Top bar ---------- */
.topbar { background: var(--navy); color: var(--white); font-size: 14px; font-weight: 500; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 16px; }
.topbar__item { margin: 0; }
.topbar__item a { color: var(--orange); }
.topbar__item a:hover { color: var(--white); }
.topbar__right { display: flex; align-items: center; gap: 22px; }
.social { display: flex; gap: 8px; }
.social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--orange); color: var(--navy); font-size: 13px;
  transition: background .25s, color .25s, transform .25s;
}
.social a:hover { background: var(--white); transform: translateY(-2px); }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  transition: box-shadow .3s;
}
.header.is-scrolled { box-shadow: 0 4px 25px rgba(8, 23, 46, .1); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 24px; }
.header__logo img { width: 175px; }
.header__partners { width: 240px; }

.nav__head, .nav__contact { display: none; }
.nav__list { display: flex; gap: 36px; }
.nav__link {
  position: relative; display: block; padding: 8px 0;
  font-family: var(--font-head); font-size: 17px; font-weight: 500; letter-spacing: .5px;
  text-transform: uppercase; color: var(--navy);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 100%; height: 2px; background: var(--orange);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--navy); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.hamburger {
  display: none; background: none; border: 0; font-size: 22px; color: var(--navy); padding: 8px;
}
.nav-overlay { display: none; }

.partners-strip { display: none; }

/* ---------- Hero slider ---------- */
.hero {
  position: relative; overflow: hidden;
  height: clamp(480px, 52vw, 740px);
  background: var(--navy);
}
.hero__slides, .slide { position: absolute; inset: 0; }
.slide {
  display: flex; align-items: center;
  background-size: cover; background-position: center;
  opacity: 0; visibility: hidden;
  transition: opacity 1s ease, visibility 1s;
}
.slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(8, 23, 46, .45) 0%, rgba(8, 23, 46, 0) 70%);
}
.slide.is-active { opacity: 1; visibility: visible; }
.slide__content { position: relative; padding-bottom: 60px; color: var(--white); }
.slide__content > * { max-width: 620px; opacity: 0; transform: translateX(-60px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.slide.is-active .slide__content > * { opacity: 1; transform: none; }
.slide.is-active .slide__sub { transition-delay: .3s; }
.slide.is-active .slide__title { transition-delay: .5s; }
.slide.is-active .slide__text { transition-delay: .7s; }
.slide.is-active .learn-more { transition-delay: .9s; }

.slide__sub { font-size: clamp(22px, 2.2vw, 31px); font-weight: 300; color: var(--white); letter-spacing: .5px; margin-bottom: 6px; }
.slide__title { font-size: clamp(48px, 5.2vw, 72px); font-weight: 700; color: var(--white); line-height: 1; margin-bottom: 18px; }
.slide__text { font-size: clamp(15px, 1.25vw, 18px); font-weight: 300; line-height: 1.6; margin-bottom: 30px; }

.learn-more { display: inline-flex; align-items: center; gap: 0; font-size: 14px; color: #FAFAFA; position: relative; }
.learn-more::before {
  content: ""; position: absolute; left: 62px; top: 50%;
  width: 38px; height: 38px; margin-top: -19px;
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 50%;
  transition: transform .35s var(--ease), border-color .35s;
}
.learn-more__arrow {
  position: relative; width: 50px; height: 2px; margin-left: 18px; background: var(--orange);
  transition: width .35s var(--ease);
}
.learn-more__arrow::after {
  content: ""; position: absolute; right: 0; top: -4px;
  border: 5px solid transparent; border-left: 7px solid var(--orange); border-right: 0;
}
.learn-more:hover .learn-more__arrow { width: 66px; }
.learn-more:hover::before { transform: scale(1.15); border-color: var(--orange); }

.hero__dots {
  position: absolute; right: max(30px, calc((100vw - var(--container)) / 2 - 40px)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 22px; z-index: 5;
}
.hero__dot {
  position: relative; background: none; border: 0; padding: 0 0 0 0;
  color: rgba(255, 255, 255, .6); font-family: var(--font-body); font-size: 14px; text-align: right;
  transition: color .3s;
}
.hero__dot::before {
  content: ""; position: absolute; right: calc(100% + 10px); top: 50%;
  width: 0; height: 1px; background: var(--white); transition: width .4s var(--ease);
}
.hero__dot:hover { color: var(--white); }
.hero__dot.is-active { color: var(--white); }
.hero__dot.is-active::before { width: 50px; }

/* ---------- Shared ---------- */
.card { background: var(--white); box-shadow: var(--shadow); }
.heading-sm { font-size: 28px; color: var(--navy); margin-bottom: 14px; }
.heading-sm--light { color: var(--white); }
.heading-lg { font-size: clamp(38px, 4vw, 48px); color: var(--navy); }

.text-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-size: 17px; letter-spacing: .5px; text-transform: uppercase; color: var(--orange-alt);
}
.text-link i { font-size: 13px; transition: transform .3s; }
.text-link:hover { color: var(--navy); }
.text-link:hover i { transform: translateX(5px); }

.btn {
  display: inline-block; border: 0; background: var(--orange); color: var(--white);
  transition: background .3s, transform .3s, box-shadow .3s;
}
.btn:hover { background: var(--navy-2); }
.btn:disabled { opacity: .6; cursor: wait; }
.btn--teko { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; letter-spacing: .5px; padding: 8px 20px 5px; align-self: flex-start; }
.btn--send {
  font-family: Helvetica, Arial, sans-serif; font-weight: 500; font-size: 16px; text-transform: uppercase; letter-spacing: 1px;
  padding: 14px 28px; border-radius: 4px; box-shadow: 0 6px 18px rgba(245, 150, 33, .35); align-self: flex-start;
}
.btn--send:hover { background: var(--navy); box-shadow: 0 6px 18px rgba(8, 23, 46, .3); transform: translateY(-2px); }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form input, .form textarea {
  width: 100%; font-family: var(--font-body); font-size: 13px; color: var(--navy);
  border: 1px solid transparent; outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.form input::placeholder, .form textarea::placeholder { color: #8e959f; }
.form--dark input { background: #F4F6FB; padding: 10px 14px; height: 40px; }
.form--dark input:focus { border-color: var(--orange); box-shadow: 0 0 0 3px rgba(245, 150, 33, .25); }
.form--light input, .form--light textarea { background: #F7F7F7; border-color: #EAEAEA; padding: 12px 16px; border-radius: 3px; }
.form--light input { height: 44px; }
.form--light textarea { resize: vertical; min-height: 130px; }
.form--light input:focus, .form--light textarea:focus { border-color: var(--orange); background: var(--white); }
.form .is-invalid { border-color: #e04848 !important; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form__msg { margin: 0; font-size: 13px; min-height: 1em; }
.form__msg.is-error { color: #e04848; }
.form__msg.is-success { color: #2fa36b; }
.form--dark .form__msg.is-success { color: #6fe0a7; }

/* ---------- Intro (welcome + callback) ---------- */
.intro { position: relative; z-index: 2; margin-top: -140px; padding-bottom: 40px; }
.intro__grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px; align-items: stretch; }
.intro__welcome { padding: 40px 30px 34px; }
.intro__lead { font-weight: 500; }
.intro__welcome .text-link { margin: 6px 0 26px; }
.intro__banner { width: 100%; }
.intro__callback { background: var(--navy); padding: 40px 30px; color: var(--white); display: flex; flex-direction: column; }
.intro__callback-text { color: var(--grey-light); font-weight: 600; font-size: 15px; margin-bottom: 26px; }

/* ---------- Commitment ---------- */
.commitment { padding: 70px 0 90px; }
.section-head { text-align: center; max-width: 900px; margin: 0 auto 50px; }
.section-head__line { display: block; width: 48px; height: 2px; background: var(--orange); margin: 14px auto 22px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.feature {
  position: relative; overflow: hidden; display: block;
  padding: 50px 36px 44px; min-height: 290px;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.feature:hover { transform: translateY(-8px); box-shadow: 0 20px 45px rgba(8, 23, 46, .18); }
.feature__icon { display: block; font-size: 30px; color: var(--orange); margin-bottom: 26px; transition: transform .4s var(--ease); }
.feature:hover .feature__icon { transform: scale(1.12) rotate(-6deg); }
.feature__title { font-size: 28px; margin-bottom: 12px; }
.feature p { margin: 0; }

.feature--navy { background: var(--navy); }
.feature--navy .feature__title { color: var(--white); }
.feature--navy p { color: var(--grey-light); }

.feature--light { background: var(--bg-light); }
.feature--light .feature__title { color: var(--navy); }

.feature--orange { background: var(--orange); }
.feature--orange .feature__icon { color: var(--white); }
.feature--orange .feature__title { color: var(--white); }
.feature--orange p { color: #F5F5F5; }

.feature--image { background-size: cover; background-position: center; display: flex; flex-direction: column; justify-content: center; }
.feature--image::before { content: ""; position: absolute; inset: 0; background: rgba(8, 23, 46, .72); transition: background .4s; }
.feature--image:hover::before { background: rgba(8, 23, 46, .6); }
.feature--image > * { position: relative; }
.feature--image .feature__title { color: var(--white); }
.feature--image p { color: var(--grey-light); }

/* ---------- Contact ---------- */
.contact { padding: 30px 0 90px; }
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; box-shadow: var(--shadow); }
.contact__map { min-height: 480px; background: #e5e3df; }
.contact__map iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.contact__form { padding: 30px 40px 40px; box-shadow: none; }
.contact__form .heading-lg { margin-bottom: 24px; }
.contact__box-title { font-family: Helvetica, Arial, sans-serif; font-size: 20px; font-weight: 700; color: #101010; margin-bottom: 8px; }
.contact__box-text { font-family: Helvetica, Arial, sans-serif; font-size: 14px; color: #999; padding-bottom: 18px; margin-bottom: 22px; border-bottom: 1px solid #eee; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--white); text-align: center; padding: 22px 0; font-size: 15px; }
.footer p { margin: 0; }
.footer strong { font-weight: 700; }

/* ---------- Popup ---------- */
.popup {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center; padding: 20px;
  background: rgba(8, 23, 46, .78);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  animation: fadeIn .4s ease;
}
.popup[hidden] { display: none; }
.popup.is-closing { animation: fadeOut .3s ease forwards; }
.popup.is-closing .popup__box { animation: popOut .3s ease forwards; }
.popup__box {
  position: relative; display: flex; flex-direction: column;
  /* follow the flyer's aspect ratio (≈0.78) so short screens don't get empty side bands */
  width: min(440px, 100%, max(300px, calc((100dvh - 120px) * .78)));
  max-height: calc(100dvh - 40px);
  container-type: inline-size;
  background: var(--white); border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  border-top: 5px solid var(--orange);
  animation: popIn .5s var(--ease);
}
.popup__media { flex: 1 1 auto; min-height: 0; background: #f4f6fb; }
.popup__media img { width: 100%; height: 100%; max-height: calc(100dvh - 160px); object-fit: contain; }
.popup__footer {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 18px; background: var(--navy);
}
.popup__title { margin: 0; white-space: nowrap; font-family: var(--font-head); font-size: 22px; line-height: 1; letter-spacing: .5px; text-transform: uppercase; color: var(--white); padding-top: 3px; }
.popup__title i { color: var(--orange); margin-right: 6px; font-size: 17px; }
.popup__actions { display: flex; gap: 8px; }
.popup__btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 14px; border-radius: 6px;
  font-size: 13px; font-weight: 600; color: var(--white); white-space: nowrap;
  transition: transform .25s, filter .25s;
}
.popup__btn:hover { transform: translateY(-2px); filter: brightness(1.08); }
.popup__btn--call { background: var(--orange); }
.popup__btn--wa { background: #25D366; }
.popup__close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--white);
  background: var(--navy); color: var(--white); font-size: 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
  transition: background .25s, transform .3s;
}
.popup__close:hover, .popup__close:focus-visible { background: var(--orange); transform: rotate(90deg); outline: none; }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popOut { to { opacity: 0; transform: scale(.94) translateY(10px); } }
@container (max-width: 400px) {
  .popup__footer { flex-direction: column; align-items: stretch; text-align: center; gap: 10px; padding: 12px 14px 14px; }
  .popup__actions .popup__btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
  .popup { padding: 14px; }
  .popup__media img { max-height: calc(100dvh - 190px); }
}

/* Honeypot field – hidden from humans, visible to bots */
.form__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: scale(.9) translateY(20px); } to { opacity: 1; transform: none; } }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.features .reveal:nth-child(3n+2) { transition-delay: .1s; }
.features .reveal:nth-child(3n+3) { transition-delay: .2s; }
.feature.reveal.is-visible:hover { transform: translateY(-8px); }
.no-js .reveal { opacity: 1; transform: none; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .header__partners { width: 190px; }
  .nav__list { gap: 26px; }
}

/* Tablet & below: off-canvas menu, partners strip under header */
@media (max-width: 1024px) {
  :root { --header-h: 80px; }
  .header__logo img { width: 150px; }
  .header__partners { display: none; }
  .hamburger { display: block; }

  .nav {
    position: fixed; top: 0; right: 0; bottom: 0; z-index: 200;
    width: min(320px, 85vw); padding: 24px;
    background: var(--white); box-shadow: -10px 0 40px rgba(0, 0, 0, .15);
    display: flex; flex-direction: column; gap: 24px;
    transform: translateX(100%); transition: transform .4s var(--ease);
    overflow-y: auto;
  }
  .nav.is-open { transform: none; }
  .nav__head { display: flex; align-items: center; justify-content: space-between; }
  .nav__head img { width: 140px; }
  .nav__close { background: none; border: 0; font-size: 22px; color: var(--navy); padding: 6px; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid #eee; }
  .nav__link { padding: 14px 0 10px; font-size: 20px; }
  .nav__link::after { display: none; }
  .nav__link.is-active { color: var(--orange); }
  .nav__contact { display: flex; flex-direction: column; gap: 10px; font-size: 14px; font-weight: 500; }
  .nav__contact a { color: var(--navy); }
  .nav__contact i { color: var(--orange); width: 20px; }

  .nav-overlay {
    display: block; position: fixed; inset: 0; z-index: 150;
    background: rgba(8, 23, 46, .5); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  }
  .nav-overlay.is-open { opacity: 1; visibility: visible; }
  /* header is a stacking context – lift it above the overlay while the menu is open */
  .menu-open .header { z-index: 160; }

  .partners-strip { display: block; background: var(--white); padding: 20px 15px 30px; }
  .partners-strip img { width: min(720px, 100%); margin: 0 auto; }

  .hero { height: 580px; }
  .intro { margin-top: -70px; }
  .intro__grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { order: -1; }
  .contact__map, .contact__map iframe { min-height: 400px; }
  .feature--image { grid-column: 1 / -1; min-height: 220px; }
}

@media (max-width: 767px) {
  body { font-size: 14px; }
  .topbar__inner { flex-direction: column; justify-content: center; gap: 6px; padding: 10px 15px; text-align: center; font-size: 13px; }
  .topbar__right { flex-wrap: wrap; justify-content: center; gap: 12px; }

  .hero { height: 600px; }
  .slide__content { padding: 40px 15px 90px; }
  .slide__title { font-size: 44px; }
  .hero__dots { top: auto; bottom: 30px; right: auto; left: 50%; transform: translateX(-50%); flex-direction: row; gap: 26px; }
  .hero__dot::before { display: none; }
  .hero__dot.is-active { color: var(--orange); }

  .intro { margin-top: 0; padding-top: 30px; }
  .intro__welcome, .intro__callback { padding: 30px 20px; }
  .heading-sm { font-size: 24px; }

  .commitment { padding: 50px 0 60px; }
  .section-head { margin-bottom: 34px; }
  .features { grid-template-columns: 1fr; gap: 20px; }
  .feature { min-height: 0; padding: 36px 26px 32px; }
  .feature__title { font-size: 25px; }

  .contact { padding: 10px 0 60px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__form { order: -1; padding: 30px 20px; }
  .contact__map, .contact__map iframe { min-height: 340px; }
  .form__row { grid-template-columns: 1fr; }
  .btn--send { width: 100%; }

  .footer { font-size: 13px; }
}

@media (max-width: 400px) {
  .header__logo img { width: 130px; }
}
