/* Homepage responsive layer — loaded after the shared design system. */

.home-page .row > * {
  min-width: 0;
}

.home-page .hero-badge,
.home-page .section-tag {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.home-page .hero-visual,
.home-page .hv-frame,
.home-page .tilt-card,
.home-page .video-card,
.home-page .flip-card {
  min-width: 0;
}

.home-page .skill-pill {
  max-width: 100%;
  white-space: normal;
  line-height: 1.35;
}

.home-page .video-card {
  display: block;
}

.home-page .video-thumb img {
  width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  object-fit: cover;
}

/* Compact expanded navigation on standard desktop/laptop widths. */
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .home-page .main-navbar .container {
    max-width: 100%;
    padding-inline: 1rem;
  }

  .home-page .navbar-brand img {
    width: 84px;
    height: auto;
  }

  .home-page .main-navbar .navbar-nav {
    gap: 0 !important;
  }

  .home-page .main-navbar .nav-link {
    padding: .45rem .5rem !important;
    font-size: .84rem;
  }

  .home-page .main-navbar .btn-cta {
    padding: .52rem .75rem;
    font-size: .84rem;
  }
}

/* Navbar remains collapsed on tablets and compact laptops. */
@media (max-width: 1199.98px) {
  .home-page .main-navbar .navbar-collapse {
    max-height: calc(100dvh - 120px);
    overflow-y: auto;
    padding: .65rem 0 1rem;
  }

  .home-page .main-navbar .navbar-nav {
    align-items: stretch !important;
  }

  .home-page .main-navbar .nav-link {
    width: 100%;
    padding: .65rem .85rem !important;
  }

  .home-page .main-navbar .nav-item:last-child {
    margin-left: 0 !important;
    margin-top: .45rem;
  }

  .home-page .main-navbar .nav-item:last-child .btn {
    width: 100%;
    justify-content: center;
  }
}

/* Tablet layout: centered hero, controlled artwork, comfortable grid gaps. */
@media (max-width: 991.98px) {
  .home-page .hero .row {
    text-align: center;
  }

  .home-page .hero-lead {
    margin-inline: auto;
  }

  .home-page .hero-actions,
  .home-page .hero-stats {
    justify-content: center;
  }

  .home-page .hero-visual {
    max-width: 760px;
    margin: 0 auto;
  }

  .home-page .hero .row.g-5,
  .home-page .section .row.g-5 {
    --bs-gutter-y: 2.25rem;
  }

  .home-page .footer-main .row {
    --bs-gutter-y: 2rem;
  }
}

/* Phones. */
@media (max-width: 767.98px) {
  .home-page .top-bar .container {
    flex-direction: column;
    justify-content: center !important;
    gap: .25rem;
    padding-block: .3rem !important;
  }

  .home-page .top-bar-contact {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .1rem .8rem;
    width: 100%;
  }

  .home-page .top-bar-contact a {
    margin: 0;
    min-height: 34px;
    padding-block: .3rem;
  }

  .home-page .lang-switch {
    max-width: 100%;
  }

  .home-page .main-navbar .container,
  .home-page .hero > .container,
  .home-page .section > .container {
    padding-inline: 1.1rem;
  }

  .home-page .navbar-brand img {
    width: 88px;
    height: auto;
  }

  .home-page .navbar-toggler {
    padding: .4rem .55rem;
  }

  .home-page .hero {
    padding-block: 40px !important;
  }

  .home-page .section {
    padding-block: 42px;
  }

  .home-page .hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.45rem);
    line-height: 1.25;
  }

  .home-page .hero-lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-page .hero-actions {
    gap: .8rem !important;
  }

  .home-page .hero-actions .btn {
    flex: 1 1 220px;
    justify-content: center;
  }

  .home-page .hero-stats {
    gap: 1rem !important;
    margin-top: 2rem !important;
  }

  .home-page .hero-stats > div {
    flex: 1 1 88px;
    max-width: 125px;
  }

  .home-page .hero-visual::after {
    bottom: -18px;
    height: 24px;
  }

  .home-page .hv-frame {
    border-radius: 16px;
  }

  .home-page .section-title {
    font-size: clamp(1.55rem, 6.6vw, 2rem);
    line-height: 1.35;
  }

  .home-page .section-lead {
    font-size: 1rem;
    line-height: 1.75;
  }

  .home-page .tilt-card {
    padding: 1.55rem 1.25rem;
  }

  .home-page .chickoo-bubble {
    padding: 1.2rem 1.25rem;
  }

  .home-page .flip-card {
    height: 245px;
  }

  .home-page .flip-face {
    padding: 1.3rem;
  }

  .home-page .skill-pill {
    margin: .25rem;
    padding: .62rem .9rem;
  }

  .home-page .video-card .body {
    padding: .9rem 1rem;
  }

  .home-page .footer-brand img {
    max-width: 100%;
  }

  .home-page .footer-office,
  .home-page .f-contact-item,
  .home-page .fo-addr {
    overflow-wrap: anywhere;
  }
}

/* Narrow phones, including 320px Android/iPhone SE widths. */
@media (max-width: 479.98px) {
  .home-page .main-navbar .container,
  .home-page .hero > .container,
  .home-page .section > .container {
    padding-inline: .9rem;
  }

  .home-page .top-bar-contact {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .home-page .top-bar-contact a {
    font-size: .8rem;
  }

  .home-page .lang-btn {
    padding-inline: .7rem;
    font-size: .78rem;
  }

  .home-page .hero {
    padding-block: 34px !important;
  }

  .home-page .section {
    padding-block: 36px;
  }

  .home-page .hero h1 {
    font-size: clamp(1.7rem, 9vw, 2rem);
  }

  .home-page .hero-badge,
  .home-page .section-tag {
    justify-content: center;
    padding: .4rem .72rem;
    font-size: .72rem;
    text-align: center;
  }

  .home-page .hero-actions {
    flex-direction: column;
  }

  .home-page .hero-actions .btn {
    width: 100%;
    flex-basis: auto;
  }

  .home-page .chickoo-skills-grid > * {
    width: 100%;
  }

  .home-page .chickoo-skills-grid .skill-pill {
    margin: 0;
  }

  .home-page .tilt-card {
    padding: 1.35rem 1rem;
  }

  .home-page .flip-card {
    height: 230px;
  }

  .home-page .footer-links a {
    font-size: .88rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
