/* Certus Ventures - static site styles */
:root {
  --navy: #030f27;
  --teal: #05cab6;
  --gold: #ca8405;
  --page: #f7f8fa;
  --text: #1c1c1c;
  --line: #dcdee1;
  --wrap: 1150px;
  --head: "Overpass", "Barlow", Arial, sans-serif;
  --body: "Barlow", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--page);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--head); line-height: 1.25; margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.icon { width: 18px; height: 18px; fill: var(--teal); flex: none; }

/* Top bar */
.topbar { padding: 30px 0 42px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo img { width: 230px; height: auto; }
.top-contacts { display: flex; }
.top-contact { border-left: 1px solid var(--line); padding: 10px 45px; }
.top-contact .label { font-weight: 600; color: #555; font-size: 15px; }
.top-contact .value { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 15px; }
.top-contact a { text-decoration: none; color: #000; }

/* Nav bar - overlaps the section below it */
.nav-holder { position: relative; z-index: 2; margin-bottom: -42px; }
.nav { background: var(--navy); display: flex; align-items: center; justify-content: space-between; min-height: 84px; padding: 0 45px; }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 20px; }
.nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 15px; }
.nav a:hover { color: var(--teal); }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: #fff; margin: 5px 0; }

/* Hero (home) */
.hero {
  background: url("/images/hero-miami.webp") center / cover no-repeat;
  color: #fff;
  padding: 150px 0 100px;
  position: relative;
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,15,39,.45), rgba(3,15,39,.05)); }
.hero .wrap { position: relative; }
.hero-text { max-width: 760px; }
.hero h1 { font-size: 36px; font-weight: 700; margin-bottom: 36px; }
.hero p { font-size: 17px; font-weight: 500; margin: 0; max-width: 700px; }

/* Section heading with teal underline */
.section-title { text-align: center; font-size: 36px; font-weight: 600; margin: 0 auto; max-width: 620px; }
.rule { width: 94px; height: 5px; background: var(--teal); border: 0; margin: 30px auto 0; }

/* Services */
.services { padding: 55px 0 50px; }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 62px; }
.card img { width: 80%; margin: 0 auto; aspect-ratio: 450 / 304; object-fit: cover; }
.card-body { border: 1px solid var(--line); background: var(--page); text-align: center; padding: 32px 50px; font-weight: 600; font-size: 18px; letter-spacing: .3px; }
.card-body p { margin: 0; }
.card-body p + p { margin-top: 22px; }

/* Page banners (contact / privacy) */
.banner { background: center / cover no-repeat; position: relative; color: #fff; }
.banner::before { content: ""; position: absolute; inset: 0; background: rgba(40,40,40,.55); }
.banner > * { position: relative; }
.banner h1 { text-align: center; font-size: 36px; font-weight: 700; }

/* Contact page */
.contact-banner { background-image: url("/images/contact-bg.jpg"); padding: 115px 0 45px; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px; margin-top: 67px; }
.contact-grid .pitch { font-family: var(--head); font-size: 22px; font-weight: 700; line-height: 1.5; margin: 0; }
.form-box { background: #fff; color: #555; padding: 50px 65px 55px; font-family: "Lato", Arial, sans-serif; }
.form-box label { display: block; font-size: 18px; margin-bottom: 6px; }
.form-box input, .form-box textarea { display: block; width: 100%; background: #ebebeb; border: 1px solid #c8c8c8; font: inherit; font-size: 16px; padding: 14px; margin-bottom: 26px; }
.form-box input { height: 57px; }
.form-box textarea { height: 165px; resize: vertical; margin-bottom: 20px; }
.form-box button { display: block; margin: 0 auto; background: var(--gold); color: #fff; border: 2px solid #744a02; border-radius: 6px; font-family: var(--body); font-size: 17px; font-weight: 700; padding: 13px 45px; cursor: pointer; }

/* Privacy page */
.privacy-banner { background-image: url("/images/privacy-bg.jpg"); padding: 70px 0 40px; margin: 0 20px; }
.privacy-banner::before { background: rgba(40,50,60,.35); }
.legal { max-width: 930px; margin: 0 auto; padding: 20px 16px 70px; font-family: Arial, Helvetica, sans-serif; font-size: 17px; line-height: 1.6; }
.legal h3 { font-family: Arial, Helvetica, sans-serif; font-weight: 400; font-size: 29px; margin: 26px 0 20px; }
.legal p { margin: 0 0 26px; }
.legal a { color: #0a58ca; word-break: break-word; }

/* 404 page */
.notfound { text-align: center; padding: 130px 0 90px; }
.notfound .rule { margin: 0 auto 26px; }
.notfound h1 { font-size: 38px; margin-bottom: 14px; }
.notfound p { font-size: 18px; margin: 0 0 30px; }
.home-btn { display: inline-block; background: var(--navy); color: #fff; text-decoration: none; font-weight: 700; font-size: 17px; padding: 14px 38px; border-radius: 4px; }
.home-btn:hover { background: var(--teal); }

/* Footer */
.footer { background: var(--navy); color: #fff; padding: 30px 0 35px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 30px; }
.footer h3 { font-size: 20px; font-weight: 700; margin: 5px 0 32px; }
.footer .about p { color: rgba(255,255,255,.7); font-size: 16px; line-height: 1.9; max-width: 290px; margin: 0; }
.footer .photo img { width: 100%; aspect-ratio: 360 / 270; object-fit: cover; }
.footer .contact h3 { margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { display: flex; gap: 22px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.2); color: rgba(255,255,255,.75); font-size: 16px; line-height: 1.6; }
.footer li:first-child { padding-top: 8px; }
.footer li a { text-decoration: none; color: inherit; }
.footer li a:hover { color: #fff; }
.copyright { text-align: center; font-size: 15px; margin: 55px 0 0; }

/* Tablet / mobile */
@media (max-width: 900px) {
  .topbar .wrap { flex-direction: column; }
  .top-contact { padding: 6px 20px; }
  .cards, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero h1, .section-title, .banner h1 { font-size: 28px; }
  .form-box { padding: 35px 25px; }
  .footer .about p { max-width: none; }
}
@media (max-width: 640px) {
  .top-contacts { flex-direction: column; gap: 10px; }
  .top-contact { border-left: 0; padding: 0; text-align: center; }
  .top-contact .value { justify-content: center; }
  .nav { padding: 0 20px; min-height: 64px; flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .nav ul { display: none; width: 100%; flex-direction: column; gap: 0; padding-bottom: 14px; }
  .nav.is-open ul { display: flex; }
  .nav li a { display: block; padding: 10px 0; }
  .hero { padding: 110px 0 70px; }
  .card-body { padding: 26px 20px; }
  .privacy-banner { margin: 0; }
}
