/* ==========================================================================
   Responsive — Technisch Bureau Suurmeijer
   Mobile-first: base styles are mobile, breakpoints add tablet/desktop
   ========================================================================== */

/* ==========================================================================
   Tablet (768px+)
   ========================================================================== */

@media (min-width: 768px) {
  /* Body offset matches the taller nav (52px logo + 16px vertical padding × 2) */
  body {
    padding-top: 84px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.25rem;
  }

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

  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

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

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

  /* Hero */
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero__ctas {
    flex-direction: row;
    align-items: center;
  }

  /* Contact grid */
  .contact-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }

  /* Footer */
  .footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  /* Cert grid */
  .cert-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Service list */
  .service-list {
    gap: var(--space-sm) var(--space-xl);
  }
}

/* ==========================================================================
   Desktop (1024px+)
   ========================================================================== */

@media (min-width: 1024px) {
  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2rem;
  }

  body {
    font-size: 1.0625rem;
  }

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

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

/* Navigation — show full horizontal links only when there's room
   for the larger logo + 8 menu items + phone + offerte CTA without crowding.
   Below this width the hamburger drawer lists every item comfortably. */
@media (min-width: 1400px) {
  .nav__links {
    display: flex;
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__hamburger {
    display: none;
  }

  .nav__drawer,
  .nav__overlay {
    display: none;
  }
}

@media (min-width: 1024px) {
  /* Hero — text on left, floating action card on right */
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: var(--space-2xl);
    align-items: center;
  }

  .hero__content {
    max-width: none;
  }

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

  .hero__sub {
    font-size: 1.125rem;
  }

  /* Page hero */
  .page-hero {
    padding: var(--space-2xl) 0;
  }

  /* Map */
  .map-embed {
    height: 400px;
  }
}

/* ==========================================================================
   Extension breakpoints — new components
   ========================================================================== */

@media (min-width: 768px) {
  .intro__grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
  }

  .intro__pillars {
    grid-template-columns: 1fr;
  }

  .werkgebied-grid {
    grid-template-columns: 1.1fr 0.9fr;
  }

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

  .offerte-wrap {
    grid-template-columns: 1.4fr 0.6fr;
    gap: var(--space-xl);
  }

  .photo-uploads {
    grid-template-columns: 1fr 1fr;
  }

  .form-row {
    grid-template-columns: 1fr 1fr;
  }

  .form-row--3 {
    grid-template-columns: 1.4fr 0.6fr 1fr;
  }

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

  .dual-cta__grid {
    grid-template-columns: 1fr 1fr;
  }

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

  .timeline {
    grid-template-columns: 1fr 1fr;
  }

  .footer__grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  }

  .media-block {
    grid-template-columns: 1fr 1fr;
  }

  .media-block--reverse .media-block__photo {
    order: 2;
  }

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

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

@media (min-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero__stats {
    margin-top: var(--space-2xl);
  }

  .hero__stat strong {
    font-size: 2.25rem;
  }
}

/* ==========================================================================
   Mobile-only overrides — max-width: 767px
   ========================================================================== */

@media (max-width: 767px) {

  /* ── Nav: keep logo prominent but compact enough for logo + phone + hamburger ── */
  .nav__inner {
    padding: var(--space-sm) var(--space-md);
    gap: var(--space-sm);
  }

  .nav__logo-img {
    height: 57px;
    max-width: 234px;
    padding: 3px 6px;
  }

  /* Compact phone button — number stays visible, smaller footprint.
     The right-side .nav__actions wrapper now handles positioning,
     so no margin-left auto needed. */
  .nav__phone {
    height: 36px;
    padding: 0 0.7rem;
    font-size: 0.8125rem;
    gap: 0.375rem;
  }

  .nav__phone svg {
    width: 14px;
    height: 14px;
  }

  /* ── Hero: keep CTAs visible without scrolling ──────────────────── */
  .hero {
    padding: var(--space-xl) 0 var(--space-lg);
  }

  .hero h1 {
    font-size: 1.75rem;
  }

  /* Clamp long sub-text to 4 lines so CTAs stay on-screen */
  .hero__sub {
    font-size: 0.9375rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: var(--space-md);
  }

  .hero__stats {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero__stat strong {
    font-size: 1.625rem;
  }

  /* ── Page heroes: compact on mobile ─────────────────────────────── */
  .page-hero {
    padding: var(--space-xl) 0;
  }

  .page-hero h1 {
    font-size: 1.625rem;
  }

  /* ── Services grid: 2-col on mobile ─────────────────────────────── */
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
  }

  .card {
    padding: var(--space-md);
  }

  .card h3 {
    font-size: 1rem;
    margin-bottom: var(--space-xs);
  }

  .card p {
    font-size: 0.875rem;
  }

  .card__icon {
    width: 36px;
    height: 36px;
    margin-bottom: var(--space-sm);
  }

  /* ── Footer: company + contact full width; links side-by-side ───── */
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg) var(--space-xl);
  }

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

  /* ── Postcode checker: stack input/button for easier tapping ─────── */
  .pc-widget__row {
    flex-direction: column;
  }

  .pc-widget__btn {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }

  /* ── Section: slightly less vertical whitespace on mobile ────────── */
  .section {
    padding: var(--space-xl) 0;
  }
}

