/* ===== Mobile & Tablet Styles ===== */
/* Loaded only on viewports <= 992px. PC styles remain in styles.css */

/* ----- Tablet (769px - 992px) ----- */
.header {
  padding: 0 40px;
}

.container {
  padding: 0 40px;
}

.footer-info {
  padding: 48px 40px;
}

.banner-slide__inner {
  padding: 0 40px;
}

.banner-slide__title {
  font-size: 36px;
}

.banner-slide--2 .banner-slide__title,
.banner-slide--3 .banner-slide__title,
.banner-slide--4 .banner-slide__title {
  font-size: 32px;
}

/* Mobile Banner Backgrounds */
.banner-slide--1 {
  background-image: url("../images/bg1-2.jpg") !important;
}

.banner-slide--2 {
  background-image: url("../images/bg2-2.jpg") !important;
}

.banner-slide--3 {
  background-image: url("../images/bg3-2.jpg") !important;
}

.banner-slide--4 {
  background-image: url("../images/bg4-2.jpg") !important;
}

.about__content {
  flex-direction: column;
  gap: 40px;
}

.about__image {
  flex: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

.why__cards {
  grid-template-columns: 1fr;
  max-width: 480px;
  margin: 0 auto;
}

.footer-info__inner {
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.footer-info__col,
.footer-info__col--brand,
.footer-info__col--links,
.footer-info__col--contact {
  width: 100%;
  align-items: center;
  text-align: center;
}

.footer-info__logo {
  display: flex;
  justify-content: center;
  width: 100%;
}

.footer-info__logo img {
  object-position: center center;
}

.footer-info__desc {
  text-align: center;
}

.footer-info__links {
  align-items: center;
}

.footer-info__links a {
  text-align: center;
}

.footer-info__contact {
  align-items: center;
}

.footer-info__contact-item {
  justify-content: center;
  text-align: center;
}

.footer-info__contact-item--email {
  align-items: center;
}

.footer-info__contact-item--address svg {
  margin-top: 0;
}

.contact-main__inner {
  flex-direction: column;
  gap: 40px;
}

.contact-main__image {
  flex: none;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

/* ----- Phone (<= 768px) ----- */
@media screen and (max-width: 768px) {
  :root {
    --header-height: 64px;
  }

  .container {
    padding: 0 20px;
  }

  /* Header */
  .header {
    padding: 0 20px;
    height: var(--header-height);
  }

  .header__logo img {
    width: 150px;
    height: 40px;
  }

  .nav {
    gap: 20px;
  }

  .nav__link {
    font-size: 15px;
  }

  /* Banner */
  .banner-carousel {
    aspect-ratio: unset;
    height: 420px;
    touch-action: pan-y pinch-zoom;
  }

  .banner-slide {
    background-size: cover;
    background-position: center center;
  }

  .banner-slide__inner {
    align-items: flex-end;
    padding: 0 20px 72px;
    justify-content: flex-start !important;
    background: linear-gradient(to top, rgba(0, 7, 76, 0.75) 0%, rgba(0, 7, 76, 0.35) 45%, transparent 100%);
  }

  .banner-slide__inner--end {
    justify-content: flex-start !important;
  }

  .banner-slide__content {
    max-width: 100%;
    width: 100%;
    gap: 12px;
  }

  .banner-slide__title {
    font-size: 26px !important;
    line-height: 1.2;
  }

  .banner-slide--2 .banner-slide__title,
  .banner-slide--3 .banner-slide__title,
  .banner-slide--4 .banner-slide__title {
    font-size: 24px !important;
  }

  .banner-slide__subtitle {
    font-size: 14px;
    line-height: 1.5;
    max-width: 100%;
  }

  .banner-dots {
    bottom: 20px;
  }

  .banner-dot {
    width: 8px;
    height: 8px;
  }

  /* About */
  .about {
    padding: 48px 0;
  }

  .about__title {
    font-size: 26px;
    margin-bottom: 32px;
    padding: 0 4px;
  }

  .about__content {
    gap: 32px;
  }

  .about__text p {
    font-size: 16px;
    line-height: 1.65;
  }

  /* Why Choose */
  .why {
    padding: 48px 0;
  }

  .why__header {
    margin-bottom: 32px;
  }

  .why__title {
    font-size: 26px;
    padding: 0 4px;
  }

  .why__subtitle {
    font-size: 15px;
    padding: 0 4px;
  }

  .why__cards {
    gap: 20px;
    max-width: 100%;
  }

  .why-card {
    padding: 24px 20px;
  }

  .why-card__title {
    font-size: 18px;
  }

  /* Security */
  .security {
    height: auto;
    min-height: 320px;
    padding: 48px 0;
  }

  .security__content {
    padding: 0 20px;
    gap: 16px;
  }

  .security__title {
    font-size: 24px;
    line-height: 1.3;
  }

  .security__body {
    font-size: 15px;
    line-height: 1.65;
  }

  /* Footer */
  .footer-info {
    padding: 40px 20px;
  }

  .footer-info__inner {
    gap: 32px;
  }

  .footer-info__desc {
    width: 100%;
  }

  .copyright {
    height: auto;
    min-height: 48px;
    padding: 12px 20px;
  }

  .copyright__text {
    font-size: 12px;
    text-align: center;
    line-height: 1.5;
  }

  /* Contact */
  .contact-main {
    padding: 40px 0;
  }

  .contact-form {
    padding: 28px 20px;
    gap: 20px;
  }

  .contact-form__title {
    font-size: 26px;
  }

  .contact-form__subtitle {
    font-size: 15px;
  }

  .contact-form__alt {
    flex-wrap: wrap;
    white-space: normal;
    text-align: center;
    justify-content: center;
  }

  /* Policy Pages */
  .policy-page {
    padding: 32px 0 48px;
  }

  .policy-page__top {
    margin-bottom: 28px;
    gap: 10px;
  }

  .policy-page__title {
    font-size: 26px;
    word-break: break-word;
  }

  .policy-page__content {
    font-size: 14px;
  }

  .policy-page__content h2 {
    font-size: 19px;
    margin: 28px 0 12px;
  }

  .policy-page__content h3 {
    font-size: 17px;
  }

  /* Back to Top */
  .back-to-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }

  .back-to-top svg {
    width: 20px;
    height: 20px;
  }
}

/* ----- Small Phone (<= 480px) ----- */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .header {
    padding: 0 16px;
  }

  .header__logo img {
    width: 130px;
    height: 36px;
  }

  .nav {
    gap: 16px;
  }

  .nav__link {
    font-size: 14px;
  }

  .banner-carousel {
    height: 380px;
  }

  .banner-slide__inner {
    padding: 0 16px 64px;
  }

  .banner-slide__title {
    font-size: 22px !important;
  }

  .banner-slide--2 .banner-slide__title,
  .banner-slide--3 .banner-slide__title,
  .banner-slide--4 .banner-slide__title {
    font-size: 20px !important;
  }

  .banner-slide__subtitle {
    font-size: 13px;
  }

  .about__title,
  .why__title,
  .contact-form__title,
  .policy-page__title {
    font-size: 22px;
  }

  .security__title {
    font-size: 20px;
  }

  .footer-info {
    padding: 32px 16px;
  }

  .contact-form {
    padding: 24px 16px;
  }

  .policy-page__content h2 {
    font-size: 17px;
  }

  .back-to-top {
    right: 12px;
    bottom: 12px;
    width: 40px;
    height: 40px;
  }
}

/* ----- Landscape Phone ----- */
@media screen and (max-width: 896px) and (orientation: landscape) {
  .banner-carousel {
    height: 320px;
  }

  .banner-slide__inner {
    padding-bottom: 56px;
  }

  .banner-slide__title {
    font-size: 22px !important;
  }

  .banner-slide__subtitle {
    font-size: 13px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
}
