/* ==========================================================
   MoonAge — moonage.co.uk
   Palette: ink #0B0B0C · white #FFFFFF · red #D62828
            grey #6E6A66 · paper #FAFAF8
   Type: Space Grotesk (display) · Inter (body)
   ========================================================== */

:root {
  --ink: #0B0B0C;
  --white: #FFFFFF;
  --red: #D62828;
  --red-dark: #B71F1F;
  --grey: #6E6A66;
  --paper: #FAFAF8;
  --line: rgba(11, 11, 12, 0.1);
  --display: "Space Grotesk", sans-serif;
  --body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

body {
  font-family: var(--body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 720px; }

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
}

.brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 0.9rem;
  font-weight: 500;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-nav a:hover { color: var(--red); }

.nav-cta {
  background: var(--red);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.nav-cta:hover { background: var(--red-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 11, 12, 0.72) 0%, rgba(11, 11, 12, 0.15) 45%, rgba(11, 11, 12, 0) 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-bottom: 72px;
  padding-top: 160px;
}

.eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0.85;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(11, 11, 12, 0.3);
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--white);
  margin-bottom: 32px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-family: var(--body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-primary {
  background: var(--red);
  color: var(--white);
  padding: 14px 32px;
}

.btn-primary:hover { background: var(--red-dark); }

.btn-full { width: 100%; }

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section-tint { background: var(--paper); }

/* Signature: segmented tick rule, echoing the halo of the MoonAge mark */
.section-head {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 56px;
}

.tick-rule {
  display: inline-block;
  width: 56px;
  height: 12px;
  flex-shrink: 0;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ink) 0,
    var(--ink) 3px,
    transparent 3px,
    transparent 8px
  );
  position: relative;
}

.tick-rule::after {
  content: "";
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
}

.section h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ---------- Services ---------- */

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px 64px;
}

.service h3 {
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.service p {
  color: var(--grey);
  font-size: 0.98rem;
}

/* ---------- Banner ---------- */

.banner {
  line-height: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.banner-image {
  width: 100%;
  height: clamp(180px, 28vw, 360px);
  object-fit: cover;
}

/* ---------- About ---------- */

.about-block { margin-bottom: 40px; }
.about-block:last-child { margin-bottom: 0; }

.about-block h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.about-block p { color: var(--grey); }

.about-founder {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 40px;
  align-items: start;
}

.founder-photo {
  width: 100%;
  border-radius: 4px;
  display: block;
}

@media (max-width: 640px) {
  .about-founder { grid-template-columns: 1fr; }
  .founder-photo { max-width: 260px; }
}

/* ---------- Clients ---------- */

.clients-eyebrow {
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--grey);
  margin-bottom: 24px;
}

.clients-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.clients-grid li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  transition: border-color 0.15s ease;
}

.clients-grid li:hover { border-color: var(--red); }

.clients-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 22px;
}

.clients-grid img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter 0.15s ease, opacity 0.15s ease;
}

.clients-grid li:hover img {
  filter: grayscale(0);
  opacity: 1;
}

/* ---------- Contact ---------- */

.contact-form .field { margin-bottom: 24px; }

.contact-form label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  font-family: var(--body);
  font-size: 1rem;
  color: var(--ink);
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
  background: var(--white);
  transition: border-color 0.15s ease;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--red);
  outline: none;
}

.form-status {
  margin-top: 16px;
  font-size: 0.92rem;
  font-weight: 500;
  min-height: 1.4em;
}

.form-status.success { color: #1a7f37; }
.form-status.error { color: var(--red); }

.contact-details {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--grey);
}

.contact-details a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--red);
}

.contact-details a:hover { color: var(--red); }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  padding-top: 40px;
  padding-bottom: 40px;
}

/* ---------- Responsive ---------- */

@media (max-width: 820px) {
  .clients-grid { grid-template-columns: repeat(3, 1fr); }
  .services-grid { gap: 40px; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }

  .nav-toggle { display: flex; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }

  .site-nav.open { display: flex; }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .nav-cta {
    margin-top: 16px;
    text-align: center;
    border-bottom: none;
  }

  .services-grid { grid-template-columns: 1fr; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }

  .hero-content { padding-bottom: 48px; padding-top: 120px; }
}
