/* =============================================================
   OLX Flip — Stylesheet
   Autor: Liviu Jurubita
   Ordine: Variables → Fonts → Reset → Base → Layout →
           Utilities → Header → Main → Footer → Responsive
   ============================================================= */


/* =====================
   1. CUSTOM PROPERTIES
   ===================== */

:root {
  --main-white:    #ffffff;
  --main-blue:     #0071CE;
  --main-gray:     #f2f4f5;
  --olx-dark:      #002F34;
  --olx-green:     #144041;
  --olx-green-dark:#0f2b2d;
  --olx-teal:      #54D4D1;
}


/* =====================
   2. FONTS
   ===================== */

@font-face {
  font-display: swap;
  font-family: "Geomanist";
  font-style: normal;
  font-weight: 400;
  src: local("Geomanist"),
       url(fonts/geomanist-regular-webfont.c77609a0d.woff2) format("woff2"),
       url(fonts/geomanist-regular-webfont.f55ce2de1.woff)  format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Geomanist";
  font-style: normal;
  font-weight: 500;
  src: local("Geomanist"),
       url(fonts/geomanist-book-webfont.d5d4a23a5.woff2) format("woff2"),
       url(fonts/geomanist-book-webfont.dd5857a8e.woff)  format("woff");
}

@font-face {
  font-display: swap;
  font-family: "Geomanist";
  font-style: normal;
  font-weight: 700;
  src: local("Geomanist"),
       url(fonts/geomanist-medium-webfont.29927b8df.woff2) format("woff2"),
       url(fonts/geomanist-medium-webfont.2a1ec21e5.woff)  format("woff");
}


/* =====================
   3. RESET
   ===================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: Geomanist, Arial, sans-serif;
}

textarea:focus,
input:focus,
button:focus,
*:focus {
  outline: none;
}


/* =====================
   4. BASE
   ===================== */

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  background: var(--main-white);
  color: #000;
  font-family: Geomanist, Arial, sans-serif;
}

h1,
h2 {
  font-size: 60px;
  font-weight: 700;
  line-height: 64px;
}

h1 span {
  display: block;
  color: var(--olx-teal);
}

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

a:hover {
  text-decoration: none;
}


/* =====================
   5. LAYOUT
   ===================== */

/* Header/footer container (max-width fluid, no grid) */
.container-old {
  width: 100%;
  padding-left: 15px;
  padding-right: 15px;
}

/* Bootstrap .container override for xl screens */
@media (min-width: 1200px) {
  .container {
    max-width: 1240px;
  }
}


/* =====================
   6. UTILITIES
   (Bootstrap display helpers subset)
   ===================== */

.d-none  { display: none  !important; }
.d-block { display: block !important; }
.d-flex  { display: flex  !important; }

@media (min-width: 576px) {
  .d-sm-none  { display: none  !important; }
  .d-sm-block { display: block !important; }
  .d-sm-flex  { display: flex  !important; }
  /* Paired overrides for d-block d-sm-none */
  .d-block.d-sm-none { display: none !important; }
}

@media (max-width: 575.98px) {
  /* Elements that are only shown on sm+ */
  .d-sm-block { display: none !important; }
  .d-sm-flex  { display: none !important; }
  .d-none.d-sm-block { display: none !important; }
}


/* =====================
   7. HEADER
   ===================== */

header.menu-olx {
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1020;
  background: var(--olx-dark);
  text-align: left;
  box-shadow: rgb(20 35 85 / 15%) 0px 2px 6px 0;
}

/* Inner bar */
header.menu-olx .content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 15px;
}

/* Logo */
.ooa-sqfg42 {
  display: flex;
  align-items: center;
  text-decoration: none;
}

img.logo {
  display: block;
}

/* Desktop nav list */
.list-menu.header-olx {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
}

.list-menu.header-olx li {
  display: inline-block;
  padding: 0 10px;
}

.list-menu.header-olx li.icon {
  position: relative;
  padding-left: 30px;
}

.list-menu.header-olx li a {
  display: flex;
  align-items: center;
  padding: 10px 0;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.list-menu.header-olx li a:hover {
  color: rgba(255, 255, 255, 0.8);
}

.list-menu.header-olx li svg {
  position: absolute;
  left: 0;
  width: 22px;
  height: 22px;
  margin-right: 10px;
}

.list-menu.header-olx li a.active {
  display: block;
  padding: 10px;
  background: #ffffff;
  color: var(--olx-dark);
  border-radius: 4px;
  font-weight: 700;
}

.list-menu.header-olx li a.active:hover {
  background: rgba(255, 255, 255, 0.9);
  color: rgba(0, 47, 52, 0.9);
}

/* Hamburger button */
.ooa-gxz1u3 {
  display: flex;
  align-items: center;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  fill: #ffffff;
}

.ooa-gxz1u3 .icon {
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

/* Mobile nav dropdown */
.mobile-nav {
  display: none;
  background: var(--olx-dark);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  padding: 8px 0;
}

.mobile-nav li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.mobile-nav li:last-child {
  border-bottom: none;
}

.mobile-nav li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 20px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.mobile-nav li a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.mobile-nav li a svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
}


/* =====================
   8. MAIN CONTENT
   ===================== */

main {
  color: var(--olx-green);
  font-size: 18px;
}

section {
  padding: 100px 0;
}

section.top-minus {
  margin-top: -140px;
}

/* Section backgrounds */
.bg-yellow { background: #F9FCD9; }
.bg-green  { background: #DAF8F0; }

/* --- Hero subtitle & CTA --- */

.subtitle {
  font-size: 32px;
  line-height: 36px;
}

.btn {
  border-radius: 40px;
}

.btn-primary {
  position: relative;
  z-index: 20;
  padding: 16px 32px;
  background: var(--olx-green);
  color: #fff;
  font-size: 18px;
  font-weight: 400;
  border: none;
}

.btn-primary:hover {
  background: var(--olx-green-dark);
  color: #fff;
}

/* --- Device cards --- */

.card-device {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: 100%;
  max-height: 170px;
  margin-bottom: 24px;
  padding: 32px 45px;
  background-repeat: no-repeat;
  background-size: contain !important;
  color: var(--olx-green);
  font-size: 26px;
  font-weight: 700;
  line-height: normal;
}

.card-1 { background: transparent url(img/card-1-xl.svg) no-repeat center center; }
.card-2 { background: transparent url(img/card-2-xl.svg) no-repeat center center; }
.card-3 { background: transparent url(img/card-3-xl.svg) no-repeat center center; }

.card-img-top {
  flex-basis: 130px;
  max-height: 130px;
  object-fit: contain;
}

/* --- How it works card --- */

.card-green {
  padding: 24px;
  background: var(--olx-teal);
  border-radius: 24px;
}

.list-green li {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  font-size: 16px;
  line-height: normal;
}

.list-green li .icon-list {
  flex-shrink: 0;
  width: 80px;
  align-content: center;
}

.list-green li h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 700;
}

/* --- FAQ accordion --- */

.list-faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0 auto;
}

.faq-item {
  background: var(--main-gray);
  border-radius: 8px;
  overflow: hidden;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--olx-green);
  font-size: 18px;
  font-weight: 700;
}

.faq-question:hover {
  background: rgba(0, 0, 0, 0.03);
}

.faq-arrow {
  flex-shrink: 0;
  color: var(--olx-green);
  transition: transform 0.25s ease;
}

.faq-item.faq-open .faq-arrow {
  transform: rotate(180deg);
}

/* Animate height using grid trick (no JS height calc needed) */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.25s ease;
}

.faq-item.faq-open .faq-answer {
  grid-template-rows: 1fr;
}

.faq-answer > p {
  overflow: hidden;
  margin: 0;
  padding: 0 24px 20px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--olx-green);
}


/* =====================
   9. FOOTER
   ===================== */

footer#page-footer {
  padding: 48px 0;
  margin-top: 10px;
  background: #EBECEF;
}

footer ul,
footer li {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-bottom: 10px;
}

footer li a,
footer li a:hover {
  color: var(--olx-dark);
  font-weight: 500;
}

.footer-olx {
  width: 100%;
}

.footer-olx a,
.footer-olx a:hover {
  font-weight: 700;
  text-decoration: none;
}

.list-footer-olx {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list-footer-olx li {
  margin-bottom: 8px;
}

.list-footer-olx li a {
  color: var(--olx-dark);
  font-size: 14px;
  font-weight: 500;
}

.list-footer-olx li a:hover {
  text-decoration: underline;
}

.text-app {
  margin-top: 12px;
  font-size: 13px;
  color: #666;
  text-align: center;
}

.footer-olx .col-sm-3 a {
  display: inline-block;
  margin: 4px;
}

.footer-olx .col-sm-3 img {
  display: block;
  width: auto;
  height: 40px;
  margin: 4px auto;
}


/* =====================
   10. RESPONSIVE
   ===================== */

/* container-old — full-width on mobile, constrained + flex on sm+ */
@media (min-width: 576px) {
  .container-old {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    align-items: center;
    max-width: 1240px;
    margin: 0 auto;
  }
}

/* Footer grid */
@media (min-width: 576px) {
  .footer-olx .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
  }

  .footer-olx .col-sm-4 {
    flex: 0 0 33.333333%;
    max-width: 33.333333%;
    padding: 0 15px;
  }

  .footer-olx .col-sm-3 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 25%;
    max-width: 25%;
    padding: 0 15px;
  }
}

@media (max-width: 575.98px) {
  .footer-olx .col-sm-4,
  .footer-olx .col-sm-3 {
    width: 100%;
    padding: 0 15px;
    margin-bottom: 20px;
  }
}

/* Hide footer on mobile (original behavior) */
@media (max-width: 768px) {
  footer#page-footer {
    display: none;
  }
}

/* Tablet / mobile content tweaks */
@media (max-width: 768px) {
  section {
    padding: 40px 0;
  }

  section.top-minus {
    margin-top: -70px;
    padding-top: 100px;
  }

  h1,
  h2 {
    font-size: 44px;
    line-height: 44px;
  }

  .subtitle {
    margin-top: 20px;
    font-size: 22px;
    line-height: 28px;
  }

  .btn {
    width: 100%;
  }

  /* Device card backgrounds swap to mobile variants */
  .card-1 { background: transparent url(img/card-1-m.svg) no-repeat center center; }
  .card-2 { background: transparent url(img/card-2-m.svg) no-repeat center center; margin-top: -60px; }
  .card-3 { background: transparent url(img/card-3-m.svg) no-repeat center center; margin-top: -60px; }
  .card-3-m { background: transparent url(img/card-2-m.svg) no-repeat center center; margin-top: -60px; }

  .card-device {
    min-height: 210px;
  }

  .list-green li .icon-list {
    width: 50px;
  }
}
