/* ========== Root & Base ========== */
:root {
  --color-navy: #002345;
  --color-bg: #fbfbfb;
  --color-text: #1e1e1e;
  --color-muted: #666666;
  --color-border: #dce1e7;
  --max-width: 1440px;
  --section-padding: 80px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--color-navy);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "JetBrains Mono", Arial, sans-serif;
  color: var(--color-text);
  line-height: 1.5;
}

/* Containers */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.narrow {
  max-width: 800px;
  text-align: left;
}

/* Headings */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Space Grotesk", Arial, sans-serif;
  color: var(--color-text);
  margin-top: 0;
}

h1 {
  font-size: clamp(3rem, 5vw, 5rem);
}

h2 {
  font-size: clamp(2.25rem, 3vw, 2.75rem);
  margin-bottom: 1.5rem;
}

p {
  margin-bottom: 1rem;
  color: var(--color-muted);
}

/* ========== Navigation ========== */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  height: 80px;
  background-color: var(--color-navy);
  color: var(--color-bg);
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0,35,69,0.10);
  font-weight: 600;
}

.nav {
  height: 80px;
  display: flex;
  align-items: center;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo */
.nav__logo img {
  height: 50px;
  display: block;
  padding-top: 3px;
}

/* Links (desktop) */
.nav__links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 40px;
  margin: 0;
  padding: 0;
}

.nav__links a {
  text-decoration: none;
  color: #fbfbfb;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.nav__links a:hover,
.nav__links a:focus-visible {
  text-decoration: underline;
}

/* Contact button */
.nav__item--cta a {
  background: #ffffff;
  color: #002345;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid rgba(0,35,69,0.08);
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.nav__item--cta a:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.12);
}

/* Hamburger button (hidden on desktop) */
.nav__toggle {
  display: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  width: 34px;
  height: 23px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  z-index: 101;
}

.nav__toggle span {
  display: block;
  height: 3px;
  width: 100%;
  background: #fbfbfb;
  border-radius: 999px;
}

/* ========== Mobile styles ========== */
@media (max-width: 840px) {

  .nav__toggle {
    display: flex;
  }

  .nav__links {
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    background: var(--color-navy);
    flex-direction: column;
    gap: 0;
    display: none;
    justify-content: center;
  }

  .nav__links li {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.07);
  }

  .nav__links a {
    padding: 1rem 1.5rem;
  }

  .nav__item--cta a {
    padding: 0.5rem 1.2rem;
    margin: 0.75rem 1.5rem 1rem;
    display: inline-block;
    width: auto;
  }

  .nav--open .nav__links {
    display: flex;
  }

  .nav--open .nav__toggle span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
  }
  .nav--open .nav__toggle span:nth-child(2) {
    opacity: 0;
  }
  .nav--open .nav__toggle span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
  }

  .nav__toggle span {
    transition: transform 0.15s ease-out, opacity 0.15s ease-out;
  }
}

/* ========== Layout sections ========== */
.site-content {
  padding-top: 80px; /* for fixed nav */
}

.section {
  padding: var(--section-padding) 0;
  background: var(--color-bg);
}

.section--light {
  background: #ffffff;
}

/* ========== Hero ========== */
.hero-section {
  background-color: var(--color-navy);
  color: #ffffff;
}

.hero {
  display: flex;
  align-items: center;
  min-height: 300px;
}

.hero__text {}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  opacity: 0.8;
  margin-bottom: 1rem;
}

.eyebrow--light {
  color: rgba(255,255,255,0.85);
}

.hero__row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.hero__text {
  flex: 1 1 400px;
}

.hero__text h1 {
  color: #ffffff;
  margin-bottom: 1rem;
}

.hero__description {
  color: rgba(255,255,255,0.85);
  font-size: 1.25rem;
}

.hero__media {
  flex: 1 1 400px;
}

.hero__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}


/* ========== Services ========== */
.services {
  background: #ffffff;
}

.services__intro {
  max-width: 720px;
  margin-bottom: 2.5rem;
  color: #666666;
}

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

.service-card {
  background: #fbfbfb;
  border: 1px solid rgba(0, 35, 69, 0.05);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.12s ease-out, box-shadow 0.12s ease-out;
  min-height: 100%;
}

.service-card__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #cccccc;
  overflow: hidden;
}

.service-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.service-card__image--contain img {
  object-fit: contain;
  background: #fbfbfb;
}

.service-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.service-card__title {
  font-size: 1.1rem;
  color: #002345;
  margin: 0;
}

.service-card__text {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.06);
  border-color: rgba(0, 35, 69, 0.12);
}

/* Responsive */
@media (max-width: 992px) {
  .services__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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


/* ========== Expertise ========== */
.expertise__layout {
  display: flex;
  gap: 60px;
  align-items: center;
  flex-wrap: wrap;
}

.expertise__groups {
  flex: 0 1 50%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.expertise__group {
  background: #ffffff;
  border: 1px solid rgba(0, 35, 69, 0.03);
  border-left: 4px solid #002345;
  border-radius: 6px;
  padding: 1rem 1rem 1rem 1.2rem;
}

.expertise__title {
  font-size: 1rem;
  margin-bottom: 0.35rem;
  color: #002345;
}

.expertise__text {
  margin: 0;
  font-size: 0.85rem;
  color: #555;
  line-height: 1.4;
}

.expertise__media {
  flex: 1 1 500px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,0.02);
  border-radius: 8px;
  overflow: hidden;
}

.expertise__media img {
  display: block;
  width: 100%;
  height: auto;
}

.expertise__caption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.8rem;
  color: #666;
}

/* Responsive */
@media (max-width: 992px) {
  .expertise__layout {
    flex-direction: column;
  }

  .expertise__groups,
  .expertise__media {
    flex: 1 1 100%;
    max-width: 100%;
  }
}


/* ========== Image Placeholder ========== */
.image-placeholder {
  width: 100%;
  min-height: 140px;
  background-color: #cccccc;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #666666;
  font-size: 0.9rem;
}


/* ========= About ========== */
.about__row {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

.about__text {
  flex: 1 1 400px;
}

.about__media {
  flex: 1 1 400px;
}

.about__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}


/* ========== Logo Bar ========== */
.logobar {
  background: #f4f7fb;
  text-align: center;
}

.logobar__eyebrow {
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 1.5rem;
}

.logobar__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 35px;
  width: auto;
  display: block;
  opacity: 0.7;
}
.logo:hover {
  opacity: 1.0;
}

/* ========== Contact ========== */
.contact__inner {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.contact__info {
  flex: 1 1 320px;
}

.contact__info h2 {
  margin-bottom: 0.75rem;
}

.contact__info p {
  margin-bottom: 1.5rem;
  max-width: 40rem;
}

.contact__details {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1.5rem;
}

.contact__details li a {
  color: var(--color-navy);
  text-decoration: none;
}

.contact__details li a:hover {
  text-decoration: underline;
}

.contact__label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #666;
  margin-bottom: 0.25rem;
}

.contact__form {
  flex: 1 1 420px;
  background: #f4f7fb;
  border: 1px solid rgba(0,0,0,0.03);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.contact__field--split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact__field label {
  font-family: "Space Grotesk", Arial, sans-serif;
  font-size: 0.85rem;
  color: #1e1e1e;
}

.contact__field input,
.contact__field textarea {
  font-family: "JetBrainsMono Nerd Font", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid #dce1e7;
  border-radius: 4px;
  background: #ffffff;
  transition: border 0.15s ease-out, box-shadow 0.15s ease-out;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--color-navy);
  box-shadow: 0 0 0 3px rgba(0, 35, 69, 0.12);
}

.contact__button {
  background: var(--color-navy);
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-family: "Space Grotesk", Arial, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  align-self: flex-start;
  transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
}

.contact__button:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

@media (max-width: 768px) {
  .contact__inner {
    flex-direction: column;
  }

  .contact__form {
    width: 100%;
  }

  .contact__field--split {
    grid-template-columns: 1fr;
  }
}

/* ========== Footer ========== */
.site-footer {
  background-color: var(--color-navy);
  color: #fbfbfb;
  padding: 50px 0 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
  align-items: center;
}

.footer__brand img {
  height: 50px;
  display: block;
}

.footer__links {
  list-style: none;
  display: flex;
  gap: 24px;
  margin: 0;
  padding: 0;
}

.footer__links a {
  color: #fbfbfb;
  text-decoration: none;
  font-size: 0.9rem;
}

.footer__links a:hover {
  text-decoration: underline;
}

.footer__copy {
  width: 100%;
  font-size: 0.8rem;
  color: #bbbbbb;
  margin-top: 10px;
  text-align: center;
}

@media (max-width: 600px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    gap: 32px;
    text-align: center;
  }
  .footer__brand {
      display: flex;
      justify-content: center;
      width: 100%;
  }
  .footer__links {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    margin: auto;
  }
}

/* ========== Images ========== */
img {
  max-width: 100%;
  height: auto;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .hero {
    min-height: auto;
  }

  .expertise__row,
  .expertise__row--reverse {
    flex-direction: column;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer__links {
    flex-wrap: wrap;
  }
}

