/* Homepage-only improvements. The global SemiOffice theme remains unchanged. */
.home-page .left-column,
.home-page .right-column,
.home-page * {
  box-sizing: border-box;
}

.home-page .menu-icon {
  padding: 8px 14px;
  margin: 0;
  min-width: 48px;
  font-size: 1.5rem;
  box-shadow: none;
  background: transparent;
}

.home-page .content {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.home-hero {
  position: relative;
  overflow: visible;
  padding: clamp(28px, 5vw, 62px);
  border: 1px solid #cfe8f3;
  border-radius: 22px;
  background: radial-gradient(circle at 102% -8%, rgba(33, 158, 188, 0.12) 0 130px, transparent 131px), linear-gradient(135deg, #ffffff 0%, #eaf7fc 58%, #d9f0f8 100%);
  box-shadow: 0 18px 48px rgba(0, 119, 182, 0.10);
}


.hero-eyebrow,
.section-kicker {
  margin: 0 0 8px;
  color: #0077b6;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.home-hero h1 {
  position: relative;
  z-index: 1;
  max-width: 860px;
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.65rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.hero-intro {
  position: relative;
  z-index: 1;
  max-width: 830px;
  margin: 20px 0 26px;
  color: #3f5666;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-search {
  position: relative;
  z-index: 5;
  max-width: 850px;
  margin: 0;
}

.hero-search-row {
  display: flex;
  gap: 10px;
  padding: 8px;
  border: 1px solid #b7dbea;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(33, 158, 188, 0.12);
}

.hero-search input {
  flex: 1;
  min-width: 0;
  padding: 15px 16px;
  border: 0;
  outline: 0;
  color: #263746;
  background: transparent;
  font-size: 1rem;
}

.hero-search input:focus {
  box-shadow: inset 0 0 0 2px #219ebc;
  border-radius: 8px;
}

.hero-search button,
.home-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  margin: 0;
  border-radius: 10px;
  background: #0077b6;
  box-shadow: none;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
}

.hero-search button:hover,
.home-button:hover {
  background: #fb8500;
  color: #ffffff;
}

.search-help {
  margin: 9px 4px 0;
  color: #60717e;
  font-size: 0.92rem;
}

.home-search-results {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 20px);
  z-index: 50;
  overflow: hidden;
  margin-top: 10px;
  border: 1px solid #cfe2eb;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(27, 75, 98, 0.18);
}

.home-search-results[hidden] {
  display: none;
}

.search-result-link {
  display: block;
  padding: 13px 16px;
  border-bottom: 1px solid #e6eff3;
  color: #263746;
  text-decoration: none;
}

.search-result-link:last-of-type {
  border-bottom: 0;
}

.search-result-link:hover,
.search-result-link:focus {
  background: #eef8fc;
  color: #0077b6;
}

.search-result-link strong,
.search-result-link span {
  display: block;
}

.search-result-link strong {
  margin-bottom: 4px;
  color: #0077b6;
  font-size: 1rem;
}

.search-result-link span {
  color: #5a6872;
  font-size: 0.88rem;
  line-height: 1.45;
}

.search-status,
.search-all-link {
  display: block;
  padding: 13px 16px;
  color: #576875;
  background: #f7fbfd;
  font-size: 0.92rem;
  text-align: center;
}

.search-all-link {
  color: #0077b6;
  font-weight: 700;
  text-decoration: none;
}

.quick-searches {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 18px;
  color: #536977;
  font-size: 0.94rem;
}

.quick-searches a {
  padding: 7px 11px;
  border: 1px solid #bedeea;
  border-radius: 999px;
  background: rgba(255,255,255,0.75);
  color: #0077b6;
  text-decoration: none;
}

.quick-searches a:hover {
  border-color: #fb8500;
  color: #c86400;
}

.home-section,
.home-feature {
  margin: clamp(34px, 6vw, 68px) 0;
}

.section-heading {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.15;
}

.centered-heading {
  justify-content: center;
  text-align: center;
}

.section-link {
  flex: 0 0 auto;
  font-weight: 700;
  text-decoration: none;
}

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

.purpose-card {
  display: flex;
  min-height: 205px;
  flex-direction: column;
  justify-content: flex-start;
  padding: 24px;
  border: 1px solid #d8e8ef;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(44, 83, 101, 0.06);
  color: #4c5f6b;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.purpose-card:hover {
  transform: translateY(-4px);
  border-color: #8ecae6;
  box-shadow: 0 15px 34px rgba(0, 119, 182, 0.12);
}

.purpose-card .card-icon {
  margin-bottom: 20px;
  font-size: 2rem;
}

.purpose-card strong {
  margin-bottom: 9px;
  color: #0077b6;
  font-size: 1.18rem;
}

.purpose-card span:last-child {
  line-height: 1.55;
}

.collections-section {
  padding: clamp(24px, 4vw, 42px);
  border-radius: 20px;
  background: #eaf5fa;
}

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

.collection-grid a {
  display: block;
  padding: 18px;
  border: 1px solid #d1e7f0;
  border-radius: 12px;
  background: #ffffff;
  text-decoration: none;
}

.collection-grid a:hover {
  border-color: #219ebc;
  box-shadow: 0 8px 20px rgba(0, 119, 182, 0.08);
}

.collection-grid strong,
.collection-grid span {
  display: block;
}

.collection-grid strong {
  margin-bottom: 5px;
  color: #0077b6;
  font-size: 1.03rem;
}

.collection-grid span {
  color: #61717c;
  font-size: 0.88rem;
  line-height: 1.4;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  list-style: none;
  counter-reset: none;
}

.steps-grid li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin: 0;
  padding: 22px;
  border-top: 4px solid #219ebc;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 7px 22px rgba(34, 76, 95, 0.06);
}

.step-number {
  display: inline-flex;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #0077b6;
  color: #ffffff;
  font-weight: 800;
}

.steps-grid strong {
  color: #263746;
  font-size: 1.05rem;
}

.steps-grid p {
  margin: 7px 0 0;
  font-size: 0.96rem;
  line-height: 1.5;
}

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

.explore-grid a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border: 1px solid #d8e7ed;
  border-radius: 12px;
  background: #ffffff;
  color: #315263;
  text-decoration: none;
}

.explore-grid a:hover {
  border-color: #fb8500;
  color: #0077b6;
}

.explore-grid span {
  font-size: 1.45rem;
}

.home-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr);
  gap: 36px;
  align-items: center;
  padding: clamp(28px, 5vw, 52px);
  border-radius: 20px;
  background: #0077b6;
}

.home-feature h2,
.home-feature p,
.home-feature .section-kicker {
  color: #ffffff;
}

.home-feature h2 {
  margin: 0;
}

.home-feature p {
  margin: 16px 0 22px;
  color: #e7f6fc;
}

.home-feature .home-button {
  background: #ffffff;
  color: #0077b6;
}

.home-feature .home-button:hover {
  background: #ffb703;
  color: #153b4f;
}

.feature-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-points span {
  padding: 9px 12px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  color: #ffffff;
  font-size: .9rem;
}

.about-home {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid #d8e7ed;
  border-radius: 18px;
  background: #ffffff;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 25px 0;
}

.trust-grid div {
  padding: 18px;
  border-radius: 12px;
  background: #f2f9fc;
}

.trust-grid strong,
.trust-grid span {
  display: block;
}

.trust-grid strong {
  margin-bottom: 6px;
  color: #0077b6;
}

.trust-grid span {
  color: #586a75;
  line-height: 1.5;
}

.responsible-note {
  padding: 16px 18px;
  border-left: 4px solid #fb8500;
  border-radius: 8px;
  background: #fff8ed;
  font-size: 1rem;
}

.home-share {
  padding: 25px 0;
  text-align: center;
}

.home-share h2 {
  font-size: 1.35rem;
}

.home-share img {
  width: 36px;
  height: 36px;
  margin: 6px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 1040px) {
  .purpose-grid,
  .collection-grid,
  .explore-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .home-page .left-column {
    width: 100%;
  }

  .home-page .menu {
    top: 68px;
  }

  .home-page .right-column {
    padding: 14px;
  }

  .home-hero {
    border-radius: 16px;
  }

  .hero-search-row {
    flex-direction: column;
  }

  .hero-search button {
    width: 100%;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .centered-heading {
    align-items: center;
  }

  .home-feature {
    grid-template-columns: 1fr;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .purpose-grid,
  .collection-grid,
  .explore-grid {
    grid-template-columns: 1fr;
  }

  .purpose-card {
    min-height: 0;
  }

  .quick-searches span {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purpose-card {
    transition: none;
  }
}
