/* ==========================================================================
   Guddoers Media — site styles
   Edit colours + fonts here; everything else inherits from these variables.
   ========================================================================== */

:root {
  /* Brand colours */
  --navy: #0a2240;
  --navy-deep: #071a31;
  --black: #000000;
  --ink: #0b0b0b;
  --white: #ffffff;
  --gold: #f5c518;
  --red: #c8102e;
  --green: #17a44c;

  --text: #ffffff;
  --text-muted: #c9d2dd;
  --line: rgba(255, 255, 255, 0.18);

  /* Fonts — swap these two lines (and the <link> in each page's <head>)
     if you want a different look. */
  --font-display: "Lobster Two", "Brush Script MT", cursive;
  --font-body: "Barlow Semi Condensed", "Arial Narrow", Arial, sans-serif;

  --container: 1160px;
  --nav-h: 104px;
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* --------------------------------------------------------------- base --- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--black);
  color: var(--text);
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.2rem);
  font-weight: 600;
  line-height: 1.55;
  text-align: center;
  overflow-x: hidden;
}

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

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  margin: 0 0 0.5em;
  letter-spacing: 0.01em;
}

h1 { font-size: clamp(2.1rem, 1.1rem + 4.4vw, 4.4rem); }
h2 { font-size: clamp(1.9rem, 1.1rem + 3.4vw, 3.4rem); }
h3 { font-size: clamp(1.25rem, 1rem + 1vw, 1.7rem); }

p { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--gold); color: var(--black); }

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

.skip-link {
  position: absolute;
  left: 50%;
  top: -100px;
  transform: translateX(-50%);
  background: var(--white);
  color: var(--black);
  padding: 12px 20px;
  z-index: 200;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 8px; }

/* ---------------------------------------------------------- structure --- */

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container--narrow { width: min(100% - 40px, 860px); }

.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--tight { padding: clamp(36px, 5vw, 64px) 0; }

.prose {
  max-width: 68ch;
  margin-inline: auto;
}

/* Long-form copy (About page) reads left-aligned in a centred column. */
.prose--left { text-align: left; max-width: 70ch; }
.prose--left > * + .subhead { margin-top: 2.1em; }

.subhead {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 700;
  font-size: 1.05em;
  letter-spacing: 0.01em;
  margin: 0 0 0.15em;
}

.role {
  font-family: var(--font-body);
  font-weight: 700;
  color: var(--gold);
  font-size: clamp(1rem, 0.9rem + 0.5vw, 1.3rem);
  letter-spacing: 0.02em;
  margin: -0.3em 0 0;
}

.contact-block { margin-top: 2.1em; }
.contact-block a { color: var(--white); }
.contact-block a:hover { color: var(--gold); }

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  width: min(100% - 40px, var(--container));
  margin: clamp(40px, 6vw, 72px) auto;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}

/* -------------------------------------------------------------- header --- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: var(--nav-h);
  width: min(100% - 32px, 1280px);
  margin-inline: auto;
}

/* The wrapper dissolves on desktop so both lists sit in the nav grid,
   and becomes the drop-down panel on mobile. */
.nav__menu { display: contents; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 5vw, 76px);
  list-style: none;
  margin: 0;
  padding: 0;
  grid-row: 1;
}
.nav__links--left {
  grid-column: 1;
  justify-content: flex-end;
  padding-right: clamp(10px, 3vw, 40px);
}
.nav__links--right {
  grid-column: 3;
  justify-content: flex-start;
  padding-left: clamp(10px, 3vw, 40px);
}

.nav__link {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(1.1rem, 0.9rem + 0.7vw, 1.7rem);
  text-decoration: none;
  color: var(--white);
  white-space: nowrap;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__link:hover,
.nav__link:focus-visible { color: var(--gold); border-bottom-color: var(--gold); }
.nav__link[aria-current="page"] { border-bottom-color: var(--gold); }

.nav__brand { grid-column: 2; grid-row: 1; display: block; line-height: 0; padding: 10px 0; }
.nav__logo { width: clamp(190px, 26vw, 330px); height: auto; }

.nav__toggle {
  display: none;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  background: none;
  border: 1px solid var(--line);
  color: var(--white);
  width: 46px;
  height: 42px;
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav__toggle span::before,
.nav__toggle span::after { content: ""; position: relative; }
.nav__toggle span::before { top: -7px; }
.nav__toggle span::after { top: 5px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after { transform: translateY(-5px) rotate(-45deg); }

/* The red/gold/green stripe under the nav */
.accent-bar {
  height: 5px;
  background: linear-gradient(
    90deg,
    var(--red) 0%,
    #e0431f 16%,
    #f0a11a 34%,
    var(--gold) 48%,
    #a9c236 66%,
    var(--green) 84%,
    #0d7a37 100%
  );
}

/* --------------------------------------------------------------- socials -- */

.socials {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 3vw, 30px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
}

.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  transition: color 0.18s var(--ease), transform 0.18s var(--ease);
}
.socials a:hover,
.socials a:focus-visible { color: var(--gold); transform: translateY(-2px); }
.socials svg { width: 26px; height: 26px; fill: currentColor; }

/* -------------------------------------------------------------- buttons --- */

.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.15rem);
  letter-spacing: 0.01em;
  text-decoration: none;
  padding: 16px 32px;
  border: 2px solid var(--white);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease),
              border-color 0.18s var(--ease), transform 0.18s var(--ease);
}
.btn:hover,
.btn:focus-visible {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
  transform: translateY(-2px);
}

.btn--ghost { background: transparent; color: var(--white); }
.btn--ghost:hover,
.btn--ghost:focus-visible { background: var(--white); color: var(--black); border-color: var(--white); }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 40px);
}

/* ----------------------------------------------------------------- media -- */

.media {
  margin: clamp(24px, 4vw, 44px) auto clamp(28px, 4vw, 48px);
  background: #101010;
  overflow: hidden;
}
.media img {
  width: 100%;
  transition: transform 0.7s var(--ease);
}
.media:hover img { transform: scale(1.03); }

.media--portrait { max-width: 900px; }

/* Upright portraits need a narrower frame, or they tower over the page. */
.media--tall { max-width: 660px; }

.embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #101010;
  border: 1px solid var(--line);
}
.embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ----------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
  margin-top: clamp(30px, 4vw, 48px);
  text-align: left;
}
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card__icon {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1;
  border: 1px solid var(--white);
  background: var(--black);
  margin-bottom: 20px;
  padding: 14%;
}
.card__icon svg { width: 100%; height: auto; fill: var(--white); }

.card h3 { margin-bottom: 10px; }
.card p { font-size: 0.98rem; color: var(--text-muted); }

.card--bordered {
  border: 1px solid var(--line);
  padding: clamp(22px, 3vw, 32px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent);
}

.card--link { text-decoration: none; transition: border-color 0.18s var(--ease); }
.card--link:hover { border-color: var(--gold); }

/* ------------------------------------------------------------------ list -- */

.checklist {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  max-width: 62ch;
  text-align: left;
}
.checklist li {
  position: relative;
  padding: 10px 0 10px 34px;
  border-bottom: 1px solid var(--line);
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 18px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--gold);
  border-bottom: 2px solid var(--gold);
  transform: rotate(-45deg);
}

/* ------------------------------------------------------------------ form -- */

.form {
  max-width: 720px;
  margin: clamp(28px, 4vw, 44px) auto 0;
  text-align: left;
  display: grid;
  gap: 18px;
}

.field { display: grid; gap: 7px; }
.field--half { grid-column: span 1; }

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

input,
select,
textarea {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  background: #0f0f0f;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 13px 14px;
  width: 100%;
}
input:focus,
select:focus,
textarea:focus { border-color: var(--gold); outline: none; }
textarea { min-height: 150px; resize: vertical; }

.form .btn { justify-self: start; }
.form__hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- footer -- */

.site-footer {
  background: var(--navy-deep);
  padding: clamp(48px, 6vw, 72px) 0 32px;
  margin-top: clamp(40px, 6vw, 80px);
}
.site-footer .socials { margin-bottom: 26px; }

.footer__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px clamp(18px, 3vw, 34px);
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.footer__nav a {
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer__nav a:hover { color: var(--gold); }

.footer__meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0;
}
.footer__meta a { color: var(--text-muted); }

/* ------------------------------------------------------ scroll reveals ---
   Elements fade up as they come into view. The starting (hidden) state is
   only applied when JavaScript is running — if it isn't, everything is
   simply visible, so the site never disappears. */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
  will-change: opacity, transform;
}

.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Photos settle out of a slight zoom as they arrive. */
.js .media[data-reveal] img { transform: scale(1.07); }
.js .media[data-reveal].is-visible img { transform: none; }
.js .media[data-reveal].is-visible:hover img { transform: scale(1.03); }

/* Cards in a row arrive one after another rather than all at once. */
.js .grid > [data-reveal]:nth-child(2) { transition-delay: 110ms; }
.js .grid > [data-reveal]:nth-child(3) { transition-delay: 220ms; }
.js .grid > [data-reveal]:nth-child(4) { transition-delay: 330ms; }

/* --------------------------------------------------------- back to top --- */

.to-top {
  position: fixed;
  right: clamp(14px, 3vw, 32px);
  bottom: clamp(14px, 3vw, 32px);
  z-index: 90;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid var(--white);
  background: var(--black);
  color: var(--white);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease),
              visibility 0.22s, background 0.18s var(--ease), color 0.18s var(--ease);
}
.to-top[data-visible="true"] { opacity: 1; visibility: visible; transform: none; }
.to-top:hover,
.to-top:focus-visible { background: var(--white); color: var(--black); }
.to-top svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.6; }

/* --------------------------------------------------------------- utility -- */

.stack > * + * { margin-top: clamp(18px, 2.5vw, 28px); }
.text-gold { color: var(--gold); }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------ responsive -- */

@media (max-width: 900px) {
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  :root { --nav-h: 76px; }

  .nav { grid-template-columns: 1fr auto; }
  .nav__toggle { display: flex; }

  .nav__menu {
    display: none;
    position: fixed;
    inset: calc(var(--nav-h) + 5px) 0 auto 0;
    background: var(--navy);
    border-top: 1px solid var(--line);
    padding: 8px 0 22px;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
  }
  .nav[data-open="true"] .nav__menu { display: block; }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
  }
  .nav__links--left,
  .nav__links--right { grid-column: auto; }
  .nav__link {
    display: block;
    padding: 14px 26px;
    font-size: 1.5rem;
    text-align: left;
    border-bottom: 0;
  }
  .nav__link[aria-current="page"] { color: var(--gold); }
  .nav__brand { grid-column: 1; justify-self: start; }
  .nav__logo { width: 180px; }
}

@media (max-width: 620px) {
  .grid--4,
  .grid--3,
  .grid--2 { grid-template-columns: 1fr; }
  .form__row { grid-template-columns: 1fr; }
  .card__icon { max-width: 260px; margin-inline: auto; }
  .grid { text-align: center; }
  .checklist { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  /* Visitors who ask for less motion get the content, not the movement. */
  .js [data-reveal],
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .js .media[data-reveal] img,
  .js .media[data-reveal].is-visible img { transform: none; }
  .media:hover img,
  .js .media[data-reveal].is-visible:hover img { transform: none; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}
