/* Actea Partnering — single stylesheet. Measurements mirror the original Divi build. */

@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/open-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --dark: #272e2f;
  --black: #111;
  --teal: #006d77;
  --teal-light: #6ba4ad;
  --teal-link: #508894;
  --heading: #333;
  --text: #191919;
  --body: #666;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #fff;
  color: var(--body);
  font: 500 14px/1.7 "Open Sans", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--heading); padding-bottom: 10px; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }

.container { width: 80%; max-width: 1080px; margin: 0 auto; }

.copy {
  font-family: Manrope, sans-serif;
  font-size: 15px;
  line-height: 23.8px;
  letter-spacing: .5px;
  color: var(--text);
}
.copy p + p { padding-top: 15px; }

/* ---------- Header ---------- */

.site-header { background: var(--dark); padding: 17px 0; position: relative; z-index: 10; }

.nav-bar {
  width: 80%;
  max-width: 1150px;
  height: 76px;
  margin: 0 auto;
  padding: 0 30px;
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 50px;
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, .03);
  position: relative;
}

.logo img { width: 245px; }

.nav-links { display: flex; margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav-links a {
  display: block;
  padding: 0 11px;
  color: var(--heading);
  font-size: 16px;
  font-weight: 700;
  line-height: 76px;
  text-transform: uppercase;
  transition: opacity .3s;
}
.nav-links a:hover { opacity: .7; }

.btn-contact {
  margin-left: 29px;
  padding: 9px 30px;
  border: 2px solid var(--black);
  border-radius: 50px;
  background: var(--black);
  color: #fff;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  transition: all .3s;
}
.btn-contact:hover { background: transparent; color: var(--black); }

.menu-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0;
  background: linear-gradient(rgba(0, 0, 0, .34), rgba(0, 0, 0, .34)),
              url("../images/ap-header.webp") center / cover no-repeat;
}

.hero-box {
  width: calc(50% - 110px);
  margin-left: 110px;
  padding: 50px;
  background: rgba(17, 17, 17, .63);
}
.hero-box h1 { color: #fff; font-size: 50px; font-weight: 600; line-height: 1.1; }

.btn-outline {
  display: inline-block;
  margin-top: 20px;
  padding: 7px 25px;
  border: 2px solid #fff;
  border-radius: 50px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  transition: all .3s;
}
.btn-outline:hover { background: var(--teal); border-color: var(--teal); }

.tabs { display: flex; }
.tabs a { flex: 1; padding: 30px 0; background: var(--black); text-align: center; }
.tabs a:nth-child(2) { background: var(--teal); }
.tabs span { display: block; padding-bottom: 10px; color: #fff; font-size: 24px; font-weight: 600; line-height: 1; }
.tabs a:first-child span { font-size: 23px; font-weight: 700; }

/* ---------- Services ---------- */

.services { background: rgba(107, 164, 173, .03); }

.services-intro { width: 65%; max-width: 936px; margin: 0 auto 55px; padding: 57px 0 27px; }
.section-title { margin-bottom: 32px; font-size: 32px; font-weight: 700; line-height: 1.3; text-align: center; }
.services-intro h2:not(.section-title) { margin-bottom: 10px; font-size: 26px; font-weight: 600; line-height: 1; }
.services-intro .copy { margin-bottom: 20px; }

.service { display: flex; width: 80%; max-width: 1050px; margin: 0 auto 30px; }
.service:last-child { margin-bottom: 0; }
.service > * { flex: 1 1 50%; min-width: 0; }
.service-img img { width: 100%; box-shadow: 6px 6px 36px rgba(0, 0, 0, .3); }
.service-img.soft img { box-shadow: 6px 6px 18px rgba(0, 0, 0, .3); }
.service-text { padding: 40px 50px 20px; background: #fff; }
.service-text.first { padding-top: 50px; }
.service-text h3 { margin-bottom: 10px; font-size: 25px; font-weight: 600; line-height: 1; }
/* The original In-licensing list sits slightly wider than its heading. */
.service-text .wide { margin: 0 -11px 0 -15px; }

/* ---------- About ---------- */

.about { padding: 63px 0 76px; }
.about-title { width: 74%; margin: 0 auto 43px; padding: 27px 0; }
.about-title h2 { font-size: 28px; font-weight: 700; line-height: 1.3; text-align: center; }

.about-top { display: flex; align-items: flex-start; padding: 0 21px; }
.about-photo { flex: 0 0 45.86%; margin-top: 26px; }
.about-photo img { width: 100%; box-shadow: 0 2px 18px rgba(0, 0, 0, .3); }
.about-card {
  flex: 0 0 47.2%;
  margin: 41px 0 -39px -8px;
  padding: 40px 35px;
  background: var(--teal-light);
  position: relative;
  z-index: 1;
}
.about-card h2 { margin-top: -11px; margin-bottom: 6px; color: #000; font-size: 28px; font-weight: 700; line-height: 1.35; }

.linkedin {
  display: block;
  width: 32px;
  height: 32px;
  margin-bottom: 10px;
  padding: 8px;
  border-radius: 3px;
  background: #007bb6;
}

.about .copy { color: #000; line-height: 27px; letter-spacing: normal; }
.about .copy p + p { padding-top: 0; }

.about-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  width: 88%;
  margin: 0 auto;
  padding: 17px 21px 0;
  background: var(--teal-light);
}
.about-band .copy { padding: 21px 20px; }
.about-band .copy + .copy { margin-left: -21px; padding: 20px 3px 0 0; }

/* ---------- Contact ---------- */

.contact { background: var(--dark); padding: 86px 0; }
.contact h2 { color: #fff; font-size: 28px; font-weight: 700; line-height: 1.3; text-align: center; }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3%;
  width: 80%;
  max-width: 1152px;
  margin: 50px auto 0;
  align-items: start;
}

.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 25px 35px 25px 8px;
  border: 2px solid transparent;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 12px 18px -6px rgba(0, 0, 0, .06);
  color: #444;
  font-weight: 600;
  line-height: 1;
  transition: all .3s;
}
.contact-card:hover { border-color: var(--teal-light); transform: translateY(-4px); }
.contact-card img { flex: none; width: 47px; padding: 10px; border-radius: 5px; background: #eee; }
.contact-card div { padding: 17px 0 10px; }
.contact-card:first-child div { padding-top: 10px; }
.contact-card:last-child div { padding-bottom: 0; }
.contact-card small { display: block; margin-top: 10px; color: var(--body); font-size: 10px; font-weight: 500; }

/* ---------- Footer ---------- */

.site-footer { background: rgba(39, 46, 47, .8); color: #fff; font-size: 13px; font-weight: 600; line-height: 23.8px; }
.site-footer .container { display: flex; justify-content: space-between; gap: 20px; padding: 6px 0; }
.site-footer a { white-space: nowrap; }
.site-footer .credit a { color: #e2fbff; }
.site-footer .heart { color: #f00; }

/* ---------- Imprint page ---------- */

.legal { padding: 88px 0 81px; }
.legal h1 { width: 71%; margin: 0 auto 98px; padding-top: 6px; font-size: 38px; font-weight: 700; line-height: 1.2; text-align: center; }
.legal-body { color: #2b2b2b; font-weight: 600; }
.legal-body p { padding-bottom: 14px; }
.legal-body p:last-child { padding-bottom: 0; }
.legal-body h2 { font-size: 18px; line-height: 1; }
.legal-body a { color: var(--teal-link); }

/* ---------- Cookie banner ---------- */

.cookie-banner {
  position: fixed;
  bottom: 40px;
  left: 40px;
  z-index: 100;
  width: 440px;
  padding: 20px 26px;
  border: 1px solid #f4f4f4;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 -1px 10px rgba(172, 171, 171, .3);
  color: #212121;
  font-size: 14px;
  font-weight: 400;
  line-height: 24px;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner .title { margin-bottom: 12px; font-size: 18px; font-weight: 700; }
.cookie-banner button {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 8px;
  border: 2px solid #1863dc;
  border-radius: 2px;
  background: #1863dc;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 24px;
  cursor: pointer;
}
.cookie-banner button:hover { opacity: .8; }

@media (max-width: 576px) {
  .cookie-banner { bottom: 0; left: 0; }
}
@media (max-width: 440px) {
  .cookie-banner { width: 100%; padding: 20px 24px; }
}

/* ---------- Tablet & phone ---------- */

@media (max-width: 980px) {
  .site-header { padding: 15px 0; }
  .nav-bar { width: 95%; height: 58px; padding: 10px 14px; }
  .logo img { width: 143px; }

  .menu-toggle {
    display: block;
    width: 38px;
    height: 38px;
    margin-left: auto;
    padding: 0;
    border: 0;
    background: url("../icons/menu.svg") center / 38px no-repeat;
    cursor: pointer;
  }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 10px);
    left: 14px;
    width: 320px;
    max-width: calc(100% - 28px);
    padding: 5%;
    border-top: 3px solid var(--teal-link);
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .1);
  }
  .nav-bar.open .nav-links { display: flex; }
  .nav-links a { padding: 10px 5%; border-bottom: 1px solid rgba(0, 0, 0, .03); line-height: 1.7; }

  .btn-contact { margin-left: 20px; padding: 7px 20px; font-size: 12px; line-height: 1.7; }

  .hero { padding: 80px 0 47px; }
  .hero-box { width: auto; margin: 0 20px; padding: 30px 25px; }
  .hero-box h1 { font-size: 32px; }
  .btn-outline { padding: 7px 22px; font-size: 14px; }

  .tabs { flex-direction: column; }
  .tabs a { padding: 30px 0 25px; }
  .tabs span { font-size: 22px; }

  .services-intro { width: 90%; margin-bottom: 3px; padding: 57px 0 30px; }
  .section-title { font-size: 25px; margin-bottom: 15px; }

  .service { flex-direction: column; width: 90%; margin-bottom: 30px; padding-bottom: 40px; }
  .service-img { order: -1; }
  .service-text, .service-text.first { padding: 20px 25px 0; }
  .service-text h3 { font-size: 22px; }

  .about { padding-top: 26px; }
  .about .container { width: 100%; }
  .about-title { width: 95%; margin-bottom: 2px; padding: 13px 0 30px; }
  .about-title h2 { font-size: 20px; }
  .about-top { flex-direction: column; align-items: stretch; width: 85%; margin: 0 auto; padding: 0; }
  .about-photo { margin: 14px 1% 0; }
  .about-card { margin: 0; padding: 20px; }
  .about-card h2 { margin-top: 0; font-size: 22px; }
  .about-band { grid-template-columns: 1fr; gap: 0; width: 85%; padding: 0; }
  .about-band .copy { padding: 0 21px; }
  .about-band .copy + .copy { margin-left: 0; padding: 11px 23px 46px; }
  .service-text .wide { margin: 0; }

  .contact { padding: 45px 0 66px; }
  .contact h2 { font-size: 25px; }
  .contact-cards { grid-template-columns: 1fr; gap: 30px; width: 93%; margin-top: 20px; }
  .contact-card { padding: 15px; }

  .site-footer { font-size: 12px; }
  .site-footer .container { flex-direction: column; gap: 0; text-align: center; }

  .legal { padding: 50px 0; }
  .legal h1 { width: 100%; margin-bottom: 40px; font-size: 30px; }
}
