/* Control Life — modern visual polish */

:root {
  --cl-green: #0add00;
  --cl-green-dark: #09c200;
  --cl-teal: #52796f;
  --cl-text: #2a2a2a;
  --cl-muted: #5c5c5c;
  --cl-border: #e2e8e4;
  --cl-surface: #f7faf8;
  --cl-shadow: 0 12px 40px rgba(42, 42, 42, 0.08);
  --cl-radius: 12px;
  --cl-transition: 0.25s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--cl-text);
  -webkit-font-smoothing: antialiased;
}

img:hover {
  opacity: 1;
  cursor: default;
}

.iso-box > a:hover img {
  opacity: 0.85;
  cursor: pointer;
}

::selection {
  background: rgba(10, 221, 0, 0.25);
}

/* Navigation */
.site-nav {
  transition:
    box-shadow var(--cl-transition),
    background var(--cl-transition);
}

.site-nav.is-scrolled {
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--cl-teal) !important;
  background: rgba(82, 121, 111, 0.08);
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: var(--cl-green-dark) !important;
}

.navbar-default .navbar-brand {
  background: #000 !important;
  border-radius: 10px;
}

.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  background: #000 !important;
}

.navbar-image {
  display: block;
  background: #000;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* Hero */
#home {
  position: relative;
  min-height: 72vh;
  padding-top: 180px;
  padding-bottom: 120px;
}

#home::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(255, 255, 255, 0.75) 45%,
    rgba(255, 255, 255, 0.35) 100%
  );
  pointer-events: none;
}

#home .container {
  position: relative;
  z-index: 1;
}

.hero-content {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
  padding: 2.5rem 2rem;
  backdrop-filter: blur(6px);
}

#home h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.25;
}

#home h2 {
  color: var(--cl-teal);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  margin-bottom: 0.5rem;
}

#home p {
  color: var(--cl-muted);
  line-height: 1.7;
}

#home .btn,
#opleidingen .btn {
  border-radius: 999px;
  border-color: var(--cl-teal);
  font-weight: 600;
  letter-spacing: 0.02em;
  width: auto;
  min-width: 200px;
  padding: 14px 28px;
}

#home .btn:hover,
#opleidingen .btn:hover {
  background: var(--cl-teal);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(82, 121, 111, 0.35);
}

/* Section headings */
.section-lead {
  color: var(--cl-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: -2rem auto 2.5rem;
  line-height: 1.7;
}

#service h2,
#opleidingen h2,
#portfolio h2,
#contact h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

/* Service feature cards */
#service .service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 1fr;
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: stretch;
}

#service .service-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 300px;
  background: var(--cl-surface);
  border: 1px solid var(--cl-border);
  border-radius: var(--cl-radius);
  padding: 1.75rem 1.5rem 2rem;
  text-align: center;
  transition:
    transform var(--cl-transition),
    box-shadow var(--cl-transition);
}

#service .service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--cl-shadow);
}

#service .service-card .fa {
  margin-top: 0 !important;
  margin-bottom: 0.5rem !important;
  padding: 32px !important;
  font-size: 28px;
  flex-shrink: 0;
  align-self: center;
}

#service .service-card h3 {
  color: var(--cl-teal);
  font-size: 1.15rem;
  margin: 0.75rem 0 1rem;
  flex-shrink: 0;
}

#service .service-card p {
  flex: 1;
  margin: 0;
  line-height: 1.65;
  color: var(--cl-muted);
}

/* Training blocks */
#opleidingen .col-md-6 + .col-md-6,
#opleidingen .row + .row .col-md-6 {
  margin-bottom: 2rem;
}

#opleidingen img {
  border-radius: var(--cl-radius);
  border-color: var(--cl-border);
  box-shadow: var(--cl-shadow);
}

#opleidingen img:hover {
  opacity: 1;
  transform: scale(1.01);
}

#opleidingen h3 {
  color: var(--cl-teal);
  margin-top: 1rem;
}

#opleidingen h4 {
  color: var(--cl-muted);
  font-weight: 600;
  font-size: 1rem;
}

#opleidingen ul {
  padding-left: 1.25rem;
}

#opleidingen ul li {
  margin-bottom: 0.35rem;
  line-height: 1.6;
}

/* Portfolio / partners */
#portfolio {
  background: var(--cl-surface);
}

#portfolio .iso-box img {
  border-radius: var(--cl-radius);
  border: 1px solid var(--cl-border);
}

#portfolio img:hover {
  opacity: 1;
}

/* Contact */
.section-contact {
  background: linear-gradient(180deg, #fff 0%, var(--cl-surface) 100%);
}

#contact h2 {
  margin-bottom: 0.5rem !important;
}

#contact .section-lead {
  margin-bottom: 2rem;
}

#contact .form-control {
  border-radius: 8px;
  border-color: var(--cl-border);
  transition:
    border-color var(--cl-transition),
    box-shadow var(--cl-transition);
}

#contact .form-control:focus {
  border-color: var(--cl-teal);
  box-shadow: 0 0 0 3px rgba(82, 121, 111, 0.15);
  bottom: 0;
}

#contact input[type="submit"] {
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  border: none;
}

#contact input[type="submit"]:hover {
  background: var(--cl-teal);
  transform: translateY(-1px);
}

#contact-error {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  border-radius: 8px;
  text-align: left;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Dividers */
main .container hr,
.section-divider hr {
  border: none;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(10, 221, 0, 0.45),
    transparent
  );
  margin: 2rem 0;
}

/* Footer */
.site-footer {
  background: var(--cl-surface);
  border-top: 1px solid var(--cl-border);
}

.site-footer h2 {
  border-bottom-color: var(--cl-teal);
  color: var(--cl-teal);
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.footer-item .fa {
  color: var(--cl-teal);
  margin-top: 4px;
  width: 18px;
  text-align: center;
}

.footer-item a {
  color: var(--cl-text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--cl-transition),
    border-color var(--cl-transition);
}

.footer-item a:hover {
  color: var(--cl-teal);
  border-bottom-color: var(--cl-green);
}

.site-footer span {
  padding-left: 0;
  font-weight: normal;
}

.social-icons li a {
  border-radius: 50%;
  background: var(--cl-teal);
}

.social-icons li a:hover {
  background: var(--cl-green-dark);
  transform: translateY(-2px);
}

.copyright {
  background: var(--cl-teal);
  color: rgba(255, 255, 255, 0.9);
  padding: 1rem 0;
}

.copyright p {
  margin: 0;
  font-size: 0.9rem;
}

/* Thank-you page */
.page-thankyou #home {
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding-top: 140px;
}

.page-thankyou #home::before {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.94) 0%,
    rgba(247, 250, 248, 0.88) 100%
  );
}

.thankyou-card {
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

.thankyou-card .fa-check-circle {
  font-size: 4rem;
  color: var(--cl-green-dark);
  margin-bottom: 1rem;
}

.thankyou-card h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--cl-teal);
  margin-bottom: 1rem;
}

.thankyou-card p {
  color: var(--cl-muted);
  margin-bottom: 2rem;
}

.thankyou-actions .btn + .btn {
  margin-left: 0.75rem;
}

@media (max-width: 767px) {
  #home {
    padding-top: 120px;
    min-height: auto;
  }

  .hero-content {
    margin-top: 1rem;
  }

  #service .service-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  #service .service-card {
    min-height: 260px;
  }

  .navbar-default .navbar-nav li a {
    border-right: none;
    padding: 12px 20px;
  }

  .thankyou-actions .btn {
    display: block;
    width: 100%;
    margin: 0 0 0.75rem !important;
  }
}

@media (max-width: 575px) {
  #service .service-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  #service .service-card {
    min-height: 0;
  }
}
