/* ==========================================================================
   Verona Industrial Equipment — Nata Sans / Pulse Badge / Balanced Brandbar
   File: css/logo_title.css
   ========================================================================== */

/* 0) Font (client-specified) */
@import url('https://fonts.googleapis.com/css2?family=Nata+Sans:wght@100..900&display=swap');

/* 1) Theme tokens */
:root {
  --verona-red: #D51C29;
  --verona-red-rgb: 213, 28, 41;
  --ink-900: #0f1113;
  --ink-800: #16191c;
  --text-strong: #f5f7fa;
  --text-dim: #cfd6dd;
}

/* 2) Brandbar layout */
.brandbar {
  display: inline-grid;
  grid-template-columns: auto 1fr;   /* [badge] [wordmark] */
  grid-template-rows: auto auto;     /* [name] [tag]        */
  column-gap: .7rem;
  align-items: center;
  position: relative;
  padding: .3rem .6rem .55rem .3rem; /* a touch more right pad for balance */
  color: var(--text-strong);
  text-decoration: none;
  font-family: 'Nata Sans', sans-serif;
  overflow: visible;                  /* allow glow to breathe */
}

/* Ensure brand plays nicely inside Bootstrap navbar */
.navbar .navbar-brand {
  padding-top: .25rem;
  padding-bottom: .25rem;
  display: flex;
  align-items: center;
}

/* Keep the brand off the extreme left on ultra-wide */
.navbar .container-fluid { padding-left: 0.75rem; }

/* 3) Glow badge — pulses behind text (Option C) */
.brand-badge {
  /* behind both text rows */
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  position: absolute;
  width: 88px;            /* tuned size so it reads but stays subtle */
  height: 88px;
  left: -10px;            /* nest under the red V */
  top: -14px;
  z-index: 0;
  opacity: .20;
  pointer-events: none;
  mix-blend-mode: screen;
}
.brand-badge-svg { width: 100%; height: 100%; display: block; }
.pulse-v {
  animation: pulseGlow 7s ease-in-out infinite;
  transform-origin: 42% 48%;
  filter: drop-shadow(0 0 14px rgba(var(--verona-red-rgb), .20));
}
@keyframes pulseGlow {
  0%,100% { opacity: .16; transform: scale(1); }
  50%     { opacity: .36; transform: scale(1.10); }
}

/* 4) Wordmark block (sits above the glow) */
.brand-lockup { 
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-rows: auto auto;     /* name + tag */
  align-content: center;
  position: relative;
  z-index: 1;
}
.brand-line { line-height: 1; }

/* VERONA */
.brand-name {
  font-weight: 700;                  /* Nata Sans looks cleaner at 700 */
  letter-spacing: .10rem;            /* tighter for cohesion */
  text-transform: uppercase;
  display: inline-flex;
  align-items: baseline;
}
.brand-v {
  font-size: clamp(2.1rem, 3.4vw, 2.8rem);
  color: var(--verona-red);
  margin-right: .04em;
  text-shadow:
    0 0 .01em rgba(0,0,0,.25),
    0 0 .35em rgba(var(--verona-red-rgb), .35);
}
.brand-erona {
  font-size: clamp(1.9rem, 2.8vw, 2.4rem);
  letter-spacing: .24rem;            /* reduced so it doesn’t feel airy */
}

/* INDUSTRIAL EQUIPMENT */
.brand-tag {
  margin-top: .22rem;
  font-size: clamp(.78rem, 1.25vw, 1.0rem);
  font-weight: 500;
  letter-spacing: .18rem;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;                /* for underline */
  display: inline-block;             /* underline matches text width */
}

/* Underline attached to subtitle (replaces old .brand-accent) */
.brand-tag::before,
.brand-tag::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  bottom: -2px;
  pointer-events: none;
}
.brand-tag::before {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(var(--verona-red-rgb), .0) 5%,
    rgba(var(--verona-red-rgb), .75) 50%,
    rgba(var(--verona-red-rgb), .0) 95%,
    transparent 100%
  );
}
.brand-tag::after {
  transform: translateX(-120%);
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,.35) 50%,
    rgba(255,255,255,0) 100%
  );
  filter: blur(2px);
  animation: sweepTag 20s cubic-bezier(.25,.1,.25,1) infinite;
}
@keyframes sweepTag {
  0%   { transform: translateX(-120%); opacity: 0; }
  6%   { transform: translateX(0%);    opacity: .7; }
  12%  { transform: translateX(120%);  opacity: 0; }
  100% { transform: translateX(120%);  opacity: 0; }
}

/* 5) Retire any prior accent bar (kept for safety if left in HTML) */
.brand-accent { display: none !important; }

/* 6) Accessibility */
@media (prefers-reduced-motion: reduce) {
  .pulse-v, .brand-tag::after { animation: none; }
}

/* 7) Dark navbar background polish (subtle Verona red bloom) */
.navbar-dark, .bg-dark {
  background:
    radial-gradient(1200px 400px at 20% -150px, rgba(213, 28, 41, .08), transparent 60%),
    linear-gradient(180deg, var(--ink-800), var(--ink-900));
}

/* 8) Responsive tweaks */
@media (max-width: 480px) {
  .brand-tag   { display: none; }
  .brand-badge { width: 76px; height: 76px; left: -12px; top: -14px; }
}
