/*
Theme Name: MAK Service Under Construction
Theme URI: https://makservice.de
Author: MAK Service
Description: Minimal single-page "Under Construction" theme for MAK Service. Converted from a static HTML/CSS build — visual design, copy, and behavior kept identical to the original.
Version: 1.0
Requires at least: 5.0
Requires PHP: 7.4
Text Domain: mak-service-construction
*/

/* ==========================================================
   Everything below this line is UNCHANGED from the original
   static site's style.css. Do not need to edit these to
   change WordPress behavior — only edit for visual tweaks.
   ========================================================== */

/* ==========================================================
   TOKENS — edit these to retheme the whole page
   ========================================================== */
:root {
  --color-bg: #FAFAFA;
  --color-text: #111111;
  --color-text-muted: #5B5F66;

  /* This navy MUST match the logo.png's own baked-in background
     (sampled from the file: rgb(20,29,47)) so the badge edges
     disappear into the card instead of showing a hard box. */
  --color-navy: #141D2F;

  /* Green accent — used sparingly (badge, button, roofline, focus) */
  --color-green: #1B7A4D;
  --color-green-hover: #21925C;
  --color-green-tint: #E7F3EC;

  --font-display: "Manrope", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --radius-lg: 20px;
  --radius-md: 12px;
  --radius-full: 999px;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================
   LAYOUT
   ========================================================== */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px 24px;
  gap: 4px;
  animation: fade-in 0.7s ease both;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .page { animation: none; }
}

/* ==========================================================
   LOGO
   This logo's background is transparent (black artwork, no baked-in
   background color), so it sits directly on the page — no card wrapper
   needed. If you switch to a logo with a solid background again, wrap
   it back in a card that matches that color (see version history).
   ========================================================== */
.logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 28px;
}

.logo-img {
  display: block;
  width: 200px;
  max-width: 100%;
  height: auto;
}

/* ==========================================================
   EYEBROW / STATUS PILL
   ========================================================== */
.eyebrow {
  display: inline-block;
  background: var(--color-green-tint);
  color: var(--color-green);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

/* ==========================================================
   HEADLINE / SUBLINE
   ========================================================== */
.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.15;
  margin: 0 0 14px;
  max-width: 640px;
}

.subline {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 460px;
  margin: 0 0 8px;
}

/* ==========================================================
   ROOFLINE — signature element
   Echoes the house/roof icon in the logo: a line that "builds"
   itself in green, tying the motif to the "under construction" idea.
   ========================================================== */
.roofline {
  width: min(340px, 80vw);
  height: 44px;
  margin: 22px 0 30px;
  overflow: visible;
}

.roofline-track,
.roofline-draw {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.roofline-track {
  stroke: #E3E5E8;
}

.roofline-draw {
  stroke: var(--color-green);
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw-roof 2.6s ease-in-out infinite;
}

@keyframes draw-roof {
  0%   { stroke-dashoffset: 620; }
  55%  { stroke-dashoffset: 0; }
  85%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: -620; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .roofline-draw {
    animation: none;
    stroke-dashoffset: 0;
  }
}

/* ==========================================================
   EMAIL SIGNUP FORM
   ========================================================== */
.notify-form {
  width: 100%;
  max-width: 420px;
  margin-top: 4px;
}

.notify-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

.notify-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.notify-input {
  flex: 1 1 200px;
  padding: 13px 16px;
  border: 1.5px solid #E3E5E8;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text);
  background: #FFFFFF;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.notify-input::placeholder {
  color: #A7ABB2;
}

.notify-input:focus {
  border-color: var(--color-green);
  box-shadow: 0 0 0 3px var(--color-green-tint);
}

.notify-btn {
  flex: 0 0 auto;
  padding: 13px 22px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--color-green);
  color: #FFFFFF;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.notify-btn:hover { background: var(--color-green-hover); }
.notify-btn:active { transform: scale(0.98); }

.notify-btn:focus-visible,
.notify-input:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

.notify-msg {
  min-height: 18px;
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--color-green);
  font-weight: 500;
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer {
  margin-top: 36px;
  font-size: 12px;
  color: #B4B7BC;
}

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 480px) {
  .logo-img { width: 180px; }
  .notify-row { flex-direction: column; }
  .notify-btn { width: 100%; }
}
