/* =========================================================
   DARUMA CONSTRUCTION — RESPONSIVE STYLES
   ========================================================= */

/* ---------------------------------------------------------
   LAPTOPS & SMALL DESKTOPS (max-width: 1200px)
   --------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .container {
    padding: 0 2rem;
  }

  .why-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .testimonials-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .values-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }

  .director-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .director-portrait {
    position: static;
    max-width: 320px;
    margin: 0 auto;
  }

  .history-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .history-image {
    order: -1;
  }

  .mv-grid {
    grid-template-columns: 1fr 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

/* ---------------------------------------------------------
   TABLETS (max-width: 1024px)
   --------------------------------------------------------- */
@media screen and (max-width: 1024px) {
  :root {
    --navbar-height: 72px;
  }

  .hero-content h1 {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero-content .lead {
    font-size: 1rem;
  }

  .section {
    padding: var(--space-lg) 0;
  }

  .cta-band {
    padding: var(--space-md) var(--space-sm);
  }

  .cta-band h2 {
    font-size: 1.8rem;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .partners-strip {
    justify-content: center;
    gap: 1.5rem;
  }

  .partner-logo {
    font-size: 1rem;
  }

  .timeline::before {
    left: 20px;
  }

  .timeline-item {
    width: 100%;
    padding-left: 50px;
    padding-right: 0;
    text-align: left;
  }

  .timeline-item:nth-child(odd) {
    left: 0;
    text-align: left;
  }

  .timeline-item:nth-child(even) {
    left: 0;
  }

  .timeline-item::before {
    left: 12px;
    top: 0.3rem;
  }

  .timeline-item:nth-child(odd)::before {
    right: auto;
    left: 12px;
  }

  .timeline-item:nth-child(even)::before {
    left: 12px;
  }
}

/* ---------------------------------------------------------
   MOBILE PORTRAIT & SMALL TABLETS (max-width: 768px)
   --------------------------------------------------------- */
@media screen and (max-width: 768px) {
  /* ---- Global ---- */
  .container {
    padding: 0 1.25rem;
  }

  h1 {
    font-size: clamp(1.8rem, 5vw, 2.4rem);
  }
  h2 {
    font-size: clamp(1.5rem, 4vw, 2rem);
  }
  h3 {
    font-size: 1.15rem;
  }

  .section-header {
    margin-bottom: var(--space-md);
  }
  .section-header p {
    font-size: 0.95rem;
  }

  /* ---- Navbar ---- */
  .navbar {
    height: var(--navbar-height);
    background-color: var(--color-primary);
  }
  .navbar.is-scrolled {
    height: 64px;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--color-primary);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    padding: 2rem;
    z-index: 1000;
  }

  .nav-links.is-open {
    transform: translateX(0);
  }

  .nav-links a {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.9);
  }

  .nav-cta {
    padding: 0.7rem 2rem;
  }

  /* ---- Hero ---- */
  .hero {
    min-height: 90vh;
  }
  .hero-content {
    padding-top: calc(var(--navbar-height) + 1.5rem);
    text-align: center;
  }
  .hero-content .lead {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-actions .btn {
    font-size: 0.85rem;
    padding: 0.8rem 1.4rem;
  }

  .hero-scroll-cue {
    display: none;
  }

  /* ---- Page Hero (interior) ---- */
  .page-hero {
    min-height: 35vh;
  }
  .page-hero-content {
    text-align: center;
  }
  .page-hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  /* ---- Grids (1 column) ---- */
  .why-grid,
  .services-grid,
  .testimonials-grid,
  .values-grid,
  .projects-grid,
  .mv-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  /* ---- Stats ---- */
  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
  .stat-item .stat-number {
    font-size: 2rem;
  }

  /* ---- Cards ---- */
  .why-card,
  .service-card,
  .testimonial-card,
  .value-card {
    padding: 1.75rem;
  }

  .service-card .num {
    font-size: 0.75rem;
  }
  .service-card i {
    font-size: 1.3rem;
  }

  /* ---- Testimonials ---- */
  .testimonial-card p.quote {
    font-size: 0.92rem;
  }

  /* ---- FAQ ---- */
  .faq-question {
    font-size: 0.95rem;
    padding: 1rem 0;
  }

  /* ---- CTA ---- */
  .cta-band {
    padding: var(--space-md) 1.25rem;
    border-radius: var(--radius-md);
  }
  .cta-band h2 {
    font-size: 1.5rem;
  }
  .cta-band .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
  }
  .cta-band .btn {
    width: 100%;
    justify-content: center;
  }

  /* ---- Footer ---- */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
  }
  .footer-col p {
    max-width: 400px;
    margin: 0 auto;
  }
  .footer-contact li {
    justify-content: center;
  }
  .social-icons {
    justify-content: center;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* ---- Director page ---- */
  .director-portrait {
    max-width: 220px;
  }
  .director-message blockquote {
    padding-left: 1rem;
    font-size: 0.95rem;
  }
  .director-message .quote-mark {
    font-size: 3rem;
  }
  .director-signature .sig-name {
    font-size: 1.2rem;
  }

  /* ---- Company page ---- */
  .history-text p {
    font-size: 0.95rem;
  }
  .timeline-item {
    padding-left: 40px;
  }
  .timeline-item h3 {
    font-size: 1rem;
  }

  /* ---- Projects ---- */
  .project-card .project-body {
    padding: 1.25rem;
  }
  .project-meta {
    font-size: 0.75rem;
  }
  .project-body h3 {
    font-size: 1.05rem;
  }
  .filter-bar {
    justify-content: center;
  }
  .filter-btn {
    font-size: 0.8rem;
    padding: 0.4rem 1rem;
  }

  /* ---- Contact ---- */
  .contact-form-card {
    padding: 1.5rem;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .contact-info-card {
    padding: 1.5rem;
  }
  .map-frame iframe {
    height: 200px;
  }

  /* ---- Scroll-to-top ---- */
  .scroll-top-btn {
    width: 42px;
    height: 42px;
    font-size: 0.9rem;
    bottom: 1rem;
    right: 1rem;
  }
}

/* ---------------------------------------------------------
   SMALL PHONES (max-width: 480px)
   --------------------------------------------------------- */
@media screen and (max-width: 480px) {
  .container {
    padding: 0 0.9rem;
  }

  .hero-content h1 {
    font-size: 1.6rem;
  }
  .hero-content .lead {
    font-size: 0.9rem;
  }
  .hero-actions {
    flex-direction: column;
    gap: 0.8rem;
  }
  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .cta-band h2 {
    font-size: 1.3rem;
  }

  .stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }
  .stat-item .stat-number {
    font-size: 1.6rem;
  }
  .stat-item .stat-label {
    font-size: 0.75rem;
  }

  .partner-logo {
    font-size: 0.85rem;
  }

  .director-portrait {
    max-width: 180px;
  }
  .director-message blockquote {
    font-size: 0.9rem;
    padding-left: 0.8rem;
  }

  .project-modal-content {
    margin: 1rem;
  }
  .project-modal-body {
    padding: 1.25rem;
  }
  .project-modal-body h3 {
    font-size: 1.1rem;
  }
}