/* ============================================================
   RESPONSIVE — Straxverk
   Desktop-first breakpoints: 1024, 768, 480
   ============================================================ */

/* ====================
   ≤ 1024px — TABLET
   ==================== */
@media (max-width: 1024px) {

  /* Nav — hamburger replaces links, CTA hidden */
  .nav__links {
    display: none;
  }

  .nav__cta {
    display: none;
  }

  .nav__hamburger {
    display: flex;
  }

  /* Hero — reduce content width, adjust bottom */
  .hero__content {
    max-width: 560px;
  }

  /* Hero indicators — hide text, show only numbers */
  .hero__indicator-text {
    display: none;
  }

  /* Trust bar — 2x2 grid */
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Services section grid — 2 columns */
  .services-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Featured project — stack vertically */
  .featured-project__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Portfolio grid — 2 columns, first item no longer spans */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-grid__item:first-child {
    grid-column: span 1;
    grid-row: span 1;
  }

  /* Portfolio masonry — 3 columns */
  .portfolio-masonry {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Testimonials grid — 2 columns */
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Footer inner — 2x2 grid */
  .footer__inner {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
  }

  /* About section inner — stack */
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Service detail inner — stack */
  .service-detail__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .service-detail--reverse .service-detail__inner > :first-child,
  .service-detail--reverse .service-detail__inner > :last-child {
    order: initial;
  }

  /* Contact section inner — stack */
  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  /* Values grid — 2 columns */
  .values-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Layout grid utilities */
  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--60-40,
  .grid--40-60 {
    grid-template-columns: 1fr;
  }
}


/* ====================
   ≤ 768px — MOBILE LANDSCAPE
   ==================== */
@media (max-width: 768px) {

  /* Container padding reduces */
  .container {
    padding: 0 24px;
  }

  /* Hero */
  .hero__title {
    font-size: 44px;
  }

  .hero__content {
    max-width: 90%;
    padding: 0 24px;
    padding-bottom: var(--space-4xl);
  }

  .hero__indicators {
    bottom: 28px;
    gap: var(--space-md);
  }

  .hero__arrows {
    right: 24px;
    bottom: 28px;
  }

  .hero__arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  /* Trust bar — 2x2 */
  .trust-bar__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
  }

  /* Services grid — 1 column */
  .services-section__grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio grid — 1 column */
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  /* Portfolio masonry — 2 columns */
  .portfolio-masonry {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Testimonials grid — 1 column */
  .testimonials__grid {
    grid-template-columns: 1fr;
  }

  /* Mid-CTA — reduce padding */
  .mid-cta {
    padding: var(--space-3xl) 0;
  }

  /* Footer inner — 1 column */
  .footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .footer {
    padding: var(--space-xl) 0;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-sm);
    text-align: center;
  }

  /* Contact form row — 1 column */
  .contact-form__row {
    grid-template-columns: 1fr;
  }

  /* Accordion trigger — smaller font */
  .accordion__trigger {
    font-size: 16px;
  }

  /* Page header spacing */
  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-3xl));
    padding-bottom: var(--space-3xl);
  }

  /* Values — 1 column */
  .values-section__grid {
    grid-template-columns: 1fr;
  }

  /* Section spacing reduction */
  .services-section,
  .portfolio-section,
  .testimonials,
  .faq-section,
  .about-section,
  .values-section,
  .service-detail,
  .contact-section,
  .cta-section {
    padding: var(--space-3xl) 0;
  }

  /* Layout grid utilities */
  .grid--2,
  .grid--50-50 {
    grid-template-columns: 1fr;
  }

  /* Cookie banner stacks */
  .cookie-banner {
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-lg) 24px;
  }

  .cookie-banner__actions {
    width: 100%;
    justify-content: center;
  }
}


/* ====================
   ≤ 480px — MOBILE PORTRAIT
   ==================== */
@media (max-width: 480px) {

  /* Container */
  .container {
    padding: 0 20px;
  }

  /* Hero */
  .hero__title {
    font-size: 36px;
  }

  .hero__subtitle {
    font-size: 15px;
  }

  .hero__content {
    padding: 0 20px;
    padding-bottom: var(--space-3xl);
  }

  /* Hero indicators hidden */
  .hero__indicators {
    display: none;
  }

  .hero__arrows {
    right: 20px;
    bottom: 24px;
  }

  /* Trust bar — 2x2 smaller gaps */
  .trust-bar__grid {
    gap: var(--space-md);
  }

  .trust-bar {
    padding: var(--space-2xl) 0;
  }

  /* Portfolio masonry — 1 column */
  .portfolio-masonry {
    grid-template-columns: 1fr;
  }

  /* Buttons — slightly smaller padding */
  .btn--pill {
    padding: 12px 26px;
    font-size: 13px;
  }

  /* Section spacing reduced globally */
  .services-section,
  .portfolio-section,
  .testimonials,
  .faq-section,
  .about-section,
  .values-section,
  .service-detail,
  .featured-project,
  .contact-section,
  .cta-section {
    padding: var(--space-2xl) 0;
  }

  .mid-cta {
    padding: var(--space-2xl) 0;
  }

  /* Footer */
  .footer {
    padding: var(--space-lg) 0;
  }

  .footer__title {
    font-size: clamp(28px, 6vw, 36px);
  }

  .footer__copyright {
    font-size: 12px;
  }

  /* Page header */
  .page-header {
    padding-top: calc(var(--nav-height) + var(--space-2xl));
    padding-bottom: var(--space-2xl);
  }

  .page-header__title {
    font-size: clamp(28px, 6vw, 36px);
  }

  /* CTA section */
  .cta-section__title {
    font-size: clamp(26px, 5.5vw, 32px);
  }

  /* Social section */
  .social-section__links {
    flex-direction: column;
    gap: var(--space-md);
  }

  /* Cookie banner */
  .cookie-banner {
    padding: var(--space-md) 20px;
  }
}


/* ====================
   NAV CTA HIDDEN (hafa-samband.html)
   ==================== */
.nav__cta--hidden {
  display: none !important;
}


/* ====================
   REDUCED MOTION
   ==================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero__slide {
    transition: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
