/* ==========================================================================
   Bovlabs — static site stylesheet
   Colours, type sizes and spacing taken from the original Wix site.
   ========================================================================== */

:root {
  --accent: #92bbcb;          /* Bovlabs blue-grey: nav, titles, links     */
  --accent-overlay: rgba(146, 187, 203, 0.71);
  --accent-tint: rgba(146, 187, 203, 0.17);
  --navy: #324158;            /* contact block text                        */
  --charcoal: #28292b;        /* dark sections, footer, body text          */
  --header: #2f2e2e;
  --grey-text: #5e5f60;
  --grey-card: rgba(94, 95, 96, 0.88);
  --paper: #f0f0ee;           /* light section background                  */
  --muted: #949495;
  --white: #fff;

  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-footer: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 980px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background: var(--white);
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.25; }
p { margin: 0 0 1em; }

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

.section-title {
  font-size: 41px;
  font-weight: 700;
  color: var(--accent);
  text-align: center;
  margin-bottom: 40px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.logo img { width: 178px; }

.nav {
  display: flex;
  gap: 44px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  color: var(--accent);
  font-size: 18px;
  text-decoration: none;
  transition: color 0.2s;
}
.nav a:hover,
.nav a[aria-current="page"] { color: var(--white); }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 28px;
  cursor: pointer;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  align-items: center;
  min-height: 467px;
  background: var(--charcoal) url("https://static.wixstatic.com/media/779335_09bd09e113494d0094b50a5af10ec817~mv2.jpg/v1/fill/w_2056,h_750,al_b,q_85/hero.jpg") center bottom / cover no-repeat;
}
.hero__box {
  max-width: 503px;
  margin: 0 0 0 40px;
  padding: 18px 24px;
  background: var(--accent-overlay);
  color: var(--white);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.5;
  text-align: center;
}

/* ---------- Services ---------- */
.services {
  padding: 30px 0 70px;
  background: var(--paper);
  text-align: center;
}
.services .section-title { font-size: 34px; margin-bottom: 36px; }
.services__lead {
  max-width: 520px;
  margin: 0 auto 50px;
  font-size: 24px;
  line-height: 1.6;
}
.services__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.service-card {
  padding: 30px 18px;
  background: var(--accent-tint);
}
.service-card img,
.service-card svg { width: 50px; height: 50px; margin: 0 auto 16px; }
.service-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 14px; }
.service-card p { font-size: 14px; line-height: 1.4; margin: 0; }

/* ---------- Smart agents ---------- */
.agents {
  padding: 80px 0;
  background: var(--white) url("https://static.wixstatic.com/media/779335_1bcf73bb8d514b608919d86c96fa51f0~mv2.jpg/v1/fill/w_1440,h_617,al_c,q_85/bovlabs-box.jpg") center / cover no-repeat;
  min-height: 546px;
}
.agents h2 {
  max-width: 490px;
  font-size: 24px;
  font-weight: 300;
  line-height: 1.6;
  color: var(--grey-text);
  text-align: center;
  margin-bottom: 36px;
}
.agents__list {
  max-width: 517px;
  margin: 0;
  padding: 24px 40px;
  list-style: none;
  background: rgba(50, 50, 50, 0.08);
  border-radius: 10px;
}
.agents__list li {
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 8px 0;
  font-size: 18px;
}
.agents__list img { width: 36px; flex: 0 0 36px; }

/* ---------- Charging patterns ---------- */
.patterns {
  padding: 65px 0 80px;
  text-align: center;
}
.patterns p {
  max-width: 768px;
  margin: 0 auto 60px;
  font-size: 24px;
  color: var(--grey-text);
}
.patterns img { width: 100%; max-width: 831px; margin: 0 auto; }

/* ---------- Use cases ---------- */
.use-cases {
  padding: 50px 0 60px;
  background: var(--charcoal);
  color: var(--white);
}
.use-case {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 952px;
  margin: 0 auto 44px;
  padding: 18px 20px 26px;
  background: var(--grey-card);
}
.use-case h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 26px;
  font-weight: 400;
}
.use-case h3 img { width: 59px; }
.use-case h4 { font-size: 20px; font-weight: 400; margin-bottom: 12px; }
.use-case p,
.use-case li { font-size: 16px; line-height: 1.6; }
.use-case ul { padding-left: 20px; margin: 0 0 1em; }
.use-case__media { display: flex; justify-content: center; }
.use-case__media--white { background: var(--white); padding: 18px; }
.learn-more {
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
}
.learn-more:hover { text-decoration: underline; }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Team ---------- */
.team { padding: 40px 0 60px; }
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  padding: 0 30px;
}
.person {
  padding: 20px 16px 24px;
  background: rgba(240, 240, 238, 0.42);
  text-align: center;
}
.person img {
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  border-radius: 50%;
  object-fit: cover;
}
.person h3 { font-size: 18px; font-weight: 300; margin-bottom: 6px; }
.person__role { font-size: 14px; margin-bottom: 18px; }
.person__bio { font-size: 12px; line-height: 1.35; text-align: justify; margin: 0; }

/* ---------- Contact ---------- */
.contact {
  padding: 48px 20px 84px;
  background: #fcfcfc url("https://static.wixstatic.com/media/779335_a767e6f10008436491f10b8b8c65492a~mv2.jpg/v1/fill/w_1600,h_560,al_c,q_85/contact.jpg") center / cover no-repeat;
}
.contact__box {
  max-width: 801px;
  margin: 0 auto;
  padding: 20px 40px 30px;
  background: rgba(240, 240, 238, 0.8);
  color: var(--navy);
  text-align: center;
}
.contact__box h2 {
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0.15em;
  margin-bottom: 36px;
}
.contact__tagline {
  font-size: 23px;
  font-style: italic;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.contact__box svg { width: 48px; height: 48px; margin: 0 auto 18px; display: block; }
.contact__box a { color: var(--charcoal); letter-spacing: 0.1em; font-style: italic; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 58px 0 30px;
  background: var(--charcoal);
  color: var(--white);
  font-family: var(--font-footer);
  font-size: 16px;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: repeat(3, auto) 1fr;
  gap: 30px;
}
.site-footer address { font-style: normal; line-height: 1.6; }
.social { display: flex; gap: 10px; justify-content: flex-end; align-items: flex-start; }
.social img { width: 39px; height: 39px; }
.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  color: var(--muted);
}
.site-footer__bottom a { color: var(--white); }

/* ---------- News ---------- */
.news-item { padding: 50px 0; }
.news-item:nth-child(even) { background: var(--paper); }
.news-item .container {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  gap: 40px;
  align-items: start;
}
.news-item__image img { width: 100%; }
.news-item__meta { margin-top: 20px; font-size: 13px; color: var(--muted); }
.news-item h2 {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.news-item p { font-size: 14px; line-height: 1.45; text-align: justify; }
.see-more {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--charcoal);
  text-decoration: none;
  border-bottom: 3px solid var(--accent);
}

/* ---------- Article pages (press releases, privacy) ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 60px 20px 90px; }
.article h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.article h2 { font-size: 22px; font-weight: 700; margin-top: 1.8em; }
.article p, .article li { font-size: 17px; line-height: 1.7; }
.article__back { margin-top: 40px; }
.article__back a { color: var(--accent); font-weight: 700; text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .team__grid { gap: 24px; padding: 0; }
  .use-case { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .social { justify-content: flex-start; }
}

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 88px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px 20px 16px;
    background: var(--header);
  }
  .nav.is-open { display: flex; }
  .nav li { padding: 10px 0; }

  .section-title { font-size: 32px; }
  .hero { min-height: 380px; }
  .hero__box { margin: 0; font-size: 18px; }
  .services__lead, .agents h2, .patterns p { font-size: 20px; }
  .services__grid, .team__grid { grid-template-columns: 1fr; }
  .agents { background-position: 80% center; }
  .agents__list { padding: 18px 20px; background: rgba(255, 255, 255, 0.8); }
  .contact__box { padding: 20px; }
  .contact__box h2 { font-size: 26px; letter-spacing: 0.08em; }
  .site-footer__grid { grid-template-columns: 1fr; }
  .news-item .container { grid-template-columns: 1fr; gap: 20px; }
  .article h1 { font-size: 27px; }
}
