/* Additional responsive refinements for edge cases and layout polish */

@media (min-width: 1600px) {
  :root {
    --container: 1320px;
  }

  .hero-copy h1,
  .page-hero-content h1 {
    font-size: clamp(4.8rem, 5vw, 6.5rem);
  }

  .visual-card-main {
    width: 560px;
    height: 720px;
  }

  .hero-visual-stack {
    min-height: 760px;
  }
}

@media (max-width: 1400px) {
  .visual-card-main {
    width: min(100%, 500px);
    height: 650px;
  }

  .visual-card-side {
    width: 230px;
    height: 176px;
  }

  .visual-card-bottom {
    width: 265px;
    height: 194px;
  }
}

@media (max-width: 1199px) {
  .hero-copy,
  .page-hero-content {
    max-width: 100%;
  }

  .section-heading {
    max-width: 760px;
  }

  .service-detail-grid,
  .service-detail-grid.reverse {
    gap: 28px;
  }

  .footer-grid {
    gap: 24px;
  }
}

@media (max-width: 991px) {
  .site-header .brand {
    max-width: calc(100% - 70px);
  }

  .page-hero-content {
    max-width: 100%;
  }

  .service-detail-grid {
    align-items: start;
  }

  .image-board-float {
    right: 0;
  }

  .portfolio-grid-large .portfolio-card img {
    height: 260px;
  }

  .filter-bar {
    justify-content: flex-start;
  }

  .cta-panel {
    align-items: start;
  }
}

@media (max-width: 767px) {
  .header-shell {
    min-height: 70px;
  }

  .site-header {
    padding: 8px 0;
  }

  .hero-grid {
    background-size: 44px 44px;
  }

  .hero-glow-one,
  .hero-glow-two {
    filter: blur(45px);
  }

  .page-hero-content,
  .section-heading,
  .reveal-left,
  .reveal-right {
    max-width: 100%;
  }

  .service-detail-section {
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .service-visual img,
  .image-board-main img {
    border-radius: 22px;
  }

  .portfolio-card,
  .team-card,
  .service-card,
  .value-card,
  .process-card,
  .testimonial-card,
  .job-card,
  .glass-panel,
  .form-card,
  .faq-item,
  .cta-panel,
  .map-card {
    border-radius: 22px;
  }

  .portfolio-grid-large .portfolio-card img {
    height: 220px;
  }

  .team-avatar img {
    height: 280px;
  }

  .timeline-card,
  .contact-info-item {
    border-radius: 18px;
  }

  .whatsapp-float,
  .back-to-top {
    box-shadow: 0 14px 34px rgba(70, 59, 46, 0.18);
  }
}

@media (max-width: 575px) {
  .container {
    width: min(100% - 18px, var(--container));
  }

  .brand-mark {
    width: 42px;
    height: 42px;
  }

  .brand-cube {
    width: 16px;
    height: 16px;
  }

  .hero-copy h1,
  .page-hero-content h1 {
    letter-spacing: -0.02em;
  }

  .hero-copy p,
  .page-hero-content p,
  .section-heading p,
  .reveal-left p,
  .reveal-right p,
  .glass-panel p,
  .service-detail p,
  .job-card p,
  .team-content p,
  .testimonial-card p,
  .value-card p,
  .process-card p {
    font-size: 0.94rem;
  }

  .hero-points {
    gap: 10px;
  }

  .hero-points li {
    font-size: 0.94rem;
  }

  .service-icon,
  .contact-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
  }

  .service-icon {
    font-size: 1.05rem;
  }

  .portfolio-card-content span,
  .eyebrow,
  .panel-kicker,
  .visual-tag,
  .job-type,
  .service-index,
  .timeline-year,
  .process-step,
  .value-number {
    font-size: 0.7rem;
    letter-spacing: 0.16em;
  }

  .portfolio-card h3,
  .service-card h3,
  .value-card h3,
  .process-card h3,
  .job-card h3,
  .team-content h3,
  .timeline-card h3 {
    font-size: 1.24rem;
  }

  .footer-col h3 {
    font-size: 1.12rem;
  }

  .filter-btn {
    width: 100%;
  }

  .site-nav {
    border-radius: 18px;
  }

  .map-card {
    padding: 8px;
  }

  .map-card iframe {
    min-height: 260px;
    border-radius: 16px;
  }
}

@media (max-width: 420px) {
  .brand-text strong {
    font-size: 0.96rem;
  }

  .menu-toggle {
    width: 44px;
    height: 44px;
  }

  .hero-copy h1,
  .page-hero-content h1 {
    font-size: clamp(1.9rem, 10.5vw, 2.7rem);
  }

  .section-heading h2,
  .reveal-left h2,
  .reveal-right h2,
  .service-detail h2,
  .cta-panel h2 {
    font-size: clamp(1.55rem, 8.5vw, 2.2rem);
  }

  .btn {
    min-height: 50px;
    padding: 13px 18px;
    font-size: 0.94rem;
  }

  .portfolio-card img,
  .portfolio-grid-large .portfolio-card img {
    height: 210px;
  }

  .team-avatar img {
    height: 250px;
  }

  .faq-question span {
    font-size: 1rem;
  }

  .faq-question i {
    width: 34px;
    height: 34px;
    font-size: 0.84rem;
  }
}