:root {
  --gg-navy: #07315f;
  --gg-blue: #1f8fc6;
  --gg-teal: #008c8c;
  --gg-mint: #8dd9bd;
  --gg-bg: #eef8fb;
  --gg-text: #101820;
  --gg-muted: #6f7f8d;
  --gg-card: rgba(255, 255, 255, 0.92);
  --gg-shadow: 0 20px 35px rgba(7, 49, 95, 0.18);
  --gg-soft-shadow: 0 14px 26px rgba(7, 49, 95, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--gg-text);
  background: var(--gg-bg);
}

.start-page {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 18px;
  background-image: url("assets/background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.start-page::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.start-content {
  position: relative;
  z-index: 2;
  max-width: 1050px;
}

.brand-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin-bottom: 20px;
}

.brand-logo {
  width: min(380px, 76vw);
  height: auto;
  display: block;
}

.search-box {
  width: min(930px, 94vw);
  margin: 0 auto;
  position: relative;
  display: flex;
  align-items: center;
  border: 3px solid var(--gg-navy);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 14px 22px rgba(7, 49, 95, 0.18);
  overflow: hidden;
}

.search-icon {
  position: absolute;
  left: 26px;
  font-size: 1.75rem;
  color: rgba(7, 49, 95, 0.62);
}

.search-input {
  height: 58px;
  border: 0;
  background: transparent;
  text-align: center;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  color: var(--gg-text);
  padding: 0 72px;
  box-shadow: none !important;
}

.search-input::placeholder {
  color: #222;
  opacity: 0.92;
}

.search-button {
  position: absolute;
  right: 10px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--gg-navy);
  background: transparent;
  font-size: 1.35rem;
  transition: background 160ms ease, transform 160ms ease;
}

.search-button:hover,
.search-button:focus-visible {
  background: rgba(31, 143, 198, 0.12);
  transform: translateX(2px);
}

.search-box.is-loading .search-button i {
  animation: spin 0.9s linear infinite;
}

.search-box.is-loading .search-button i::before {
  content: "\f116";
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.ai-answer {
  width: min(930px, 94vw);
  margin: 18px auto 0;
  text-align: left;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 49, 95, 0.16);
  border-radius: 22px;
  box-shadow: 0 18px 34px rgba(7, 49, 95, 0.16);
  overflow: hidden;
  backdrop-filter: blur(8px);
}

.ai-answer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px 10px;
  border-bottom: 1px solid rgba(7, 49, 95, 0.1);
}

.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gg-navy);
  font-weight: 700;
}

.ai-badge i {
  color: var(--gg-teal);
}

.ai-close {
  border: 0;
  background: transparent;
  color: rgba(7, 49, 95, 0.72);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.ai-close:hover,
.ai-close:focus-visible {
  background: rgba(31, 143, 198, 0.12);
}

.ai-answer-body {
  padding: 16px 18px 18px;
  font-size: 1.02rem;
  line-height: 1.55;
  color: #182533;
  white-space: pre-wrap;
}

.ai-answer-body p:last-child {
  margin-bottom: 0;
}

.ai-answer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 18px 18px;
}

.ai-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 7px 14px;
  border-radius: 999px;
  color: var(--gg-navy);
  background: rgba(31, 143, 198, 0.1);
  border: 1px solid rgba(31, 143, 198, 0.22);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.ai-action-link:hover,
.ai-action-link:focus-visible {
  color: var(--gg-navy);
  background: rgba(31, 143, 198, 0.18);
}

.page-question {
  margin: 44px 0 26px;
  font-size: clamp(1.45rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: -0.02em;
}

.service-grid {
  display: flex;
  justify-content: center;
  gap: clamp(22px, 4vw, 56px);
  flex-wrap: wrap;
}

.service-card {
  width: min(310px, 84vw);
  min-height: 230px;
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  text-decoration: none;
  color: var(--gg-text);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  box-shadow: var(--gg-shadow);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover,
.service-card:focus-visible {
  transform: translateY(-8px);
  box-shadow: 0 26px 46px rgba(7, 49, 95, 0.22);
  border-color: rgba(0, 140, 140, 0.28);
  color: var(--gg-text);
}

.service-icon {
  width: 170px;
  height: 118px;
  object-fit: contain;
  display: block;
}

.sequencing-icon {
  width: 185px;
}

.bioinformatics-icon {
  width: 150px;
}

.service-card span {
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.15;
  font-weight: 500;
}

@media (max-width: 768px) {
  .start-page {
    align-items: flex-start;
    padding-top: 42px;
  }

  .brand-logo {
    width: min(300px, 82vw);
  }

  .search-box {
    border-width: 2px;
  }

  .search-input {
    height: 52px;
    padding: 0 54px;
  }

  .search-icon {
    left: 18px;
    font-size: 1.35rem;
  }

  .search-button {
    right: 6px;
  }

  .ai-answer {
    border-radius: 18px;
  }

  .ai-answer-body {
    font-size: 0.98rem;
  }

  .page-question {
    margin-top: 34px;
  }

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

/* Service listing page */
.services-page {
  position: relative;
  min-height: 100vh;
  padding: 28px 18px 70px;
  background-image: url("assets/background.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.services-page::before {
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.services-nav,
.services-hero,
.services-list,
.contact-card {
  position: relative;
  z-index: 2;
}

.services-nav {
  width: min(1180px, 96vw);
  margin: 0 auto 12px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
}

.services-logo-link {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.services-logo {
  width: min(250px, 54vw);
  height: auto;
  display: block;
}

.back-home,
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  min-height: 42px;
  padding: 8px 14px;
  color: var(--gg-navy);
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(7, 49, 95, 0.14);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 10px 22px rgba(7, 49, 95, 0.08);
  backdrop-filter: blur(8px);
}

.nav-contact-link {
  justify-self: end;
}

.back-home:hover,
.back-home:focus-visible,
.nav-contact-link:hover,
.nav-contact-link:focus-visible {
  color: var(--gg-navy);
  background: rgba(255, 255, 255, 0.9);
}

.services-hero {
  padding: 22px 0 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gg-teal);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.services-hero h1,
.contact-card h1 {
  color: var(--gg-navy);
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.055em;
  margin: 0;
}

.services-intro,
.contact-card p {
  max-width: 780px;
  margin: 18px auto 0;
  color: #203548;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.7;
}

.services-list {
  width: min(1180px, 96vw);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-top: 22px;
}

.service-detail-card {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  align-items: center;
  padding: 20px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 42px rgba(7, 49, 95, 0.16);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-detail-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px rgba(7, 49, 95, 0.22);
  border-color: rgba(0, 140, 140, 0.28);
}

.service-detail-card-wide {
  grid-column: 1 / -1;
}

.service-detail-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  background: #fff;
  box-shadow: 0 14px 24px rgba(7, 49, 95, 0.12);
}

.service-detail-content h2 {
  margin: 0 0 10px;
  color: var(--gg-navy);
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.13;
  font-weight: 800;
  letter-spacing: -0.025em;
}

.service-detail-content p {
  margin: 0;
  color: #263848;
  line-height: 1.58;
  font-size: 0.98rem;
}

.service-cta,
.contact-main-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
  min-height: 42px;
  padding: 9px 16px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, var(--gg-navy), var(--gg-teal));
  text-decoration: none;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(7, 49, 95, 0.2);
}

.service-cta:hover,
.service-cta:focus-visible,
.contact-main-button:hover,
.contact-main-button:focus-visible {
  color: #fff;
  transform: translateY(-1px);
}

.contact-page {
  display: flex;
  flex-direction: column;
}

.contact-card {
  width: min(760px, 94vw);
  margin: auto;
  padding: clamp(32px, 6vw, 58px);
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 24px 54px rgba(7, 49, 95, 0.18);
  backdrop-filter: blur(10px);
}

@media (max-width: 980px) {
  .services-list {
    grid-template-columns: 1fr;
  }

  .service-detail-card-wide {
    grid-column: auto;
  }
}

@media (max-width: 700px) {
  .services-page {
    padding: 18px 12px 46px;
  }

  .services-nav {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .back-home,
  .nav-contact-link {
    justify-self: center;
  }

  .services-logo-link {
    order: -1;
  }

  .service-detail-card {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 18px;
  }

  .service-detail-card img {
    width: min(260px, 100%);
    margin: 0 auto;
  }
}
