/* =====================================================
   Internetmonteur.nl — Shared Stylesheet
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

/* --- Custom Properties --- */
:root {
  --navy:         #0c2340;
  --navy-mid:     #1a3a5c;
  --navy-light:   #234872;
  --orange:       #f07020;
  --orange-dark:  #d4601a;
  --orange-light: rgba(240,112,32,0.12);
  --bg:           #f7f9fc;
  --border:       #e2e8f0;
  --text:         #1c2b40;
  --text-muted:   #5a6b7e;
  --white:        #ffffff;
  --radius-card:  12px;
  --radius-btn:   8px;
  --shadow-card:  0 2px 8px rgba(12,35,64,0.07), 0 1px 2px rgba(12,35,64,0.04);
  --shadow-hover: 0 12px 32px rgba(12,35,64,0.13), 0 4px 8px rgba(12,35,64,0.07);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  width: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
  min-width: 0;
}

/* Text wrapping — prevent long words/URLs from causing overflow */
p, h1, h2, h3, h4, h5, h6, li {
  overflow-wrap: break-word;
  word-wrap: break-word;
  min-width: 0;
}

.footer-grid { min-width: 0; }

/* Nav should not overflow on small screens */
.nav-inner { min-width: 0; }
.logo-wordmark-primary { white-space: nowrap; }

h1, h2, h3, h4, h5 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--navy);
}

a { color: inherit; }
img { display: block; max-width: 100%; }

/* --- Focus --- */
:focus-visible {
  outline: 2px solid rgba(240,112,32,0.6);
  outline-offset: 3px;
}

/* =====================================================
   NAVIGATION
   ===================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-wordmark-primary {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--navy);
  line-height: 1.1;
}

.logo-wordmark-primary span { color: var(--orange); }

.logo-tagline {
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  line-height: 1;
  margin-top: 2px;
}

/* Desktop links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--text);
  text-decoration: none;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--orange);
  background: var(--orange-light);
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown > .nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.dropdown-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.375rem;
  min-width: 260px;
  box-shadow: 0 8px 28px rgba(12,35,64,0.13), 0 2px 6px rgba(12,35,64,0.06);
  z-index: 200;
}

.nav-dropdown:hover .dropdown-panel,
.nav-dropdown:focus-within .dropdown-panel {
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 7px;
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover {
  background: var(--bg);
  color: var(--orange);
}

.dropdown-icon {
  width: 32px;
  height: 32px;
  background: var(--bg);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Nav CTA */
.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--navy);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.mobile-toggle:hover {
  border-color: var(--orange);
  background: var(--orange-light);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  padding: 1rem 1.5rem 1.5rem;
  background: var(--white);
}

.mobile-menu.open { display: block; }

.mobile-menu a {
  display: block;
  padding: 0.625rem 0;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
  transition: color 0.15s ease;
}

.mobile-menu a:hover { color: var(--orange); }

.mobile-menu .mobile-sub {
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.mobile-cta {
  margin-top: 1rem;
}

/* Responsive nav */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .mobile-toggle { display: flex; }
}

/* =====================================================
   BUTTONS
   ===================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 14px rgba(240,112,32,0.35);
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(240,112,32,0.45);
}

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

.btn-primary:focus-visible {
  outline: 3px solid rgba(240,112,32,0.5);
  outline-offset: 2px;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid var(--border);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s ease, background 0.2s ease;
}

.btn-secondary:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
}

.btn-secondary:active { transform: translateY(0); }

.btn-ghost-white {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--white);
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9375rem;
  padding: 0.75rem 1.625rem;
  border-radius: var(--radius-btn);
  border: 1.5px solid rgba(255,255,255,0.3);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s cubic-bezier(0.34,1.56,0.64,1), border-color 0.2s ease, background 0.2s ease;
}

.btn-ghost-white:hover {
  border-color: rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.1);
  transform: translateY(-2px);
}

.btn-ghost-white:active { transform: translateY(0); }

/* =====================================================
   LAYOUT HELPERS
   ===================================================== */

.container {
  max-width: min(1200px, 100%);
  margin: 0 auto;
  padding: 0 1.5rem;
  box-sizing: border-box;
}

.section { padding: 5rem 0; }
.section-sm { padding: 3.5rem 0; }

.section-label {
  display: inline-block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin: 0 0 1rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
  max-width: 52ch;
}

/* =====================================================
   HERO (shared across pages)
   ===================================================== */

.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 60%, #0f2d50 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 75% 40%, rgba(240,112,32,0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 5% 90%, rgba(255,255,255,0.04) 0%, transparent 50%);
  pointer-events: none;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 5rem 1.5rem 5.5rem;
  position: relative;
  z-index: 1;
}

.page-hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  padding: 4rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(240,112,32,0.15) 0%, transparent 55%);
  pointer-events: none;
}

/* =====================================================
   CARDS
   ===================================================== */

.service-card {
  background: var(--white);
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  padding: 1.875rem;
  box-shadow: var(--shadow-card);
  text-decoration: none;
  display: block;
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease, border-color 0.2s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: var(--shadow-hover);
}

.service-card:focus-visible {
  outline: 3px solid rgba(240,112,32,0.5);
  outline-offset: 2px;
}

.card-icon {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, var(--navy), var(--navy-mid));
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.125rem;
  flex-shrink: 0;
}

.card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.card-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.65;
}

.card-link-row {
  margin-top: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.875rem;
  font-weight: 700;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--orange);
}

/* =====================================================
   USP STRIP
   ===================================================== */

.usp-strip {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.usp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0;
}

.usp-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  border-right: 1px solid var(--border);
}

.usp-item:last-child { border-right: none; }

.usp-icon {
  width: 40px;
  height: 40px;
  background: var(--orange-light);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.usp-label {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--navy);
  line-height: 1.2;
}

.usp-sub {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* =====================================================
   FORM
   ===================================================== */

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--navy);
  margin-bottom: 0.375rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  appearance: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(240,112,32,0.15);
}

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

/* =====================================================
   CTA BANNER
   ===================================================== */

.cta-banner {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-mid) 100%);
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 85% 50%, rgba(240,112,32,0.22) 0%, transparent 55%);
  pointer-events: none;
}

/* =====================================================
   FOOTER
   ===================================================== */

.site-footer {
  background: #081b30;
  color: rgba(255,255,255,0.7);
  font-size: 0.875rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  padding: 4rem 0 3rem;
}

.footer-heading {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin: 0 0 1rem;
}

.footer-link {
  display: block;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: 0.25rem 0;
  transition: color 0.15s ease;
}

.footer-link:hover { color: var(--orange); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.625rem;
  font-size: 0.875rem;
}

.footer-bar {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

@media (max-width: 900px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .footer-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* =====================================================
   RESPONSIVE HELPERS
   ===================================================== */

@media (max-width: 768px) {
  .section { padding: 3.5rem 0; }
  .hero-inner { padding: 3.5rem 1.5rem 4rem; }
  .page-hero { padding: 3rem 0 2.5rem; }
  .usp-grid { grid-template-columns: 1fr 1fr; }
  .usp-item { border-right: none; border-bottom: 1px solid var(--border); }
}

@media (max-width: 480px) {
  .usp-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   MOBILE CATCH-ALL FIXES
   ===================================================== */

@media (max-width: 600px) {
  /* Remove max-width constraints on text blocks — let them fill available space */
  .section-subtitle,
  .page-hero p,
  .hero p {
    max-width: 100% !important;
  }

  /* Reduce page-hero heading size to prevent long Dutch words from overflowing */
  .page-hero h1 {
    font-size: clamp(1.375rem, 5.5vw, 2rem) !important;
    overflow-wrap: anywhere !important;
    word-break: break-word !important;
  }

  /* Ensure section padding doesn't cause internal overflow */
  .section { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }

  /* CTA sections — stack buttons */
  .cta-banner .container > div > div[style*="display:flex"] {
    flex-direction: column;
    align-items: stretch;
  }
}

/* =====================================================
   PAGE BREADCRUMB
   ===================================================== */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1rem;
}

.breadcrumb a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s ease;
}
.breadcrumb a:hover { color: rgba(255,255,255,0.9); }
