/* Proximal Development — static rebuild of the WordPress/Elementor site.
   Values (colors, type scale, spacing) are taken from the original Elementor kit. */

:root {
  --primary: #1C244B;      /* headings, nav */
  --secondary: #F3F5F8;    /* light section bg */
  --text: #324A6D;         /* body text */
  --accent: #467FF7;       /* links, footer bar */
  --line: #C8D5DC;         /* borders, hover tint */
  --light-bg: #F9FAFD;
  --teal: #1AA9AB;         /* Proximal brand / hero */
  --red: #C50014;          /* feature icons */
  --gold: #E7B036;
  --white: #FFFFFF;
  --gutter: 8%;
  --header-h: 72px;
  --font: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: var(--primary); }
h1, h2, h3, h4, h5, h6 { margin: 0; color: var(--primary); font-weight: 600; line-height: 1.2; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--primary); color: #fff; padding: 8px 16px; }
.skip-link:focus { left: 8px; top: 8px; color: #fff; }

/* Anchor offsets under the sticky header */
#services, #faq, #about, #testimonials { scroll-margin-top: calc(var(--header-h) + 20px); }

/* Shared type */
.section-title { font-size: 65px; font-weight: 600; text-align: center; }
.section-subtitle { font-size: 22px; font-weight: 300; line-height: 1.5; color: var(--primary); text-align: center; margin-top: 10px; }
.box-title { font-size: 22px; font-weight: 600; text-transform: capitalize; line-height: 1.2; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font); font-size: 16px; font-weight: 400; line-height: 1;
  padding: 16px 40px; border: 0; border-radius: 3px; cursor: pointer;
  background: var(--teal); color: var(--white);
  transition: background-color .25s, color .25s, box-shadow .25s, transform .25s;
}
.btn:hover, .btn:focus-visible { color: var(--white); background: #148a8c; }
.btn--pill { border-radius: 3em; font-size: 18px; line-height: 1.3; padding: 18px 40px; }
.btn--pill:hover { box-shadow: 0 0 10px rgba(0, 0, 0, .5); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 95;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(28, 36, 75, .06);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h); padding: 0 var(--gutter);
}
.site-logo { display: block; padding: 11px 11px 11px 0; }
.site-logo img { height: 50px; width: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 30px; }
.main-nav a {
  position: relative; display: block; padding: 5px 0;
  font-size: 16px; font-weight: 400; line-height: 1; text-transform: capitalize;
  color: var(--primary);
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: var(--text); transform: scaleX(0); transition: transform .25s;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a:hover::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav-toggle {
  display: none; background: transparent; border: 0; padding: 8px; cursor: pointer;
  color: var(--accent); font-size: 20px; line-height: 1;
}

/* ---------- Hero ---------- */
.hero { position: relative; height: 800px; overflow: hidden; background: #000; }
.hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__slides { position: relative; height: 100%; background: rgba(28, 36, 75, .74); }
.hero__slide {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 0 5%;
  opacity: 0; visibility: hidden; transform: translateX(40px);
  transition: opacity 1.3s ease, transform 1.3s ease, visibility 0s linear 1.3s;
}
.hero__slide.is-active {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 1.3s ease, transform 1.3s ease, visibility 0s;
}
.hero__heading {
  color: var(--teal); font-size: 73px; font-weight: 700; line-height: 1.2;
  margin-bottom: 30px; text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}

/* ---------- Services ---------- */
.services { padding: 5% var(--gutter) 0; }
.services__grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 90px; margin-top: 90px;
}
.service img { width: 100%; height: auto; aspect-ratio: 920 / 720; object-fit: cover; margin-bottom: 20px; transition: transform .3s; }
.service:hover img { transform: scale(1.03); }
.service .box-title { margin-bottom: 15px; }

/* ---------- Why work with us ---------- */
.why { background: var(--secondary); margin-top: 12%; padding: 5% var(--gutter) 8%; }
.why__grid { display: flex; justify-content: space-between; gap: 10%; margin-top: 80px; }
.feature { flex: 0 0 25%; max-width: 25%; text-align: center; }
.feature__icon {
  font-size: 45px; color: var(--red); margin-bottom: 20px;
  display: inline-block; transition: transform .25s;
}
.feature:hover .feature__icon { transform: scale(.9); }
.feature .box-title { margin-bottom: 10px; }

/* ---------- FAQ ---------- */
.faq { margin-top: 12%; padding: 0 12%; }
.faq .section-title { margin-bottom: 20px; }
.faq__cols { display: flex; justify-content: space-between; gap: 0; }
.faq__col { width: 50%; padding-top: 30px; border-top: .5px solid var(--line); }
.faq__col + .faq__col { padding-left: 20px; }
.faq__item summary {
  list-style: none; cursor: pointer; padding: 0 0 30px;
  font-size: 16px; font-weight: 400; line-height: 1.4; color: var(--primary);
  display: flex; gap: 12px; align-items: baseline;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "+"; flex: 0 0 auto; width: 1em; font-weight: 600; color: var(--accent);
}
.faq__item[open] summary::before { content: "\2212"; }
.faq__item summary:hover { color: var(--accent); }
.faq__answer { padding: 0 50px 30px 0; margin-left: calc(1em + 12px); }

/* ---------- Team ---------- */
.team {
  display: flex; align-items: center; margin-top: 10%; padding: 0 var(--gutter);
}
.team__media {
  width: 50%; min-height: 544px;
  background: url("../img/team.webp") center / cover no-repeat;
}
.team__body { width: 50%; padding: 0 3%; }
.team__body h2 { font-size: 65px; margin-bottom: 20px; }
.team__body .btn { width: 100%; margin-top: 20px; }

/* ---------- Testimonials ---------- */
.testimonials {
  background: var(--light-bg); margin-top: 5%; padding: 5% var(--gutter) 10%;
  display: flex; flex-direction: column; align-items: center; gap: 50px;
}
.rating { color: var(--gold); font-size: 44px; line-height: 1; letter-spacing: 0; }
.testimonial { width: 100%; max-width: 1100px; }
.testimonial__body p { margin-bottom: 1.2em; }
.testimonial__author { display: flex; align-items: center; gap: 16px; margin-top: 30px; }
.testimonial__author img { width: 80px; height: 80px; border-radius: 50%; border: 1px solid var(--primary); object-fit: cover; }
.testimonial__name { display: block; font-size: 16px; font-style: italic; font-weight: 400; color: var(--primary); text-transform: capitalize; }
.testimonial__job { display: block; font-size: 13px; font-weight: 400; line-height: 1.1; color: var(--text); }

/* ---------- Simple content pages ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 60px 5% 100px; }
.page h1 { font-size: 65px; text-align: center; margin-bottom: 20px; }
.page__content { padding: 50px; }
.page__content h2 { font-size: 28px; margin: 1.4em 0 .6em; }
.page__content h2:first-child { margin-top: 0; }

/* ---------- 404 ---------- */
.notfound {
  min-height: 88vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 5%;
  background: url("/assets/img/404-bg.webp") bottom right / cover no-repeat;
}
.notfound h1 { font-size: 200px; line-height: 1; }
.notfound p { margin: 10px 0 30px; }
.notfound .btn { padding: 16px 55px; }

/* ---------- Footer ---------- */
.site-footer__main { display: flex; padding: 5% var(--gutter); }
.footer-about { width: 46%; padding-right: 20%; display: flex; flex-direction: column; gap: 30px; }
.footer-about img { width: 50%; height: auto; }
.footer-col { width: 22.366%; }
.footer-col--links { width: 17%; }
.footer-col--social { width: 20%; }
.footer-col h2 { font-size: 22px; font-weight: 600; text-transform: capitalize; margin-bottom: 20px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }
.footer-col a, .footer-col li { color: var(--text); transition: color .3s; }
.footer-col a:hover { color: var(--line); }
.social { display: flex; gap: 5px; }
.social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); color: var(--white); font-size: 18px;
  transition: transform .2s, background-color .2s;
}
.social a:hover { color: var(--white); background: var(--accent); transform: scale(1.1); }
.site-footer__bar {
  background: var(--accent); min-height: 45px; padding: 10px var(--gutter);
  display: flex; align-items: center; justify-content: center;
}
.site-footer__bar ul {
  list-style: none; margin: 0; padding: 0; width: 40%;
  display: grid; grid-template-columns: 1fr 1fr; justify-items: center; gap: 10px;
}
.site-footer__bar li, .site-footer__bar a { color: var(--white); font-size: 16px; }
.site-footer__bar a:hover { color: var(--primary); }

/* ---------- Calendly popup close button (from the original custom CSS) ---------- */
.calendly-popup-close {
  top: 30px !important; right: 30px !important; font-size: 32px !important;
  color: #ff0000 !important; background: rgba(255, 0, 0, .15); border-radius: 50%;
  padding: 12px !important; z-index: 999999 !important; cursor: pointer !important;
  transform: scale(1.3);
}
.calendly-popup-close:hover { background: rgba(255, 0, 0, .35) !important; color: #fff !important; }

/* ---------- Tablet (≤1024px) ---------- */
@media (max-width: 1024px) {
  :root { --gutter: 5%; }
  body { font-size: 14px; }
  .section-title, .team__body h2, .page h1 { font-size: 45px; }
  .section-subtitle { font-size: 14px; }
  .main-nav a { font-size: 13px; }
  .hero__heading { font-size: 45px; }
  .services { padding-top: 16%; }
  .services__grid { grid-template-columns: repeat(2, 1fr); gap: 60px; margin-top: 60px; }
  .why { margin-top: 25%; padding: 12% var(--gutter); }
  .why__grid { flex-wrap: wrap; gap: 90px; padding: 0 10%; justify-content: space-between; }
  .feature { flex-basis: 40%; max-width: 40%; }
  .faq { margin-top: 25%; padding: 0 8%; }
  .faq__cols { flex-direction: column; gap: 0; }
  .faq__col { width: 100%; }
  .faq__col + .faq__col { padding: 0; border-top: 0; }
  .faq__answer { padding-right: 0; }
  .team { flex-direction: column-reverse; margin-top: 25%; gap: 40px; }
  .team__media, .team__body { width: 100%; }
  .team__body { padding-right: 20%; }
  .testimonials { margin-top: 25%; }
  .testimonial { padding: 0 15%; }
  .site-footer__main { flex-wrap: wrap; padding: 8% var(--gutter); }
  .footer-about { order: 99; width: 100%; padding-right: 35%; margin-top: 8%; }
  .footer-col, .footer-col--links { width: 25%; }
  .footer-col--social { width: 50%; padding-right: 15%; }
  .site-footer__bar ul { width: 100%; }
  .notfound h1 { font-size: 145px; }
}

/* ---------- Mobile (≤767px) ---------- */
@media (max-width: 767px) {
  :root { --header-h: 56px; }
  .section-title, .team__body h2, .page h1 { font-size: 28px; line-height: 1.1; }
  .box-title { font-size: 18px; }
  .site-logo { max-width: 181px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--secondary); display: none;
  }
  .main-nav.is-open { display: block; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px var(--gutter); font-size: 14px; }
  .main-nav a::after { display: none; }
  .main-nav a:hover, .main-nav a[aria-current="page"] { background: var(--light-bg); }
  .hero { height: 418px; }
  .hero__heading { font-size: 28px; line-height: 1.1; }
  .btn { font-size: 14px; padding: 14px 28px; }
  .services { padding: 65px 20px 0; }
  .services__grid { grid-template-columns: 1fr; gap: 60px; }
  .why { margin-top: 35%; padding: 25% var(--gutter); }
  .why__grid { padding: 0; gap: 70px; justify-content: center; margin-top: 60px; }
  .feature { flex-basis: 90%; max-width: 90%; }
  .feature__icon { font-size: 80px; }
  .faq { margin-top: 35%; padding: 0 5%; }
  .team__body { padding: 0; }
  .team__media { min-height: 300px; }
  .btn--pill { width: 100%; font-size: 13px; line-height: 1.1; }
  .testimonials { margin-top: 35%; }
  .testimonial { padding: 0; }
  .rating { font-size: 40px; }
  .testimonial__job { font-size: 13px; }
  .page__content { padding: 30px 0; }
  .site-footer__main { padding: 20% var(--gutter); }
  .footer-col--social { order: -1; width: 100%; padding-right: 0; margin-bottom: 25%; }
  .footer-col, .footer-col--links { width: 50%; }
  .footer-about { padding-right: 0; margin-top: 25%; }
  .site-footer__bar ul { grid-template-columns: 1fr; gap: 4px; }
  .notfound h1 { font-size: 100px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__slide, .hero__slide.is-active { transition: none; transform: none; }
}

/* ---------- Support page ---------- */
.support__lead { font-size: 20px; text-align: center; margin-bottom: 40px; }
.support__options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 30px; margin-bottom: 50px; }
.support__card { background: var(--light-bg); border: 1px solid var(--line, #C8D5DC); padding: 40px 30px; text-align: center; }
.support__card .fas { font-size: 40px; color: var(--teal); margin-bottom: 15px; }
.support__card h2 { margin-top: 0; }
.support__card p { margin-bottom: 25px; }
.support ul { padding-left: 1.2em; list-style: disc; }
.support li { margin-bottom: .4em; }
@media (max-width: 767px) { .support__options { grid-template-columns: 1fr; } }
