/* ============================================
   ANAKUT — Responsive Breakpoints
   Mobile-first progressive enhancement
   ============================================ */

/* ── Max 1200px (xl) ── */
@media (max-width: 1200px) {
  .footer__grid {
    gap: var(--spacing-md);
  }

  .about-teaser {
    gap: var(--spacing-md);
  }
}

/* ── Max 992px (lg) ── */
@media (max-width: 992px) {
  /* Navigation → Hamburger */
  .header__nav {
    display: none;
  }

  .header__cta {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .mobile-overlay {
    display: flex;
  }

  /* Mobile overlay — client & lang buttons */
  .mobile-overlay .btn--client {
    width: 100%;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    font-size: 0.9rem;
    border-color: var(--color-gray-border);
  }

  .mobile-overlay .lang-toggle {
    margin-left: 0;
    margin-top: 1rem;
    padding: 0.6rem 1.25rem;
  }

  /* Services: 2 cols */
  .services__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* About teaser: stacked */
  .about-teaser {
    grid-template-columns: 1fr;
  }

  .about-teaser__image {
    max-height: 350px;
  }

  .about-teaser__image img {
    max-height: 350px;
  }

  /* Blog: 2 cols */
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Contact: stacked */
  .contact__grid {
    grid-template-columns: 1fr;
  }

  .contact-info {
    order: -1;
  }

  /* Footer: 2 cols */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
  }

  .footer__col:first-child {
    grid-column: 1 / -1;
  }

  /* Service detail: stacked */
  .service-detail {
    grid-template-columns: 1fr;
  }

  .service-detail:nth-child(even) {
    direction: ltr;
  }

  .service-detail__image {
    max-height: 400px;
  }

  /* Timeline: single column */
  .timeline::before {
    left: 20px;
  }

  .timeline__item,
  .timeline__item:nth-child(odd),
  .timeline__item:nth-child(even) {
    flex-direction: row;
    padding-left: 50px;
  }

  .timeline__content,
  .timeline__item:nth-child(odd) .timeline__content,
  .timeline__item:nth-child(even) .timeline__content {
    width: 100%;
    text-align: left;
    margin: 0;
  }

  .timeline__dot {
    left: 20px;
  }

  /* Values: 1 col on tablet */
  .values__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* ── Max 768px (md) ── */
@media (max-width: 768px) {
  :root {
    --spacing-xl: 4rem;
    --spacing-xxl: 5rem;
    --header-height: 70px;
  }

  /* Stats bar: 2x2 grid */
  .stats-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-sm);
  }

  .stats-bar__item:nth-child(2)::after {
    display: none;
  }

  .stats-bar__item:nth-child(odd)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background: var(--color-gray-border);
  }

  .stats-bar__item:nth-child(3)::after,
  .stats-bar__item:nth-child(4)::after {
    display: none;
  }

  /* Services: 1 col */
  .services__grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Blog: 1 col */
  .blog-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }

  /* Form row: stacked */
  .form-row {
    grid-template-columns: 1fr;
  }

  /* Hero buttons: stack */
  .hero__buttons {
    flex-direction: column;
    align-items: flex-start;
  }

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

  /* Footer: single column */
  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: center;
  }

  .footer__col:first-child {
    grid-column: 1;
  }

  .footer__social {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
  }

  /* Author box: stack */
  .author-box {
    flex-direction: column;
    text-align: center;
  }

  /* Page hero height */
  .page-hero {
    height: 40vh;
    min-height: 280px;
  }

  /* About gallery: 1 col */
  .about-gallery-grid {
    grid-template-columns: 1fr !important;
  }

  /* Pricing table */
  .pricing-table__header {
    padding: 1rem var(--spacing-sm);
  }

  .pricing-table__header h3 {
    font-size: 1.1rem;
  }

  .pricing-table__row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    padding: 1rem var(--spacing-sm);
  }

  .pricing-table__price {
    font-size: 1rem;
  }

  .pricing-table__price small {
    display: block;
    margin-top: 0.15rem;
  }

  /* Article end CTA */
  .article-end-cta {
    padding: var(--spacing-md);
    margin: var(--spacing-md) 0;
  }

  .article-end-cta h3 {
    font-size: 1.25rem;
  }

  /* Contact page location images: stack */
  .contact-location-images {
    flex-direction: column !important;
  }

  .contact-location-images img {
    width: 100% !important;
  }

  /* Certifications */
  .certifications__grid {
    flex-direction: column;
    align-items: center;
  }

  .certification-item {
    max-width: 100%;
    width: 100%;
  }

  /* CTA Banner */
  .cta-banner {
    padding: var(--spacing-lg) 0;
  }
}

/* ── Max 576px (sm) ── */
@media (max-width: 576px) {
  :root {
    --spacing-md: 1.5rem;
    --spacing-lg: 2.5rem;
    --spacing-xl: 3rem;
  }

  .container {
    padding: 0 var(--spacing-sm);
  }

  /* Hero adjustments */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  .hero__content {
    padding: 0 var(--spacing-xs);
  }

  .hero__scroll {
    display: none;
  }

  /* Stats bar: smaller text */
  .stats-bar__number {
    font-size: 1.75rem;
  }

  .stats-bar__label {
    font-size: 0.75rem;
  }

  /* Cards */
  .service-card {
    padding: var(--spacing-sm);
  }

  /* Testimonial quote */
  .testimonial__quote {
    font-size: 1rem;
    padding: 0 var(--spacing-xs);
  }

  .testimonial__quote::before {
    font-size: 3.5rem;
    top: -1rem;
  }

  /* Buttons */
  .btn {
    padding: 0.875rem 1.75rem;
    font-size: 0.8125rem;
  }

  .btn--large {
    padding: 1rem 2rem;
    font-size: 0.875rem;
  }

  /* Pricing table */
  .pricing-table__row {
    padding: 1rem var(--spacing-sm);
  }

  .pricing-table__label {
    font-size: 0.875rem;
  }

  .pricing-table__price {
    font-size: 1rem;
  }

  /* Single post */
  .single-post__content {
    padding: var(--spacing-md) var(--spacing-sm);
  }

  .single-post__body {
    font-size: 1rem;
  }

  /* Share buttons */
  .share-buttons {
    justify-content: center;
  }

  /* Contact info */
  .contact-info {
    padding: var(--spacing-sm);
  }

  /* Mobile overlay nav */
  .mobile-overlay .nav__link {
    font-size: 1.25rem;
  }

  /* Service detail: full width image */
  .service-detail__image {
    max-height: 300px;
  }

  .service-detail__image img {
    border-radius: var(--border-radius-lg);
  }

  /* Pricing table: tighter */
  .pricing-table__row {
    padding: 0.875rem var(--spacing-sm);
  }

  .pricing-table__note {
    padding: var(--spacing-sm);
    font-size: 0.8125rem;
  }

  /* Article end CTA: smaller */
  .article-end-cta {
    padding: var(--spacing-sm);
  }

  .article-end-cta .btn {
    width: 100%;
    justify-content: center;
  }

  /* CTA banner buttons stack */
  .cta-banner__links {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }

  .cta-banner__links .btn {
    width: 100%;
    justify-content: center;
  }

  /* Single post images */
  .single-post__body img {
    margin: 1.5rem 0;
  }

  /* Contact info price box */
  .contact-info__price {
    font-size: 1rem;
  }
}

/* ── Max 400px (xs — very small screens) ── */
@media (max-width: 400px) {
  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .header__logo-text {
    font-size: 1.35rem;
  }

  .stats-bar__grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-bar__number {
    font-size: 1.5rem;
  }
}

/* ── Landscape phones ── */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    min-height: 100vh;
    padding: var(--spacing-lg) 0;
  }

  .hero__scroll {
    display: none;
  }

  .mobile-overlay .nav__link {
    font-size: 1rem;
  }

  .mobile-overlay .nav__list {
    gap: var(--spacing-xs);
  }
}
