/* site.css - visual refresh layer loaded after Bootstrap, before Tailwind preflight effects.
   Tailwind preflight is disabled in tw-config.js, so this file holds the few rules
   that can't be expressed as utilities (background-image, keyframes, scrollbar). */

:root {
  --brand-red: #8E001C;
  --brand-red-light: #a8001f;
  --brand-red-dark: #6b0014;
  --brand-green: #17b04b;
  /* Override Bootstrap 3's html { font-size: 10px } so Tailwind rem sizes work as expected */
  font-size: 16px;
}

/* ---------- Hero ---------- */
.hero-bg {
  position: relative;
  background: url('../img/intro-bg.jpg') no-repeat center center;
  background-size: cover;
  min-height: 480px;
}

.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20, 12, 14, 0.55) 0%, rgba(20, 12, 14, 0.75) 100%),
    radial-gradient(circle at 20% 30%, rgba(142, 0, 28, 0.25), transparent 60%);
  pointer-events: none;
}

.hero-bg > * {
  position: relative;
  z-index: 1;
}

/* ---------- Section accent bar (used as a styled <span> before headings) ---------- */
.section-accent {
  display: inline-block;
  width: 4px;
  height: 2rem;
  background: var(--brand-red);
  margin-right: 0.75rem;
  vertical-align: middle;
  border-radius: 2px;
}

/* ---------- Animations ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.anim-fade-up {
  animation: fadeInUp 0.7s ease-out both;
}

.anim-delay-1 { animation-delay: 0.1s; }
.anim-delay-2 { animation-delay: 0.2s; }
.anim-delay-3 { animation-delay: 0.3s; }
.anim-delay-4 { animation-delay: 0.4s; }
.anim-delay-5 { animation-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .anim-fade-up {
    animation: none;
  }
}

/* ---------- Gallery image hover (used by group-hover utilities) ---------- */
.gallery-card .gallery-img,
.gallery-card iframe {
  transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-img,
.gallery-card:hover iframe {
  transform: scale(1.05);
}

/* ---------- YouTube embeds (proper 16:9 at any width) ---------- */
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- Custom scrollbar (subtle, modern) ---------- */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #f5f5f4;
}

::-webkit-scrollbar-thumb {
  background: #d6d3d1;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--brand-red);
}

/* ---------- Form input polish (overrides Bootstrap default look) ---------- */
.form-input {
  display: block;
  width: 100%;
  padding: 0.625rem 0.875rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #1c1917;
  background-color: #fff;
  border: 1px solid #d6d3d1;
  border-radius: 0.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-red);
  box-shadow: 0 0 0 3px rgba(142, 0, 28, 0.15);
}

.form-input::placeholder {
  color: #a8a29e;
}

textarea.form-input {
  min-height: 110px;
  resize: vertical;
}

select.form-input {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%2212%22%20height%3D%228%22%20viewBox%3D%220%200%2012%208%22%3E%3Cpath%20fill%3D%22%2378716c%22%20d%3D%22M6%208L0%200h12z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 10px 7px;
  padding-right: 2.25rem;
}

/* ---------- Radio buttons styled with red accent ---------- */
.form-radio {
  accent-color: var(--brand-red);
  width: 1rem;
  height: 1rem;
  margin-right: 0.35rem;
  vertical-align: middle;
}

/* ---------- Footer link hover animation ---------- */
footer a {
  transition: color 0.15s ease;
}

/* ---------- Override Tailwind's .collapse utility which sets visibility:collapse (would hide navbar) ---------- */
.navbar-collapse.collapse,
.collapse.navbar-collapse {
  visibility: visible !important;
}

/* ---------- Active nav link pill (overrides Bootstrap) ---------- */
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  background-color: var(--brand-red);
  color: #fff !important;
  border-radius: 9999px;
  padding-left: 16px !important;
  padding-right: 16px !important;
}

.navbar-default .navbar-nav > li > a {
  transition: color 0.15s ease, background-color 0.15s ease;
  color: #1c1917 !important;
  border-radius: 9999px;
  padding-left: 16px !important;
  padding-right: 16px !important;
  margin: 0 0.15rem;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--brand-red) !important;
  background-color: transparent;
}

/* ---------- Mobile hamburger override ---------- */
.navbar-default .navbar-toggle .icon-bar {
  background-color: #1c1917;
}
.navbar-default .navbar-toggle {
  border-color: rgba(0, 0, 0, 0.1);
}

/* ---------- Brand wordmark color (overrides landing-page.css !important rule) ---------- */
.navbar-default .navbar-brand {
  color: #1c1917 !important;
}
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
  color: var(--brand-red) !important;
}

/* ---------- Hero heading: match Tailwind text-5xl/text-6xl (overrides legacy 4em rule) ---------- */
/* Mobile size 34px: long German compounds (e.g. "Schmiedeeiserne") must fit an
   80%-width hero container at 390px viewport without causing horizontal overflow. */
.intro-message > h1 {
  font-size: 34px !important;
  line-height: 1.1;
  overflow-wrap: break-word;
  hyphens: auto;
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}
@media (min-width: 768px) {
  .intro-message > h1 {
    font-size: 60px !important;
  }
}
.intro-message > h3 {
  text-shadow: 2px 2px 3px rgba(0, 0, 0, 0.6);
}

/* ---------- Banner CTA band: keep subline readable over bright background image ---------- */
.banner p {
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* ---------- Contact bar links (icon + text) ---------- */
.contact-bar-link {
  color: inherit;
}
.contact-bar-link > i {
  color: #17b04b;
  padding-right: 6px;
}
.contact-bar-link:hover,
.contact-bar-link:focus {
  color: #ffffff;
  text-decoration: none;
}

/* ---------- Mobile layout fixes (below 768px) ---------- */
@media (max-width: 767px) {
  /* Flex rows: Bootstrap col-lg/col-sm widths do not apply below 768px, so
     nowrap flex items size by content and overflow the viewport - stack them. */
  .row.flex {
    flex-wrap: wrap;
  }
  .row.flex > [class*="col-"] {
    width: 100%;
  }
  /* Contact bar: single line of round icon buttons instead of stacked text items. */
  .contact-bar .row {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
    gap: 14px;
    margin-left: 0;
    margin-right: 0;
    padding-bottom: 6px;
  }
  .contact-bar .row > [class*="col-"] {
    float: none;
    width: auto;
    padding: 0;
    margin: 0;
  }
  .contact-bar-text {
    display: none;
  }
  .contact-bar-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.15);
  }
  .contact-bar-link > i {
    color: #ffffff;
    padding-right: 0;
  }
  .contact-bar-link:hover,
  .contact-bar-link:focus {
    background-color: rgba(255, 255, 255, 0.3);
  }
}

/* ---------- Disable legacy .text-block if it accidentally renders ---------- */
.text-block {
  display: none !important;
}

/* ---------- Neutralize form-style-7 leftover styles when used on modern forms ---------- */
.form-style-7 li {
  border: none !important;
  border-radius: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
}
.form-style-7 h1 {
  display: block;
  text-align: left;
  padding: 0;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.form-style-7 li > label {
  display: block;
  float: none;
  margin-top: 0;
  background: transparent;
  height: auto;
  padding: 0;
  color: inherit;
  font-size: inherit;
}
