/* Damage Agency: rebuilt from the WordPress (GeneratePress + WPBakery) site. Measured at 1366px. */
:root {
  --bg: #111111;
  --navy: #010b24;
  --deep: #000308;
  --text: #ffffff;
  --muted: #eaeaea;
  --link: #fce7d3;
  --red: #df3830;
  --red-hover: #ff3300;
  --nav-hover: #819596;
  --container: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 14px/21px Raleway, sans-serif;
  color: var(--text);
  background: var(--bg) url('../img/3guards.jpg') 50% 0 / auto no-repeat fixed;
  /* Native size up to 1920px wide (matches the old site), then scale up so wide or tall screens never show bare edges.
     183.4vh = viewport height x (1920 / 1047), the image's aspect ratio. */
  background-size: max(1920px, 100vw, 183.4vh) auto;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; vertical-align: middle; border: 0; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: #ffffff; }
h1, h2, h3, h4 { font-weight: 400; color: #fff; margin: 0 0 20px; }
h2 { font-size: 27px; line-height: 1.2; }
h3 { font-size: 17px; line-height: 1.2; }
h4 { font-size: 14px; line-height: 1.5; }
p { margin: 0 0 21px; }
strong { font-weight: 700; }
.center { text-align: center; }
.red { color: #ff0000; }
.screen-reader-text, .skip-link:not(:focus) {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 10001; background: #fff; color: #000; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: relative;
  z-index: 50;
  background: url('../img/iron-bar-header4.png') 0 0 repeat-x;
}
.inside-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 40px 10px;
}
.site-logo { display: block; flex: 0 0 auto; }
.site-logo img { display: block; width: 432px; }
.main-navigation ul { list-style: none; margin: 0; padding: 0; display: flex; }
.main-navigation a, .main-navigation button {
  display: block;
  padding: 0 20px;
  line-height: 60px;
  font: 700 12px/60px Raleway, sans-serif;
  text-transform: uppercase;
  color: #fff;
  background: none;
  border: 0;
  cursor: pointer;
}
.main-navigation a:hover, .main-navigation a:focus,
.main-navigation button:hover, .main-navigation button:focus { color: var(--nav-hover); }
.main-navigation .slideout-toggle button { font-size: 14px; }
.menu-toggle { display: none; }

/* Hover wobble on "Reach Us", carried over from the old site */
.wobble:hover { animation: wobble .6s linear 1; transform-origin: 50% 50%; }
@keyframes wobble {
  0% { transform: translate(0,0) rotate(0); }
  15% { transform: translate(-25px,0) rotate(-5deg); }
  30% { transform: translate(20px,0) rotate(3deg); }
  45% { transform: translate(-15px,0) rotate(-3deg); }
  60% { transform: translate(10px,0) rotate(2deg); }
  75% { transform: translate(-5px,0) rotate(-1deg); }
  100% { transform: translate(0,0) rotate(0); }
}
.bobble:hover img { animation: shake .82s cubic-bezier(.36,.07,.3,.97) both; }
@keyframes shake {
  10%, 90% { transform: translate3d(-1px,0,0); }
  20%, 80% { transform: translate3d(8px,0,0); }
  30%, 50%, 70% { transform: translate3d(-4px,0,0); }
  40%, 60% { transform: translate3d(4px,0,0); }
}
@media (prefers-reduced-motion: reduce) { .wobble:hover, .bobble:hover img { animation: none; } }

/* Slide-out side menu (the "bars" item at the end of the menu) */
.slideout {
  position: fixed; inset: 0 auto 0 0; z-index: 10000;
  width: 270px; max-width: 85vw;
  background: var(--navy);
  padding: 60px 0 20px;
  box-shadow: 0 0 40px rgba(0,0,0,.6);
  overflow-y: auto;
}
.slideout ul { list-style: none; margin: 0; padding: 0; }
.slideout a { display: block; padding: 0 20px; font: 700 12px/60px Raleway, sans-serif; text-transform: uppercase; color: #fff; }
.slideout a:hover, .slideout a:focus { color: var(--nav-hover); }
.slideout-close { position: absolute; top: 12px; right: 12px; background: none; border: 0; color: #fff; font-size: 22px; cursor: pointer; padding: 8px; }
.slideout-backdrop { position: fixed; inset: 0; z-index: 9999; background: rgba(0,0,0,.6); }

/* ---------- Page rows ---------- */
.site-main { display: block; padding-top: 40px; }
.row { position: relative; padding: 30px 15px; }
.row .inner { position: relative; max-width: var(--container); margin: 0 auto; padding: 0 15px; }
.row .inner.narrow { max-width: 675px; }
.bg-cover { background-position: 50% 50%; background-size: cover; background-repeat: no-repeat; }
.title-img { display: block; margin: 0 auto 35px; }
.title-img.left { margin-left: 0; }
.inner > img:not(.title-img) { display: block; margin: 0 auto 35px; }
.inner > a, .members, .medals { margin-bottom: 35px; }
.inner > h2 { margin-bottom: 35px; }

/* Welcome */
.row-welcome { padding-top: 0; padding-bottom: 0; }
.row-welcome .inner { padding-top: 130px; padding-bottom: 280px; }
.row-welcome h2 { margin-bottom: 35px; }
.row-welcome .bobble { display: inline-block; vertical-align: top; }

/* Active members (slowly drifting background, as on the old site) */
.row-members { overflow: hidden; }
.row-members .automove {
  position: absolute; inset: 0;
  background: url('../img/crucibg.jpg') 0 0 / auto 100% repeat-x;
  animation: drift 120s linear infinite;
}
@keyframes drift { from { background-position: 0 0; } to { background-position: -1742px 0; } }
@media (prefers-reduced-motion: reduce) { .row-members .automove { animation: none; background-position: 50% 0; background-size: cover; } }
.row-members .inner { padding-top: 150px; padding-bottom: 100px; }
.members { display: grid; grid-template-columns: repeat(6, 1fr); margin: 0 -15px 35px; }
.member { padding: 0 15px; }
.member img { display: block; width: 100%; }

/* About */
.row-about .inner { padding-top: 150px; padding-bottom: 100px; }
.about-cols { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0 -15px 20px; align-items: start; text-align: left; }
.about-cols > div { padding: 0 15px; }
.about-side img { display: block; width: 100%; }
.about-box { background: var(--bg); background-clip: content-box; }
.about-box > * { margin-left: 20px; margin-right: 20px; }
.about-box h3 { padding-top: 20px; margin-bottom: 21px; }
.about-box h4 { margin-bottom: 20px; }
.about-box p:last-child { padding-bottom: 24px; margin-bottom: 0; }
.medals { display: grid; grid-template-columns: repeat(4, 1fr); }
.medals img { margin: 0 auto; }

.pill-btn {
  display: inline-block;
  background: #555;
  color: #fff !important;
  font-size: 11px; line-height: 13px;
  padding: 8px 12px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 22px;
  transition: background .2s;
}
.pill-btn:hover, .pill-btn:focus { background: #3b3b3b; }

/* Ghost */
.row-ghost .inner { padding-top: 150px; padding-bottom: 100px; }

/* Media gallery: full-bleed masonry */
.row-media { background: var(--bg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; }
.gallery-item { display: block; position: relative; overflow: hidden; aspect-ratio: 16 / 9; }
.gallery-item:first-child { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
.gallery-item img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s, opacity .4s; }
.gallery-item:hover img, .gallery-item:focus img { transform: scale(1.04); opacity: .85; }
.gallery-item::after {
  content: "\f00e"; font: 900 28px/1 "Font Awesome 5 Free";
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  color: #fff; opacity: 0; transition: opacity .3s; text-shadow: 0 2px 8px rgba(0,0,0,.6);
}
.gallery-item:hover::after, .gallery-item:focus::after { opacity: 1; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 10002; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; }
.lightbox img { max-width: 94vw; max-height: 86vh; box-shadow: 0 0 30px rgba(0,0,0,.8); }
.lightbox button { position: absolute; background: rgba(0,0,0,.4); border: 0; color: #fff; font-size: 26px; width: 52px; height: 52px; cursor: pointer; border-radius: 50%; }
.lightbox button:hover, .lightbox button:focus { background: var(--red); }
.lightbox .lb-close { top: 16px; right: 16px; }
.lightbox .lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-count { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #ccc; font-size: 12px; }

/* ---------- Inner pages (dark panel) ---------- */
.page-wrap { padding: 0 15px 30px; }
.dark-panel { max-width: var(--container); margin: 0 auto; background: rgba(0,0,0,.9); padding: 20px; }
.dark-panel.simple { max-width: 700px; padding: 60px 30px 40px; }

/* Recruit */
.recruit-grid { display: grid; grid-template-columns: 1fr 2fr 1fr; }
.recruit-grid > div { padding: 35px 15px 0; }
.recruit-side img { display: block; margin: 0 auto 35px; }
.round-badge { display: block; text-align: center; }
.recruit-main h2 { margin-bottom: 20px; }
.recruit-main h3 { margin: 35px 0 35px; }
.recruit-main .form-title { margin-top: 10px; margin-bottom: 20px; }
.notices { list-style: none; margin: 0 0 35px; padding: 0; }
.notice {
  display: flex; align-items: center; gap: 25px;
  min-height: 72px;
  padding: 10px 20px;
  border: 1px solid; border-left-width: 5px;
}
.notice i { font-size: 50px; line-height: 50px; width: 60px; flex: 0 0 60px; }
.notice-info { background: #d3e4f4; border-color: #0099d5; color: #5c80a1; }
.notice-info i { color: #0099d5; }
.notice-warning { background: #fbeba4; border-color: #fcd52b; color: #958234; }
.notice-warning i { color: #fcd52b; }

/* Reach us */
.row-reach { padding-bottom: 0; }
.row-reach .inner { padding-top: 130px; padding-bottom: 368px; }
.row-reach h3 { margin-bottom: 35px; line-height: 1.2; }
.row-reach .inner > a img { display: block; margin: 0 auto; width: 164px; }
.arrow-sep { position: absolute; left: 50%; bottom: 0; width: 360px; height: 180px; margin-left: -180px; fill: var(--deep); }
.row-note { background: var(--deep); padding: 145px 15px 130px; }
.row-note .inner > img { margin-bottom: 35px; }

/* Mcadley clips page */
.slider { position: relative; overflow: hidden; background: #000; aspect-ratio: 16 / 9; }
.slider .slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.slider .slide.is-active { opacity: 1; z-index: 1; }
.slider .slide img { width: 100%; height: 100%; object-fit: cover; }
.slider-btn { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(0,0,0,.5); color: #fff; font-size: 18px; cursor: pointer; }
.slider-btn:hover, .slider-btn:focus { background: var(--red); }
.slider-btn.prev { left: 12px; }
.slider-btn.next { right: 12px; }
.slider-dots { position: absolute; bottom: 12px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.slider-dots button { width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 0; background: rgba(255,255,255,.45); cursor: pointer; }
.slider-dots button[aria-current="true"] { background: #fff; }
.clips-text { padding: 35px 15px 10px; }

/* ---------- Forms ---------- */
input[type="text"], input[type="email"], textarea, select {
  width: 100%;
  font: 400 14px/1.4 Raleway, sans-serif;
  color: #666;
  background: #fafafa;
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 10px 15px;
}
input:focus, textarea:focus, select:focus { background: #fff; border-color: #bfbfbf; outline: 2px solid var(--red); outline-offset: 0; }
::placeholder { color: #666; opacity: 1; }
button[type="submit"] {
  font: 400 14px/1 Raleway, sans-serif;
  color: #fff;
  background: var(--red);
  border: 0;
  padding: 11px 20px;
  cursor: pointer;
}
button[type="submit"]:hover, button[type="submit"]:focus { background: var(--red-hover); }
button[type="submit"][disabled] { opacity: .6; cursor: wait; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { margin: 0 0 18px; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: var(--red); background: #fff3f2; }
.field-msg { display: block; color: #ff8a80; font-size: 12px; margin-top: 4px; }
.form-status { margin: 10px 0 0; font-size: 13px; min-height: 1px; }
.form-status.err { color: #ff8a80; }
.form-status.ok { color: #9be39b; }
.form-error-banner { background: #5a1410; color: #fff; padding: 10px 15px; }

.big-form { text-align: left; margin-top: 10px; }
.big-form label { display: block; font-weight: 700; margin-bottom: 6px; color: #fff; }
.big-form .req { color: var(--red); }
.big-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.big-form .check label { font-weight: 400; display: flex; gap: 10px; align-items: flex-start; }
.big-form .check input { margin-top: 4px; width: 16px; height: 16px; flex: 0 0 16px; accent-color: var(--red); }
.big-form .submit-row { text-align: center; margin-top: 24px; }
.big-form button[type="submit"] { padding: 14px 34px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }
.form-thanks { text-align: center; padding: 30px 20px; border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.04); }
.form-thanks h3 { font-size: 22px; }

/* ---------- Footer ---------- */
.footer-widgets {
  background: var(--navy) url('../img/ironbar-header.jpg') 50% 0 repeat-x;
  color: var(--muted);
  font-size: 12px; line-height: 18px;
  padding: 100px 0 40px;
}
.footer-grid { max-width: 1290px; margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); }
.footer-col { padding: 0 40px; }
.footer-col > * { margin-bottom: 30px; }
.footer-col > *:last-child { margin-bottom: 0; }
.footer-col p { margin-top: 0; }
.footer-col a { color: #fff; }
.footer-col a:hover, .footer-col a:focus { color: #bef0fd; }
.widget-head { display: block; }
.footer-badge { display: block; text-align: center; }
.footer-logo { display: block; }
.subscribe-form p { margin: 0 0 18px; }
.subscribe-form .field { margin: 0 0 18px; }
.subscribe-form input[type="email"] { max-width: 332px; }
.footer-brand { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.footer-logo { width: 300px; max-width: 75%; }
.social { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.social a { display: inline-flex; width: 28px; height: 26px; align-items: center; justify-content: center; font-size: 15px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .site-logo img { width: 340px; }
  .main-navigation a, .main-navigation button { padding: 0 14px; }
}
@media (max-width: 1024px) {
  .inside-header { padding: 8px 20px 10px; }
  .site-logo img { width: 280px; }
  .main-navigation a, .main-navigation button { padding: 0 10px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-col { margin-bottom: 40px; }
  .recruit-grid { grid-template-columns: 1fr 2fr; }
  .recruit-grid > .recruit-side:last-child { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 30px; }
  .recruit-grid > .recruit-side:last-child img { max-width: 260px; margin: 0; }
  .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 767px) {
  body { background-attachment: scroll; background-size: 1400px auto; }
  .site-header { background-size: auto 60px; }
  .inside-header { align-items: center; flex-wrap: wrap; padding: 6px 15px; }
  .site-logo { margin-top: 0; }
  .site-logo img { width: 210px; }
  .menu-toggle {
    display: flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; background: rgba(1,11,36,.85); border: 1px solid rgba(255,255,255,.2); border-radius: 4px; cursor: pointer;
  }
  .menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after {
    display: block; width: 22px; height: 2px; background: #fff; position: relative; transition: transform .2s, background .2s;
  }
  .menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle .bars::before { top: -7px; }
  .menu-toggle .bars::after { top: 7px; }
  .menu-toggle[aria-expanded="true"] .bars { background: transparent; }
  .menu-toggle[aria-expanded="true"] .bars::before { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .bars::after { transform: translateY(-7px) rotate(-45deg); }
  .main-navigation { display: none; width: 100%; margin-top: 8px; background: var(--navy); border-top: 2px solid var(--red); }
  .main-navigation.open { display: block; }
  .main-navigation ul { flex-direction: column; }
  .main-navigation a { line-height: 48px; padding: 0 18px; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 13px; }
  .main-navigation .current a { color: var(--nav-hover); }
  .main-navigation .slideout-toggle { display: none; }
  .wobble:hover { animation: none; }

  .site-main { padding-top: 10px; }
  h2 { font-size: 22px; }
  .row { padding: 20px 5px; }
  .title-img { margin-bottom: 25px; }
  .row-welcome .inner { padding-top: 60px; padding-bottom: 140px; }
  .row-members .inner, .row-about .inner, .row-ghost .inner { padding-top: 70px; padding-bottom: 60px; }
  .members { grid-template-columns: repeat(3, 1fr); row-gap: 20px; margin: 0 -6px 30px; }
  .member { padding: 0 6px; }
  .about-cols { grid-template-columns: 1fr; margin: 0 0 10px; }
  .about-cols > div { padding: 0; }
  .about-side { max-width: 280px; margin: 0 auto 25px; }
  .about-cols .about-box { margin-bottom: 25px; }
  .about-side:last-child { order: 3; }
  .medals { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .row-ghost .inner > img { width: 80%; }
  .gallery { grid-template-columns: repeat(2, 1fr); }

  .page-wrap { padding: 0 8px 20px; }
  .dark-panel { padding: 10px; }
  .recruit-grid { grid-template-columns: 1fr; }
  .recruit-grid > div { padding: 20px 10px 0; }
  .recruit-grid > .recruit-side:first-child { display: flex; gap: 15px; align-items: center; justify-content: center; order: 3; }
  .recruit-grid > .recruit-side:first-child img { max-width: 46%; margin: 0; }
  .recruit-grid > .recruit-side:first-child a { max-width: 46%; }
  .recruit-grid > .recruit-side:first-child a img { max-width: 100%; }
  .recruit-grid > .recruit-side:last-child { order: 4; }
  .recruit-grid > .recruit-side:last-child img { max-width: 40%; }
  .recruit-main { order: 1; }
  .notice { gap: 15px; padding: 10px 14px; min-height: 60px; }
  .notice i { font-size: 34px; width: 40px; flex-basis: 40px; }

  .row-reach .inner { padding-top: 50px; padding-bottom: 150px; }
  .arrow-sep { width: 200px; height: 90px; margin-left: -100px; }
  .row-note { padding: 60px 10px 40px; }
  .big-form .row-2 { grid-template-columns: 1fr; }
  .big-form button[type="submit"] { width: 100%; }

  .footer-widgets { padding: 70px 0 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-col { padding: 0 20px; }
  .subscribe-form input[type="email"] { max-width: none; }
}
