/*
Theme Name: Millinge Designworks
Theme URI: https://millinge.no
Author: Millinge Designworks
Description: Custom theme for Millinge Designworks
Version: 1.0
*/

:root {
  --bg: #0e141c;
  --bg-soft: #141a24;
  --text: #e9ecf2;
  --muted: #ffffff;
  --accent: #7dd3fc;
  --ring: rgba(125, 211, 252, .35);
  --card: #111827;
  --border: #2a3445;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(1200px 800px at 80% -10%, #202a3c, transparent 55%),
    radial-gradient(900px 600px at -10% 20%, #1b2434, transparent 55%),
    var(--bg);
}
.wrap {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100%;
  padding: 32px 16px;
}
.card {
  position: relative;
  overflow: visible;
  width: 100%;
  max-width: 600px;
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02)), var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow:
    0 22px 46px -24px rgba(0,0,0,.65),
    0 0 0 1px rgba(255,255,255,.03) inset;
  backdrop-filter: saturate(120%) blur(50px);
}
.wm {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 150%;
  aspect-ratio: 1 / 1;
  background: url("logo.png") center / contain no-repeat;
  filter: blur(10px);
  opacity: .40;
  pointer-events: none;
  z-index: 0;
}
.card > *:not(.wm) { position: relative; z-index: 1; }
.header-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-bar .spacer { flex: 1 1 auto; }
.lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}
.lang-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(0,0,0,.25);
  color: var(--text);
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
  font: 16px/1 "Apple Color Emoji","Segoe UI Emoji",system-ui,sans-serif;
  transition: transform .06s ease, box-shadow .12s ease, border-color .12s ease, background .12s ease;
}
.lang-btn:hover { transform: translateY(-1px); }
.lang-btn[aria-pressed="true"] {
  border-color: rgba(125,211,252,.7);
  box-shadow: 0 0 0 4px var(--ring);
  background: rgba(125,211,252,.12);
}
header {
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--border);
}
img.logo {
  height: 48px;
  width: auto;
  display: block;
}
h1 {
  margin: 0;
  font-size: clamp(22px, 3.2vw, 32px);
  letter-spacing: .2px;
  line-height: 1.2;
}
.tagline {
  color: var(--muted);
  font-size: 14px;
  padding-left: 50px;
}
main { padding: 16px 0 6px; }
.intro {
  margin: 10px 0 22px;
  color: var(--muted);
  font-size: 15px;
}
.panel {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
}
.contact {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-soft);
}
.contact strong { font-weight: 600; }
.contact a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px dashed rgba(255,255,255,.28);
}
.contact a:hover { border-bottom-style: solid; }
.btns {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.btn {
  appearance: none;
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03));
  color: var(--text);
  padding: 5px 5px;
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  transition: transform .06s ease, box-shadow .12s ease;
}
.btn:focus { outline: none; box-shadow: 0 0 0 6px var(--ring); }
.btn:hover { transform: translateY(-1px); }
footer.site-footer {
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  background: #0b0d14;
  border: 1px solid #2a3347;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 10px;
  transition: all .25s ease;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Hide WP admin bar */
#wpadminbar { display: none !important; }
html { margin-top: 0 !important; }
