/* Iron Fighters. Sizes, colours and spacing match the old WordPress.com theme. */
:root {
  --bg: #1e2a38;
  --card: #273341;
  --divider: #334155;
  --text: #fff;
  --heading: #dbdbdb;
  --button: #efefef;
  --gap: 28px;
  --wide: 1200px;
  --narrow: 620px;
  --section: clamp(3.5rem, 7.3943662vw, 5.25rem);
  --title-gap: clamp(1.75rem, 3.5211268vw, 3.5rem);
  --type-small: clamp(.825rem, .825rem + ((1vw - .2rem) * .433), 1.0625rem);
  --type-medium: clamp(1rem, 1rem + ((1vw - .2rem) * .455), 1.25rem);
  --type-large: clamp(1.25rem, 1.25rem + ((1vw - .2rem) * .569), 1.563rem);
  --type-title: clamp(3.052rem, 3.052rem + ((1vw - .2rem) * 1.387), 3.815rem);
  --type-hero: clamp(1.953rem, 1.953rem + ((1vw - .2rem) * .887), 2.441rem);
  --ui-font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/fonts/lato-400.woff2) format("woff2");
}
@font-face {
  font-family: Lato;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(/fonts/lato-700.woff2) format("woff2");
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 var(--type-small)/1.6 Lato, sans-serif;
}

img, video { max-width: 100%; height: auto; display: block; }
picture { display: contents; }
[hidden] { display: none !important; }

a { color: inherit; }

h1, h2, h3, h4, h5, h6 { color: var(--heading); font-weight: 700; margin: 0; }
h4 { font-size: var(--type-large); line-height: 1.5; }
h5, h6 { font-size: var(--type-medium); line-height: 1.5; }
p, ul, figure { margin: 0; }
.center { text-align: center; }

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: flex-end;
  gap: var(--gap);
  padding: var(--gap);
}
.brand-col { flex: 0 0 30%; min-width: 0; }
.brand {
  font-size: var(--type-large);
  line-height: 1.127;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
}
.menu-col { flex: 0 0 50%; min-width: 0; padding: 0 var(--gap); }
.site-header nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--gap);
}
.site-header nav a { color: #fff; font-size: var(--type-small); text-decoration: none; }
.site-header nav a:hover,
.site-header nav a[aria-current="page"] { text-decoration: underline; }

.menu-open, .menu-close {
  display: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  cursor: pointer;
}

/* Phone: hamburger opens a white full-screen menu, like the WordPress theme. */
@media (max-width: 599px) {
  .brand-col { flex: 1 1 auto; }
  .menu-col { flex: 0 0 auto; padding: 0; }
  .menu-open { display: block; color: #fff; }
  .site-header nav { display: none; }
  .site-header nav.open {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    height: 100dvh;
    overflow: auto;
    background: #fff;
    color: #000;
    padding: 16px var(--gap);
  }
  .site-header nav.open .menu-close { display: block; margin-left: auto; padding: 4px 0; }
  .site-header nav.open ul { flex-direction: column; align-items: flex-end; margin-top: 24px; }
  .site-header nav.open a { color: #000; }
  body.menu-is-open { overflow: hidden; }
}

/* ---------- page layout: 620px text blocks, 1200px wide blocks ---------- */
main {
  max-width: calc(var(--wide) + 2 * var(--gap));
  margin: var(--section) auto;
  padding: 0 var(--gap);
}
main > * { max-width: var(--narrow); margin: var(--gap) auto 0; }
main > :first-child { margin-top: 0; }
main > h1, main > .wide { max-width: none; }
main > h1 { font-size: var(--type-title); line-height: 1.152; }
main > h1 + * { margin-top: var(--title-gap); }

main ul { padding-left: 1.6em; }

/* WordPress "columns" block */
.cols { display: flex; gap: var(--gap); }
.col { flex: 1 1 0; min-width: 0; }
.col > * + * { margin-top: var(--gap); }
@media (max-width: 781px) {
  .cols { flex-wrap: wrap; }
  .col { flex-basis: 100% !important; }
}

figure.aligncenter img { margin-inline: auto; }

hr.wide { border: 0; border-top: 1px solid var(--divider); }

/* ---------- home ---------- */
.hero { align-items: center; }
.hero .hero-text { flex: 0 0 calc(33.33% - var(--gap) / 3); }
.hero .hero-img { flex: 0 0 calc(66.66% - var(--gap) * 2 / 3); }
.hero h1 { font-size: var(--type-hero); line-height: 1.152; }
.hero .kicker { font-size: var(--type-medium); line-height: 1.5; font-weight: 700; color: var(--heading); }
.hero-img img { width: 100%; }

/* ---------- buttons ---------- */
.buttons { display: flex; gap: 16px; }
.btn {
  display: inline-block;
  background: var(--button);
  color: #000;
  font: 400 var(--type-small)/1 var(--ui-font);
  text-align: center;
  text-decoration: none;
  padding: 25.6px 9.6px;
  border-radius: 100px;
}
.btn:hover { color: var(--bg); }
.hero .btn { width: calc((100% - var(--gap)) / 2); }
.page-about .buttons { margin-inline: 6px; }
.page-about .buttons .btn { flex: 1; min-width: 0; }

/* ---------- Classes cards ---------- */
.card { background: var(--card); padding: 24px; border-radius: 8px; }
.card > * + * { margin-top: var(--gap); }

/* ---------- slideshow (replaces Jetpack slideshow) ---------- */
.carousel-viewport { position: relative; overflow: hidden; touch-action: pan-y; }
.carousel-track { display: flex; height: 100%; transition: transform .3s ease; }
.carousel-track.dragging { transition: none; }
.carousel-track figure {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-track img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .5);
  color: #000;
  cursor: pointer;
}
.carousel-prev svg, .carousel-next svg { width: 20px; height: 20px; }
.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }
@media (max-width: 599px) {
  .carousel-prev, .carousel-next { display: none; }
}
.carousel-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 20px;
  margin-top: 4px;
  font-size: var(--type-small);
  line-height: 1;
}
.carousel-pagination button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .5);
  cursor: pointer;
}
.carousel-pagination button[aria-current="true"] { width: 8px; height: 8px; background: #fff; }

/* ---------- gallery (At the Forge) ---------- */
.gallery { display: flex; flex-wrap: wrap; align-items: stretch; gap: var(--gap); }
.gallery figure {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: center;
  width: calc((100% - var(--gap)) / 2);
  max-width: 100%;
}
@media (min-width: 600px) {
  .gallery figure { width: calc((100% - var(--gap) * 2) / 3); }
}
.gallery img {
  flex: 1 0 0%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
}

/* ---------- full-screen photo viewer ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: #000;
  color: #fff;
  overflow: hidden;
}
.lightbox::backdrop { background: #000; }
.lightbox-stage {
  position: absolute;
  inset: 0 0 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
}
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.lightbox-prev, .lightbox-next, .lightbox-close {
  position: absolute;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
}
.lightbox-prev, .lightbox-next {
  top: calc(50% - 32px);
  transform: translateY(-50%);
  width: 28px;
  height: 30px;
  background: rgba(0, 0, 0, .6);
  color: #fff;
}
.lightbox-prev svg, .lightbox-next svg { width: 20px; height: 20px; }
.lightbox-prev { left: 40px; }
.lightbox-next { right: 40px; }
.lightbox-close {
  top: 30px;
  right: 40px;
  width: 25px;
  height: 25px;
  background: #fff;
  color: #000;
}
.lightbox-bar {
  position: absolute;
  inset: auto 0 0;
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 40px;
  font: 400 16px/1 var(--ui-font);
}
@media (max-width: 599px) {
  .lightbox-prev { left: 12px; }
  .lightbox-next { right: 12px; }
  .lightbox-close { right: 16px; top: 16px; }
  .lightbox-bar { padding: 0 16px; }
}

/* ---------- About video ---------- */
.video { position: relative; }
.video video { width: 100%; aspect-ratio: 16 / 9; background: #000; }
.video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  cursor: pointer;
  filter: drop-shadow(0 0 6px rgba(0, 0, 0, .5));
}
.video-play svg { width: 64px; height: 64px; }
.video-play:hover { transform: translate(-50%, -50%) scale(1.08); }
.video.playing .video-play { display: none; }

/* ---------- contact forms ---------- */
.form-wrap { width: 100%; }
.contact-form { display: flex; flex-direction: column; gap: var(--gap); }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-weight: 700; color: #fff; }
.field label span { font-weight: 400; font-size: .8em; }
.field input, .field textarea {
  width: 100%;
  font: 400 var(--type-small)/1.6 var(--ui-font);
  color: #000;
  background: #fff;
  border: 1px solid #8c8f94;
  border-radius: 0;
  padding: 16px;
}
.field textarea { height: 200px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 1px solid #fff; outline-offset: 0; }
.form-btn {
  align-self: flex-start;
  font: 400 var(--type-small)/1.6 var(--ui-font);
  color: #000;
  background: var(--button);
  border: 0;
  border-radius: 4px;
  padding: 16px 24px;
  cursor: pointer;
}
.form-btn:hover { color: var(--bg); }
.form-btn[disabled] { opacity: .6; cursor: progress; }
.hp { display: none; }
.form-error { color: #ffb4b4; }

/* Classes: labels above the fields, centred 620px block */
.form-default { padding: 16px; }
@media (max-width: 480px) {
  .form-default .form-btn { align-self: stretch; }
}

/* Contact: labels sit inside the fields and float up when typing */
.form-animated .field { position: relative; display: block; }
.form-animated label {
  position: absolute;
  top: 16px;
  left: 16px;
  color: #000;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .15s ease, top .15s ease;
}
.form-animated input, .form-animated textarea { border-radius: 5px; }
.form-animated .field:focus-within label,
.form-animated .field:has(input:not(:placeholder-shown)) label,
.form-animated .field:has(textarea:not(:placeholder-shown)) label {
  top: 4px;
  transform: scale(.75);
}
.form-animated .field:focus-within input, .form-animated .field:focus-within textarea,
.form-animated .field:has(:not(:placeholder-shown)) input,
.form-animated .field:has(:not(:placeholder-shown)) textarea { padding-top: 24px; padding-bottom: 8px; }
.form-animated .field-message textarea { padding-top: 40px; }
.form-animated .form-btn { align-self: stretch; }

.form-success > * + * { margin-top: var(--gap); }

/* ---------- footer ---------- */
.site-footer { padding: var(--title-gap) var(--gap); }
.site-footer .social {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.site-footer .social a { display: block; color: #fff; transition: transform .1s ease; }
.site-footer .social a:hover { transform: scale(1.1); }

.field-submit { display: flex; flex-direction: column; }
