/**
 * Tiragena — Premium Redesign Styles (2026)
 * Overrides existing styles with Proteros-inspired design system
 */

/* ===== UTILITY BAR (Proteros-style top bar) ===== */
.utility-bar {
  background-color: #0a1628;
  color: #ffffff;
  height: 40px;
  display: flex;
  align-items: center;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  position: relative;
  z-index: 1001;
}

.utility-bar__inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.utility-bar a {
  color: #ffffff;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 150ms ease;
}

.utility-bar a:hover {
  opacity: 1;
}

.utility-bar__links {
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

@media (max-width: 768px) {
  .utility-bar {
    display: none;
  }
}

/* ===== HEADER OVERRIDES ===== */
.tir-head {
  background-color: #ffffff !important;
  border-bottom: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  height: 64px;
  min-height: 64px;
  padding-top: 0 !important;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.tir-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 55%, rgba(13, 148, 136, 0.35) 100%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .tir-head {
    height: 56px;
    min-height: 56px;
  }
}

html[data-theme="dark"] .tir-head,
html:not([data-theme]) .tir-head {
  background-color: #ffffff !important;
}

.tir-head__surface {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem !important;
}

.tir-head__logo {
  gap: 0.75rem;
}

.tir-head__logo-img {
  width: 40px !important;
  height: 40px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.tir-head__brand-text {
  font-size: 1.125rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: #1a1a1a !important;
  max-width: none !important;
}

/* Nav links */
.tir-head__link,
.tir-head__trigger {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1a1a1a !important;
  padding: 0.5rem 0 !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  letter-spacing: 0.02em !important;
}

.tir-head__link:hover,
.tir-head__trigger:hover {
  color: #0d9488 !important;
  background: transparent !important;
}

.tir-head__link[aria-current="page"] {
  color: #0d9488 !important;
  background: transparent !important;
  border-color: transparent !important;
}

.tir-head__trigger[aria-expanded="true"] {
  color: #0d9488 !important;
  background: transparent !important;
  border-color: transparent !important;
}

/* Rail (nav container) */
.tir-head__rail {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 1.5rem !important;
}

/* Tools (theme, lang, login) */
.tir-head__tools {
  gap: 1rem;
}

.tir-head__ctrl {
  background: transparent !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.375rem !important;
  height: 36px !important;
  padding: 0 0.75rem !important;
}

.tir-head__ctrl:hover {
  border-color: #0d9488 !important;
}

.tir-head__select {
  font-size: 0.8125rem !important;
  color: #1a1a1a !important;
}

.tir-head__login {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  color: #1a1a1a !important;
  padding: 0.5rem 1rem !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.375rem !important;
  background: transparent !important;
}

.tir-head__login:hover {
  background: #f8f9fa !important;
  border-color: #0d9488 !important;
  color: #0d9488 !important;
}

/* Burger button */
.tir-head__burger {
  background: transparent !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.375rem !important;
}

/* ===== HERO REDESIGN ===== */
.ix-hero {
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 !important;
  background: linear-gradient(180deg, #f8f9fa 0%, #ffffff 100%);
  min-height: min(88vh, 44rem);
  display: flex;
  align-items: center;
}

.ix-hero__grid {
  max-width: min(80rem, 100%);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2rem);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: center;
  width: 100%;
}

@media (max-width: 1024px) {
  .ix-hero__grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

.ix-hero__copy {
  max-width: 600px;
}

.ix-hero h1 {
  font-size: clamp(2rem, 3.8vw, 2.625rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.12 !important;
  margin-bottom: 1.25rem !important;
  color: #0f172a !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

@media (max-width: 768px) {
  .ix-hero {
    min-height: auto !important;
    padding: clamp(2.5rem, 8vw, 3.5rem) 0 !important;
  }

  .ix-hero h1 {
    font-size: clamp(1.75rem, 7vw, 2rem) !important;
    max-width: none;
  }
}

.ix-hero .lead {
  font-size: 1.25rem !important;
  line-height: 1.6 !important;
  color: #6b7280 !important;
  margin-bottom: 2rem !important;
  max-width: 540px !important;
}

.cta-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.ix-btn {
  padding: 0.875rem 1.75rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  border-radius: 0.375rem !important;
  transition: all 200ms ease !important;
}

.ix-btn--primary {
  background-color: #0d9488 !important;
  color: #ffffff !important;
  border: 1px solid #0d9488 !important;
}

.ix-btn--primary:hover {
  background-color: #0f766e !important;
  border-color: #0f766e !important;
  transform: translateY(-1px);
}

.ix-btn--ghost {
  background-color: transparent !important;
  color: #1a1a1a !important;
  border: 1px solid #e5e7eb !important;
}

.ix-btn--ghost:hover {
  background-color: #f8f9fa !important;
  border-color: #0d9488 !important;
  color: #0d9488 !important;
}

.ix-hero__visual {
  position: relative;
}

.ix-hero__figure {
  width: 100%;
  height: auto;
  border-radius: 0.75rem;
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.15);
}

/* ===== SECTIONS ===== */
.ix-section {
  padding: 5rem 0 !important;
}

.ix-section h2 {
  font-size: 2.25rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin-bottom: 1rem !important;
  color: #1a1a1a !important;
  background: none !important;
  -webkit-text-fill-color: initial !important;
}

.ix-section h3 {
  font-size: 1.5rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
  color: #1a1a1a !important;
}

.ix-section p {
  font-size: 1.0625rem !important;
  line-height: 1.7 !important;
  color: #4b5563 !important;
  margin-bottom: 1.5rem !important;
  max-width: 70ch !important;
}

/* ===== CARDS ===== */
.ix-value-card,
.ix-phase-card {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 0.75rem !important;
  padding: 2rem !important;
  transition: all 250ms ease !important;
}

.ix-value-card:hover,
.ix-phase-card:hover {
  border-color: #0d9488 !important;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.ix-value-card strong {
  color: #1a1a1a !important;
  font-weight: 600 !important;
}

/* ===== FOOTER ===== */
.site-footer {
  background-color: #0a1628 !important;
  color: #ffffff !important;
  padding: 4rem 0 2rem !important;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-col h4 {
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 1rem !important;
  color: #ffffff !important;
}

.footer-col a {
  font-size: 0.9375rem !important;
  color: rgba(255, 255, 255, 0.7) !important;
  text-decoration: none !important;
  transition: color 150ms ease !important;
}

.footer-col a:hover {
  color: #ffffff !important;
}

.footer-bar {
  max-width: 1280px;
  margin: 3rem auto 0;
  padding: 2rem 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.875rem !important;
  color: rgba(255, 255, 255, 0.5) !important;
}

/* ===== MOBILE MENU OVERRIDES ===== */
.tir-menu-drawer {
  background: #ffffff !important;
}

.tir-drawer__summary,
.tir-drawer__leaf {
  color: #1a1a1a !important;
  border-color: #e5e7eb !important;
}

.tir-drawer__summary:hover,
.tir-drawer__leaf:hover {
  background: #f8f9fa !important;
}

/* ===== UTILITY CLASSES ===== */
.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0d9488;
  margin-bottom: 1rem;
}

.section-heading {
  margin-bottom: 3rem;
}

.section-heading p {
  font-size: 1.125rem;
  color: #6b7280;
  max-width: 600px;
}

/* ===== REVEAL ANIMATION ===== */
[data-science-reveal].is-visible,
.tir-section-reveal.is-inview {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .ix-section {
    padding: 3rem 0 !important;
  }
  
  .container,
  .ix-hero__grid,
  .footer-grid {
    padding: 0 1.5rem !important;
  }
}
