/* ECM Authority palette (Tailwind brand colors) — standalone page, not part of Next build */
:root {
  --brand: #288a6d;
  --brand-light: #34b89a;
  --brand-dark: #1f6b52;
  --bg-deep: #020817;
  --text: #f4f4f5;
  --text-muted: #a1a1aa;
  --white: #ffffff;
  --nav-bg: #ffffff;
  --shadow-brand: 0 4px 20px rgb(40 138 109 / 0.35);
  /* Hero background (bundled under ./images/) */
  --hero-photo: url("./images/semi-truck.jpg");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-deep);
}

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

a:hover {
  text-decoration: underline;
}

/* —— Top utility bar —— */
.utility-bar {
  background: var(--brand-dark);
  color: var(--white);
  font-size: 0.8125rem;
  padding: 0.5rem 1rem;
}

.utility-bar a {
  color: var(--white);
  font-weight: 600;
}

.utility-bar a:hover {
  text-decoration: underline;
}

.utility-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.utility-inner span:first-child {
  text-align: left;
}

.utility-inner span:last-child {
  text-align: right;
}

@media (max-width: 768px) {
  .utility-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .utility-inner span:first-child,
  .utility-inner span:last-child {
    text-align: center;
  }
}

/* —— Main nav —— */
.site-header {
  background: var(--nav-bg);
  color: #18181b;
  padding: 0.875rem 1.25rem;
  box-shadow: 0 1px 0 rgb(0 0 0 / 0.06);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--bg-deep);
  text-decoration: none;
}

.header-brand:hover {
  text-decoration: none;
  color: var(--brand-dark);
}

/* —— ECM Authority partner banner (full strip, links to main site) —— */
.ecm-partner-banner {
  display: block;
  text-decoration: none;
  color: var(--white);
  background: linear-gradient(105deg, var(--brand-dark) 0%, var(--brand) 42%, var(--brand-light) 100%);
  padding: 0.7rem 1.25rem;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: 0.01em;
  box-shadow: var(--shadow-brand);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease;
}

.ecm-partner-banner:hover {
  text-decoration: none;
  color: var(--white);
  filter: brightness(1.06);
  box-shadow: 0 6px 24px rgb(40 138 109 / 0.45);
}

.ecm-partner-banner:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.ecm-partner-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.4rem 0.55rem;
}

.ecm-partner-banner-icon {
  font-size: 1.1em;
  line-height: 1;
}

.ecm-partner-banner-text {
  text-wrap: balance;
}

@media (max-width: 640px) {
  .ecm-partner-banner {
    font-size: 0.8125rem;
    padding: 0.65rem 1rem;
  }
}

.nav-center {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #27272a;
  text-decoration: none;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
}

.nav-link:hover {
  color: var(--brand);
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

/* Simple CSS dropdown */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  font-weight: 600;
  font-size: 0.9375rem;
  color: #27272a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0;
  border: none;
  background: none;
  font-family: inherit;
}

.nav-dropdown-toggle::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: #52525b;
  margin-top: 4px;
}

.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  margin-top: 0.5rem;
  padding: 0.5rem 0;
  background: var(--white);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgb(0 0 0 / 0.12);
  border: 1px solid #e4e4e7;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 50;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #3f3f46;
  text-decoration: none;
}

.nav-dropdown-menu a:hover {
  background: #f4f4f5;
  color: var(--brand-dark);
  text-decoration: none;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.35rem;
  font-weight: 700;
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  background: var(--brand);
  border-radius: 6px;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background 0.2s, transform 0.15s;
}

.btn-cta:hover {
  background: var(--brand-light);
  text-decoration: none;
  color: var(--white);
  transform: translateY(-1px);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(88vh, 720px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3.5rem;
  background: var(--bg-deep) center / cover no-repeat;
  background-image: linear-gradient(
      180deg,
      rgb(2 8 23 / 0.55) 0%,
      rgb(2 8 23 / 0.78) 100%
    ),
    var(--hero-photo);
}

.hero-card {
  max-width: 640px;
  width: 100%;
  padding: 2.25rem 2rem 2.5rem;
  text-align: center;
  background: rgb(2 8 23 / 0.72);
  border: 2px solid var(--brand);
  border-radius: 16px;
  backdrop-filter: blur(12px);
  box-shadow: 0 24px 60px rgb(0 0 0 / 0.45), 0 0 0 1px rgb(40 138 109 / 0.2);
}

.hero-logo-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-logo-img {
  display: block;
  max-width: min(100%, 320px);
  width: auto;
  height: auto;
  filter: drop-shadow(var(--shadow-brand));
}

.header-logo-img {
  display: block;
  height: 52px;
  width: auto;
  object-fit: contain;
}

.hero-logo-text {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: 0.12em;
  color: var(--white);
}

.hero-tagline {
  font-size: 1.05rem;
  font-weight: 700;
  font-style: italic;
  color: #e4e4e7;
  margin: 0 0 1rem;
}

.hero-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.65rem, 4vw, 2.35rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
  color: var(--white);
}

.hero-body {
  margin: 0 0 1.75rem;
  font-size: 1rem;
  line-height: 1.65;
  color: #d4d4d8;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--white);
  background: var(--brand);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-brand);
  transition: background 0.2s;
}

.btn-secondary:hover {
  background: var(--brand-light);
  text-decoration: none;
  color: var(--white);
}

.btn-secondary .icon-circle {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: rgb(255 255 255 / 0.2);
  border-radius: 999px;
  font-size: 1rem;
}

/* Floating contact hint (optional) */
.float-contact {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.float-contact-label {
  background: var(--white);
  color: var(--bg-deep);
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 700;
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.15);
}

.float-contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-brand);
  pointer-events: auto;
}

.float-contact-icon a {
  display: flex;
  color: inherit;
  text-decoration: none;
}

.float-contact-icon a:hover {
  text-decoration: none;
}
