/*
 * Whitelabel Landing Page — Custom Styles
 *
 * CUSTOMIZATION GUIDE
 * ===================
 * 1. Change --color-primary (dark background + navbar)
 * 2. Change --color-accent-yellow (section headings)
 * 3. Change --color-accent-cyan (nav links, client name highlight)
 * 4. Change --color-footer (footer background)
 * 5. Replace background-image url in .background-image-container
 */

:root {
  --font-main: "Montserrat", system-ui, sans-serif;

  /* TODO: Update these colors to match the client's brand */
  --color-primary: #02465e;
  /* main background & navbar */
  --color-primary-dark: #002836;
  /* navbar on scroll */
  --color-accent-yellow: #f4a816;
  /* section headings */
  --color-accent-cyan: #12bcbe;
  /* nav links */
  --color-accent-cyan-light: #18e4df;
  /* client name highlight */
  --color-footer: #53bcbc;
  /* footer background */
  --color-footer-text: #2c2c2c;
  --color-btn-dark: #1e1e1e;
  /* "Ver no Maps" button */

  /* Override Bootstrap 5 CDN defaults to match the dark theme */
  --bs-body-color: #ffffff;
  --bs-body-bg: #02465e;
  --bs-body-font-family: "Montserrat", system-ui, sans-serif;
  --bs-body-font-weight: 500;
  --bs-body-line-height: 1.5;
  --bs-link-color: #02465e;
  --bs-link-hover-color: #18e4df;
}

/* ============================================================
   BASE
   ============================================================ */

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

@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.5;
  color: #ffffff;
  background-color: var(--color-primary);
}

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

a:hover {
  color: var(--color-accent-cyan);
}

/* ============================================================
   NAVBAR
   ============================================================ */

.main-container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 185px;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
}

.main-container-padding {
  padding-top: 0;
}

.logo-image {
  width: 7.5rem;
}

.main-description-title {
  width: 45%;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 0;
  text-align: justify;
  hyphens: auto;
}

.main-center-text {
  color: var(--color-accent-cyan);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 700;
  line-height: 125%;
  letter-spacing: 0;
  text-align: left;
}

.main-center-text:hover {
  color: var(--color-accent-yellow);
}

/* Navbar scroll state */
.fixed-top {
  z-index: 1000;
  transition: background-color 0.8s ease;
}

.fixed-top.scrolled {
  background-color: var(--color-primary-dark);
  color: #fff;
}

.minor-height {
  height: 150px;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

/* TODO: Replace img-bg.svg with the client's background image (PNG/JPG) */
.background-image-container {
  margin-top: 200px;
  background-image: url("../assets/img-bg.png");
  background-size: cover;
  background-position: center;
  position: relative;
}

.benefits-text {
  font-family: var(--font-main);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 122.73%;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-accent-yellow);
}

.make-download {
  font-family: var(--font-main);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 141.67%;
  letter-spacing: 0;
  text-align: left;
  color: #ffffff;
  width: 40rem;
}

.client-text-in-make {
  font-family: var(--font-main);
  font-size: 2.25rem;
  font-weight: 500;
  line-height: 141.67%;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-accent-cyan-light);
}

/* Benefits list */
.list-of-topics .benefits-list {
  list-style-type: none;
  hyphens: auto;
}

.list-items-centralized {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.list-items-centralized>img {
  padding-right: 15px;
  padding-bottom: 10px;
}

.text-list-item {
  font-family: var(--font-main);
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 2.125;
  letter-spacing: 0;
  text-align: left;
  color: #fff;
}

/* Phone mockups */
.phone-mobile-active {
  display: none;
}

.phone-desk-active {
  display: block;
  transform: rotate(8.275deg);
  margin-top: 45px;
}

/* Powered by + store buttons */
.powered-by-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-end;
  margin-left: 50px;
  margin-bottom: 100px;
}

.stores-container {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  margin-right: 70px;
}

.stores-container>div {
  margin-right: 10px;
}

.stores-container-mobile {
  display: none;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.powered-image-mobile {
  display: none;
  height: 20px;
  margin-left: 20px;
}

.powered-image-desk {
  display: block;
}

/* ============================================================
   LOCATIONS SECTION
   ============================================================ */

.petrol-station-list {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 140px;
}

.petrol-station-list>div {
  width: 33.3%;
  box-sizing: border-box;
  padding: 10px;
}

.petrol-station-card {
  display: flex;
  flex-direction: column;
  align-content: space-around;
  justify-content: center;
  margin-top: 40px;
}

.title-petrol-station {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0;
  text-align: left;
  color: #fff;
}

.address-petrol-station {
  padding-top: 20px;
  margin-top: auto;
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 400;
  line-height: 125%;
  letter-spacing: 0;
  text-align: left;
  max-width: 350px;
  min-width: 100px;
}

.btn-petrol-station {
  margin-top: auto;
  width: 170px !important;
  height: 40px;
  background-color: var(--color-btn-dark);
  border-radius: 8px;
  border: 1px solid var(--color-btn-dark);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.btn-petrol-station>span {
  padding-left: 20px !important;
}

.btn-petrol-station:hover {
  background-color: #0f0f0f;
  border: 1px solid #0f0f0f;
  animation: bounce;
  animation-duration: 1s;
}

.petrol-station-list button {
  width: 70%;
  text-align: center;
  position: relative;
}

.petrol-station-list button img.arrow-desk-active {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 5%;
}

/* ============================================================
   FOOTER
   ============================================================ */

footer {
  background-color: var(--color-footer);
  color: var(--color-footer-text);
  height: 79px;
  display: flex;
  justify-content: center;
  align-items: center;
}

footer a {
  color: var(--color-footer-text);
  text-decoration: none;
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 121%;
  text-align: center;
  cursor: pointer;
}

.footer-links-container {
  width: 60%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-evenly;
}

.two-links-in-footer a {
  margin-right: 15px;
}

.two-links-in-footer>a:hover {
  color: var(--color-accent-yellow);
}

.make-by {
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 125%;
  letter-spacing: 0;
  text-align: left;
}

.unlink {
  text-decoration: none;
}

.decoration:hover {
  color: var(--color-accent-yellow);
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

#back-to-top {
  display: none;
  position: fixed;
  bottom: 100px;
  right: 70px;
  background-color: #fff;
  color: #000;
  padding: 10px 15px;
  border-radius: 50%;
  text-decoration: none;
  width: 80px;
  height: 80px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

#back-to-top:hover {
  background-color: #e9ecef;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.icon-back-top {
  width: 38px;
  height: 40px;
  padding-top: 5px;
}

.text-back-top {
  padding-top: 5px;
}

/* ============================================================
   LAYOUT HELPERS
   ============================================================ */

main {
  flex: 1;
}

.wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

li a {
  word-wrap: break-word;
  color: var(--color-primary);
}

/* ============================================================
   PRIVACY / TERMS / SUPPORT PAGES (shared helper classes)
   ============================================================ */

.container-privacity {
  padding-left: 30px;
  padding-right: 30px;
  background-color: #dcdcdc;
  margin-top: 200px;
  width: 100%;
  margin-bottom: -18px;
  padding-bottom: 30px;
}

.adjust-in-body {
  background-color: #dcdcdc;
}

.title-privacity {
  font-family: var(--font-main);
  font-size: 3rem;
  font-weight: 500;
  line-height: 123.75%;
  letter-spacing: 0;
  text-align: left;
  color: var(--color-primary);
}

.generic-title {
  font-family: var(--font-main);
  font-size: 1.5625rem;
  font-weight: 600;
  line-height: 120%;
  letter-spacing: 0;
  text-align: left;
  color: #000;
}

.generic-subtitle {
  font-family: var(--font-main);
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 90.48%;
  letter-spacing: 0;
  text-align: left;
  color: #000;
  padding-top: 5px;
  padding-bottom: 5px;
}

.first-description-privacity,
.second-description-privacity {
  font-family: var(--font-main);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 120%;
  letter-spacing: 0;
  text-align: justify;
  color: #000;
  hyphens: auto;
}

.list-of-topics>li {
  font-family: var(--font-main);
  font-size: 1.3125rem;
  font-weight: 500;
  line-height: 110%;
  letter-spacing: 0;
  text-align: left;
  color: #000;
  list-style-type: circle;
  padding-top: 5px;
  padding-bottom: 5px;
  margin-left: -10px;
  hyphens: auto;
}

/* ============================================================
   RESPONSIVE — TABLET (≤992px)
   ============================================================ */

@media (max-width: 992px) {
  .phone-desk-active {
    margin-left: 200px;
    transform: rotate(8.275deg);
  }

  .main-description-title {
    font-size: 1.1rem;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE (≤765px)
   ============================================================ */

@media (max-width: 765px) {
  .remove-in-mobile {
    display: none;
  }

  .main-container {
    padding-top: 30px;
    padding-bottom: 30px;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 30px;
    margin-right: 30px;
  }

  .main-container-padding {
    padding-top: 30px !important;
  }

  .main-container-mobile-margin {
    margin-top: -30px !important;
  }

  .main-center-text {
    width: 70%;
    padding-left: 0;
    color: var(--color-accent-cyan) !important;
  }

  .main-description-title {
    padding-top: 40px;
    width: 100%;
  }

  .make-download,
  .client-text-in-make {
    width: 20rem;
    font-size: 1.5rem;
    font-weight: 500;
    line-height: 175%;
    letter-spacing: 0;
  }

  .mobile-padding {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 10px;
  }

  /* Show mobile phone, hide desktop phone */
  .phone-desk-active {
    display: none;
  }

  .phone-mobile-active {
    display: block;
  }

  /* Store buttons: hide desktop layout, show mobile layout */
  .powered-image-mobile {
    display: inline-block;
  }

  .powered-image-desk {
    display: none;
  }

  .stores-container {
    display: none;
  }

  .stores-container-mobile {
    display: flex;
  }

  .stores-container-mobile>div {
    margin-left: 18px;
  }

  /* Locations: full width cards on mobile */
  .petrol-station-list>div {
    width: 100%;
    box-sizing: border-box;
    padding: 10px;
  }

  .title-petrol-station {
    font-size: 1.5rem;
    font-weight: 700;
  }

  /* Footer */
  .footer-links-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: space-between;
  }

  .make-by {
    font-size: 1rem;
    text-align: center;
    display: inline-block;
  }

  /* Back to top */
  #back-to-top {
    right: 15px;
    bottom: 55px;
    width: 60px;
    height: 60px;
  }

  .text-back-top {
    display: none;
  }

  .icon-back-top {
    width: 38px;
    height: 40px;
    padding-right: 8px;
    padding-bottom: 5px;
  }

  /* Hero */
  .benefits-text {
    margin-top: 3rem;
  }

  /* Privacy/terms pages */
  .container-privacity {
    padding-top: 30px;
    padding-left: 20px;
    padding-right: 20px;
    margin-right: 0;
    margin-left: 0;
    width: 100%;
    margin-top: 300px;
    margin-bottom: -17px;
    padding-bottom: 30px;
  }
}

@media (max-width: 750px) {
  .phone-mobile {
    margin-left: 15px;
    transform: rotate(8.275deg);
  }
}

@media (max-width: 650px) {
  .phone-mobile {
    margin-left: 45px;
  }

  .mobile-padding {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 55px;
  }
}

@media (max-width: 380px) {
  .phone-mobile {
    margin-left: 25px;
  }

  .main-center-text {
    width: 70%;
    padding-left: 0;
    color: var(--color-accent-cyan) !important;
    font-size: 0.9rem;
  }

  .mobile-padding {
    padding-left: 30px;
    padding-right: 30px;
    padding-top: 55px;
  }
}
