/* Percepteev website - rebuilt from the 2023 Flatsome/WordPress site.
   Tokens mirror the old theme customizer: Inter, primary #446084,
   83px header, black footer, #2d2d2d copyright bar. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --primary: #446084;
  --primary-hover: #3a5370;
  --text: #777;
  --heading: #555;
  --accent-icon: #4a7f95;
  --header-h: 83px;
  --container: 1080px;
  --footer-bg: #000;
  --footer-bar: #2d2d2d;
  --white: #fff;
}

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

html { background: var(--footer-bar); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 100%;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }

h1, h2, h3, h4 {
  font-weight: 700;
  color: var(--heading);
  line-height: 1.2;
  margin: 0 0 .5em;
}
h1 { font-size: 1.7em; }
h2 { font-size: 1.6em; }
h3 { font-size: 1.25em; }

p { margin: 0 0 1.3em; }

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

.skip-link {
  position: absolute; left: -999px; top: 8px;
  background: var(--primary); color: #fff; padding: 8px 12px; border-radius: 4px; z-index: 100;
}
.skip-link:focus { left: 8px; color: #fff; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 15px rgba(0, 0, 0, .1);
}
.site-header .container {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: inline-flex; align-items: center; }
.logo img { width: 197px; max-height: var(--header-h); }

.nav {
  display: flex;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: block;
  padding: 10px 7px;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(102, 102, 102, .85);
}
.nav a:hover { color: #111; }
.nav a[aria-current="page"] { color: #000; }

/* Buttons ----------------------------------------------------------------- */

.btn {
  display: inline-block;
  padding: 0 1.2em;
  line-height: 2.4em;
  font-size: .8em;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  border: 0;
  cursor: pointer;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--primary-hover); color: #fff; transform: translateY(-1px); }
.btn-lg { font-size: .9em; line-height: 2.6em; padding: 0 1.6em; }

/* Home hero --------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 480px;
  padding-top: 56.25%;
  background: #fff url("../img/hero-home.webp") center / cover no-repeat;
  color: #fff;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background: rgba(32, 32, 32, .465);
}
.hero .hero-inner {
  position: absolute; inset: 0; z-index: 1;
  display: flex; align-items: center;
}
.hero .hero-text {
  width: 60%; max-width: 640px;
  padding-left: max(40px, calc((100% - var(--container)) / 2 + 55px));
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: 0 0 .25em;
}
.hero p {
  color: #fff;
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  line-height: 1.1;
  margin: 0;
}

/* Page hero (contact) ----------------------------------------------------- */

.page-hero {
  position: relative;
  padding: 100px 20px 200px;
  background: #333 url("../img/hero-contact.jpg") 55% 100% / cover no-repeat;
  text-align: center;
  color: #fff;
}
.page-hero::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .12); }
.page-hero > * { position: relative; z-index: 1; }
.page-hero h1 { color: #fff; font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 0 0 .2em; }
.page-hero p { color: #fff; font-size: clamp(1.1rem, 2.2vw, 1.6rem); margin: 0; }

/* Generic sections -------------------------------------------------------- */

.section { padding: 30px 0; }

.row { display: flex; flex-wrap: wrap; align-items: center; }
.col { flex: 1 1 100%; min-width: 0; }
.col-half { flex: 1 1 50%; }

.feature-img { width: 100%; }
.feature-img img { width: 100%; max-width: 430px; aspect-ratio: 380 / 583; object-fit: cover; }
.feature-img.right img { margin-left: auto; }

.feature-text { padding: 20px; }
.feature-text h2 { font-size: 2rem; line-height: 1; margin-bottom: .6em; }
.feature-text .lead { margin-bottom: .5em; }

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

.contact-card {
  background: #fff;
  margin-top: -120px;
  position: relative;
  z-index: 2;
  padding: 50px 40px 10px;
}
.contact-card .col-half { align-self: flex-start; }
.contact-card { padding-bottom: 60px; }
.contact-card .contact-info { flex-basis: 100%; }
.contact-info { padding-right: 20px; }
.contact-ask { padding-left: 20px; }
.icon-box { display: flex; gap: 18px; align-items: flex-start; margin: 20px 0 25px; }
.icon-box img { width: 48px; flex: 0 0 48px; }
.icon-box h3 { text-transform: uppercase; letter-spacing: .05em; font-size: 1.1em; margin: 4px 0 2px; }
.icon-box p { margin: 0; }
.contact-ask p { margin-bottom: 1.2em; }
.contact-ask .email-big {
  display: inline-block;
  font-size: 1.25em;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 1.2em;
  word-break: break-all;
}

/* Prose (privacy) --------------------------------------------------------- */

.prose { max-width: 780px; padding: 40px 15px 60px; margin: 0 auto; }
.prose h1 { font-size: 2rem; margin-bottom: 1em; }
.prose h2 { font-size: 1.3em; margin-top: 1.8em; }
.prose address { font-style: normal; margin-top: 2em; }

/* Email-us card + footer -------------------------------------------------- */

.email-cta {
  position: relative;
  z-index: 3;
  margin-top: 50px;
  margin-bottom: -84px;
}
.email-cta .card {
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  box-shadow: 0 2px 24px rgba(0, 0, 0, .08);
  padding: 32px 48px 36px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.email-cta img { width: 50px; flex: 0 0 50px; }
.email-cta h2 { font-size: 1.25em; margin: 0 0 10px; }

.site-footer {
  background: var(--footer-bg);
  color: #fff;
  padding: 150px 0 90px;
  text-align: center;
}
.site-footer.no-cta { padding-top: 70px; }
.footer-nav {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 22px;
  margin: 0; padding: 0; list-style: none;
}
.footer-nav a {
  font-size: .8em; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #fff;
}
.footer-nav a:hover { color: #ccc; }

.footer-bar {
  background: var(--footer-bar);
  color: #d6d6d6;
  text-align: center;
  padding: 18px 15px;
  font-size: .9em;
}

/* Responsive -------------------------------------------------------------- */

@media (min-width: 850px) {
  .feature-text { padding: 0 15% 0 10%; }
  .feature-text.wide { padding: 0 25% 0 20%; }
  .section { padding: 40px 0; }
}

@media (max-width: 849px) {
  .col-half { flex-basis: 100%; }
  .feature-img img, .feature-img.right img { margin: 0 auto; }
  .contact-info, .contact-ask { padding: 0; }
  .contact-ask { margin-top: 30px; }
  .contact-card { padding: 40px 24px 10px; }
  .hero .hero-text { width: 80%; padding-left: 24px; }
}

@media (max-width: 549px) {
  :root { --header-h: 61px; }
  .logo img { width: 160px; }
  .nav a { padding: 8px 5px; font-size: .72em; }
  .hero { padding-top: 90%; min-height: 380px; }
  .hero .hero-text { width: 92%; padding-left: 16px; }
  .page-hero { padding: 70px 16px 150px; }
  .contact-card { margin-top: -90px; }
  .email-cta .card { padding: 24px 22px; }
  .site-footer { padding: 120px 0 70px; }
}
