/* ---------- Global helpers ---------- */
:root { 
  --nav-h: 72px;         /* header height */
  --tear-h: clamp(86px, 10vw, 180px); /* unified tear height */
}  
@media (min-width: 1024px) {
  :root { --nav-h: 84px; }
}

a:hover {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}
.hero-section { background: transparent !important; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-ghost {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  font-weight: 600;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-primary {
  background: var(--drred, #e60026);
  color: #fff;
  border: 2px solid var(--drred, #e60026);
}
.btn-primary:hover { background: #b3001d; border-color: #b3001d; }
.btn-ghost {
  background: transparent;
  color: var(--drred, #e60026);
  border: 2px solid var(--drred, #e60026);
}
.btn-ghost:hover { background: rgba(230, 0, 38, 0.1); }

/* ---------- Callouts ---------- */
.callout-info,
.callout-warn,
.callout-success {
  padding: 1rem 1.2rem;
  border-left: 5px solid;
  border-radius: 4px;
  margin: 1.5rem 0;
}
.callout-info { background: rgba(0, 123, 255, 0.1); border-color: #007bff; }
.callout-warn { background: rgba(255, 193, 7, 0.1); border-color: #ffc107; }
.callout-success { background: rgba(40, 167, 69, 0.1); border-color: #28a745; }

/* ---------- Images & captions ---------- */
figure { margin: 2rem auto; text-align: center; }
figure img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}
figure figcaption { font-size: 0.9rem; opacity: 0.8; margin-top: 0.4rem; }

/* ---------- Industrial cards ---------- */
.industrial-box {
  border: 2px solid var(--drred, #e60026);
  padding: 1.5rem;
  background-color: #000;
  color: #fff !important;
  border-radius: 6px;
  transition: transform 0.2s ease, background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
.industrial-box:hover { transform: translateY(-3px); background-color: #111; border-color: #c10020; }
.industrial-box * { color: #fff !important; }

/* ===============================
   HOMEPAGE HERO ONLY
   =============================== */
.home .hero-section {
  position: relative;
  min-height: calc(100svh - var(--nav-h));
  padding-bottom: var(--tear-h);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding-top: 6vh;
}

.home .hero-section h1 {
  font-size: clamp(3.6rem, 11vw, 22rem);
  line-height: 1;
  max-width: 92%;
  margin: 0 auto 1.5rem;
  text-align: center;
  text-wrap: balance;
}

.home .hero-section h2 {
  font-size: clamp(1rem, 1.9vw, 1.8rem);
  max-width: 85ch;
  margin: 0 auto 2.5rem;
  text-align: center;
  letter-spacing: .02em;
}

.home .cta-buttons {
  display: flex;
  gap: clamp(12px, 1.4vw, 20px);
  justify-content: center;
}
.home .cta-buttons a {
  padding: clamp(12px, 1.2vw, 18px) clamp(18px, 2.1vw, 32px);
  font-size: clamp(1rem, 1.15vw, 1.25rem);
  border-width: 3px;
}

/* ===============================
   HOMEPAGE TEAR (dramatic, no fade)
   =============================== */
.home .hero-tear-wrap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--tear-h);
  overflow: hidden;
  pointer-events: none;
  z-index: 2;
}
.home .hero-tear {
  position: absolute;
  left: -4px; right: -4px;
  bottom: -14px;
  height: calc(100% + 28px);
  background: var(--next-bg, #fff);
  -webkit-mask-image: url("/images/tear-mask.png");
  -webkit-mask-repeat: repeat-x;
  -webkit-mask-position: center bottom;
  -webkit-mask-size: clamp(600px, 60vw, 1200px) 260%;
          mask-image: url("/images/tear-mask.png");
          mask-repeat: repeat-x;
          mask-position: center bottom;
          mask-size: clamp(600px, 60vw, 1200px) 260%;
  transform: scaleY(-1.12);
}

/* ===============================
   RIBBON & NAV
   =============================== */
.brand-title {
  font-family: 'Anton', sans-serif;
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: clamp(1.9rem, 2.6vw, 2.9rem) !important;
}
.ribbon-tight { padding-top: .75rem !important; padding-bottom: .75rem !important; }
@media (min-width: 1024px) {
  .ribbon-roomy { padding-top: 1.25rem !important; padding-bottom: 1.25rem !important; }
  .brand-title { font-size: clamp(2.3rem, 3.2vw, 3.5rem) !important; }
}
.nav-tight { padding-top: .25rem !important; padding-bottom: .25rem !important; }
@media (min-width: 768px) {
  .nav-normal { padding-top: .5rem !important; padding-bottom: .5rem !important; }
}
@media (max-width: 1440px) {
  header .brand-bar { padding-top: 0.6rem; padding-bottom: 0.6rem; }
  header .brand-bar h1,
  header .brand-bar img { max-height: 40px; }
  nav.main-nav { padding-top: 0.4rem; padding-bottom: 0.4rem; }
  nav.main-nav ul li a { font-size: 0.9rem; }
}
