/*
  Copyright (c) 2026 Washingmachine274. All rights reserved.
  Made for Washingmachine274 free of charge by JT Business Consultants Limited.
  Built with AI-assisted tooling; reviewed by Jo Mankelow (JTBC). Owned by Washingmachine274.
*/

:root {
  --bg: #1a120b;
  --bg-2: #2b1d10;
  --nugget: #e0a33a;
  --nugget-dark: #b5741f;
  --crumb: #f6d58a;
  --text: #fff6e6;
  --muted: #d9c4a3;
  --steel: #e8e6e1;
  --steel-dark: #a9a7a2;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(circle at 50% 30%, var(--bg-2) 0%, var(--bg) 70%);
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font);
  text-align: center;
}

.wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 24px;
  max-width: 640px;
  margin: 0 auto;
}

/* Washing machine */
.machine {
  width: min(280px, 72vw);
  aspect-ratio: 5 / 6;
  background: linear-gradient(180deg, var(--steel) 0%, var(--steel-dark) 100%);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55), inset 0 -6px 0 rgba(0, 0, 0, .12);
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 32px;
  animation: shake 2.4s ease-in-out infinite;
}

.panel {
  height: 14%;
  background: #d4d2cc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
}

.knob {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #8f8d88;
  box-shadow: inset 0 0 0 4px #bcbab4;
  margin-right: auto;
}

.light {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--nugget);
  box-shadow: 0 0 8px var(--nugget);
  animation: blink 1.2s steps(2, start) infinite;
}

.light + .light { animation-delay: .6s; }

.door {
  position: relative;
  flex: 1;
  aspect-ratio: 1;
  max-width: 100%;
  align-self: center;
  border-radius: 50%;
  background: #6f6d68;
  padding: 9%;
  box-shadow: inset 0 0 0 10px #c9c7c1, 0 4px 10px rgba(0, 0, 0, .25);
}

.drum {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  background: var(--nugget);
  animation: spin 3s linear infinite;
}

.logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.glass {
  position: absolute;
  inset: 9%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, .35) 0%, rgba(255, 255, 255, 0) 45%);
  pointer-events: none;
}

/* Text */
h1 {
  margin: 0;
  font-size: clamp(2rem, 8vw, 3.4rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.05;
  overflow-wrap: anywhere;
  color: var(--nugget);
}

.tag {
  margin: 6px 0 22px;
  font-size: 1.05rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--crumb);
}

.status {
  margin: 0 0 28px;
  font-size: 1.2rem;
  line-height: 1.5;
}

.status strong { color: var(--nugget); }

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}

.socials a {
  display: inline-block;
  min-width: 120px;
  padding: 12px 20px;
  border-radius: 999px;
  background: var(--nugget);
  color: #1a120b;
  font-weight: 800;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease;
}

.socials a:hover { background: var(--crumb); transform: translateY(-2px); }

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

.enquiries {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.enquiries a {
  color: var(--crumb);
  font-weight: 700;
  overflow-wrap: anywhere;
}

footer {
  padding: 20px 16px;
  font-size: .85rem;
  color: var(--muted);
}

/* Motion */
@keyframes spin { to { transform: rotate(360deg); } }

@keyframes shake {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  20% { transform: translate(-1px, 1px) rotate(-.6deg); }
  40% { transform: translate(1px, -1px) rotate(.6deg); }
  60% { transform: translate(-1px, 0) rotate(-.4deg); }
  80% { transform: translate(1px, 1px) rotate(.4deg); }
}

@keyframes blink { to { opacity: .25; } }

@media (prefers-reduced-motion: reduce) {
  .machine, .drum, .light { animation: none; }
}
