/* ABOUTME: Styles for the Malia sales website, shared by the Icelandic and English pages. */
/* ABOUTME: A light "shallow water" look: drifting sea gradient, brand navy #121F35 and orange #EB6F2F from the logo. */
@font-face {
  font-family: "Bricolage Grotesque";
  src: url("/fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 600 800;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("/fonts/figtree.woff2") format("woff2");
  font-weight: 400 600;
  font-display: swap;
}

/* One deliberate light palette: the logo is navy, so the page never goes dark. */
:root {
  --navy: #121f35;
  --navy-soft: #3d4a63;
  --orange: #eb6f2f;
  --orange-ink: #b34a14;
  --mist: #eef5f8;
  --aqua: #bfe3ec;
  --peach: #fbd5bf;
  --glass: rgb(255 255 255 / 55%);
  --glass-edge: rgb(18 31 53 / 10%);
  --display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
  font-family: var(--body);
  color: var(--navy);
  background: var(--mist);
  line-height: 1.5;
}

* { box-sizing: border-box; }

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding-inline: 16px;
  overflow-x: hidden;
}

/* The sea: soft aqua and peach light drifting slowly behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -25%;
  z-index: -2;
  background:
    radial-gradient(40% 35% at 20% 18%, var(--aqua), transparent 70%),
    radial-gradient(38% 34% at 82% 78%, var(--peach), transparent 70%),
    radial-gradient(30% 28% at 78% 20%, rgb(191 227 236 / 60%), transparent 70%),
    radial-gradient(34% 30% at 15% 85%, rgb(251 213 191 / 55%), transparent 70%),
    linear-gradient(180deg, var(--mist), #e3eff4);
  animation: drift 38s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(3%, 2%, 0) rotate(8deg) scale(1.08); }
}

.bubbles {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

a { color: inherit; }

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

.top {
  display: flex;
  justify-content: flex-end;
  padding-block: 20px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 0.875rem;
  font-weight: 600;
}

.language {
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
}

.language:hover { border-color: var(--navy); background: rgb(255 255 255 / 80%); }

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
  padding-block: 8px 48px;
}

.logo {
  width: min(560px, 92vw);
  height: auto;
  margin-bottom: 28px;
  overflow: visible;
}

.status {
  margin: 0;
  color: var(--orange-ink);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0 rgb(235 111 47 / 50%);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  to { box-shadow: 0 0 0 10px rgb(235 111 47 / 0%); }
}

h1 {
  margin: 0;
  max-width: 16ch;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.stop { color: var(--orange); }

.lead {
  margin: 0;
  max-width: 34rem;
  color: var(--navy-soft);
  font-size: 1.2rem;
}

.contact {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  text-decoration: none;
  box-shadow: 0 10px 30px -12px rgb(18 31 53 / 60%);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}

.contact::after {
  content: "→";
  transition: transform 0.2s;
}

.contact:hover, .contact:focus-visible {
  background: var(--orange);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgb(235 111 47 / 70%);
}

.contact:hover::after { transform: translateX(3px); }

footer {
  padding-block: 24px;
  text-align: center;
  color: var(--navy-soft);
  font-size: 0.875rem;
}

@media (prefers-reduced-motion: reduce) {
  body::before, .status::before { animation: none; }
  .contact, .contact::after, .language { transition: none; }
}
