/* FECOM site refinement: compact identity, clearer rhythm, and faster mobile paths. */
.site-header {
  position: relative;
  z-index: 20;
  box-shadow: 0 1px 0 color-mix(in srgb, var(--line) 80%, transparent);
}

.header-inner {
  min-height: 88px;
  padding-block: 10px;
  gap: clamp(14px, 2vw, 28px);
}

.header-inner .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 320px;
  min-width: 0;
  height: auto;
  flex: 0 0 auto;
  padding: 0;
  color: var(--ink);
  text-decoration: none;
}

html[data-color-theme] .header-inner .brand,
html:not([data-theme]) .header-inner .brand {
  background: transparent;
  border-radius: 0;
  padding: 0;
}

.header-inner .brand img {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  padding: 4px;
  border-radius: 7px;
  background: #fff;
  object-fit: contain;
  clip-path: none;
}

.brand-name {
  display: flex;
  align-items: center;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  font-weight: 750;
  line-height: 1;
  letter-spacing: -0.057em;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tagline {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--muted);
  font-size: .58rem;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: .045em;
  text-transform: uppercase;
  white-space: nowrap;
}

.main-nav {
  gap: clamp(18px, 2.5vw, 38px);
}

.main-nav a {
  font-size: .9rem;
  font-weight: 550;
  color: var(--ink);
  transition: color .18s ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: var(--brand);
}

.hero {
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: 0;
}

.hero h1 {
  max-width: 13ch;
  font-size: clamp(2.8rem, 4.2vw, 4.4rem);
  line-height: 1.06;
  text-wrap: balance;
}

.hero-intro {
  max-width: 42ch;
  font-size: 1.05rem;
  line-height: 1.72;
}

.needs {
  gap: 14px;
  margin-top: 34px;
}

.need-link,
.need-link:first-child {
  min-height: 142px;
  padding: 22px;
  border-radius: 12px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 17%, transparent), color-mix(in srgb, var(--ink) 9%, transparent));
}

.need-link:hover,
.need-link:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px #00152c35;
}

.need-link:focus-visible {
  outline: 2px solid #a6d8ff;
  outline-offset: 3px;
}

.service,
.project,
.timeline-story,
.process > div {
  border-radius: 12px;
}

.service {
  transition: border-color .18s ease, box-shadow .18s ease;
}

.service[open] {
  box-shadow: 0 12px 32px color-mix(in srgb, var(--brand) 10%, transparent);
}

.section-heading {
  gap: clamp(24px, 5vw, 72px);
}

.section-heading > p,
.about-copy p,
.service-body > p,
.process p {
  line-height: 1.75;
}

.contact-section {
  background-image: radial-gradient(ellipse at 88% 14%, color-mix(in srgb, var(--brand) 24%, transparent), transparent 40%), linear-gradient(118deg, #071526, #082141 62%, #073462);
}

.contact-email {
  text-decoration-thickness: 1px;
  text-underline-offset: .18em;
}

@media (max-width: 1100px) {
  .header-inner .brand { width: 300px; }
}

@media (max-width: 800px) {
  .header-inner {
    min-height: 78px;
  }

  .hero {
    padding-top: 46px;
  }

  .hero h1 {
    max-width: 15ch;
  }
}

@media (min-width: 601px) and (max-width: 700px) {
  .header-inner .brand { width: 245px; gap: 8px; }
  .brand-name { font-size: 2em; }
  .brand-tagline { font-size: .8rem; }
}

@media (max-width: 700px) {
  .hero-art { display: none; }
}

@media (max-width: 600px) {
  .header-inner {
    min-height: 72px;
    padding-block: 8px;
    grid-template-columns: minmax(176px, max-content) minmax(0, 1fr) 44px 44px;
    gap: 6px;
  }

  .header-inner .brand { width: 176px; gap: 5px; }
  .header-inner .brand img { width: 38px; height: 38px; flex-basis: 38px; }
  .brand-name { font-size: 1rem; }
  .brand-tagline { font-size: .46rem; }

  .hero {
    padding-top: 38px;
  }

  .hero-grid {
    gap: 0;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 13ch;
    font-size: clamp(2.35rem, 9.2vw, 3.15rem);
    line-height: 1.08;
  }

  .hero-intro {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.65;
  }

  .hero-guidance {
    margin-top: 14px;
    font-size: .92rem;
  }

  .hero-art {
    display: none;
  }

  .needs {
    margin-top: 24px;
    gap: 10px;
    padding-bottom: 10px;
  }

  .need-link,
  .need-link:first-child {
    min-height: 76px;
    padding: 15px 17px;
    border-radius: 10px;
  }

  .need-copy .eyebrow {
    margin-bottom: 4px;
    font-size: .68rem;
  }

  .need-title {
    font-size: 1rem;
    line-height: 1.35;
  }

  .need-link .arrow-icon {
    width: 20px;
    flex-basis: 20px;
  }

  .trust-strip {
    margin-top: 18px;
    padding: 20px 0 24px;
  }

  .section {
    padding-block: 56px;
  }
}

@media (max-width: 380px) {
  .header-inner {
    grid-template-columns: minmax(152px, max-content) minmax(0, 1fr) 40px 40px;
    gap: 4px;
  }

  .header-inner .brand { width: 152px; gap: 3px; }
  .header-inner .brand img { width: 32px; height: 32px; flex-basis: 32px; }
  .brand-name { font-size: .78rem; }
  .brand-tagline { font-size: .42rem; }

  .header-inner .theme-picker,
  .header-inner .theme-trigger,
  .header-inner .language-picker,
  .header-inner .language-trigger,
  .header-inner .menu-toggle {
    width: 40px;
    height: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .main-nav a,
  .need-link,
  .service {
    transition: none;
  }
}

/* Apply the same hover and keyboard-focus fill to each card in blue, green, and red themes. */
html[data-theme="blue"] .needs > .need-link:hover,
html[data-theme="blue"] .needs > .need-link:focus-visible,
html[data-theme="green"] .needs > .need-link:hover,
html[data-theme="green"] .needs > .need-link:focus-visible,
html[data-theme="red"] .needs > .need-link:hover,
html[data-theme="red"] .needs > .need-link:focus-visible {
  background: color-mix(in srgb, var(--brand) 28%, var(--paper));
  border-color: var(--brand);
}

/* Give the first card a later, equally strong rule despite legacy :first-child styling. */
html[data-theme="blue"] .needs > .need-link:first-child:hover,
html[data-theme="blue"] .needs > .need-link:first-child:focus-visible,
html[data-theme="green"] .needs > .need-link:first-child:hover,
html[data-theme="green"] .needs > .need-link:first-child:focus-visible,
html[data-theme="red"] .needs > .need-link:first-child:hover,
html[data-theme="red"] .needs > .need-link:first-child:focus-visible {
  background: color-mix(in srgb, var(--brand) 28%, var(--paper));
  border-color: var(--brand);
}

html:not([data-color-theme]) .need-link:hover,
html:not([data-color-theme]) .need-link:focus-visible {
  background: #eaf4ff;
  border-color: #075ecb;
}