/**
 * Flexible Content Layouts – CSS dos componentes de bloco
 * Layouts: App Hero, App Download CTA, Brand Statement, Description and Cards,
 * Feature Description, Feature Highlight, Specification.
 */

/* ==========================================================================
   App Hero
   ========================================================================== */

.l-section--app-hero {
  padding-top: 3rem;
  position: relative;
  overflow: visible;
}

.l-section--app-hero .l-container,
.app-hero.l-container {
  width: 100%;
  padding-inline: 2rem;
}

@media (min-width: 85.375em) {
  .page-template-flexible-template .page__content {
    max-width: none;
    width: 100%;
  }
}

.app-hero__main-title {
  font-family: "Elecbrakes Sans", sans-serif;
  font-size: 110px;
  line-height: var(--elecbrakes-line-height, .82);
  font-weight: 900;
  color: #ff5a0d;
  max-width: 50rem;
  margin: 0 auto;
  text-transform: uppercase;
  text-align: center;
  letter-spacing: var(--elecbrakes-letter-spacing, 0.02em);
}

.app-hero {
  display: flex;
  width: 100%;
  gap: 40px;
  align-items: stretch;
  -webkit-box-align: stretch;
}

.app-hero__content {
  flex: 1 1 50%;
  max-width: 50%;
  min-width: 0;
  min-height: 0;
  padding-left: 0;
  border-left: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  -webkit-box-flex: 1;
}

@media (max-width: 768px) {
  .app-hero__content {
    padding-left: 0;
    border-left: none;
    max-width: 100%;
  }
}

.app-hero__media {
  flex: 1 1 50%;
  max-width: 50%;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  -webkit-box-align: flex-end;
}

.app-hero__image {
  width: 100%;
  max-width: 740px;
  height: auto;
  display: block;
  border-radius: 20px;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.app-hero__description-title {
  font-weight: 700;
  color: #0e3f9a;
  font-size: 1.5rem;
  margin-top: 0;
  margin-bottom: 8px;
}

.app-hero__description {
  font-size: 18px;
  color: #455e6d;
  line-height: 1.6;
  margin-top: 12px;
}

.app-hero__downloads {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 16px;
  flex-wrap: nowrap;
}

.app-hero__badge img {
  display: block;
  width: 144px;
  height: auto;
}

.app-hero__badge--google img,
.app-hero__badge--apple img {
  width: 144px;
}

.app-hero__secondary .btn {
  margin-top: 16px;
  color: #0e3f9a;
  font-weight: 700;
  display: inline-block;
}

.app-hero__secondary {
  padding-left: 0;
  margin-top: 12px;
}

.app-hero__secondary-link {
  color: #0e3f9a;
  text-decoration: none;
  padding-left: 0;
}

@media (max-width: 1024px) {
  .app-hero__main-title {
    font-size: 72px;
  }
  .app-hero__media {
    transform: translateX(-40px);
  }
  .app-hero__downloads {
    flex-wrap: wrap;
  }
  .app-hero__badge img {
    width: 132px;
  }
}

@media (max-width: 768px) {
  .l-section--app-hero {
    padding: 60px 0 0;
  }
  .app-hero__main-title {
    font-size: 52px;
    text-align: center;
    margin-bottom: 1rem;
  }
  .app-hero {
    flex-direction: column-reverse;
    text-align: center;
    gap: 24px;
  }
  .app-hero__media,
  .app-hero__content {
    max-width: 100%;
    flex: none;
    transform: none;
  }
  .app-hero__image {
    border-radius: 12px;
    width: 100%;
  }
  .app-hero__description {
    font-size: 16px;
  }
  .app-hero__badge img {
    width: 120px;
  }
  .app-hero__downloads {
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 768px) {
  .app-hero__title {
    font-size: 36px;
  }
  .app-hero__badge img {
    height: 40px;
  }
}

/* ==========================================================================
   App Download CTA
   ========================================================================== */

.l-section--app-download-cta {
  padding: 4rem 0;
}

.l-section--app-download-cta .l-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
}

.app-download-cta {
  text-align: center;
}

.app-download-cta__title {
  font-family: "Elecbrakes Sans", sans-serif;
  font-size: 6.25rem;
  font-weight: 700;
  line-height: var(--elecbrakes-line-height, 0.85);
  color: #0e3f9a;
  text-transform: uppercase;
  margin: 0 0 2.5rem;
  letter-spacing: var(--elecbrakes-letter-spacing, 0.02em);
}

.app-download-cta__description {
  margin: 0 0 1rem;
  color: #455e6d;
  font-size: 1rem;
  line-height: 1.6;
  text-align: center;
}

.app-download-cta__description p {
  margin: 0 0 0.5rem;
}

.app-download-cta__description p:last-child {
  margin-bottom: 0;
}

.app-download-cta__downloads {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.app-download-cta__badge img {
  display: block;
  width: 160px;
  height: auto;
}

@media (max-width: 768px) {
  .app-download-cta__title {
    font-size: 0.9rem;
  }
}

/* ==========================================================================
   Brand Statement
   ========================================================================== */

.l-section--brand-statement {
  background: #fff;
  padding: 4rem 0;
}

.l-section--brand-statement .l-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.brand-statement__title {
  font-family: "Elecbrakes Sans", sans-serif;
  font-size: 7.5rem;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  margin: 0 0 2rem;
  letter-spacing: 0.02em;
}

.brand-statement__title-line {
  display: block;
  font-weight: 700;
  margin-bottom: -0.05em;
}

.brand-statement__title-line:last-child {
  margin-bottom: 0;
}

.brand-statement__title-line--yellow {
  color: #ff5a0d;
}

.brand-statement__title-line--blue {
  color: #0e3f9a;
}

.brand-statement__bottom {
  display: flex;
  align-items: center;
  gap: 3.5rem;
}

.brand-statement__description {
  flex: 1 1 auto;
  max-width: 55%;
  color: #455e6d;
  font-size: 1rem;
  line-height: 1.6;
}

.brand-statement__description p {
  margin: 0 0 0.75rem;
}

.brand-statement__description p:last-child {
  margin-bottom: 0;
}

.brand-statement__media {
  flex: 0 0 auto;
  width: 100%;
  max-width: 600px;
}

.brand-statement__image {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  .l-section--brand-statement {
    padding: 2rem 0;
  }
  .l-section--brand-statement .l-container {
    padding: 0 1.5rem;
  }
  .brand-statement__title {
    font-size: 2.5rem;
  }
  .brand-statement__bottom {
    flex-direction: column;
    align-items: stretch;
  }
  .brand-statement__description {
    max-width: 100%;
  }
  .brand-statement__media {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
  }
}

/* ==========================================================================
   Description and Cards
   ========================================================================== */

.l-section--description-and-cards {
  background: #fff;
  padding: 5rem 0;
}

.l-section--description-and-cards .l-container {
  max-width: 1200px;
  margin: 0 auto;
}

.desc-cards {
  text-align: center;
}

.desc-cards__title {
  font-family: "Elecbrakes Sans", sans-serif;;
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  color: #0e3f9a;
  text-transform: uppercase;
  margin: 0 0 1.5rem;
  letter-spacing: 0.02em;
}

.desc-cards__description {
  max-width: 720px;
  margin: 0 auto 2rem;
  color: #455e6d;
  font-size: 1.25rem;
  line-height: 1.6;
  text-align: center;
}

.desc-cards__description p {
  margin: 0 0 0.75rem;
}

.desc-cards__description p:last-child {
  margin-bottom: 0;
}

.desc-cards__cta-wrap {
  margin: 0 0 3rem;
}

.desc-cards__cta {
  display: inline-block;
  background: #ff5a0d;
  color: #fff;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: none;
  transition: background-color 0.2s ease;
}

.desc-cards__cta:hover {
  background: #e54e0a;
  color: #fff;
}

.desc-cards__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-top: 2rem;
}

.desc-cards__card {
  display: flex;
  flex-direction: column;
  min-height: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.desc-cards__card-icon {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.desc-cards__card-icon img {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.desc-cards__card-title {
  font-family: "Lab Grotesque", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0e3f9a;
  margin: 0 0 0.5rem;
  line-height: 1.2;
  letter-spacing: normal;
}

.desc-cards__card-desc {
  font-size: 1rem;
  color: #455e6d;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 900px) {
  .desc-cards__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .l-section--description-and-cards {
    padding: 3rem 0;
  }
  .desc-cards__grid {
    grid-template-columns: 1fr;
  }
  .desc-cards__card {
    min-height: 240px;
  }
}

/* ==========================================================================
   Feature Description
   ========================================================================== */

.l-section--feature-description .why__content__image {
  max-height: 480px;
  background-size: cover;
  background-position: center;
}

.l-section--feature-description .why__content__heading {
  font-size: 100px;
}

.l-section--feature-description .why__content__top {
  display: flex;
  align-items: center;
}

@media (max-width: 768px) {
  .l-section--feature-description .why__content__heading {
    margin-bottom: 1.5rem;
  }
}

/* ==========================================================================
   Feature Highlight
   ========================================================================== */

.l-section--feature-highlight {
  padding: 0;
}

.feature-highlight {
  display: flex;
  min-height: 400px;
}

.feature-highlight__content {
  flex: 0 0 50%;
  max-width: 50%;
  background: #042472;
  display: flex;
  align-items: center;
  padding: 3rem 2.5rem;
}

.feature-highlight__content-inner {
  padding-left: 3rem;
}

.feature-highlight__title {
  font-family: "Elecbrakes Sans", sans-serif;
  font-size: 6.25rem;
  max-width: 80%;
  font-weight: 700;
  line-height: var(--elecbrakes-line-height, 0.85);
  color: #fff;
  text-transform: uppercase;
  margin: 0 0 2rem;
  letter-spacing: var(--elecbrakes-letter-spacing, 0.02em);
}

.feature-highlight__description {
  color: #fff;
  font-size: 1rem;
  line-height: 1.6;
}

.feature-highlight__description p {
  margin: 0 0 0.75rem;
}

.feature-highlight__description p:last-child {
  margin-bottom: 0;
}

.feature-highlight__media {
  flex: 0 0 50%;
  max-width: 50%;
  position: relative;
  overflow: hidden;
}

.feature-highlight__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

@media (max-width: 768px) {
  .feature-highlight {
    flex-direction: column;
    min-height: auto;
  }
  .feature-highlight__content,
  .feature-highlight__media {
    flex: none;
    max-width: 100%;
  }
  .feature-highlight__title {
    font-size: 2.5rem;
  }
  .feature-highlight__media {
    min-height: 280px;
    position: relative;
  }
  .feature-highlight__image {
    position: absolute;
  }
}

/* ==========================================================================
   Specification
   ========================================================================== */

.l-section--specification .specification__description p {
  margin-bottom: 20px;
  color: #455e6d;
  font-family: "Lab Grotesque";
  font-size: 22px;
  font-weight: 400;
  line-height: 150%;
}

.l-section--specification .specification__description p:last-child {
  margin-bottom: 0;
}

.l-section--specification .specification__downloads {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.l-section--specification .specification__image-wrap .wrapper {
  padding-inline: 15%;
}

.l-section--specification .specification__video-inner {
  position: relative;
  z-index: 1;
}

.l-section--specification .specification__video-inner .mobile-video__video__background {
  z-index: 0;
}

.l-section--specification .specification__image,
.l-section--specification .specification__video {
  position: relative;
  z-index: 2;
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 24px;
}
