/* Loch-In Marketing: brand colours sampled from the logo files */
:root {
  --navy: #1b1564;
  --navy-deep: #120e45;
  --grey: #666666;
  --black: #000000;
  --white: #ffffff;
  --round: "Fredoka", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--black);
  background: var(--navy);
}

img { max-width: 100%; height: auto; display: block; }

/* ---------- Top: logo + headline ---------- */
.hero {
  background: var(--white);
  text-align: center;
  padding: 2.5rem 1.25rem 3rem;
}

.wordmark {
  width: min(420px, 88%);
  margin: 0 auto 1.75rem;
}

h1, h2, button { font-family: var(--round); font-weight: 600; }

h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.45rem, 5.2vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.soon {
  display: inline-block;
  margin: 0;
  padding: 0.35rem 1rem;
  border: 2px solid var(--grey);
  border-radius: 999px;
  color: var(--grey);
  font-weight: 600;
  font-size: 0.95rem;
}

/* ---------- Navy band with faint triangle pattern ---------- */
.enquire {
  padding: 3rem 1.25rem 2.5rem;
  background:
    linear-gradient(rgba(27, 21, 100, 0.9), rgba(27, 21, 100, 0.9)),
    url("images/pattern.jpg") center / cover; /* one stretched copy: the image doesn't tile seamlessly */
}

.card {
  max-width: 34rem;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.5rem;
  background: var(--white);
  border-radius: 1.5rem;
  box-shadow: 0 0.75rem 2rem rgba(0, 0, 0, 0.25);
}

.card-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.25rem;
}

h2 {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

h2 span { display: block; color: var(--navy); }

/* Padlock: three stacked layers so the shackle can lift */
.lock {
  position: relative;
  flex: none;
  width: 4rem;
  aspect-ratio: 1;
  transform-origin: 50% 85%;
}

.lock img { position: absolute; inset: 0; width: 100%; height: 100%; }

.lock .shackle { transition: transform 0.25s ease; }

.card-head:hover .lock { animation: wobble 0.6s ease-in-out; }

/* Hovering or focusing the button "unlocks" the padlock */
.card:has(button:hover, button:focus-visible) .shackle { transform: translateY(-9%); }

/* After a successful send it snaps shut and wobbles */
.card.sent .lock { animation: wobble 0.6s ease-in-out 0.15s; }
.card.sent .shackle { animation: snap 0.35s ease-in both; }

@keyframes wobble {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(-9deg); }
  40% { transform: rotate(7deg); }
  60% { transform: rotate(-4deg); }
  80% { transform: rotate(2deg); }
}

@keyframes snap {
  from { transform: translateY(-12%); }
  to { transform: translateY(0); }
}

/* ---------- Form ---------- */
form { display: grid; gap: 0.35rem; }

label { font-weight: 600; margin-top: 0.6rem; }

input, textarea {
  width: 100%;
  font: inherit;
  color: var(--black);
  padding: 0.75rem 0.9rem;
  border: 2px solid var(--grey);
  border-radius: 0.9rem;
  background: var(--white);
}

textarea { resize: vertical; min-height: 7rem; }

input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

input:focus-visible, textarea:focus-visible { border-color: var(--navy); }

button {
  margin-top: 1.1rem;
  min-height: 3.25rem;
  font-size: 1.2rem;
  color: var(--white);
  background: var(--navy);
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

button:hover { background: var(--black); transform: translateY(-2px); }
button:active { transform: translateY(0); }
button:disabled { opacity: 0.7; cursor: progress; }

.honeypot { display: none; }

.form-error { margin: 0.75rem 0 0; color: #b00020; font-weight: 600; }

.success {
  margin: 0.5rem 0 0;
  padding: 1.25rem;
  font-family: var(--round);
  font-size: 1.35rem;
  text-align: center;
  color: var(--white);
  background: var(--navy);
  border-radius: 1rem;
}

.privacy { margin: 1rem 0 0; font-size: 0.875rem; color: var(--grey); }

[hidden] { display: none !important; }

/* ---------- Socials + footer ---------- */
.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  border: 2px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}

.socials a:hover { background: var(--white); color: var(--navy); }
.socials a:focus-visible { outline-color: var(--white); }

.socials svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.socials .dot { fill: currentColor; stroke: none; }

footer {
  padding: 1.25rem;
  text-align: center;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.85);
  background: var(--navy-deep);
}

footer p { margin: 0; }

/* ---------- Larger screens ---------- */
@media (min-width: 40rem) {
  .hero { padding: 4rem 2rem 4rem; }
  .enquire { padding: 4rem 2rem 3rem; }
  .card { padding: 2.25rem 2.25rem 2rem; }
  h2 { font-size: 1.6rem; }
  .lock { width: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
