/* Work-Solutions BV - static preview styles */

:root {
  --coral: #ff555d;
  --coral-strong: #d93a42; /* darker coral for white button text (AA contrast) */
  --charcoal: #303640;
  --charcoal-deep: #252a32;
  --white: #ffffff;
  --blush: #fff1f1;
  --blush-line: #ffd9db;
  --text: #303640;
  --muted: #555c68;
  --radius: 14px;
  --container: 1160px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.2;
  overflow-wrap: break-word;
  hyphens: manual;
}

p {
  margin: 0 0 1em;
}

p:last-child {
  margin-bottom: 0;
}

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

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--coral);
  outline-offset: 3px;
}

main:focus {
  outline: none;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (min-width: 600px) {
  .container {
    padding-inline: 1.5rem;
  }
}

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

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 700;
  border-radius: 8px;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* Icons and buttons */

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.6rem 1.25rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.03em;
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-primary {
  background: var(--coral-strong);
  color: var(--white);
}

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

.btn-light {
  background: var(--white);
  color: var(--charcoal);
}

.btn-light:hover {
  background: var(--blush);
}

.btn-outline {
  border-color: var(--blush-line);
  color: var(--white);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--white);
}

/* Header */

.site-header {
  background: var(--white);
  border-bottom: 1px solid #eceef1;
  z-index: 20;
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding-block: 0.6rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: 6px;
}

.brand img {
  width: 150px;
}

.main-nav {
  order: 3;
  flex-basis: 100%;
}

.main-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.25rem;
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 0.6rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  color: var(--charcoal);
}

.main-nav a:hover {
  color: var(--coral-strong);
}

@media (max-width: 479px) {
  .main-nav ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
  }

  .main-nav a {
    width: 100%;
    justify-content: center;
    padding-inline: 0.2rem;
    font-size: 0.875rem;
    white-space: nowrap;
  }
}

.header-call {
  min-height: 44px;
  padding: 0.5rem 1rem;
  font-size: 0.95rem;
}

.call-long {
  display: none;
}

@media (min-width: 480px) {
  .brand img {
    width: 180px;
  }

  .call-short {
    display: none;
  }

  .call-long {
    display: inline;
  }
}

@media (min-width: 900px) {
  .site-header {
    position: sticky;
    top: 0;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .main-nav {
    order: 0;
    flex-basis: auto;
  }

  .brand img {
    width: 200px;
  }

  [id] {
    scroll-margin-top: 90px;
  }
}

/* Services */

.services {
  position: relative;
  padding-block: 2.5rem 3rem;
  background-color: var(--blush);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.9)),
    url("assets/services-background.jpg");
  background-size: cover;
  background-position: center;
}

.services-title {
  margin-bottom: 1.75rem;
  text-align: center;
  font-size: clamp(1.35rem, 1rem + 2vw, 2.1rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.services-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: var(--coral);
}

.tiles {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0.75rem;
}

.tile {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  min-height: 84px;
  background: rgba(48, 54, 64, 0.94);
  color: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 10px 24px rgba(48, 54, 64, 0.18);
}

.tile-icon {
  width: 40px;
  height: 40px;
  flex: none;
  fill: none;
  stroke: var(--coral);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tile h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.03em;
}

@media (min-width: 600px) {
  .tiles {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .tile {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 1.75rem 1.25rem;
    min-height: 190px;
  }

  .tile-icon {
    width: 52px;
    height: 52px;
  }

  .tile h2 {
    font-size: 1.05rem;
  }
}

@media (min-width: 1100px) {
  .tiles {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
  }

  .tile {
    min-height: 210px;
  }
}

.service-lines {
  display: grid;
  gap: 0.5rem;
  max-width: 760px;
  margin: 1.75rem auto 0;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  border-left: 4px solid var(--coral);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: 1.05rem;
}

.service-lines li {
  position: relative;
  padding-left: 1.25rem;
}

.service-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}

/* CTA */

.cta {
  padding-block: 3rem;
  background-color: var(--charcoal);
  background-image:
    linear-gradient(rgba(37, 42, 50, 0.8), rgba(37, 42, 50, 0.86)),
    url("assets/construction-background.jpg");
  background-size: cover;
  background-position: center 40%;
  color: var(--white);
  text-align: center;
}

.cta-inner {
  max-width: 820px;
}

.cta h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.35rem, 1rem + 1.8vw, 2rem);
  font-weight: 800;
}

.cta p {
  font-size: 1.05rem;
  color: #f2f3f5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.actions .btn {
  min-width: 170px;
}

@media (max-width: 419px) {
  .actions .btn {
    width: 100%;
  }
}

/* Projects */

.projects {
  padding-block: 3rem;
}

.section-title {
  margin-bottom: 1.5rem;
  text-align: center;
  font-size: clamp(1.35rem, 1rem + 1.5vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--charcoal);
}

.section-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: 0.75rem auto 0;
  border-radius: 2px;
  background: var(--coral);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

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

.gallery-link {
  display: block;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blush);
  aspect-ratio: 16 / 9;
}

.gallery-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-link:hover img {
  transform: scale(1.03);
}

/* About */

.about {
  padding-block: 3rem;
  background: var(--blush);
}

.about-inner {
  max-width: 780px;
}

.about p {
  font-size: 1.05rem;
  color: var(--text);
}

/* Footer */

.site-footer {
  background: var(--charcoal);
  color: #e9ebee;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-block: 2.5rem;
}

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

.footer-title {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
}

.footer-title::after {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--coral);
}

.site-footer address {
  font-style: normal;
  margin-bottom: 0.75rem;
}

.site-footer address a {
  display: inline-block;
  padding-block: 0.6rem;
  color: var(--white);
  text-underline-offset: 3px;
}

.site-footer address a:hover {
  color: var(--blush-line);
}

.vat {
  color: #c9cdd3;
  font-size: 0.95rem;
}

.site-footer .btn {
  margin-top: 0.25rem;
}

.online-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.online-links .btn {
  margin-top: 0;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--charcoal-deep);
  padding-block: 1rem;
  font-size: 0.9rem;
  color: #c9cdd3;
}

/* Lightbox (progressive enhancement) */

.lightbox {
  width: min(1100px, 100vw - 1rem);
  max-width: none;
  max-height: calc(100vh - 1rem);
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--charcoal-deep);
  color: var(--white);
  overflow: hidden;
}

.lightbox::backdrop {
  background: rgba(20, 22, 26, 0.88);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-img {
  width: 100%;
  max-height: calc(100vh - 6rem);
  object-fit: contain;
  background: #000;
}

.lightbox-caption {
  padding: 0.85rem 4.5rem;
  min-height: 3.5rem;
  text-align: center;
  font-size: 0.95rem;
}

.lightbox-btn {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(37, 42, 50, 0.85);
  color: var(--white);
  font-size: 1.25rem;
  cursor: pointer;
}

.lightbox-btn:hover {
  background: var(--coral-strong);
}

.lightbox-prev,
.lightbox-next {
  bottom: 0.25rem;
}

.lightbox-prev {
  left: 0.5rem;
}

.lightbox-next {
  right: 0.5rem;
}

.lightbox-close {
  top: 0.5rem;
  right: 0.5rem;
}

@media (min-width: 720px) {
  .lightbox-prev,
  .lightbox-next {
    bottom: auto;
    top: calc(50% - 1.75rem);
    transform: translateY(-50%);
  }

  .lightbox-caption {
    padding-inline: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }

  .gallery-link:hover img {
    transform: none;
  }
}
