/* ================================================================
   MWeb-Konstruktion — styles.css
   Custom styles (works alongside Tailwind CSS CDN)
   Production Version — www.mweb-konstruktion.ch
   ================================================================ */

/* ── Base ─────────────────────────────────────────────── */
* {
  box-sizing: border-box;
}

html {
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  scroll-behavior: smooth;
}

/* ── Blueprint grid backgrounds ──────────────────────── */
.bg-grid {
  background-image:
    linear-gradient(rgba(86, 160, 211, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 160, 211, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-grid-dense {
  background-image:
    linear-gradient(rgba(86, 160, 211, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(86, 160, 211, 0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── Technical corner marks ──────────────────────────── */
.corner-marks {
  position: relative;
}

.corner-marks::before,
.corner-marks::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: rgba(86, 160, 211, 0.35);
  pointer-events: none;
}

.corner-marks::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid;
  border-left: 2px solid;
  border-color: inherit;
}

.corner-marks::after {
  bottom: -1px;
  right: -1px;
  border-bottom: 2px solid;
  border-right: 2px solid;
  border-color: inherit;
}

/* ── Dimension line (decorative) ─────────────────────── */
.dim-line {
  position: relative;
}

.dim-line::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 1px;
  background: repeating-linear-gradient(
    90deg,
    rgba(86, 160, 211, 0.3) 0,
    rgba(86, 160, 211, 0.3) 6px,
    transparent 6px,
    transparent 12px
  );
}

/* ── Crosshair marker ────────────────────────────────── */
.crosshair {
  width: 12px;
  height: 12px;
  position: relative;
}

.crosshair::before,
.crosshair::after {
  content: '';
  position: absolute;
  background: rgba(86, 160, 211, 0.5);
}

.crosshair::before {
  width: 1px;
  height: 100%;
  left: 50%;
  top: 0;
}

.crosshair::after {
  height: 1px;
  width: 100%;
  top: 50%;
  left: 0;
}

/* ── Button hover effect ─────────────────────────────── */
.btn-steel {
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.btn-steel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    transparent 40%,
    rgba(255, 255, 255, 0.15) 50%,
    transparent 60%
  );
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-steel:hover::before {
  transform: translateX(100%);
}

.btn-steel:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(86, 160, 211, 0.3);
}

/* ── Service card hover ──────────────────────────────── */
.service-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  border-color: rgba(86, 160, 211, 0.5);
}

/* ── Portfolio placeholder shimmer ───────────────────── */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer-bg {
  background: linear-gradient(90deg, #1a2332 25%, #243044 50%, #1a2332 75%);
  background-size: 200% 100%;
  animation: shimmer 4s ease-in-out infinite;
}

/* ── Fade-in on scroll ───────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Technical annotation label ──────────────────────── */
.tech-label {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(86, 160, 211, 0.5);
}

/* ── Cookie banner slide-up ──────────────────────────── */
.cookie-banner {
  transform: translateY(100%);
  transition: transform 0.5s ease;
}

.cookie-banner.show {
  transform: translateY(0);
}

/* ── Mobile menu ─────────────────────────────────────── */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.mobile-menu.open {
  max-height: 400px;
}

/* ── Focus styles for accessibility ──────────────────── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid #56a0d3;
  outline-offset: 2px;
}

/* ── Logo ─────────────────────────────────────────────── */
.logo {
  max-height: 60px;
  width: auto;
}

/* ── Form input styles ───────────────────────────────── */
.form-input {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus {
  border-color: #56a0d3;
  box-shadow: 0 0 0 3px rgba(86, 160, 211, 0.15);
}
