/* =========================================================
   De Buurtklusser — stylesheet
   Mobile-first. System fonts. No external dependencies.
   Brand colors: navy #1A3A6B, gold #E8961E, white #FFFFFF.
   ========================================================= */

/* ----- Reset & base ----- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
    Ubuntu, Cantarell, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #1A3A6B;
  background: #FFFFFF;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: #1A3A6B;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  color: #1A3A6B;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #E8961E;
  outline-offset: 2px;
  border-radius: 4px;
}

/* ----- Layout container ----- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ----- Header ----- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 72px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-logo {
  width: auto;
  height: 56px;
  flex-shrink: 0;
}

.brand-name {
  font-weight: 700;
  color: #1A3A6B;
  font-size: 1.05rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  color: #1A3A6B;
  font-size: 0.95rem;
  padding: 6px 10px;
  border-radius: 6px;
}

.header-phone:hover {
  background: #F5F5F5;
}

.header-phone-num {
  white-space: nowrap;
}

.lang-toggle {
  background: #E8961E;
  color: #1A3A6B;
  border: none;
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  transition: background-color 0.15s ease, transform 0.05s ease;
  min-width: 52px;
}

.lang-toggle:hover {
  background: #D4861A;
}

.lang-toggle:active {
  transform: translateY(1px);
}

/* ----- Hero ----- */
.hero {
  background: #F5F5F5;
  padding: 64px 0 72px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 520px;
  height: 520px;
  background: url('assets/logo.png') center / contain no-repeat;
  opacity: 0.10;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.hero-title {
  font-size: 2rem;
  font-weight: 800;
  color: #1A3A6B;
  letter-spacing: -0.01em;
}

.hero-tagline {
  margin: 0;
  font-style: italic;
  color: #E8961E;
  font-size: 1.15rem;
  font-weight: 600;
}

.hero-meta {
  margin: 0;
  color: #1A3A6B;
  font-size: 0.95rem;
  opacity: 0.85;
}

.hero-meta .dot {
  margin: 0 6px;
  opacity: 0.6;
}

.cta-phone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  margin-top: 20px;
  background: #E8961E;
  color: #1A3A6B;
  padding: 18px 28px;
  border-radius: 12px;
  width: 100%;
  max-width: 420px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 4px 12px rgba(232, 150, 30, 0.35);
  transition: background-color 0.15s ease, transform 0.08s ease,
    box-shadow 0.15s ease;
}

.cta-phone:hover {
  background: #D4861A;
  box-shadow: 0 6px 16px rgba(232, 150, 30, 0.45);
}

.cta-phone:active {
  transform: translateY(1px);
  box-shadow: 0 2px 6px rgba(232, 150, 30, 0.3);
}

.cta-phone-label {
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.cta-phone-num {
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

/* ----- Services ----- */
.services {
  padding: 56px 0;
  background: #FFFFFF;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 32px;
  color: #1A3A6B;
}

.section-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  background: #E8961E;
  border-radius: 2px;
  margin: 12px auto 0;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.service-card {
  background: #F5F5F5;
  border-radius: 12px;
  padding: 24px 22px;
  border-top: 4px solid #E8961E;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 58, 107, 0.08);
}

.service-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 12px;
}

.service-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #1A3A6B;
}

.service-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #2C3E50;
}

.service-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  background: #E8961E;
  border-radius: 50%;
}

.service-list li:last-child {
  margin-bottom: 0;
}

/* ----- Contact ----- */
.contact {
  background: #1A3A6B;
  color: #FFFFFF;
  padding: 56px 0;
}

.contact-inner {
  text-align: center;
}

.contact-title {
  color: #FFFFFF;
}

.contact-title::after {
  background: #E8961E;
}

.contact-sub {
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  opacity: 0.92;
}

.contact-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  max-width: 420px;
  margin: 0 auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 24px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  transition: background-color 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, transform 0.08s ease;
  text-align: center;
  word-break: break-word;
}

.btn-primary {
  background: #E8961E;
  color: #1A3A6B;
  box-shadow: 0 4px 12px rgba(232, 150, 30, 0.35);
}

.btn-primary:hover {
  background: #D4861A;
}

.btn-primary:active {
  transform: translateY(1px);
}

.btn-outline {
  background: transparent;
  color: #FFFFFF;
  border: 2px solid #FFFFFF;
}

.btn-outline:hover {
  background: #FFFFFF;
  color: #1A3A6B;
}

.btn-outline:active {
  transform: translateY(1px);
}

/* ----- Footer ----- */
.site-footer {
  background: #142D54;
  color: #FFFFFF;
  padding: 18px 0;
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.95;
}

.site-footer p {
  margin: 0;
}

/* =========================================================
   Tablet (>=600px)
   ========================================================= */
@media (min-width: 600px) {
  .container {
    padding: 0 24px;
  }

  .brand-logo {
    height: 64px;
  }

  .brand-name {
    font-size: 1.15rem;
  }

  .hero {
    padding: 56px 0 64px;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-tagline {
    font-size: 1.3rem;
  }

  .cta-phone {
    width: auto;
    padding: 20px 40px;
  }

  .cta-phone-num {
    font-size: 1.85rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  /* Last (5th) card: span both columns to stay balanced */
  .service-card:nth-child(5) {
    grid-column: 1 / -1;
  }

  .contact-actions {
    flex-direction: row;
    max-width: none;
    justify-content: center;
    flex-wrap: wrap;
  }

  .btn {
    flex: 0 1 auto;
    min-width: 240px;
  }
}

/* =========================================================
   Desktop (>=900px)
   ========================================================= */
@media (min-width: 900px) {
  .brand-logo {
    height: 72px;
  }

  .header-phone-num {
    font-size: 1rem;
  }

  .hero {
    padding: 72px 0 80px;
  }

  .hero::before {
    width: 700px;
    height: 700px;
  }

  .hero-title {
    font-size: 3rem;
  }

  .services {
    padding: 80px 0;
  }

  .service-card {
    padding: 28px 26px;
  }

  /* On wider screens, keep the 5th card constrained so it doesn't
     stretch awkwardly across the full row */
  .service-card:nth-child(5) {
    grid-column: 1 / -1;
    max-width: calc(50% - 12px);
    margin: 0 auto;
    width: 100%;
  }

  .contact {
    padding: 80px 0;
  }
}

/* =========================================================
   Reduced motion
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
