:root {
  --navy: #102a43;
  --navy-dark: #071b2d;
  --blue: #1f4e79;
  --gold: #c8a24a;
  --text: #243b53;
  --muted: #627d98;
  --light: #f5f7fa;
  --white: #ffffff;
  --shadow: 0 18px 45px rgba(7, 27, 45, 0.16);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(7, 27, 45, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: var(--white);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.brand:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--gold));
  color: var(--white);
  font-weight: 900;
}

.brand-text {
  font-size: 1.05rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--white);
  background-size: cover;
  background-position: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, rgba(7, 27, 45, 0.9), rgba(16, 42, 67, 0.74), rgba(16, 42, 67, 0.35));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -35% 35%;
  height: 360px;
  background: radial-gradient(circle, rgba(200, 162, 74, 0.22), transparent 65%);
}

.hero-home {
  background-image: url('https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1800&q=80');
}

.hero-consulting {
  min-height: 64vh;
  background-image: url('https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=80');
}

.hero-valuation {
  min-height: 64vh;
  background-image: url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1800&q=80');
}

.hero-credit {
  min-height: 64vh;
  background-image: url('https://images.unsplash.com/photo-1460925895917-afdab827c52f?auto=format&fit=crop&w=1800&q=80');
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding-top: 92px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.76rem;
}

.eyebrow::before {
  content: "";
  width: 38px;
  height: 2px;
  background: var(--gold);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.96;
  letter-spacing: -0.06em;
}

.service-hero h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
}

.hero p {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.36rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--gold);
  color: var(--navy-dark);
  box-shadow: 0 16px 30px rgba(200, 162, 74, 0.25);
}

.btn-primary:hover {
  background: #ddb95d;
  box-shadow: 0 20px 36px rgba(200, 162, 74, 0.35);
}

.btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 92px 0;
}

.section-light {
  background: var(--light);
}

.section-header {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.kicker {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

h2 {
  margin: 8px 0 16px;
  color: var(--navy-dark);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.lead {
  color: var(--muted);
  font-size: 1.12rem;
  margin: 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  min-height: 370px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-radius: var(--radius);
  color: var(--white);
  background-size: cover;
  background-position: center;
  box-shadow: var(--shadow);
  cursor: pointer;
  isolation: isolate;
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: inherit;
  transition: transform 0.35s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 27, 45, 0.2), rgba(7, 27, 45, 0.9));
  transition: background 0.28s ease;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 55px rgba(7, 27, 45, 0.24);
}

.service-card:hover::before {
  transform: scale(1.06);
}

.service-card:hover::after {
  background: linear-gradient(180deg, rgba(31, 78, 121, 0.28), rgba(7, 27, 45, 0.94));
}

.card-consulting {
  background-image: url('https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1200&q=80');
}

.card-valuation {
  background-image: url('https://images.unsplash.com/photo-1448630360428-65456885c650?auto=format&fit=crop&w=1200&q=80');
}

.card-credit {
  background-image: url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=80');
}

.service-card-content {
  padding: 30px;
}

.service-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
  line-height: 1.15;
}

.service-card p {
  margin: 0 0 20px;
  color: rgba(255, 255, 255, 0.86);
}

.card-link {
  color: var(--gold);
  font-weight: 900;
}

.two-column {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
}

.panel {
  padding: 34px;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 15px 38px rgba(7, 27, 45, 0.09);
}

.panel h3 {
  margin-top: 0;
  color: var(--navy-dark);
  font-size: 1.45rem;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 14px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 5px rgba(200, 162, 74, 0.16);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 42px;
  align-items: center;
}

.about-card {
  padding: 36px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow);
}

.about-card p {
  color: rgba(255, 255, 255, 0.86);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.partner-item {
  display: grid;
  place-items: center;
  min-height: 92px;
  padding: 18px;
  border-radius: 18px;
  background: var(--white);
  color: var(--navy);
  text-align: center;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(7, 27, 45, 0.07);
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease;
}

.partner-item:hover {
  transform: translateY(-5px);
  color: var(--blue);
  box-shadow: 0 18px 42px rgba(7, 27, 45, 0.13);
}

.cta {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: 54px;
  background: linear-gradient(135deg, var(--navy-dark), var(--blue));
  color: var(--white);
  box-shadow: var(--shadow);
}

.cta h2 {
  color: var(--white);
}

.cta p {
  color: rgba(255, 255, 255, 0.86);
  max-width: 760px;
}

.site-footer {
  padding: 42px 0;
  background: var(--navy-dark);
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-inner strong {
  color: var(--white);
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
  }

  .main-nav {
    position: fixed;
    inset: 78px 0 auto 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px 20px 24px;
    background: rgba(7, 27, 45, 0.98);
  }

  body.menu-open .main-nav {
    display: flex;
  }

  .nav-link {
    padding: 14px 0;
  }

  .services-grid,
  .two-column,
  .about-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 82vh;
  }

  .service-card {
    min-height: 310px;
  }

  .cta {
    padding: 34px;
  }
}


/* Uploaded brand and partner logos */
.brand {
  background: rgba(255,255,255,0.96);
  padding: 7px 12px;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0,0,0,0.14);
}
.brand-logo {
  display: block;
  width: auto;
  height: 54px;
  object-fit: contain;
}
.site-header .brand:hover { transform: translateY(-1px); opacity: 1; }
.hero-logo-panel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.96);
  border-radius: 24px;
  padding: 14px 18px;
  margin-bottom: 26px;
  box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}
.hero-logo-panel img { height: 92px; width: auto; max-width: min(420px, 80vw); object-fit: contain; }
.partner-item {
  background: #ffffff;
  min-height: 116px;
}
.partner-item img {
  max-width: 220px;
  max-height: 72px;
  width: auto;
  height: auto;
  object-fit: contain;
}
.partner-item.partner-text {
  font-size: 1.02rem;
}
.contact-dark {
  background: #020617;
  color: #ffffff;
}
.contact-dark h2 { color: #ffffff; }
.contact-dark .lead { color: #cbd5e1; }
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 42px;
  align-items: start;
}
.contact-card {
  overflow: hidden;
  background: #ffffff;
  color: var(--text);
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.25);
}
.contact-body { padding: 32px; }
.contact-body h3 { margin: 0 0 10px; color: var(--navy-dark); font-size: 1.45rem; }
.contact-line { display: flex; gap: 14px; margin-top: 18px; color: var(--muted); }
.contact-line strong { display: block; color: var(--navy-dark); }
.contact-line a { color: var(--blue); font-weight: 800; }
.contact-card iframe { width: 100%; height: 290px; border: 0; display: block; }
@media (max-width: 900px) {
  .brand-logo { height: 46px; }
  .hero-logo-panel img { height: 72px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* Refinements requested: integrated header logo, single hero message, about before services */
.site-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(16, 42, 67, 0.10);
  box-shadow: 0 10px 35px rgba(7, 27, 45, 0.08);
}
.header-inner {
  min-height: 92px;
}
.brand {
  background: transparent;
  padding: 0;
  border-radius: 0;
  box-shadow: none;
  max-width: 280px;
}
.brand-logo {
  height: 76px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
}
.main-nav {
  gap: 22px;
}
.nav-link {
  color: var(--navy);
}
.nav-link:hover,
.nav-link.active {
  color: var(--blue);
}
.nav-toggle {
  color: var(--navy);
  border-color: rgba(16, 42, 67, 0.18);
  background: rgba(16, 42, 67, 0.05);
}
.hero-content {
  padding-top: 122px;
}
.hero h1 {
  max-width: 920px;
  font-size: clamp(2.6rem, 6.2vw, 5.6rem);
  line-height: 1.02;
  letter-spacing: -0.055em;
}
.hero-home .hero-content {
  max-width: 960px;
}
.hero-home .hero-actions {
  margin-top: 38px;
}
.service-hero h1 {
  font-size: clamp(2.6rem, 5vw, 4.8rem);
}
.about-grid {
  align-items: stretch;
}
.about-grid > div:first-child p:not(.lead) {
  color: var(--muted);
  margin: 18px 0 0;
}
.about-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.stat-item {
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.10);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.stat-item strong {
  display: block;
  color: var(--gold);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.05em;
}
.stat-item span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 700;
  line-height: 1.35;
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 82px;
  }
  .brand-logo {
    height: 58px;
    max-width: 220px;
  }
  .main-nav {
    inset: 82px 0 auto 0;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 20px 45px rgba(7, 27, 45, 0.12);
  }
  .hero-content {
    padding-top: 112px;
  }
  .hero h1 {
    font-size: clamp(2.15rem, 12vw, 3.6rem);
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* Header brand refinement: larger TRON Systems logo with legal descriptor */
.header-inner {
  min-height: 110px;
}
.brand {
  flex: 0 1 470px;
  max-width: 470px;
  gap: 18px;
  align-items: center;
  min-width: 0;
}
.brand-logo {
  height: 98px;
  max-width: 250px;
  flex: 0 0 auto;
}
.brand-descriptor {
  display: block;
  max-width: 260px;
  color: var(--navy);
  font-size: 0.78rem;
  line-height: 1.35;
  font-weight: 800;
  letter-spacing: 0.015em;
  border-left: 1px solid rgba(16, 42, 67, 0.18);
  padding-left: 16px;
}
.hero-content {
  padding-top: 138px;
}
@media (max-width: 1120px) {
  .brand {
    flex-basis: 360px;
    max-width: 360px;
    gap: 12px;
  }
  .brand-logo {
    height: 86px;
    max-width: 215px;
  }
  .brand-descriptor {
    max-width: 160px;
    font-size: 0.68rem;
    line-height: 1.25;
    padding-left: 12px;
  }
  .main-nav {
    gap: 14px;
  }
  .nav-link {
    font-size: 0.88rem;
  }
}
@media (max-width: 900px) {
  .header-inner {
    min-height: 92px;
  }
  .brand {
    flex: 1 1 auto;
    max-width: calc(100% - 62px);
    gap: 12px;
  }
  .brand-logo {
    height: 76px;
    max-width: 190px;
  }
  .brand-descriptor {
    max-width: 210px;
    font-size: 0.66rem;
    line-height: 1.25;
  }
  .main-nav {
    inset: 92px 0 auto 0;
  }
  .hero-content {
    padding-top: 124px;
  }
}
@media (max-width: 560px) {
  .header-inner {
    min-height: 86px;
  }
  .brand-logo {
    height: 68px;
    max-width: 170px;
  }
  .brand-descriptor {
    display: none;
  }
  .main-nav {
    inset: 86px 0 auto 0;
  }
  .hero-content {
    padding-top: 116px;
  }
}


/* Language switch */
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(16, 42, 67, 0.06);
  border: 1px solid rgba(16, 42, 67, 0.10);
}
.language-switch a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}
.language-switch a:hover {
  transform: translateY(-1px);
  background: rgba(31, 78, 121, 0.10);
  color: var(--blue);
}
.language-switch a.active {
  background: var(--navy);
  color: var(--white);
}
@media (max-width: 900px) {
  .main-nav .language-switch {
    margin-top: 12px;
    width: fit-content;
  }
}


/* Corrected full TRON Systems logo - larger header, responsive-safe */
.site-header { background: rgba(255,255,255,0.94); }
.header-inner { min-height: 148px; }
.brand { flex: 0 1 590px; max-width: 590px; gap: 22px; }
.brand-logo { height: 132px; max-width: 300px; object-fit: contain; }
.brand-descriptor { max-width: 270px; font-size: 0.82rem; line-height: 1.35; }
.hero-content { padding-top: 180px; }
@media (max-width: 1160px) {
  .header-inner { min-height: 130px; }
  .brand { flex-basis: 430px; max-width: 430px; gap: 14px; }
  .brand-logo { height: 112px; max-width: 250px; }
  .brand-descriptor { max-width: 165px; font-size: 0.68rem; }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 0.85rem; }
  .hero-content { padding-top: 158px; }
}
@media (max-width: 900px) {
  .header-inner { min-height: 108px; }
  .brand { max-width: calc(100% - 62px); gap: 12px; }
  .brand-logo { height: 96px; max-width: 220px; }
  .brand-descriptor { max-width: 210px; font-size: 0.64rem; }
  .main-nav { inset: 108px 0 auto 0; }
  .hero-content { padding-top: 136px; }
}
@media (max-width: 560px) {
  .header-inner { min-height: 96px; }
  .brand-logo { height: 84px; max-width: 190px; }
  .brand-descriptor { display: none; }
  .main-nav { inset: 96px 0 auto 0; }
  .hero-content { padding-top: 124px; }
}

/* Final navigation alignment fix: keep desktop menu on one line */
@media (min-width: 901px) {
  .site-header .container.header-inner {
    width: min(1280px, calc(100% - 48px));
    gap: 28px;
  }
  .header-inner {
    flex-wrap: nowrap;
    min-height: 126px;
  }
  .brand {
    flex: 0 0 455px;
    max-width: 455px;
    gap: 18px;
  }
  .brand-logo {
    height: 118px;
    max-width: 255px;
    object-fit: contain;
  }
  .brand-descriptor {
    max-width: 175px;
    font-size: 0.70rem;
    line-height: 1.28;
    padding-left: 14px;
  }
  .main-nav {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: clamp(14px, 1.7vw, 28px);
  }
  .nav-link {
    white-space: nowrap;
    line-height: 1;
    font-size: clamp(0.86rem, 1.05vw, 0.98rem);
  }
  .language-switch {
    flex: 0 0 auto;
    white-space: nowrap;
  }
  .hero-content {
    padding-top: 158px;
  }
}

@media (min-width: 901px) and (max-width: 1180px) {
  .site-header .container.header-inner {
    width: min(1240px, calc(100% - 34px));
    gap: 18px;
  }
  .header-inner {
    min-height: 112px;
  }
  .brand {
    flex-basis: 310px;
    max-width: 310px;
    gap: 10px;
  }
  .brand-logo {
    height: 104px;
    max-width: 235px;
  }
  .brand-descriptor {
    display: none;
  }
  .main-nav {
    gap: clamp(10px, 1.2vw, 18px);
  }
  .nav-link {
    font-size: clamp(0.78rem, 1vw, 0.9rem);
  }
  .language-switch {
    padding: 3px;
    gap: 4px;
  }
  .language-switch a {
    min-width: 32px;
    height: 28px;
    padding: 0 8px;
    font-size: 0.72rem;
  }
  .hero-content {
    padding-top: 142px;
  }
}
