/* -------------------- FONT IMPORTS -------------------- */
@font-face {
  font-family: "Volvo Novum";
  src: url("../font/Volvo Novum-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
}

@font-face {
  font-family: "Volvo Novum";
  src: url("../font/Volvo Novum-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Volvo Novum";
  src: url("../font/Volvo Novum-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Volvo Novum";
  src: url("../font/Volvo Novum-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
}

/* Optional TTF fallback for browsers that need it */
@font-face {
  font-family: "Volvo Novum";
  src: url("../font/Volvo Novum-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

/* -------------------- GLOBAL STYLES -------------------- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Volvo Novum", Arial, sans-serif;
  color: #000;
  background-color: #fff;
}

/* -------------------- NAVBAR -------------------- */
.vc-navbar {
  position: sticky;
  top: 0;
  background-color: #fff;
  border-bottom: 1px solid #e5e5e5;
  width: 100%;
  z-index: 9999;
}

.vc-navbar__container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 0 20px;
  height: 60px;
  display: flex;
  align-items: center;
  position: relative;
}

/* Centered Logo */
.vc-navbar__logo {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
.vc-navbar__logo img {
  height: 24px;
}

/* Desktop Menu */
.vc-navbar__menu {
  list-style: none;
  display: flex;
  gap: 30px;
}

.vc-navbar__item a {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.vc-navbar__item a:hover {
  color: #0055a4;
}

.vc-navbar__actions {
  display: block !important;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.vc-navbar__signin {
  text-decoration: none;
  color: #000;
  font-size: 17px;
  font-weight: 500;
  padding: 8px 12px;
  border: 1px solid #000;
  border-radius: 4px;
}
.vc-navbar__signin:hover {
  background: #000;
  color: #fff;
}

/* -------------------- MOBILE NAV -------------------- */
.vc-navbar__toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10000;
}

.vc-navbar__toggle span {
  width: 26px;
  height: 2px;
  background: #000;
  transition: 0.3s;
}

/* Mobile Panel (hidden until toggle) */
.vc-navbar__mobile-panel {
  display: none;
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e5e5;
  padding: 20px 0;
}

.vc-navbar__mobile-panel ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 22px;
  text-align: center;
}

.vc-navbar__mobile-panel a {
  font-size: 18px;
  color: #000;
  text-decoration: none;
}

/* Mobile sign-in */
.vc-navbar__mobile-panel .mobile-signin {
  display: inline-block;
  margin-top: 10px;
  padding: 10px 14px;
  border: 1px solid #000;
  border-radius: 4px;
}

/* -------------------- MOBILE BREAKPOINT -------------------- */
@media (max-width: 900px) {

  /* Show burger */
  .vc-navbar__toggle {
    display: flex;
  }

  /* Hide desktop items */
  .vc-navbar__menu,
  .vc-navbar__actions {
    display: none;
  }

    .vc-navbar__signin {
    font-size: 15px;
    padding: 6px 10px;
  }

  /* When menu opens */
  .vc-navbar.vc-navbar--open .vc-navbar__mobile-panel {
    display: block;
    animation: slideDown 0.3s ease;
  }

  /* Animate burger → X */
  .vc-navbar.vc-navbar--open .vc-navbar__toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }
  .vc-navbar.vc-navbar--open .vc-navbar__toggle span:nth-child(2) {
    opacity: 0;
  }
  .vc-navbar.vc-navbar--open .vc-navbar__toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  /* Slightly smaller logo on mobile */
  .vc-navbar__logo img {
    height: 20px;
  }

  /* Slide animation */
  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
  }
}



/* -------------------- BANNER SECTION -------------------- */
.vc-banner {
  background-color: #141414;
  color: #fff;
  padding: 100px 20px;
}

.vc-banner__content {
  max-width: 1600px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.vc-banner__left {
  flex: 1;
  min-width: 280px;
}

.vc-banner__left h1 {
  font-family: "Volvo Novum", Arial, sans-serif;
  font-weight: bold;
  font-size: 50px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
  text-align: center;
}

.vc-banner__right {
  flex: 1;
  min-width: 280px;
}

.vc-banner__right p {
  font-family: "Volvo Novum", Arial, sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .vc-banner__content {
    flex-direction: column;
    text-align: center;
  }

  .vc-banner__left h1 {
    font-size: 32px;
    margin-bottom: 20px;
  }

  .vc-banner__right p {
    font-size: 16px;
  }
}

/* -------------------- HERO IMAGE SECTION -------------------- */
.vc-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  max-height: 800px;
  background-image: url("../images/volvo-bg.jpeg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  overflow: hidden;
}

/* Optional overlay (comment if not needed) */
.vc-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.15);
  pointer-events: none;
}

/* -------------------- MOBILE OPTIMISATION -------------------- */
@media (max-width: 900px) {
  .vc-hero {
    height: 60vh;            /* smaller height for mobile */
    max-height: 500px;       /* prevent giant scroll space */
    background-size: cover;  /* still fill, just less aggressive */
    background-position: center top; /* reveals more of car/image */
  }
}

@media (max-width: 600px) {
  .vc-hero {
    height: 50vh;       
    max-height: 380px;
    background-position: center top;
  }
}

/* -------------------- IFRAME SECTION -------------------- */

/* WRAPPER */
.volvo-iframe-section {
  width: 100%;
  background: #131313;
  padding: 60px 0;
}

/* CONTENT SPLIT */
.volvo-iframe-content {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;

  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
}

/* LEFT TEXT AREA */
.volvo-iframe-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* DATE */
.volvo-iframe-date {
  margin-top: 20px;
  font-family: "Volvo Novum", sans-serif;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #cfcfcf;
}

/* HEADING */
.volvo-iframe-text h1 {
  font-family: "Volvo Novum", sans-serif;
  font-weight: bold;
  font-size: 50px;
  line-height: 1.2;
  color: #fff;
  margin: 0;
}

/* PARAGRAPH */
.volvo-iframe-text p {
  font-family: "Volvo Novum", sans-serif;
  font-weight: 300;
  font-size: 22px;
  line-height: 1.4;
  color: #fff;
  margin: 0;
}

/* RIGHT IFRAME BOX */
.volvo-iframe-box {
  flex: 1;
  height: 65vh;
  max-height: 750px;
  min-height: 500px;
  position: relative;
  overflow: hidden;
}

.volvo-iframe-box iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 6px;
}

/* -------------------- MOBILE OPTIMISATION -------------------- */

@media (max-width: 900px) {
  .volvo-iframe-content {
    flex-direction: column;
    gap: 50px;
    padding: 0 20px;
  }

  .volvo-iframe-text h1 {
    font-size: 36px;
    line-height: 1.25;
  }

  .volvo-iframe-text p {
    font-size: 18px;
    line-height: 1.5;
  }

  .volvo-iframe-date {
    font-size: 14px;
  }

  /* IFRAME – extremely tall to avoid scroll locking */
  .volvo-iframe-box {
    width: 100%;
    height: 160vh;      /* allows full form inside iframe */
    max-height: none;
  }

  .volvo-iframe-box iframe {
    height: 160vh;      /* ensure iframe content fits */
  }
}

@media (max-width: 600px) {
  .volvo-iframe-box {
    height: 130vh;
  }

  .volvo-iframe-box iframe {
    height: 130vh;
  }
}


/* -------------------- FEATURE BOXES -------------------- */

.feature{
    padding-top: 20px;
    background-color: #131313;
}

/* Section as container with black background */
.volvo-two-box-section {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding-left: 25px;   /* match .volvo-box-inner EXACTLY */
    padding-right: 25px;  /* keeps consistent spacing */
    padding-bottom: 60px;
    box-sizing: border-box;
}

/* Section header */
.volvo-two-box-section .volvo-header-title {
    margin: 0 0 100px 0;
    font-size: 60px;
    font-weight: 600;
    color: #fff;
}

/* GRID: 2 per row desktop, 1 per row mobile */
.volvo-two-box-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

/* OUTER BOX */
.volvo-box {
    background: #1a1a1a;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 12px;
}

/* FULL-WIDTH IMAGE */
.volvo-box-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* INNER CONTENT */
.volvo-box-inner {
    padding: 25px; /* alignment baseline */
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* TEXT */
.volvo-box-toptext {
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
}

.volvo-box h3 {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    margin: 10px 0;
}

.volvo-box-body {
    color: #fff;
    font-size: 18px;
    line-height: 1.55;
}

/* BUTTONS */
.volvo-box-buttons {
    margin-top: 10px;
    display: flex;
    gap: 15px;
}

.volvo-box-buttons a {
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
    flex: 1;
}

/* PRIMARY BUTTON */
.btn-primary {
    background: #ffffff;
    color: #131313;
}

/* OUTLINE BUTTON */
.btn-outline {
    background: transparent;
    color: #ffffff;
    border: 1px solid #ffffff;
}

/* HOVER EFFECTS */
.btn-primary:hover {
    opacity: 0.85;
}

.btn-outline:hover {
    background: #ffffff;
    color: #131313;
}

/* -------------------- MOBILE -------------------- */
@media (max-width: 900px) {

    .volvo-two-box-section .volvo-header-title {
    font-size: 40px;
    margin-bottom: 10px;
}

    .volvo-two-box-grid {
        grid-template-columns: 1fr; /* stack vertically */
    }

    .volvo-box h3 {
        font-size: 24px;
    }

    .volvo-box-body {
        font-size: 16px;
    }

    .volvo-box-buttons {
        flex-direction: column; /* stack buttons */
    }

}