/* =====================================================================
   Loyal – site styles
   Production CSS for loyalco.com.au
   Single file, no preprocessor, no dependencies (except Google Fonts).
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@100;200;300;400;500;600;700;800;900&display=swap");

/* ---------- Reset --------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, form { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------- Tokens -------------------------------------------------- */
:root {
  --font-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body:    "Archivo", "Helvetica Neue", Arial, sans-serif;

  --fw-hairline: 100;
  --fw-medium:   500;
  --fw-black:    900;

  --loyal-blue:        #0100FE;
  --loyal-blue-deep:   #0100CB;
  --loyal-black:       #0A0A0A;
  --loyal-ink:         #1A1A1A;
  --loyal-white:       #FFFFFF;
  --loyal-sand-50:     #FBF7EE;
  --loyal-sand-100:    #F4ECDA;
  --loyal-sand-200:    #E8DFC8;
  --loyal-sand-500:    #B9A581;

  --bg: var(--loyal-white);
  --fg: var(--loyal-black);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 120ms;
  --dur-base: 220ms;

  --container: 1280px;
  --gutter:    32px;
}

/* ---------- Base ---------------------------------------------------- */
html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-weight: var(--fw-medium);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--loyal-blue); color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

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

/* ---------- Layout helpers ----------------------------------------- */
.container { max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.eyebrow { font-family: var(--font-body); font-weight: 500; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: #777; }

/* ---------- Top navigation ----------------------------------------- */
.nav {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; padding: 20px var(--gutter);
  background: #fff; color: var(--loyal-black);
  border-bottom: 1px solid var(--loyal-sand-200);
  position: sticky; top: 0; z-index: 50;
}
.nav__wm { justify-self: center; line-height: 0; height: 22px; }
.nav__wm img { height: 100%; width: auto; }
.nav__menu { display: flex; gap: 28px; justify-self: end; }
.nav__menu a { font-size: 13px; font-weight: 500; padding: 6px 2px; }
.nav__menu a:hover, .nav__menu a.is-active { text-decoration: underline; text-underline-offset: 4px; }

/* dark variant */
.nav--dark { background: var(--loyal-black); color: #fff; border-bottom-color: transparent; }
.nav--blue { background: var(--loyal-blue); color: #fff; border-bottom-color: transparent; }

/* ---------- Hero (home page) --------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 64px); }
.hero__top { background: var(--loyal-blue); display: flex; align-items: center; justify-content: center; }
.hero__jockey { width: clamp(160px, 22vw, 280px); height: auto; opacity: 0.95; }
.hero__photo { background: #050505; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Headline block ----------------------------------------- */
.headline { padding: 96px 0; }
.headline__inner {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter);
  display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: end;
}
.headline__h {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.02em;
  margin: 0; color: var(--loyal-black);
}
.headline__h span { display: block; }
.headline__body { color: var(--loyal-black); font-size: 16px; line-height: 1.55; max-width: 42ch; }
.headline__body p { margin: 0 0 18px; }
.headline__cta {
  font-family: var(--font-body); font-weight: 500; font-size: 14px;
  color: var(--loyal-blue); text-decoration: underline; text-underline-offset: 5px;
}
.headline__cta::before { content: "* "; }

/* ---------- Section bands ------------------------------------------ */
.section { padding: 96px 0; }
.section--sand { background: var(--loyal-sand-50); }
.section--blue { background: var(--loyal-blue); color: #fff; }
.section--black { background: var(--loyal-black); color: #fff; }

/* ---------- About 3-col ------------------------------------------- */
.about { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.about__col p { font-size: 15px; line-height: 1.6; margin-top: 18px; }

/* ---------- Page intro --------------------------------------------- */
.page-intro { padding: 96px 0 48px; }
.page-intro__inner { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.page-intro h1 {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(48px, 6vw, 88px); line-height: 0.95; letter-spacing: -0.02em;
  margin: 18px 0 0;
}
.page-intro h1 span { display: block; }

/* ---------- Services list ------------------------------------------ */
.services {
  max-width: var(--container); margin: 0 auto; padding: 32px var(--gutter) 96px;
}
.services__row {
  display: grid; grid-template-columns: 80px 1.2fr 1.4fr 80px;
  gap: 32px; align-items: baseline;
  padding: 28px 0; border-top: 1px solid var(--loyal-sand-200);
  transition: background 220ms var(--ease-out);
}
.services__row:hover { background: var(--loyal-sand-50); }
.services__row:last-child { border-bottom: 1px solid var(--loyal-sand-200); }
.services__n { font-size: 12px; color: #888; letter-spacing: 0.16em; }
.services__t {
  font-family: var(--font-display); font-weight: 500; font-size: 26px;
  letter-spacing: -0.01em; text-transform: uppercase; color: var(--loyal-black);
}
.services__d { font-size: 14px; line-height: 1.55; color: #333; }
.services__cta {
  font-size: 12px; color: var(--loyal-blue); text-decoration: underline;
  text-underline-offset: 4px; letter-spacing: 0.1em; text-transform: uppercase; justify-self: end;
}

/* ---------- Service detail panels (on /services) ------------------- */
.svc-detail {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px;
  padding: 72px 0; border-top: 1px solid var(--loyal-sand-200);
}
.svc-detail:last-of-type { border-bottom: 1px solid var(--loyal-sand-200); }
.svc-detail__num {
  font-family: var(--font-display); font-weight: 100;
  font-size: clamp(96px, 12vw, 180px); line-height: 0.85; color: var(--loyal-blue);
}
.svc-detail__h {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(36px, 3.6vw, 56px); line-height: 0.98; letter-spacing: -0.02em;
  margin: 0 0 28px;
}
.svc-detail ul { font-size: 17px; }
.svc-detail ul li {
  padding: 14px 0; border-top: 1px solid rgba(0,0,0,0.08);
  display: grid; grid-template-columns: 24px 1fr;
}
.svc-detail ul li:last-child { border-bottom: 1px solid rgba(0,0,0,0.08); }
.svc-detail ul li::before { content: "*"; color: var(--loyal-blue); font-weight: 500; font-size: 22px; line-height: 1; }

/* ---------- Team --------------------------------------------------- */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--loyal-sand-200); margin-top: 48px; }
.team__member { background: var(--loyal-sand-50); padding: 56px 48px; display: grid; grid-template-rows: auto auto 1fr; gap: 18px; }
.team__role { font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--loyal-blue); font-weight: 500; }
.team__name { font-family: var(--font-display); font-weight: 500; text-transform: uppercase; font-size: 36px; letter-spacing: -0.01em; }
.team__bio { font-size: 15px; line-height: 1.6; max-width: 42ch; }

/* ---------- Contact ------------------------------------------------ */
.contact {
  max-width: var(--container); margin: 0 auto; padding: 48px var(--gutter) 96px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
}
.contact__h {
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: clamp(40px, 5vw, 72px); letter-spacing: -0.02em; line-height: 0.98; margin: 0 0 18px;
}
.contact__p { font-size: 16px; color: #333; line-height: 1.55; max-width: 36ch; margin: 0 0 32px; }
.contact__email { margin: 0; }
.contact__email a {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.01em;
  color: var(--loyal-blue); text-decoration: underline; text-underline-offset: 6px;
  word-break: break-word;
}
.contact__card {
  background: #fff; padding: 24px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 12px 32px -16px rgba(0,0,25,0.18);
  display: flex; flex-direction: column; gap: 12px; max-width: 380px;
}
.contact__card-top { background: var(--loyal-blue); padding: 12px 16px; align-self: flex-start; line-height: 0; }
.contact__card-top img { height: 18px; }
.contact__card h4 { font-family: var(--font-display); font-weight: 500; font-size: 22px; margin: 0; }
.contact__card .role { font-size: 13px; color: #555; }
.contact__card .meta { font-size: 13px; line-height: 1.6; }
.contact__card .meta a { color: var(--loyal-blue); text-decoration: underline; text-underline-offset: 3px; }

.form { display: flex; flex-direction: column; gap: 22px; align-self: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: #777; font-weight: 500; }
.field input, .field textarea {
  background: transparent; border: 0; border-bottom: 1px solid var(--loyal-black);
  padding: 10px 0; font-family: var(--font-body); font-weight: 500; font-size: 16px;
  color: var(--loyal-black); border-radius: 0; outline: none;
  transition: border-color var(--dur-base) var(--ease-out);
}
.field input:focus, .field textarea:focus { border-bottom-color: var(--loyal-blue); }
.field textarea { resize: none; min-height: 92px; line-height: 1.5; }

/* ---------- Buttons ------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--font-body); font-weight: 500; font-size: 13px;
  letter-spacing: 0.16em; text-transform: uppercase; line-height: 1;
  padding: 16px 24px; border: 0; cursor: pointer; border-radius: 2px;
  transition: background var(--dur-base) var(--ease-out), color var(--dur-base), opacity var(--dur-fast);
  text-decoration: none;
}
.btn--primary { background: var(--loyal-blue); color: #fff; }
.btn--primary:hover { background: var(--loyal-blue-deep); }
.btn--dark { background: var(--loyal-black); color: #fff; }
.btn--outline { background: transparent; color: var(--loyal-black); box-shadow: inset 0 0 0 1px var(--loyal-black); }
.btn--outline:hover { background: var(--loyal-black); color: #fff; }
.btn:active { opacity: 0.85; transform: translateY(1px); }

/* ---------- Footer ------------------------------------------------- */
.footer { background: var(--loyal-blue); color: #fff; overflow: hidden; }
.footer__photo { height: 420px; background: #050505; overflow: hidden; }
.footer__photo img { width: 100%; height: 100%; object-fit: cover; }
.footer__cols {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 48px;
  padding: 64px var(--gutter) 32px; max-width: var(--container); margin: 0 auto;
  font-size: 14px; line-height: 1.8;
}
.footer__col a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer__col--end { text-align: right; }
.footer__mark {
  overflow: hidden; display: flex; align-items: flex-end; gap: 24px;
  padding: 0 0 16px 16px; line-height: 0; white-space: nowrap;
}
.footer__mark img { height: clamp(120px, 22vw, 320px); width: auto; flex-shrink: 0; }

/* ---------- Clients (Who we've worked with) ----------------------- */
.section--clients { padding: 96px 0; background: #fff; }
.clients {
  display: flex; flex-wrap: wrap;
  align-items: center; justify-content: center;
  gap: 48px 72px;
  list-style: none; padding: 0; margin: 0;
}
.clients li { display: flex; align-items: center; justify-content: center; }
.clients img {
  max-width: 200px; max-height: 60px; width: auto; height: auto;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity var(--dur-base) var(--ease-out);
}
.clients img:hover { opacity: 1; }
@media (max-width: 1024px) {
  .clients { gap: 40px 56px; }
}
@media (max-width: 640px) {
  .clients { gap: 32px 40px; }
  .clients img { max-height: 48px; max-width: 140px; }
}

/* ---------- Skip-to-content ---------------------------------------- */
.skip { position: absolute; top: -100px; left: 0; padding: 8px 16px; background: #000; color: #fff; z-index: 100; }
.skip:focus { top: 0; }

/* ===================================================================
   Responsive – tablet
   =================================================================== */
@media (max-width: 1024px) {
  .headline__inner { grid-template-columns: 1fr; gap: 32px; }
  .about { grid-template-columns: 1fr 1fr; gap: 32px; }
  .services__row { grid-template-columns: 56px 1fr 1.4fr; }
  .services__cta { grid-column: 2 / -1; justify-self: start; padding-top: 8px; }
  .svc-detail { grid-template-columns: 1fr; gap: 24px; }
  .svc-detail__num { font-size: 96px; }
  .contact { grid-template-columns: 1fr; gap: 48px; }
  .team { grid-template-columns: 1fr; }
}

/* ===================================================================
   Responsive – mobile
   =================================================================== */
@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .nav { grid-template-columns: 1fr auto; gap: 16px; padding: 16px var(--gutter); }
  .nav__menu { grid-column: 1 / -1; justify-self: center; gap: 18px; }
  .nav__wm { justify-self: start; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero__top { padding: 64px 0; }
  .hero__photo { height: 420px; }

  .headline { padding: 64px 0; }
  .headline__h { font-size: clamp(36px, 9vw, 56px); }

  .section { padding: 64px 0; }
  .about { grid-template-columns: 1fr; gap: 32px; }

  .services__row {
    grid-template-columns: 1fr;
    gap: 8px; padding: 24px 0;
  }
  .services__cta { justify-self: start; }

  .footer__cols { grid-template-columns: 1fr; gap: 24px; padding: 48px var(--gutter); }
  .footer__col--end { text-align: left; }
}
