/* ==========================================================================
   HABIKON DESIGN STUDIO - RESPONSIVE STYLESHEET
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Laptop & Small Desktop (max-width: 1200px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  :root {
    --container-padding: 28px;
  }

  /* Hero collage adjustments */
  .hero-poster-wrapper {
    max-width: 960px;
    min-height: 480px;
  }

  .poster-horizon {
    width: 140px;
    top: -5px;
  }

  .poster-milkshake {
    width: 220px;
    top: 50px;
    left: 10px;
  }

  .poster-nike {
    width: 300px;
    bottom: -10px;
    right: 10px;
  }

  .branding-grid {
    grid-template-columns: 320px 1fr;
    gap: 48px;
  }

  .footer-top-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 36px;
  }
}

/* --------------------------------------------------------------------------
   2. Tablet Landscape & Medium Devices (max-width: 992px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 992px) {
  :root {
    --header-height: 76px;
  }

  /* Header Navigation */
  .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .header-actions {
    gap: 10px;
  }

  .btn-header-inquiry {
    padding: 7px 14px;
    font-size: 12px;
  }

  /* Hero Section */
  .hero-section {
    min-height: auto;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 72px;
  }

  .hero-poster-wrapper {
    min-height: auto;
    position: relative;
    padding-top: 20px;
  }

  /* On tablet, show hero posters in a stylized layered layout */
  .poster-horizon {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: 150px;
    margin: 0 auto 16px auto;
  }

  .poster-milkshake {
    position: absolute;
    width: 180px;
    top: 80px;
    left: -10px;
    opacity: 0.85;
  }

  .poster-nike {
    position: absolute;
    width: 240px;
    bottom: 20px;
    right: -10px;
    opacity: 0.85;
  }

  /* About & Sections */
  .two-column-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 60px;
    padding-top: 40px;
  }

  /* Branding Section */
  .branding-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .branding-visual-card {
    max-width: 380px;
    margin: 0 auto;
  }

  /* Works Grid */
  .works-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Clients Marquee */
  .clients-marquee-group {
    gap: 48px;
    padding: 0 24px;
  }
  .client-item {
    min-width: 120px;
  }

  /* Testimonials Bento Grid Tablet */
  .testimonials-section {
    padding: 96px 0 104px 0;
  }

  .testimonials-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .testimonials-header-meta {
    width: 100%;
    justify-content: space-between;
  }

  .bento-slider {
    grid-column: span 12;
  }

  .bento-rating {
    grid-column: span 12;
  }

  /* About Page Tablet Breakpoints */
  .about-hero-title-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .section-header-split {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .mission-vision-bento {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mv-card {
    padding: 36px;
  }

  .pillars-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .process-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  /* Footer */
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }

  .footer-brand-block {
    grid-column: 1 / -1;
  }

  /* Selected Works Tablet */
  .work-hero-section {
    padding: 110px 0 24px 0;
  }

  .work-filter-wrapper {
    top: 70px;
  }

  .works-editorial-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 32px 20px;
  }

  .grid-span-12 { grid-column: span 12; }
  .grid-span-7  { grid-column: span 12; }
  .grid-span-5  { grid-column: span 12; }
  .grid-span-6  { grid-column: span 6; }
  .grid-span-4  { grid-column: span 6; }

  .grid-span-12 .work-img-container { aspect-ratio: 16 / 9; min-height: 380px; }
  .grid-span-7 .work-img-container  { aspect-ratio: 16 / 10; min-height: 340px; }
  .grid-span-5 .work-img-container  { aspect-ratio: 16 / 10; min-height: 340px; }
  .grid-span-6 .work-img-container  { aspect-ratio: 4 / 3; min-height: 300px; }
  .grid-span-4 .work-img-container  { aspect-ratio: 4 / 3; min-height: 280px; }

  .case-drawer-panel {
    width: 540px;
  }

  /* Contact Page Tablet */
  .contact-hero-section {
    padding: 110px 0 24px 0;
  }

  .commission-layout-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .commission-sidebar {
    order: 2;
  }

  .studio-clocks-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .commission-form-card {
    padding: 32px 24px;
  }
}

/* --------------------------------------------------------------------------
   3. Tablet Portrait & Mobile Devices (max-width: 768px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 768px) {
  :root {
    --container-padding: 20px;
    --header-height: 70px;
  }

  /* Hero Section */
  .hero-poster-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
  }

  .poster-horizon {
    width: 140px;
    position: static;
    transform: none !important;
  }

  .poster-milkshake {
    display: none; /* Hide decorative background posters on mobile to prevent clutter */
  }

  .poster-nike {
    display: none;
  }

  .hero-heading {
    margin-top: 24px;
    margin-bottom: 18px;
  }

  .hero-badge-pill {
    padding: 2px 16px;
    margin-left: 4px;
  }

  /* Sections */
  .about-section {
    padding: 72px 0 48px 0;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px 16px;
  }

  .branding-section {
    padding: 64px 0;
  }

  .who-section {
    padding: 32px 0 72px 0;
  }

  .works-section {
    padding: 80px 0 90px 0;
  }

  .works-header-row {
    margin-bottom: 36px;
  }

  .works-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .clients-section {
    padding: 72px 0;
  }

  .clients-title {
    margin-bottom: 40px;
  }

  .clients-marquee-container {
    gap: 24px;
  }
  .clients-marquee-group {
    gap: 36px;
    padding: 0 16px;
  }
  .client-item {
    min-width: 100px;
  }

  /* Testimonials Section Mobile */
  .testimonials-section {
    padding: 72px 0 80px 0;
  }

  .testimonials-bento-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .bento-slider,
  .bento-rating {
    grid-column: span 1;
    padding: 28px 22px;
  }

  .bento-quote {
    font-size: 16px;
  }

  .bento-author-row {
    flex-wrap: wrap;
    gap: 12px;
  }

  .verification-badge {
    width: 100%;
    justify-content: flex-start;
    margin-top: 4px;
  }

  .project-tag {
    margin-left: 0;
    margin-top: 4px;
  }

  .slider-viewport {
    min-height: 210px;
  }

  /* About Page Mobile Breakpoints */
  .about-hero-section {
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 56px;
  }

  .about-hero-heading {
    font-size: 34px;
  }

  .about-hero-coords {
    padding: 16px 20px;
  }

  .studio-frame-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px 20px;
  }

  .mv-card {
    padding: 28px 22px;
  }

  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pillar-card {
    padding: 28px 22px;
  }

  .process-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .process-step-card {
    padding: 28px 22px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .team-card {
    max-width: 440px;
    margin: 0 auto;
    width: 100%;
  }

  /* Footer */
  .site-footer {
    padding: 72px 0 32px 0;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    margin-bottom: 64px;
  }

  .footer-cta-wrapper {
    margin: 40px 0 60px 0;
  }

  .footer-cta-link {
    gap: 16px;
  }

  .footer-bottom-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Selected Works Mobile */
  .work-hero-section {
    padding: 96px 0 20px 0;
  }

  .work-hero-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .work-filter-wrapper {
    position: static;
    padding: 10px 0;
    margin-bottom: 32px;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
  }

  .work-filter-bar {
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
  }

  .filter-pill-btn {
    white-space: nowrap;
    padding: 8px 14px;
    font-size: 12px;
  }

  .works-editorial-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .grid-span-12,
  .grid-span-7,
  .grid-span-5,
  .grid-span-6,
  .grid-span-4 {
    grid-column: span 1 / -1;
  }

  .grid-span-12 .work-img-container,
  .grid-span-7 .work-img-container,
  .grid-span-5 .work-img-container,
  .grid-span-6 .work-img-container,
  .grid-span-4 .work-img-container {
    aspect-ratio: 16 / 11;
    min-height: unset;
  }

  .work-caption {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .work-case-card .work-caption-title {
    font-size: 17px;
  }

  .grid-span-12 .work-caption-title {
    font-size: 20px;
  }

  .case-drawer-panel {
    width: 100vw;
    max-width: 100vw;
  }

  .drawer-panel-header {
    padding: 16px 20px;
  }

  .drawer-panel-content {
    padding: 20px 18px 40px 18px;
  }

  .drawer-media-img {
    height: 220px;
  }

  .drawer-metrics-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .drawer-details-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact Page Mobile */
  .contact-hero-section {
    padding: 96px 0 20px 0;
  }

  .contact-meta-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .contact-quick-chips {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .quick-copy-btn {
    width: 100%;
    justify-content: space-between;
  }

  .form-fields-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .form-submit-row {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
  }

  .btn-submit-inquiry {
    width: 100%;
    justify-content: center;
  }

  .form-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .faq-trigger {
    padding: 18px 18px;
  }

  .faq-content {
    padding: 0 18px 20px 18px;
  }

  .studio-clock-card {
    padding: 24px;
    min-height: auto;
  }

  .clock-digital-time {
    font-size: 32px;
  }
}

/* --------------------------------------------------------------------------
   4. Small Mobile (max-width: 480px)
   -------------------------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .hero-heading {
    font-size: 34px;
    letter-spacing: -0.02em;
  }

  .hero-badge-pill {
    padding: 1px 12px;
  }

  .stat-number {
    font-size: 34px;
  }

  .stat-label {
    font-size: 13px;
  }

  .branding-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-cta-text {
    font-size: 48px;
  }

  .footer-cta-arrow {
    width: 52px;
    height: 52px;
  }

  /* Testimonials Small Mobile */
  .testimonials-header-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .testimonials-coordinates {
    display: none;
  }

  .metric-value {
    font-size: 40px;
  }

  .rating-big-score {
    font-size: 34px;
  }

  /* Selected Works Small Mobile */
  .work-hero-title {
    font-size: 32px;
  }

  .work-hero-lead {
    font-size: 15.5px;
  }

  /* Contact Page Small Mobile */
  .contact-hero-title {
    font-size: 32px;
  }

  .contact-hero-lead {
    font-size: 15.5px;
  }

  .form-main-heading {
    font-size: 22px;
  }
}

/* --------------------------------------------------------------------------
   5. Reduced Motion Preferences
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .marquee-track,
  .clients-marquee-track {
    animation: none !important;
  }

  .hero-poster,
  .work-img,
  .branding-img {
    transform: none !important;
  }

  .work-img-container {
    clip-path: none !important;
  }

  .work-curtain {
    display: none !important;
  }
}
