/* homepage.css — extends css/styles.css for the redesigned pages
   (homepage.html, despre-noi.html, blog.html, blog-articol.html, contact.html).
   Holds the shared chrome (promo bar, nav additions, off-canvas mobile menu)
   plus the homepage-only sections. Page-specific sections for the inner
   pages live in css/pages.css. Reuses tokens (--taz-blue, --taz-red, --ink,
   --muted, --line, --soft) and utility classes (.eyebrow, .section-pad,
   .section-heading, .reveal, .mini-card, .capability, .news-card,
   .site-footer, ...) defined in styles.css. */

:root {
  --blue-soft: #eef3fb;
  --blue-line: #d7e3f4;
}

/* ---------- Promo bar ---------- */
.promo-bar {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  color: #eaf2ff;
  background: linear-gradient(90deg, var(--taz-blue-2), var(--taz-blue));
  transition: grid-template-rows 320ms ease, opacity 220ms ease;
  opacity: 1;
}

.promo-bar.is-closed {
  grid-template-rows: 0fr;
  opacity: 0;
}

.promo-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 0;
  overflow: hidden;
  padding: 10px 0;
}

.promo-bar p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}

.promo-bar i {
  color: #7dd3fc;
  margin-right: 6px;
}

.promo-bar a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 800;
}

.promo-close {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease;
}

.promo-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ---------- Nav additions ---------- */
.site-nav.sticky-top {
  z-index: 1020;
}

.navbar .dropdown-menu {
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.14);
}

.navbar .dropdown-item {
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 600;
  color: #233044;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
  background: var(--blue-soft);
  color: var(--taz-blue-2);
}

.navbar .nav-link.is-active,
.mobile-nav-links a.is-active {
  color: var(--taz-red);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  background: var(--soft);
  border-radius: 999px;
  border: 1px solid var(--line);
}

.lang-btn {
  border: none;
  background: transparent;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 800;
  border-radius: 999px;
  color: var(--muted);
}

.lang-btn.is-active {
  background: var(--ink);
  color: #fff;
}

.lang-btn:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a.lang-btn:not(.is-active):hover,
a.lang-btn:not(.is-active):focus-visible {
  color: var(--ink);
  background: rgba(17, 24, 39, 0.08);
}

/* ---------- Mobile off-canvas nav ---------- */
.nav-toggler {
  display: none;
  position: fixed;
  top: 18px;
  right: 12px;
  z-index: 1060;
  width: 44px;
  height: 44px;
  padding: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
  transition: top 200ms ease;
}

.nav-toggler-bar {
  position: absolute;
  left: 12px;
  width: 20px;
  height: 2px;
  background: #233044;
  border-radius: 2px;
  transition: transform 260ms ease, opacity 180ms ease, top 260ms ease;
}

.nav-toggler-bar:nth-child(1) { top: 16px; }
.nav-toggler-bar:nth-child(2) { top: 21px; }
.nav-toggler-bar:nth-child(3) { top: 26px; }

.nav-toggler.is-open .nav-toggler-bar:nth-child(1) {
  top: 21px;
  transform: rotate(45deg);
}

.nav-toggler.is-open .nav-toggler-bar:nth-child(2) {
  opacity: 0;
}

.nav-toggler.is-open .nav-toggler-bar:nth-child(3) {
  top: 21px;
  transform: rotate(-45deg);
}

.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(7, 21, 47, 0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 320ms ease;
  z-index: 1040;
}

.mobile-nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-nav-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(84vw, 360px);
  display: flex;
  flex-direction: column;
  padding: 96px 30px 32px;
  background: var(--white);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.22);
  transform: translateX(100%);
  transition: transform 380ms cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 1050;
}

.mobile-nav-panel.is-open {
  transform: translateX(0);
}

.mobile-nav-langs {
  display: flex;
  justify-content: center;
  padding: 5px;
  margin: 0 auto 36px;
}

.mobile-nav-langs .lang-btn {
  padding: 8px 22px;
  font-size: 0.86rem;
}

.mobile-nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-nav-links a {
  display: block;
  padding: 12px 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: #233044;
}

.mobile-nav-links a:hover,
.mobile-nav-links a:focus {
  color: var(--taz-red);
}

.mobile-nav-subtitle {
  margin: 22px 0 2px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: center;
  color: var(--muted);
}

.mobile-nav-sublinks {
  list-style: none;
  margin: 0;
  padding: 0;
  text-align: center;
}

.mobile-nav-sublinks a {
  display: block;
  padding: 9px 0;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--muted);
}

.mobile-nav-sublinks a:hover,
.mobile-nav-sublinks a:focus {
  color: var(--taz-red);
}

.mobile-nav-divider {
  height: 1px;
  margin: 22px 0;
  background: var(--line);
}

.mobile-nav-cta {
  display: block;
  width: 100%;
  margin-top: 32px;
  text-align: center;
}

body.nav-open {
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .nav-toggler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

@media (min-width: 992px) {
  .mobile-nav-backdrop,
  .mobile-nav-panel {
    display: none;
  }
}

/* ---------- Hero additions ---------- */
.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.hero-chip {
  padding: 8px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(10px);
  transition: background 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.hero-chip:hover,
.hero-chip:focus {
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}

.status-dot.is-live {
  animation: dot-pulse 2.2s ease-in-out infinite;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 8px rgba(125, 211, 252, 0.18); }
  50% { box-shadow: 0 0 0 14px rgba(125, 211, 252, 0.06); }
}

.hero-panel-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #86efac;
}

.hero-panel-tag .status-dot {
  flex-shrink: 0;
  margin-bottom: 0;
}

.hp-metric {
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.hp-metric:first-of-type {
  border-top: none;
}

.hp-metric-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.hp-metric-value {
  color: #7dd3fc;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
}

.hp-metric-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  line-height: 1.4;
}

.hp-metric-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  overflow: hidden;
}

.hp-metric-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, #7dd3fc, #93c5fd);
  border-radius: 999px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible .hp-metric-bar span {
  transform: scaleX(var(--fill, 0));
}

/* ---------- Animated data bar ---------- */
.data-bar {
  padding: 56px 0;
  color: #fff;
  background: linear-gradient(120deg, var(--taz-blue-2), var(--taz-blue) 65%, #123a80);
}

.data-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}

.data-bar-item .value {
  display: block;
  color: #fff;
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 10px;
}

.data-bar-item .value small {
  font-size: 0.5em;
  font-weight: 800;
  color: #7dd3fc;
}

.data-bar-item p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.7);
}

/* ---------- Partners / certifications ---------- */
.partners-section {
  padding: 68px 0;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.partners-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.partners-track {
  display: flex;
  width: max-content;
  gap: 18px;
  animation: marquee 26s linear infinite;
}

.partners-track:hover {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.partner-badge {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 26px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  white-space: nowrap;
}

.partner-badge i {
  font-size: 1.6rem;
  color: var(--taz-blue);
}

.partner-badge strong {
  display: block;
  font-size: 0.96rem;
  font-weight: 800;
  color: var(--ink);
}

.partner-badge span {
  display: block;
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 600;
}

/* ---------- Service split cards (half width) ---------- */
.service-split {
  padding: 20px 0 0;
}

.service-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}

.service-split-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease;
}

.service-split-card:hover {
  transform: translateY(-6px);
  border-color: rgba(22, 74, 155, 0.35);
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.12);
}

.service-split-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.service-split-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 600ms ease;
}

.service-split-card:hover .service-split-media img {
  transform: scale(1.12);
}

.service-split-body {
  padding: 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-split-body h3 {
  font-size: 1.55rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--ink);
}

.service-split-body > p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
}

.service-bullets {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  gap: 10px;
}

.service-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.94rem;
  color: #33404f;
  font-weight: 600;
}

.service-bullets i {
  color: var(--taz-red);
  font-size: 1.05rem;
  margin-top: 1px;
}

.service-info-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 14px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--taz-blue-2);
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 10px;
  width: fit-content;
}

.service-split-body .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* ---------- IT Support wide band ---------- */
.wide-service {
  position: relative;
  overflow: hidden;
  padding: 84px 0;
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.wide-service-media {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.16);
}

.wide-service-media img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.wide-service-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 46px;
}

.wide-service-card {
  padding: 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.wide-service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.1);
}

.wide-service-card i {
  display: inline-flex;
  width: 46px;
  height: 46px;
  margin-bottom: 16px;
  color: var(--taz-red);
  background: #fff0f1;
  border-radius: 10px;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.wide-service-card h4 {
  font-size: 1.06rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--ink);
}

.wide-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Despre TAZ extras ---------- */
.despre-data-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.despre-data-row-centered {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 40px;
}

.despre-data-card {
  padding: 22px;
  text-align: center;
  background: var(--blue-soft);
  border: 1px solid var(--blue-line);
  border-radius: 12px;
}

.despre-data-card .big {
  display: block;
  color: var(--taz-blue-2);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.despre-data-card .small {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Ce obtii cu TAZ (dark band variant) ---------- */
.results-band {
  padding: 104px 0;
  color: #fff;
  background: linear-gradient(135deg, rgba(11, 45, 103, 0.98), rgba(6, 20, 43, 0.98)), url("../../images/db/1_3_20_1573972481_00766_md.jpg") center / cover no-repeat;
}

.results-band h2 { color: #fff; }
.results-band > .container > .row > div p { color: rgba(255, 255, 255, 0.72); }

.result-card {
  height: 100%;
  padding: 34px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  transition: transform 240ms ease, background 240ms ease;
}

.result-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.13);
}

.result-card .big {
  display: block;
  color: #7dd3fc;
  font-size: clamp(2.1rem, 3vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 14px;
}

.result-card h4 {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.92rem;
  line-height: 1.55;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  height: 100%;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgba(15, 23, 42, 0.1);
}

.testimonial-stars {
  color: #f5b400;
  font-size: 0.9rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-quote {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
  margin-bottom: 24px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--taz-blue);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1;
  text-align: center;
}

.testimonial-author strong {
  display: block;
  font-size: 0.94rem;
  color: var(--ink);
}

.testimonial-role {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  font-weight: 700;
  color: var(--ink);
}

.contact-info-item i {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  color: var(--taz-red);
  background: #fff0f1;
  border-radius: 10px;
}

.contact-form-card {
  padding: 38px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1);
}

.contact-form-card .form-label {
  font-weight: 700;
  font-size: 0.86rem;
  color: #233044;
}

.contact-form-card .form-control {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.contact-form-card .form-control:focus {
  border-color: var(--taz-blue);
  box-shadow: 0 0 0 4px rgba(22, 74, 155, 0.12);
}

.form-status {
  margin-top: 14px;
  font-size: 0.86rem;
  font-weight: 700;
  min-height: 1.2em;
}

.form-status.is-success { color: #16a34a; }
.form-status.is-error { color: var(--taz-red); }

/* ---------- Footer additions ---------- */
.footer-social {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.16);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.32);
  border-radius: 999px;
}

.status-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: dot-pulse-green 2.2s ease-in-out infinite;
}

@keyframes dot-pulse-green {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0.08); }
}

/* ---------- Section eyebrow on dark bands ---------- */
.eyebrow.on-dark {
  color: #7dd3fc;
}

/* ---------- Scale-in reveal variant used across new sections ---------- */
.reveal-scale {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-scale.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ---------- Responsive ---------- */
@media (max-width: 1199.98px) {
  .service-split-row { grid-template-columns: 1fr; }
  .wide-service-cards { grid-template-columns: 1fr; }
  .data-bar-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}

@media (max-width: 991.98px) {
  .contact-grid { grid-template-columns: 1fr; }
  .despre-data-row { grid-template-columns: 1fr; }
  .wide-service > .container > .row { flex-direction: column-reverse; }
}

@media (max-width: 767.98px) {
  .data-bar-grid { grid-template-columns: 1fr 1fr; }
  .partner-badge { padding: 12px 18px; }
}

@media (max-width: 575.98px) {
  .data-bar-grid { grid-template-columns: 1fr; }
  .contact-form-card { padding: 26px; }
  .promo-bar p { font-size: 0.78rem; }
}

@media (prefers-reduced-motion: reduce) {
  .partners-track { animation: none; }
  .status-dot.is-live,
  .status-badge .dot { animation: none; }
  .reveal-scale { opacity: 1; transform: none; transition: none; }
  .hp-metric-bar span { transition: none; }
}
