/* =========================================================
   GHANIA GAWAI
   Homepage Responsive
   ========================================================= */


/* =========================================================
   01. SMALL DESKTOP
   <= 1100px
   ========================================================= */

@media (max-width: 1100px) {

  /* Hero */

  .home-hero__container {
    grid-template-columns:
      minmax(0, 1fr)
      minmax(360px, 0.8fr);

    gap: 44px;
  }

  .home-hero__title {
    font-size:
      clamp(46px, 5.2vw, 64px);
  }

  .home-hero__visual {
    min-height: 450px;
  }

  .home-hero__visual-card {
    width: min(100%, 420px);
  }

  .home-hero__visual-card img {
    height: 450px;
  }


  /* Brands */

  .brand-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  /* Process */

  .home-process__grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }

  .home-process__grid::before {
    display: none;
  }


  /* Featured */

  .featured-device-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));
  }


  /* Why */

  .home-why__layout {
    gap: 48px;
  }


  /* FAQ */

  .home-faq__layout {
    gap: 48px;
  }

}


/* =========================================================
   02. TABLET
   <= 980px
   ========================================================= */

@media (max-width: 980px) {

  /* =======================================================
     HERO
     ======================================================= */

  .home-hero {
    min-height: auto;
  }

  .home-hero__container {
    padding-top: 64px;
    padding-bottom: 88px;

    grid-template-columns: 1fr;

    gap: 48px;
  }

  .home-hero__content {
    width: 100%;
    max-width: 700px;

    margin-inline: auto;

    text-align: center;
  }

  .home-hero__eyebrow {
    justify-content: center;
  }

  .home-hero__title {
    max-width: 700px;

    margin-inline: auto;

    font-size:
      clamp(44px, 7vw, 58px);
  }

  .home-hero__description {
    max-width: 580px;

    margin-inline: auto;
  }

  .home-hero__actions {
    justify-content: center;
  }

  .home-hero__highlights {
    justify-content: center;
  }


  /* Hero visual */

  .home-hero__visual {
    width: min(100%, 560px);

    min-height: 430px;

    margin-inline: auto;
  }

  .home-hero__visual-card {
    width: min(82%, 390px);
  }

  .home-hero__visual-card img {
    height: 430px;
  }

  .home-hero-float--top {
    left: 12px;
  }

  .home-hero-float--bottom {
    right: 12px;
  }


  /* =======================================================
     SEARCH
     ======================================================= */

  .home-device-search__layout {
    grid-template-columns: 1fr;

    gap: 18px;
  }

  .home-device-search__content {
    max-width: 520px;

    margin-inline: auto;

    text-align: center;
  }


  /* =======================================================
     WHY
     ======================================================= */

  .home-why__layout {
    grid-template-columns: 1fr;

    gap: 38px;
  }

  .home-why__content {
    max-width: 680px;
  }


  /* =======================================================
     FEATURED DEVICES
     ======================================================= */

  .featured-device-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* =======================================================
     PROCESS NOTICE
     ======================================================= */

  .home-process-notice__box {
    grid-template-columns: 1fr;

    gap: 28px;
  }


  /* =======================================================
     FAQ
     ======================================================= */

  .home-faq__layout {
    grid-template-columns: 1fr;

    gap: 36px;
  }

  .home-faq__intro {
    position: static;

    max-width: 680px;
  }


  /* =======================================================
     FINAL CTA
     ======================================================= */

  .home-final-cta__box {
    min-height: 420px;

    padding-right: 44%;
  }

  .home-final-cta__visual {
    width: 44%;
  }

}


/* =========================================================
   03. SMALL TABLET
   <= 768px
   ========================================================= */

@media (max-width: 768px) {

  /* =======================================================
     HERO
     ======================================================= */

  .home-hero__container {
    padding-top: 52px;
    padding-bottom: 78px;

    gap: 38px;
  }

  .home-hero__title {
    max-width: 580px;

    font-size:
      clamp(40px, 8vw, 50px);
  }

  .home-hero__description {
    max-width: 520px;

    font-size: 15px;
  }

  .home-hero__actions {
    margin-bottom: 26px;
  }


  /* Hero visual */

  .home-hero__visual {
    width: min(100%, 500px);

    min-height: 350px;
  }

  .home-hero__visual-card {
    width: min(78%, 330px);

    border-radius: 24px;
  }

  .home-hero__visual-card img {
    height: 350px;
  }

  .home-hero-float--top {
    top: 40px;
    left: 6px;
  }

  .home-hero-float--bottom {
    right: 6px;
    bottom: 40px;
  }


  /* =======================================================
     DEVICE SEARCH
     ======================================================= */

  .home-device-search {
    margin-top: -36px;
  }

  .home-device-search__box {
    padding: 20px;
  }


  /* =======================================================
     BRANDS
     ======================================================= */

  .home-brands {
    padding-top: 82px;
  }

  .brand-grid {
    grid-template-columns:
      repeat(3, minmax(0, 1fr));

    gap: 12px;
  }

  .brand-card {
    min-height: 112px;

    padding: 15px;
  }


  /* =======================================================
     PROCESS
     ======================================================= */

  .home-process__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* =======================================================
     WHY GHANIA
     ======================================================= */

  .home-why__grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
  }


  /* =======================================================
     TESTIMONIAL
     ======================================================= */

  .testimonial-grid {
    grid-template-columns: 1fr;
  }


  /* =======================================================
     FINAL CTA
     ======================================================= */

  .home-final-cta__box {
    min-height: auto;

    padding: 40px 34px;

    display: block;
  }

  .home-final-cta__content {
    max-width: 620px;
  }

  .home-final-cta__visual {
    display: none;
  }

}


/* =========================================================
   04. MOBILE
   <= 640px
   ========================================================= */

@media (max-width: 640px) {

  /* =======================================================
     HERO
     ======================================================= */

  .home-hero {
    min-height: auto;
  }

  .home-hero__container {
    padding-top: 38px;
    padding-bottom: 58px;

    gap: 28px;
  }

  .home-hero__content {
    width: 100%;

    max-width: 100%;
  }

  .home-hero__eyebrow {
    margin-bottom: 14px;

    justify-content: center;

    font-size: 10px;
  }

  .home-hero__eyebrow::before {
    width: 18px;
  }

  .home-hero__title {
    max-width: 360px;

    margin-inline: auto;
    margin-bottom: 18px;

    font-size:
      clamp(34px, 9.5vw, 40px);

    line-height: 1.02;

    letter-spacing: -0.045em;
  }

  .home-hero__description {
    max-width: 350px;

    margin-inline: auto;
    margin-bottom: 22px;

    font-size: 14px;
    line-height: 1.65;
  }


  /* Hero actions */

  .home-hero__actions {
    width: 100%;

    margin-bottom: 22px;

    flex-direction: column;

    align-items: stretch;

    gap: 8px;
  }

  .home-hero__actions .btn {
    width: 100%;
  }


  /* Highlights */

  .home-hero__highlights {
    width: 100%;

    justify-content: center;

    gap: 9px 12px;
  }

  .home-hero-highlight {
    gap: 6px;

    font-size: 10px;
  }

  .home-hero-highlight__icon {
    width: 26px;
    height: 26px;

    border-radius: 8px;
  }

  .home-hero-highlight__icon svg {
    width: 13px;
    height: 13px;
  }


  /* =======================================================
     HERO VISUAL
     Mobile conversion-first:
     hide large visual
     ======================================================= */

  .home-hero__visual {
    display: none;
  }


  /* =======================================================
     DEVICE SEARCH
     ======================================================= */

  .home-device-search {
    margin-top: 0;

    padding-top: 0;
  }

  .home-device-search__box {
    padding: 18px;

    border-radius: 16px;

    box-shadow:
      0 14px 36px rgba(15, 23, 42, 0.08);
  }

  .home-device-search__layout {
    gap: 16px;
  }

  .home-device-search__eyebrow {
    margin-bottom: 6px;

    font-size: 10px;
  }

  .home-device-search__title {
    margin-bottom: 6px;

    font-size: 18px;
    line-height: 1.2;
  }

  .home-device-search__description {
    max-width: 290px;

    margin-inline: auto;

    font-size: 12px;
    line-height: 1.6;
  }

  .device-search__input {
    height: 48px;

    padding:
      0 44px
      0 42px;

    font-size: 12px;

    border-radius: 10px;
  }

  .device-search__icon {
    left: 14px;

    width: 17px;
    height: 17px;
  }

  .device-search__clear {
    right: 10px;

    width: 30px;
    height: 30px;
  }

  .device-search-results {
    max-height: 280px;

    border-radius: 12px;
  }

  .device-search-result {
    padding: 10px;

    gap: 10px;
  }

  .device-search-result__icon {
    width: 38px;
    height: 38px;
  }

  .device-search-result__model {
    font-size: 12px;
  }

  .device-search-result__brand {
    font-size: 10px;
  }

  .device-search-result__action {
    font-size: 10px;
  }


  /* =======================================================
     BRANDS
     ======================================================= */

  .home-brands {
    padding-top: 64px;
  }

  .brand-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .brand-card {
    min-height: 96px;

    padding: 14px;

    gap: 9px;

    border-radius: 14px;
  }

  .brand-card__logo {
    width: 38px;
    height: 38px;
  }

  .brand-card__logo img {
    max-width: 34px;
    max-height: 34px;
  }

  .brand-card__name {
    font-size: 12px;
  }


  /* =======================================================
     PROCESS
     ======================================================= */

  .home-process__grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .process-card {
    padding: 18px;

    border-radius: 14px;
  }

  .process-card__top {
    margin-bottom: 15px;
  }

  .process-card__icon {
    width: 44px;
    height: 44px;

    border-radius: 13px;
  }

  .process-card__icon svg {
    width: 20px;
    height: 20px;
  }

  .process-card__number {
    font-size: 20px;
  }

  .process-card__title {
    margin-bottom: 7px;

    font-size: 16px;
  }

  .process-card__description {
    font-size: 12px;
    line-height: 1.65;
  }

  .home-process__footer {
    margin-top: 26px;
  }


  /* =======================================================
     WHY GHANIA
     ======================================================= */

  .home-why__layout {
    gap: 30px;
  }

  .home-why__content {
    max-width: 100%;
  }

  .home-why__grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .why-card {
    padding: 19px;

    border-radius: 14px;
  }

  .why-card__icon {
    width: 42px;
    height: 42px;

    margin-bottom: 15px;

    border-radius: 12px;
  }

  .why-card__title {
    margin-bottom: 6px;

    font-size: 16px;
  }

  .why-card__description {
    font-size: 12px;
  }


  /* =======================================================
     FEATURED DEVICES
     ======================================================= */

  .featured-device-grid {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));

    gap: 10px;
  }

  .device-card {
    border-radius: 14px;
  }

  .device-card__visual {
    aspect-ratio: 1 / 0.88;
  }

  .device-card__badge {
    top: 8px;
    left: 8px;

    font-size: 9px;
  }

  .device-card__body {
    padding: 12px;
  }

  .device-card__brand {
    margin-bottom: 3px;

    font-size: 9px;
  }

  .device-card__name {
    margin-bottom: 9px;

    font-size: 13px;
  }

  .device-card__storage {
    margin-bottom: 11px;

    gap: 4px;
  }

  .device-card__storage-item {
    padding:
      3px
      6px;

    font-size: 8px;
  }

  .device-card__action {
    min-height: 38px;

    padding-inline: 8px;

    font-size: 10px;
  }

  .featured-device-footer {
    margin-top: 26px;
  }


  /* =======================================================
     PROCESS NOTICE
     ======================================================= */

  .home-process-notice__box {
    padding:
      28px
      20px;

    gap: 24px;

    border-radius: 18px;
  }

  .home-process-notice__eyebrow {
    margin-bottom: 9px;

    font-size: 10px;
  }

  .home-process-notice__title {
    margin-bottom: 13px;

    font-size: 25px;
    line-height: 1.15;
  }

  .home-process-notice__description {
    margin-bottom: 20px;

    font-size: 13px;
    line-height: 1.7;
  }

  .home-process-notice__list {
    padding: 17px;

    border-radius: 14px;
  }

  .home-process-notice__list ul {
    gap: 10px;
  }

  .home-process-notice__list li {
    font-size: 12px;
  }


  /* =======================================================
     TESTIMONIAL
     ======================================================= */

  .testimonial-grid {
    grid-template-columns: 1fr;

    gap: 10px;
  }

  .testimonial-card {
    padding: 20px;

    border-radius: 14px;
  }


  /* =======================================================
     FAQ
     ======================================================= */

  .home-faq__layout {
    gap: 28px;
  }

  .faq-list {
    gap: 8px;
  }

  .faq-item {
    border-radius: 12px;
  }

  .faq-item__button {
    padding: 15px;

    gap: 14px;
  }

  .faq-item__question {
    font-size: 12px;
    line-height: 1.5;
  }

  .faq-item__icon {
    width: 25px;
    height: 25px;

    border-radius: 7px;
  }

  .faq-item__answer-inner {
    padding:
      0
      15px
      15px;

    font-size: 12px;
    line-height: 1.65;
  }


  /* =======================================================
     FINAL CTA
     ======================================================= */

  .home-final-cta {
    padding-bottom: 52px;
  }

  .home-final-cta__box {
    min-height: auto;

    padding:
      30px
      20px;

    border-radius: 18px;
  }

  .home-final-cta__content {
    max-width: 100%;
  }

  .home-final-cta__title {
    margin-bottom: 14px;

    font-size: 27px;
    line-height: 1.15;
  }

  .home-final-cta__description {
    margin-bottom: 22px;

    font-size: 13px;
    line-height: 1.7;
  }

  .home-final-cta__actions {
    flex-direction: column;

    gap: 8px;
  }

  .home-final-cta__actions .btn {
    width: 100%;
  }

  .home-final-cta__visual {
    display: none;
  }

}


/* =========================================================
   05. SMALL MOBILE
   <= 480px
   ========================================================= */

@media (max-width: 480px) {

  /* Hero */

  .home-hero__container {
    padding-top: 34px;
    padding-bottom: 52px;
  }

  .home-hero__title {
    max-width: 330px;

    font-size: 33px;
  }

  .home-hero__description {
    max-width: 320px;

    font-size: 13px;
  }


  /* Search */

  .home-device-search__box {
    padding: 16px;
  }


  /* Brands */

  .home-brands {
    padding-top: 58px;
  }

  .brand-card {
    min-height: 92px;
  }


  /* Featured devices */

  .featured-device-grid {
    grid-template-columns: 1fr;
  }

  .device-card__visual {
    aspect-ratio: 1 / 0.62;
  }

  .device-card__visual span[aria-hidden="true"] {
    width: 76px !important;
  }

  .device-card__body {
    padding: 15px;
  }

  .device-card__name {
    font-size: 15px;
  }

  .device-card__action {
    font-size: 12px;
  }


  /* Process notice */

  .home-process-notice__box {
    padding:
      26px
      18px;
  }


  /* Final CTA */

  .home-final-cta__box {
    padding:
      28px
      18px;
  }

}


/* =========================================================
   06. EXTRA SMALL MOBILE
   <= 380px
   ========================================================= */

@media (max-width: 380px) {

  /* Hero */

  .home-hero__title {
    max-width: 300px;

    font-size: 30px;
  }

  .home-hero__description {
    max-width: 290px;
  }


  /* Hero highlights */

  .home-hero__highlights {
    gap:
      8px
      10px;
  }

  .home-hero-highlight {
    font-size: 9px;
  }


  /* Brand */

  .brand-grid {
    gap: 8px;
  }

  .brand-card {
    min-height: 88px;

    padding: 12px;
  }


  /* Process */

  .process-card {
    padding: 16px;
  }


  /* Why */

  .why-card {
    padding: 17px;
  }


  /* Final CTA */

  .home-final-cta__title {
    font-size: 25px;
  }

}


/* =========================================================
   07. HERO IMAGE ERROR STATE
   ========================================================= */

.home-hero__visual.is-image-missing {
  min-height: 0;
}

.home-hero__visual.is-image-missing
.home-hero__visual-card,
.home-hero__visual.is-image-missing
.home-hero-float {
  display: none;
}