/* ==========================================================================
   ZYAGO STUDIO - RESPONSIVE STYLESHEET
   Strictly Vanilla CSS - Mobile, Tablet, Desktop Viewports
   ========================================================================== */

/* --------------------------------------------------------------------------
   LARGE SCREENS (> 1440px)
   -------------------------------------------------------------------------- */
@media (min-width: 1441px) {
  :root {
    --container-max: 1400px;
  }
}

/* --------------------------------------------------------------------------
   TABLET (max-width: 1023px)
   -------------------------------------------------------------------------- */
@media (max-width: 1023px) {
  .header-nav {
    display: none !important;
  }
  .hamburger-btn {
    display: flex !important;
  }
  .btn-contact {
    display: none;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}

@media (max-width: 540px) {
  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .footer-main-grid > div:first-child,
  .footer-main-grid > div:last-child {
    grid-column: span 1;
  }
}

/* --------------------------------------------------------------------------
   MOBILE SCREENS (max-width: 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 70px;
  }

  .site-header {
    padding: 0 20px;
  }

  .header-logo {
    height: 32px;
  }

  .section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-hero-section {
    min-height: 85vh;
    padding-bottom: 24px;
  }

  .gallery-hero-section {
    min-height: 48vh !important;
    height: 48vh !important;
    padding-bottom: 20px;
  }

  .home-hero-title {
    font-size: clamp(30px, 7.5vw, 42px);
    margin-bottom: 12px;
  }

  .home-hero-desc {
    font-size: 13.5px;
  }

  .hero-brand-seal-badge {
    width: 74px;
    height: 74px;
    margin-bottom: 10px;
  }

  .hero-google-badge {
    padding: 3px 10px 3px 5px;
    margin-bottom: 10px;
    gap: 6px;
  }

  .hero-badge-text {
    font-size: 9.5px;
  }

  .home-hero-cta-group {
    gap: 10px;
    margin-top: 16px;
  }

  .hero-cta-primary,
  .hero-cta-secondary {
    padding: 9px 18px;
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }

  .home-hero-bottom-bar {
    margin-top: 16px;
  }

  .editorial-grid-3 {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  /* --------------------------------------------------------------------------
     THE BESPOKE EXPERIENCE (App-Like Mobile Carousel & Pills)
     -------------------------------------------------------------------------- */
  .experience-section {
    padding-top: 50px;
    padding-bottom: 50px;
    overflow: hidden;
  }

  .experience-split-wrap {
    display: flex !important;
    flex-direction: column !important;
    gap: 28px !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .experience-narrative-col {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    margin: 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
  }

  .experience-tag-badge {
    margin-bottom: 14px;
    align-self: center;
  }

  .experience-heading {
    font-size: clamp(28px, 7vw, 38px);
    line-height: 1.15;
    margin-bottom: 14px;
    text-align: center;
    width: 100%;
  }

  .experience-desc {
    width: 100%;
    max-width: 100%;
    margin: 0 auto 20px;
    font-size: 13.5px;
    line-height: 1.65;
    padding: 0 4px;
    text-align: center;
    box-sizing: border-box;
  }

  .experience-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 320px;
    gap: 10px;
    margin: 0 auto 18px;
  }

  .experience-btn-primary,
  .experience-btn-secondary {
    width: 100%;
    justify-content: center;
    text-align: center;
    padding: 12px 20px;
    font-size: 11.5px;
    box-sizing: border-box;
  }

  .experience-trust-badges {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 14px;
    font-size: 10.5px;
    gap: 6px;
    width: 100%;
    flex-wrap: wrap;
    text-align: center;
  }

  .experience-showcase-col {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow: visible;
  }

  /* App-Like Segmented Stage Indicator */
  .experience-mobile-pills {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin: 0 auto 16px;
    padding: 4px;
    background: #ffffff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    width: 100%;
    max-width: 340px;
    box-sizing: border-box;
  }

  .exp-pill-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 8px;
    border-radius: var(--radius-pill);
    border: none;
    background: transparent;
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dark-secondary);
    cursor: pointer;
    transition: all 0.3s var(--ease-luxury);
    -webkit-tap-highlight-color: transparent;
  }

  .exp-pill-num {
    font-size: 9px;
    opacity: 0.7;
  }

  .exp-pill-btn.active {
    background: var(--color-gold);
    color: #ffffff;
    box-shadow: 0 3px 12px rgba(176, 141, 87, 0.32);
  }

  .exp-pill-btn.active .exp-pill-num {
    opacity: 1;
    font-weight: 700;
  }

  /* Horizontal Snap Carousel with Peek */
  .experience-cards-track {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 10px calc(50vw - 145px) 24px;
    margin-left: -20px;
    margin-right: -20px;
    scrollbar-width: none;
    box-sizing: border-box;
  }

  .experience-cards-track::-webkit-scrollbar {
    display: none;
  }

  .experience-card-item {
    flex: 0 0 290px;
    width: 290px;
    max-width: 290px;
    min-height: 440px;
    scroll-snap-align: center;
    scroll-snap-stop: always;
    border-radius: 18px;
    transition: transform 0.35s var(--ease-luxury), opacity 0.35s ease, box-shadow 0.35s ease;
    box-sizing: border-box;
  }

  .experience-card-item:not(.active) {
    opacity: 0.85;
    transform: scale(0.96);
  }

  .experience-card-item.active {
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  }

  .experience-card-item[data-index="0"] .exp-card-media img {
    object-position: center 25%;
  }

  .experience-card-item[data-index="1"] .exp-card-media img {
    object-position: center 15%;
  }

  .experience-card-item[data-index="2"] .exp-card-media img {
    object-position: center 20%;
  }

  .experience-mobile-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dark-secondary);
    margin-top: 2px;
    opacity: 0.75;
  }

  .exp-hint-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-gold);
    box-shadow: 0 0 6px var(--color-gold-glow);
    animation: pulseHint 2s infinite ease-in-out;
  }

  @keyframes pulseHint {
    0%, 100% { opacity: 0.35; transform: scale(0.85); }
    50% { opacity: 1; transform: scale(1.35); }
  }

  .about-collage-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .masonry-gallery-grid,
  .editorial-gallery-container {
    display: block !important;
    column-count: 2 !important;
    column-gap: 12px !important;
    width: 100%;
  }

  .stagger-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .gallery-item {
    border-radius: 0 !important;
    -webkit-tap-highlight-color: transparent;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: inline-block !important;
    width: 100% !important;
    margin-bottom: 12px !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
    page-break-inside: avoid !important;
    vertical-align: top;
  }

  .gallery-item:active {
    transform: scale(0.96);
  }

  .gallery-item img {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 15%;
    display: block;
  }

  .gallery-item img[src*="img12.webp"] {
    object-position: center 10%;
  }

  .gallery-item img[src*="img2.webp"] {
    object-position: center 12%;
  }

  .gallery-item.item-offset-top {
    aspect-ratio: 3 / 3.3;
  }

  .gallery-item.item-portrait-tall {
    aspect-ratio: 3 / 4;
  }

  .gallery-item.item-portrait {
    aspect-ratio: 3 / 3.75;
  }

  .gallery-item.item-landscape {
    aspect-ratio: 16 / 11;
  }

  /* Luxury Mobile Sticky Category Dock (Full-Width Pill Slider) */
  .gallery-filter-dock {
    position: sticky;
    top: var(--header-height-mobile, 70px);
    z-index: 850;
    background: rgba(250, 248, 245, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: 10px 0;
    margin: -16px calc(-1 * var(--container-pad, 20px)) 16px;
    border-bottom: 1px solid rgba(20, 23, 19, 0.08);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
    display: block;
    width: auto;
    box-sizing: border-box;
  }

  .gallery-filter-scroll-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    position: relative;
  }

  .gallery-filter-bar {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 4px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
    scroll-padding: 0 16px;
    overscroll-behavior-x: contain;
  }

  .gallery-filter-bar::-webkit-scrollbar {
    display: none;
  }

  .gallery-filter-btn {
    white-space: nowrap;
    padding: 9px 18px;
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.12em;
    flex-shrink: 0;
    min-height: 40px;
    scroll-snap-align: start;
    border-radius: var(--radius-pill);
    gap: 7px;
    background: rgba(176, 141, 87, 0.05);
    border: 1px solid rgba(176, 141, 87, 0.35);
    color: var(--text-dark-secondary);
    box-shadow: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  .gallery-filter-btn:active {
    transform: scale(0.97);
  }

  .gallery-filter-btn.active {
    background: rgba(176, 141, 87, 0.14);
    color: var(--color-gold);
    border: 1px solid var(--color-gold);
    box-shadow: 0 2px 12px rgba(176, 141, 87, 0.16), inset 0 0 0 1px rgba(176, 141, 87, 0.2);
    font-weight: 600;
  }

  .gallery-filter-btn .filter-count {
    min-width: 20px;
    height: 20px;
    font-size: 10px;
    font-weight: 600;
    padding: 0 5px;
    border-radius: var(--radius-pill);
    background: rgba(176, 141, 87, 0.12);
    color: var(--color-gold);
  }

  .gallery-filter-btn.active .filter-count {
    background: var(--color-gold);
    color: #ffffff;
  }

  .gallery-results-bar {
    margin: 4px 0 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 2px;
  }

  .category-sheet-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    padding: 5px 11px;
    font-size: 10px;
    background: #ffffff;
    border: 1px solid var(--border-gold);
    color: var(--color-gold);
    border-radius: var(--radius-pill);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  .editorial-gallery-container {
    column-count: 2;
    column-gap: 12px;
    display: block;
  }

  .gallery-item {
    margin-bottom: 12px;
  }
}

/* --------------------------------------------------------------------------
   SMALL MOBILE (< 440px)
   -------------------------------------------------------------------------- */
@media (max-width: 440px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .home-hero-title {
    font-size: 28px;
    line-height: 1.15;
  }

  .testimonial-quote {
    font-size: 22px;
  }

  .editorial-gallery-container,
  .masonry-gallery-grid {
    display: block !important;
    column-count: 2 !important;
    column-gap: 8px !important;
    width: 100%;
  }

  .gallery-item {
    margin-bottom: 8px !important;
    display: inline-block !important;
    width: 100% !important;
    break-inside: avoid !important;
    -webkit-column-break-inside: avoid !important;
  }

  .sophie-cards-grid {
    max-width: 300px;
  }

  .sophie-profile-card {
    max-width: 300px;
  }

  .sophie-card-media {
    height: 290px;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE: SERVICES 3-COL & WORKFLOW TIMELINE
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
  .services-columns-grid {
    gap: 36px;
  }
}

@media (max-width: 768px) {
  .services-three-col-section {
    padding: 60px 0 50px;
  }

  .services-columns-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    max-width: 480px;
    margin: 0 auto;
  }

  .service-col-card {
    padding: 0;
  }

  .service-col-icon-wrap {
    margin-bottom: 18px;
  }

  .service-col-title {
    font-size: 19px;
    margin-bottom: 12px;
  }

  .service-col-desc {
    font-size: 14px;
    line-height: 1.75;
  }
}

/* --------------------------------------------------------------------------
   RESPONSIVE: AWWWARDS GRAND PRODUCTION WORKFLOW
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .awwwards-workflow-section {
    padding: 70px 0 80px;
  }

  .awwwards-timeline-track {
    padding-left: 0;
  }

  .timeline-rail-bg,
  .timeline-rail-fill {
    left: 22px;
    transform: translateX(-50%);
    width: 2.5px;
  }

  .awwwards-step-list {
    gap: 32px;
  }

  .awwwards-step-item {
    grid-template-columns: 44px 1fr;
    column-gap: 16px;
  }

  .step-node-col {
    width: 44px;
  }

  .step-node-halo {
    width: 44px;
    height: 44px;
  }

  .step-node-num {
    font-size: 12px;
  }

  .step-content-card {
    padding: 24px 20px;
    border-radius: 16px;
  }

  .step-heading {
    font-size: 22px;
  }

  .step-paragraph {
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 12px;
  }

  .step-detail-tag {
    font-size: 11px;
    padding: 4px 10px;
  }

  /* Google Reviews Slider Mobile */
  .google-reviews-section {
    padding: 60px 0 50px;
  }

  .reviews-header-center {
    margin-bottom: 32px;
  }

  .reviews-arch-badge {
    padding: 6px 16px;
    font-size: 12px;
  }

  .reviews-slider-card {
    padding: 34px 20px 24px;
    border-radius: 20px;
  }

  .review-quote-mark {
    font-size: 56px;
    margin-bottom: 4px;
  }

  .review-quote-text {
    font-size: 17px;
    line-height: 1.6;
    margin-bottom: 24px;
  }

  .review-author-row {
    padding: 8px 16px;
    gap: 12px;
    flex-direction: row;
  }

  .review-avatar {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .review-author-name {
    font-size: 14px;
  }

  .review-meta {
    font-size: 11px;
    flex-wrap: wrap;
  }

  .reviews-slider-footer {
    margin-top: 24px;
    padding-top: 18px;
  }
}

/* Studio Atelier & Google Maps Responsive Styles */
@media (max-width: 991px) {
  .studio-atelier-map-section {
    padding: 60px 0 80px 0;
  }

  .studio-map-stage-wrap {
    min-height: 500px;
    height: 520px;
    border-radius: 22px;
  }

  .studio-maps-card-anchor {
    left: 18px;
    top: 18px;
    bottom: 18px;
  }

  .maps-preview-card {
    width: 300px;
    padding: 10px 12px 16px 12px;
  }

  .maps-card-media-wrap {
    height: 165px;
  }
}

@media (max-width: 768px) {
  .studio-map-stage-wrap {
    display: flex;
    flex-direction: column-reverse;
    height: auto;
    min-height: auto;
    border-radius: 22px;
    background: #f8fafc;
  }

  .studio-map-canvas-container {
    position: relative;
    inset: auto;
    width: 100%;
    height: 320px;
  }

  .studio-map-iframe {
    height: 320px;
  }

  .studio-maps-card-anchor {
    position: relative;
    inset: auto;
    width: 100%;
    padding: 16px 14px 20px 14px;
    display: flex;
    justify-content: center;
    pointer-events: auto;
  }

  .maps-preview-card {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  }

  .studio-map-fullscreen-btn {
    top: 14px;
    right: 14px;
    font-size: 11px;
    padding: 6px 13px;
  }
}
