@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url("../fonts/rubik-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-400.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-600.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("../fonts/poppins-800.woff2") format("woff2");
}

:root {
  --accent: #0c59db;
  --accent-dark: #273272;
  --text: #748494;
  --heading: #151a33;
  --page: #edeef0;
  --footer: #3f618c;
  --footer-bar: #273272;
  --border: #e7e7e7;
  --overlay: rgba(2, 45, 98, 0.7);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Rubik", sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* Short pages keep the footer at the bottom of the viewport. The header is
   taken out of flow, so the column lives on .page-wrapper. The hero keeps a
   fixed height; only the page body grows. */
.page-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page-wrapper > .hero,
.page-wrapper > .main-footer {
  flex: 0 0 auto;
}

.page-wrapper > main,
.page-wrapper > .legal-page,
.page-wrapper > .page-404,
.page-wrapper > .opinions {
  flex: 1 0 auto;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  vertical-align: middle;
}

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

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading);
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  z-index: 10000;
}

.skip-link:focus {
  left: 8px;
}

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

/* Header overlays the hero / breadcrumb */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}

.topbar {
  background: var(--accent-dark);
}

.topbar .container {
  display: flex;
  justify-content: flex-end;
}

.navbar {
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding: 18px 0 16px;
}

.brand {
  display: inline-block;
  line-height: 0;
}

.brand img,
.ce-logo img {
  display: block;
  width: 250px;
  height: auto;
}

.header-inner {
  padding: 22px 0 8px;
}

.btn {
  display: inline-block;
  border-radius: 4px;
  border: 2px solid transparent;
  font-family: "Rubik", sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 26px;
  padding: 8px 28px;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  text-decoration: none;
  box-shadow: 0 4px 20px -5px rgba(0, 0, 0, 0.5);
}

.btn-intranet {
  border-radius: 0;
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  padding: 10px 20px;
}

.btn-intranet:hover {
  background: #0947b0;
  border-color: #0947b0;
  color: #fff;
}

.btn-default {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-default:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-white {
  background: #fff;
  border-color: #fff;
  color: var(--accent);
}

.btn-white:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Hero slider */
.hero {
  position: relative;
  height: 750px;
  background: #0b2c4d;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #0b2c4d;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.6s ease;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 760px;
  padding: 80px 24px 40px;
  text-align: center;
  color: #fff;
}

.hero-copy h1,
.hero-copy h2 {
  color: #fff;
  font-size: 65px;
  font-weight: 800;
  line-height: 1.15;
  margin: 0 0 18px;
}

.hero-copy p {
  margin: 0 auto;
  max-width: 640px;
  color: #fff;
  font-size: 20px;
  line-height: 1.45;
}

.hero-nav {
  position: absolute;
  top: 46%;
  z-index: 3;
  width: 50px;
  height: 50px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  font-size: 28px;
  line-height: 46px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s ease, background-color 0.2s ease;
}

.hero:hover .hero-nav,
.hero-nav:focus {
  opacity: 1;
}

.hero-nav.prev { left: 28px; }
.hero-nav.next { right: 28px; }

.hero-nav:hover {
  background: var(--accent);
  border-color: var(--accent);
}

.hero-dots {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 108px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero-dot {
  width: 11px;
  height: 11px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.hero-dot.is-active,
.hero-dot[aria-selected="true"] {
  background: #fff;
}

/* Features overlapping the hero */
.features-wrap {
  position: relative;
  z-index: 4;
  margin-top: -80px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  background: #fff;
  box-shadow: 0 2px 60px rgba(0, 0, 0, 0.1);
  padding: 28px 12px 22px;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 10px 18px;
}

.feature-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border-radius: 5px;
  background: var(--accent-dark);
  color: #fff;
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.feature h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin: 2px 0 4px;
}

.feature p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.section {
  padding: 56px 0 24px;
}

.section-heading {
  text-align: center;
  margin-bottom: 36px;
}

.section-heading h2 {
  font-size: 36px;
  font-weight: 800;
  margin: 0;
}

.news-grid,
.opinion-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.news-card,
.opinion-card {
  background: #fff;
  box-shadow: 0 2px 60px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.news-card:hover,
.opinion-card:hover,
.feature:hover {
  transform: translateY(-8px);
}

.feature:hover {
  /* the whole bar should not jump; lift the icon group only via the card */
  transform: none;
}

.news-card .inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 100%;
  padding: 36px 26px 30px;
}

.news-icon {
  color: var(--accent);
  margin-bottom: 16px;
}

.news-icon svg {
  width: 78px;
  height: 78px;
  fill: currentColor;
}

.news-card h2 {
  font-size: 18px;
  font-weight: 800;
  margin: 0 0 10px;
}

.news-card p {
  margin: 0 0 22px;
  font-size: 16px;
}

.news-card .btn {
  margin-top: auto;
}

.cta {
  position: relative;
  margin-top: 36px;
  background: #123 url("../images/cta.jpg") center / cover no-repeat;
  text-align: center;
  color: #fff;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(39, 50, 114, 0.62);
}

.cta-inner {
  position: relative;
  z-index: 1;
  padding: 78px 20px;
}

.cta p {
  margin: 0 0 6px;
  color: #fff;
  font-size: 22px;
  font-weight: 500;
}

.cta h2 {
  color: #fff;
  font-size: 36px;
  font-weight: 800;
  margin: 0 0 22px;
}

.opinions {
  padding-bottom: 70px;
}

.opinion-card {
  padding: 28px 26px 24px;
}

.opinion-card p {
  margin: 0 0 22px;
  font-size: 16px;
}

.opinion-person {
  display: flex;
  align-items: center;
  gap: 14px;
}

.opinion-person img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
}

.opinion-person h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
}

.opinion-person span {
  display: block;
  font-size: 14px;
  color: var(--text);
}

/* Inner pages: contact, 404 */
.page-hero {
  position: relative;
  background: #123 url("../images/breadcrumb.jpg") center / cover no-repeat;
  color: #fff;
}

.page-hero::before,
.breadcrumb-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--overlay);
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  min-height: 340px;
  padding: 210px 15px 48px;
}

.page-hero h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 16px;
}

.crumbs a {
  color: #fff;
}

.content {
  padding: 48px 0 70px;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 28px 40px;
  align-items: start;
}

.contact-note {
  max-width: 640px;
  font-size: 17px;
  line-height: 1.7;
}

.contact-address {
  margin: 0;
  color: var(--heading);
  font-style: normal;
  font-weight: 600;
  font-size: 17px;
  line-height: 1.45;
}

.contact-map a {
  display: block;
  line-height: 0;
}

.contact-map img {
  width: 100%;
  border-radius: 5px;
}

/* Shared legal layout hooks */
.breadcrumb-section {
  position: relative;
  background: #123 url("../images/breadcrumb.jpg") center / cover no-repeat;
  padding: 210px 0 56px;
}

.breadcrumb-title {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.breadcrumb-title h1 {
  color: #fff;
  font-size: 36px;
  font-weight: 700;
  margin: 0;
}

.legal-page {
  background: #fff;
}

.page-404 {
  background: #fff;
  text-align: center;
  padding-top: 20px;
}

.heading-404 {
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--heading);
}

.heading-404 span {
  font-size: 160px;
  line-height: 1.05;
}

.heading-404 .zero {
  color: var(--accent);
}

.page-404-lead {
  font-size: 28px;
  font-weight: 600;
  color: var(--heading);
  margin: 0 0 22px;
}

/* Footer: Crime at Home logo band + legal bar */
.main-footer {
  background: var(--footer);
  color: #fff;
}

.main-footer > .container {
  max-width: none;
  padding: 0;
}

.footer-brand {
  max-width: none;
  text-align: center;
  padding: 72px 15px 52px;
}

.footer-brand img {
  display: block;
  width: 320px;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

.copyright-bar {
  background: var(--footer-bar);
  margin: 0;
  padding: 16px 15px 18px;
  border-top: 0;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
}

.footer-game,
.footer-legal {
  margin: 0 0 4px;
}

.copyright-bar .sep {
  margin: 0 6px;
}

.main-footer a {
  color: #fff;
}

.main-footer a:hover {
  color: #d5e2ff;
}

@media (max-width: 991.98px) {
  .hero {
    height: 620px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 45px;
  }

  .features,
  .news-grid,
  .opinion-grid {
    grid-template-columns: 1fr;
  }

  .features-wrap {
    margin-top: -48px;
  }

  .hero-dots {
    bottom: 72px;
  }
}

@media (max-width: 767.98px) {
  .topbar .container {
    justify-content: center;
  }

  .hero {
    height: 560px;
  }

  .hero-copy {
    padding-top: 120px;
  }

  .hero-copy h1,
  .hero-copy h2 {
    font-size: 32px;
    line-height: 1.25;
  }

  .hero-copy p {
    font-size: 16px;
  }

  .hero-nav {
    display: none;
  }

  .features-wrap {
    margin-top: 0;
    padding-top: 28px;
  }

  .hero-dots {
    bottom: 18px;
  }

  .section-heading h2,
  .cta h2,
  .page-hero h1,
  .breadcrumb-title h1 {
    font-size: 30px;
  }

  .page-hero-inner {
    flex-direction: column;
    align-items: flex-start;
    min-height: 280px;
    padding-top: 170px;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .heading-404 span {
    font-size: 96px;
  }

  .brand img,
  .ce-logo img {
    width: 210px;
  }

  .footer-brand {
    padding: 48px 15px 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide,
  .news-card,
  .opinion-card,
  .btn,
  .hero-nav {
    transition: none;
  }
}
