/* Ironworks Gym — BEFORE: a dated (circa 2014) small-business template. Tidy, but no motion */

:root {
  --accent: #ff5b24;
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --display: "Big Shoulders Display", Impact, "Arial Narrow", sans-serif;
  --red: #b30000;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 54px; }
@media (max-width: 640px) { html { scroll-padding-top: 76px; } }
html.lock, html.lock body { overflow: hidden; }
body {
  margin: 0;
  background: #c9ccd1 repeating-linear-gradient(45deg, #c9ccd1 0 6px, #c2c5ca 6px 12px);
  color: #444;
  font: 13px/1.6 Verdana, Geneva, Tahoma, sans-serif;
}
a { color: #0645ad; }
a:visited { color: #6b2fa0; }
img { max-width: 100%; }

.page { max-width: 980px; margin: 0 auto; background: #fff; box-shadow: 0 0 14px rgba(0, 0, 0, 0.35); }

/* Top bar + header */
.topbar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px;
  padding: 6px 14px;
  background: linear-gradient(#c10f0f, #8f0000); color: #fff;
  font: bold 11px Arial, sans-serif;
}
.topbar a, .topbar a:visited { color: #ffef9a; }

.masthead {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 18px 16px;
  background: linear-gradient(#3b3b3b, #141414);
  border-bottom: 4px solid var(--red);
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid; place-items: center;
  width: 52px; height: 52px; border: 3px solid #fff; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ff4a4a, var(--red) 60%, #5c0000);
  color: #fff; font: 22px Impact, sans-serif;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
}
.brand b { display: block; color: #f2f2f2; font: 32px/1 Impact, "Arial Black", sans-serif; letter-spacing: 1px; text-shadow: 2px 2px 0 var(--red), 3px 3px 5px #000; }
.brand small { display: block; margin-top: 4px; color: #ccc; font: italic 14px "Times New Roman", serif; }
.call-box {
  padding: 8px 14px; border: 1px solid #555; border-radius: 4px;
  background: linear-gradient(#2a2a2a, #111); color: #ffd400 !important;
  font: bold 18px Arial, sans-serif; text-decoration: none; text-align: right;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.call-box small { display: block; color: #bbb; font-size: 10px; text-transform: uppercase; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 10;
  display: flex; flex-wrap: wrap;
  background: linear-gradient(#5a5a5a, #2c2c2c);
  border-bottom: 1px solid #111;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
.nav a, .nav a:visited {
  flex: 1 1 auto;
  padding: 11px 10px;
  border-right: 1px solid #222; border-left: 1px solid #666;
  color: #fff; text-align: center; text-decoration: none;
  font: bold 12px Arial, sans-serif; letter-spacing: 0.5px;
  text-shadow: 0 -1px 0 #000;
}
.nav a:hover { background: linear-gradient(#777, #444); }
.nav a.on { background: linear-gradient(#e0262a, #8f0000); }
@media (max-width: 640px) { .nav a { flex: 1 1 33%; padding: 9px 4px; font-size: 11px; } }

/* Banner */
.banner { position: relative; margin: 12px; border: 5px ridge #999; overflow: hidden; }
.banner img { display: block; width: 100%; height: 260px; object-fit: cover; filter: saturate(0.7) contrast(0.9) brightness(0.75); }
.banner-text { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 0 28px; }
.banner h1 { margin: 0; color: #ff0; font: 40px/1 Impact, sans-serif; text-shadow: 3px 3px 0 #000, -1px -1px 0 #000; }
.banner-text p { margin: 6px 0 16px; color: #fff; font: italic 16px Georgia, serif; text-shadow: 1px 1px 2px #000; }
.starburst {
  position: absolute; top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 92px; height: 92px;
  background: #ffd400; color: var(--red);
  font: 15px/1 Impact, sans-serif; text-align: center;
  clip-path: polygon(50% 0, 61% 18%, 82% 10%, 79% 32%, 100% 40%, 84% 55%, 96% 75%, 74% 76%, 70% 98%, 50% 85%, 30% 98%, 26% 76%, 4% 75%, 16% 55%, 0 40%, 21% 32%, 18% 10%, 39% 18%);
  rotate: 12deg;
}

/* Glossy 2014 button */
.gloss-btn, .gloss-btn:visited {
  display: inline-block;
  padding: 10px 22px; border: 1px solid #700; border-radius: 5px;
  background: linear-gradient(#ff4d4d, #c40000 50%, #a10000 51%, #d40000);
  color: #fff; font: bold 15px Arial, sans-serif; text-decoration: none; text-shadow: 0 -1px 0 #600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 2px 4px rgba(0, 0, 0, 0.4);
  cursor: pointer;
}
.gloss-btn:hover { background: linear-gradient(#ff6a6a, #d60000 50%, #b00000 51%, #e00000); }
.gloss-btn.small { padding: 6px 14px; font-size: 12px; }

.scroller { margin: 0 12px; padding: 5px 8px; border: 1px dashed var(--red); background: #fff8dc; color: var(--red); font-weight: bold; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

/* Feature boxes */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 14px 12px 4px; }
.feature {
  padding: 14px; border: 1px solid #ddd; border-radius: 4px;
  background: linear-gradient(#fff, #f0f0f0);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.f-icon { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 8px; border: 2px solid var(--red); border-radius: 50%; background: #fff; font-size: 26px; }
.feature h3 { margin: 0 0 6px; color: #333; font: bold 15px Arial, sans-serif; }
.feature p { margin: 0 0 6px; font-size: 12px; }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Two-column layout */
.layout { display: grid; grid-template-columns: 1fr 260px; gap: 18px; padding: 4px 14px 16px; }
@media (max-width: 760px) { .layout { grid-template-columns: 1fr; } }
.content h2 {
  margin: 18px 0 8px; padding: 4px 0 4px 10px;
  border-left: 5px solid var(--red); border-bottom: 1px solid #ddd;
  background: linear-gradient(90deg, #f6f6f6, #fff);
  color: var(--red); font: bold 18px Georgia, "Times New Roman", serif;
}
.content p { margin: 0 0 10px; text-align: justify; }
.content ul { margin: 0 0 10px; padding: 0; list-style: none; }

.classes li { display: flex; gap: 10px; margin-bottom: 10px; padding: 8px; border: 1px solid #eee; background: #fafafa; }
.classes img { flex: none; width: 80px; height: 60px; border: 2px solid #ccc; object-fit: cover; }

.tt { width: 100%; border-collapse: collapse; font-size: 12px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.tt th, .tt td { padding: 6px; border: 1px solid #bbb; text-align: center; }
.tt th { background: linear-gradient(#666, #333); color: #fff; }
.tt tr:nth-child(even) td { background: #f1f1f1; }

.price-table { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 10px 0; border: 1px solid #bbb; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }
.pcol { padding: 0 0 14px; border-right: 1px solid #ddd; background: #fff; text-align: center; }
.pcol:last-child { border-right: 0; }
.pcol h4 { margin: 0 0 8px; padding: 8px; background: linear-gradient(#666, #333); color: #fff; font: bold 14px Arial, sans-serif; }
.pcol.best h4 { background: linear-gradient(#e0262a, #8f0000); }
.pcol.best { background: #fffbe6; }
.pcol .pp { margin: 6px 0 0; color: #222; font: 30px/1.2 Impact, sans-serif; text-align: center; }
.pcol p { margin: 0 0 8px; text-align: center; font-size: 11px; }

.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.thumbs figure { margin: 0; padding: 4px; border: 1px solid #ccc; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); }
.thumbs img { display: block; width: 100%; height: 90px; object-fit: cover; }
.thumbs figcaption { padding-top: 4px; font-size: 11px; text-align: center; }

.contact { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
@media (max-width: 560px) { .contact { grid-template-columns: 1fr; } .price-table { grid-template-columns: 1fr; } .pcol { border-right: 0; border-bottom: 1px solid #ddd; } }
.old-form { display: grid; gap: 8px; padding: 12px; border: 1px solid #ccc; background: #f6f6f6; }
.old-form label { display: grid; gap: 3px; font: bold 12px Arial, sans-serif; }
.old-form input, .old-form textarea { padding: 6px; border: 1px solid #999; border-radius: 2px; font: 13px Verdana, sans-serif; box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.15); }
.old-form .gloss-btn { justify-self: start; }
.thanks { margin: 0; color: green; font-weight: bold; }
.address { padding: 12px; border: 1px solid #ccc; background: #fff; font-size: 12px; }
.map { display: grid; place-items: center; height: 90px; margin-top: 10px; border: 1px solid #bbb; background: repeating-linear-gradient(45deg, #e8e8e8 0 10px, #dedede 10px 20px); color: #888; font-weight: bold; text-align: center; }

/* Sidebar */
.sidebox { margin: 18px 0 0; padding: 0 0 10px; border: 1px solid #ccc; background: #f4f4f4; font-size: 12px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); }
.sidebox h3 { margin: 0 0 8px; padding: 6px 10px; background: linear-gradient(#666, #333); color: #fff; font: bold 12px Arial, sans-serif; text-transform: uppercase; }
.sidebox > p, .sidebox > table { margin: 0 10px 6px; }
.sidebox:not(.offer) > :not(h3):not(p):not(table) { margin-left: 10px; }
.hours { width: calc(100% - 20px); border-collapse: collapse; }
.hours td { padding: 3px 0; border-bottom: 1px dotted #bbb; }
.hours td:last-child { text-align: right; font-weight: bold; }
.offer { padding: 10px; border: 3px double var(--red); background: #ffffe0; text-align: center; }
.offer b { display: block; color: #e00; font: 20px Impact, sans-serif; }
.offer small { color: #888; font-size: 9px; }
.testi { font: italic 13px Georgia, serif; }
.testi span { color: #888; font-size: 11px; }
.counter { display: inline-block; padding: 2px 6px; background: #000; color: #0f0; font: bold 13px "Courier New", monospace; letter-spacing: 2px; }

/* Footer */
.footer { padding: 14px; background: linear-gradient(#2a2a2a, #111); color: #999; font-size: 11px; text-align: center; }
.footer a, .footer a:visited { color: #ccc; }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid #333; text-align: left; }
.foot-cols b { color: #fff; }
@media (max-width: 560px) { .foot-cols { grid-template-columns: 1fr; } }

/* ---------- Full-screen newsletter pop-up ---------- */

.nl-pop {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 40px 28px;
  background: #fff; color: #151515;
  font-family: Inter, Arial, sans-serif;
  text-align: center;
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s, visibility 0s 0.25s;
}
.nl-pop.is-open { opacity: 1; visibility: visible; transition: opacity 0.25s; }
.nl-pop-card { width: 100%; max-width: 420px; transform: scale(0.86); transition: transform 0.7s var(--spring); }
.nl-pop.is-open .nl-pop-card { transform: none; }
.nl-pop-badge {
  display: grid; place-content: center;
  width: 108px; height: 108px; margin: 0 auto 22px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font: 900 40px/0.9 var(--display);
  animation: wobble 2.4s ease-in-out infinite;
}
.nl-pop-badge span { font-size: 18px; text-transform: uppercase; }
@keyframes wobble { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(8deg) scale(1.05); } }
.nl-pop-kicker { margin: 0; color: #888; font-size: 12px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; }
.nl-pop h2 { margin: 12px 0 10px; color: #111; font: 800 clamp(42px, 11vw, 64px)/0.95 var(--display); text-transform: uppercase; }
.nl-pop-offer { margin: 0; color: #333; font-size: 20px; }
.nl-pop-offer b { color: var(--accent); }
.nl-pop-form { display: grid; gap: 10px; margin: 28px 0 14px; }
.nl-pop-form input { height: 54px; padding: 0 16px; border: 1.5px solid #ddd; border-radius: 10px; font: inherit; font-size: 16px; }
.nl-pop-form button { height: 54px; border: 0; border-radius: 10px; background: #111; color: #fff; font: 700 16px Inter, Arial, sans-serif; cursor: pointer; }
.nl-pop-fine { margin: 0; color: #999; font-size: 11px; }
/* Deliberately tiny (≈8px) — this is the problem the video is about */
.nl-pop-x {
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; padding: 0;
  border: 0; background: none;
  color: #bbb; font-size: 9px; line-height: 8px;
  cursor: pointer;
}
