@import url("style-base.css");

/* Active hero background for the start page. */
.start-hero-card {
  background: url("hero-mockup-forest-a.png?v=hero-full-png-20260828") center center / cover no-repeat !important;
}

/* Unified cinematic treatment: one coherent image, with extra contrast only where copy sits. */
.start-hero-card::before {
  content: "";
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse at 12% 52%,
      rgba(5, 27, 21, .58) 0%,
      rgba(5, 27, 21, .43) 30%,
      rgba(5, 27, 21, .16) 52%,
      rgba(5, 27, 21, 0) 72%
    ),
    linear-gradient(
      180deg,
      rgba(6, 28, 22, .26) 0%,
      rgba(6, 28, 22, .31) 100%
    );
}

.start-hero-card::after { display: none !important; }
.start-hero-card > * { position: relative; z-index: 1; }

.start-hero-content { max-width: 790px; }
.start-hero-content p {
  color: rgba(255,255,255,.74);
  font-weight: 800;
  letter-spacing: .12em;
  text-shadow: none;
}
.start-hero-content h1 {
  color: #fff;
  max-width: 710px;
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -1.7px;
  text-shadow: none;
}
.start-hero-content > span {
  color: rgba(255,255,255,.84);
  max-width: 640px;
  font-weight: 450;
  line-height: 1.5;
  text-shadow: none;
}

.hero-benefits {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 0;
  max-width: 760px;
  margin-top: 38px;
}
.hero-benefits div {
  grid-template-columns: 48px minmax(0,1fr);
  column-gap: 12px;
  min-width: 0;
  padding: 0 18px;
}
.hero-benefits div:first-child { padding-left: 0; }
.hero-benefits div:not(:last-child) { border-right: 1px solid rgba(255,255,255,.16); }
.hero-benefits i {
  width: 48px;
  height: 48px;
  background: rgba(11,77,56,.78);
  color: #fff;
  border: 1px solid rgba(255,255,255,.18);
  font-size: 24px;
  box-shadow: none;
}
.hero-benefits strong {
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  text-shadow: none;
}
.hero-benefits small {
  color: rgba(255,255,255,.70);
  font-size: 12px;
  font-weight: 450;
  line-height: 1.38;
  text-shadow: none;
}

:root {
  --portal-green-deep: #1f6046;
  --portal-green-deeper: #184d39;
  --portal-green-dark: #123d2e;
  --portal-green-soft: #7ea58f;
  --portal-green-pale: #eaf2ed;
  --portal-sage-50: #f1f5f2;
  --portal-ivory: #f7f4ee;
  --portal-card: #fffdf9;
  --portal-card-strong: #ffffff;
  --portal-border: #ddd8cf;
  --portal-border-green: #c8d8ce;
  --portal-ink: #10271f;
  --portal-muted: #68766f;
  --portal-muted-warm: #7d786f;
  --portal-shadow: 0 12px 34px rgba(23,53,42,.075);
  --portal-shadow-hover: 0 16px 34px rgba(23,67,49,.11);
  --portal-radius: 20px;
  --portal-radius-sm: 14px;
}

html, body { background: #f4f1ea; }
body {
  color: var(--portal-ink);
  background:
    radial-gradient(circle at 86% 3%,rgba(126,165,143,.10),transparent 32rem),
    linear-gradient(180deg,#f8f6f1 0%,#f3f0e9 100%);
}

.topbar {
  background:
    radial-gradient(circle at 52% -120%, rgba(189,220,199,.20), transparent 38%),
    linear-gradient(135deg,#22684b 0%,#1c5b43 44%,#174a37 100%);
  box-shadow: 0 10px 28px rgba(16,49,36,.17);
  border-bottom: 1px solid rgba(255,255,255,.09);
}
.topbar-left,.brand-mark,.app-name { color: #fff; }

.topbar-nav a {
  background: rgba(255,255,255,.035);
  border-color: rgba(255,255,255,.25);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.035);
  transition: background .18s ease,border-color .18s ease,transform .18s ease,box-shadow .18s ease;
}
.topbar-nav a:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.46);
  transform: translateY(-1px);
  box-shadow: 0 5px 14px rgba(8,31,23,.10);
}

.topbar-search {
  min-height: 54px;
  padding: 5px;
  border-radius: 999px;
  overflow: hidden;
  background: linear-gradient(180deg,rgba(255,255,255,.13),rgba(255,255,255,.075));
  border: 1px solid rgba(225,240,231,.27);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10),0 8px 22px rgba(8,34,25,.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color .2s ease,background .2s ease,box-shadow .2s ease;
}
.topbar-search:focus-within {
  background: linear-gradient(180deg,rgba(255,255,255,.16),rgba(255,255,255,.10));
  border-color: rgba(225,242,232,.44);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13),0 10px 28px rgba(7,34,24,.14),0 0 0 3px rgba(173,206,185,.10);
}
.topbar-search-type {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 0 2px;
}
.topbar-search-type button {
  min-height: 42px;
  padding: 0 17px;
  border-radius: 999px;
  color: rgba(255,255,255,.70);
  background: transparent;
  border: 0;
  font-weight: 750;
  transition: color .18s ease,background .18s ease,box-shadow .18s ease,transform .18s ease;
}
.topbar-search-type button:hover { color: #fff; background: rgba(255,255,255,.08); }
.topbar-search-type button.active {
  color: #173e30;
  background: linear-gradient(180deg,#dceae0 0%,#c9ddd0 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72),0 4px 12px rgba(8,38,27,.13);
}
.topbar-search > span {
  display: grid;
  place-items: center;
  width: 34px;
  flex: 0 0 34px;
  color: rgba(234,244,238,.90);
  font-size: 22px;
  transform: translateY(-1px);
}
.topbar-search input[type="text"] {
  min-width: 0;
  height: 42px;
  padding: 0 10px 0 2px;
  border: 0 !important;
  background: transparent !important;
  color: #fff;
  box-shadow: none !important;
  font-weight: 600;
}
.topbar-search input[type="text"]::placeholder { color: rgba(241,247,243,.67); }
.topbar-search input[type="text"]:focus { outline: none; box-shadow: none !important; }
.topbar-search-submit {
  min-height: 42px;
  padding: 0 21px;
  margin-left: 2px;
  border: 1px solid rgba(211,231,218,.22);
  border-radius: 999px;
  color: rgba(247,251,248,.96);
  background: linear-gradient(180deg,rgba(19,79,57,.92) 0%,rgba(15,64,47,.96) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10),0 4px 12px rgba(7,31,23,.15);
  font-weight: 800;
  transition: transform .18s ease,background .18s ease,box-shadow .18s ease,border-color .18s ease;
}
.topbar-search-submit:hover {
  background: linear-gradient(180deg,rgba(25,91,66,.96) 0%,rgba(18,72,53,.98) 100%);
  border-color: rgba(223,239,228,.34);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.13),0 6px 15px rgba(7,31,23,.20);
}

.app-shell,
.app-shell:not(.service-selected) {
  background:
    radial-gradient(circle at 82% 4%,rgba(126,165,143,.08),transparent 30rem),
    linear-gradient(180deg,#f8f6f1 0%,#f2efe8 100%);
}
.app-shell:not(.service-selected) .content { padding-top: 34px; }
.content { color: var(--portal-ink); }
.sidebar { background: rgba(248,246,241,.92); border-right-color: var(--portal-border); }

.start-card,.popular-service-section,.start-stats-band,.welcome-card,.search-waiting-card,.service-hero,.panel-card,.shared-variants-panel,.guide-card,.card,.portal-login-card,.search-card,.side-intro,.result-card,.operator-card.original-style {
  background: rgba(255,253,249,.97);
  border-color: var(--portal-border);
  box-shadow: var(--portal-shadow);
}
.start-card,.popular-service-section,.welcome-card,.search-waiting-card,.service-hero,.panel-card,.shared-variants-panel,.card,.portal-login-card { border-radius: var(--portal-radius); }
.guide-card,.search-card,.side-intro,.result-card,.operator-card.original-style { border-radius: var(--portal-radius-sm); }

.panel-head small,.shared-variants-head small,.side-intro p,.welcome-card p,.start-card-label,.section-title-row h2,.breadcrumb,.result-heading { color: var(--portal-green-deep); }
.panel-head p,.shared-variants-head p,.welcome-card span,.search-waiting-card span,.side-intro span,.result-subtitle { color: var(--portal-muted); }

.button,.search-card button,.new-search-btn,.mode-switch a.active { background: var(--portal-green-deep); color: #fff; border-color: var(--portal-green-deep); }
.button:hover,.search-card button:hover,.new-search-btn:hover { background: var(--portal-green-deeper); }
.mode-switch a,.family-item,.shared-variant-card,.center-button,.center-buttons a { border-color: var(--portal-border); }
.mode-switch a:hover,.family-item:hover,.shared-variant-card:hover,.center-button:hover,.center-buttons a:hover { border-color: var(--portal-border-green); background: var(--portal-sage-50); }

input[type="text"],input[type="password"],input[type="email"],input[type="search"],select,textarea { border-color: #d9d4ca; background: #fffefa; color: var(--portal-ink); }
input[type="text"]:focus,input[type="password"]:focus,input[type="email"]:focus,input[type="search"]:focus,select:focus,textarea:focus { outline: none; border-color: #8fb19d; box-shadow: 0 0 0 3px rgba(126,165,143,.15); }

.app-shell.service-selected .service-hero {
  background: radial-gradient(circle at 92% 12%,rgba(126,165,143,.16),transparent 18rem),linear-gradient(135deg,#fffdf9 0%,#f3f7f4 100%);
  border-color: var(--portal-border-green);
  box-shadow: var(--portal-shadow);
}
.service-title h1,.panel-head h2,.shared-variants-head h2,.guide-card strong,.master-field strong,.operator-card.original-style h3 { color: var(--portal-ink); }
.hero-pills span,.result-meta,.tags span { border-color: transparent; }

/* Start page hierarchy: quick actions are fixed shortcuts, popular services are data-driven. */
.start-hero-content > p { display: none; }

.start-dashboard-grid.single-row {
  margin-top: 18px;
  margin-bottom: 14px;
}
.quick-services-card {
  padding: 13px 16px;
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(23,53,42,.055);
}
.quick-services-card .start-card-label {
  margin: 0 0 9px;
  font-size: 11px;
  line-height: 1;
  letter-spacing: .09em;
  font-weight: 850;
  text-transform: uppercase;
  color: #47705d;
}
.quick-service-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 7px;
  overflow-x: auto;
  padding: 1px 1px 3px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.quick-service-list::-webkit-scrollbar { display: none; }
.quick-service-list a {
  flex: 0 0 auto;
  min-width: 0;
  min-height: 34px !important;
  padding: 0 13px;
  border-radius: 999px;
  color: #254d3b;
  background: rgba(240,246,242,.88);
  border: 1px solid #d4e1d8;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.72);
  font-size: 12.5px;
  font-weight: 750;
  white-space: nowrap;
  transition: transform .16s ease,background .16s ease,border-color .16s ease,color .16s ease,box-shadow .16s ease;
}
.quick-service-list a:hover {
  color: #163f2e;
  background: #e7f0ea;
  border-color: #b9cebf;
  transform: translateY(-1px);
  box-shadow: 0 5px 12px rgba(31,96,70,.07);
}

.popular-service-section {
  position: relative;
  overflow: hidden;
  padding: 18px 20px 20px;
  animation: popularRailIn .46s ease both;
}
.section-title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.section-title-row h2 { margin: 0; font-size: 20px; line-height: 1.15; letter-spacing: .025em; }
.section-title-row span { color: var(--portal-muted); font-size: 12px; font-weight: 600; text-align: right; }
.popular-service-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(250px,25vw,320px);
  grid-template-columns: none;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  scroll-padding-left: 2px;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.popular-service-grid::-webkit-scrollbar { display: none; }
.popular-service-card {
  scroll-snap-align: start;
  min-width: 0;
  min-height: 108px;
  display: grid;
  grid-template-columns: 48px minmax(0,1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 5px;
  align-content: center;
  align-items: center;
  padding: 16px 18px;
  text-align: left;
  text-decoration: none;
  background: #fffdf9;
  border: 1px solid #e4ded4;
  border-radius: 16px;
  box-shadow: none;
  color: var(--portal-ink);
  transition: border-color .18s ease,background .18s ease,transform .18s ease,box-shadow .18s ease;
}
.popular-service-card i {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0;
  border-radius: 14px;
  background: #e9f1ec;
  color: var(--portal-green-deep);
  font-size: 24px;
  font-style: normal;
  line-height: 1;
}
.popular-service-card strong { grid-column: 2; grid-row: 1; width: 100%; margin: 0; align-self: end; color: var(--portal-ink); font-size: 15px; line-height: 1.22; font-weight: 820; overflow-wrap: anywhere; }
.popular-service-card span { grid-column: 2; grid-row: 2; width: 100%; margin: 0; align-self: start; color: var(--portal-muted); font-size: 12px; line-height: 1.32; font-weight: 500; }
.popular-service-card:hover { background: #f8fbf9; border-color: #bfd0c5; transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,96,70,.09); }
@keyframes popularRailIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* The old explanatory stats band duplicated information already communicated by the hero. */
.start-stats-band { display: none !important; }

.welcome-card {
  position: relative;
  overflow: hidden;
  min-height: 190px;
  padding: 34px 38px;
  border: 1px solid rgba(126,165,143,.36);
  background:
    radial-gradient(circle at 90% 28%,rgba(65,119,91,.24),transparent 15rem),
    radial-gradient(circle at 72% 120%,rgba(177,204,186,.28),transparent 21rem),
    linear-gradient(128deg,#fffdf8 0%,#eef5f0 48%,#dcebe1 100%);
  box-shadow: 0 14px 36px rgba(23,67,49,.09);
}
.welcome-card::after {
  content: "";
  position: absolute;
  right: 38px;
  top: 50%;
  width: 118px;
  height: 118px;
  transform: translateY(-50%);
  border: 22px solid rgba(31,96,70,.095);
  border-radius: 50%;
  box-sizing: border-box;
  pointer-events: none;
}
.welcome-card p { margin: 0 0 8px; color: var(--portal-green-deep); font-size: 12px; font-weight: 850; letter-spacing: .10em; text-transform: uppercase; }
.welcome-card h1 { margin: 0; max-width: 720px; color: var(--portal-ink); font-size: clamp(30px,3vw,42px); line-height: 1.05; letter-spacing: -1.2px; }
.welcome-card span { display: block; max-width: 680px; margin-top: 14px; color: #587064; font-size: 15px; line-height: 1.5; }

table { border-color: var(--portal-border); }
thead th { color: var(--portal-green-deeper); background: #eef4f0; border-color: var(--portal-border); }
tbody td { border-color: #e8e2d9; }
tbody tr:hover { background: rgba(234,242,237,.55); }

@media (max-width: 980px) {
  .popular-service-grid { grid-auto-columns: minmax(240px,72vw); }
}
@media (max-width: 680px) {
  .section-title-row { align-items: flex-start; flex-direction: column; gap: 5px; }
  .section-title-row span { text-align: left; }
  .popular-service-grid { grid-auto-columns: minmax(230px,84vw); }
  .welcome-card { min-height: 0; padding: 26px 24px; }
  .welcome-card::after { display: none; }
  .topbar-search { border-radius: 24px; }
  .topbar-search-type button,.topbar-search-submit { padding-inline: 13px; }
  .quick-services-card { padding: 12px 13px; }
}

/* Responsive stability pass: one deliberate layout system overrides older breakpoints. */
.topbar {
  display: grid;
  grid-template-columns: max-content minmax(460px, 820px) max-content;
  align-items: center;
  justify-content: space-between;
  column-gap: clamp(14px, 1.8vw, 30px);
  height: auto;
  min-height: 68px;
}
.topbar-left,
.topbar-nav,
.topbar-search { min-width: 0; }
.topbar-search {
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}
.topbar-nav {
  flex-wrap: nowrap;
  white-space: nowrap;
}

/* Preserve the hero composition instead of letting a fixed height create aggressive cropping. */
.start-hero-card {
  min-height: clamp(330px, 22vw, 390px);
  background-position: 58% 50% !important;
}
.start-hero-content {
  width: min(58%, 790px);
  max-width: none;
  padding: clamp(48px, 3.6vw, 62px) clamp(34px, 3.8vw, 58px);
}
.start-hero-content h1 {
  font-size: clamp(36px, 3.05vw, 56px);
}
.start-hero-content > span {
  margin-top: 20px;
  font-size: clamp(15px, 1.05vw, 18px);
}
.hero-benefits {
  margin-top: clamp(30px, 2.4vw, 40px);
}

/* Quick choices should read as a lightweight utility rail, not another large card. */
.start-dashboard-grid.single-row {
  margin-top: 14px;
  margin-bottom: 8px;
}
.quick-services-card {
  padding: 10px 14px !important;
  background: rgba(255,253,249,.52) !important;
  border: 1px solid rgba(195,211,201,.55) !important;
  box-shadow: none !important;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.quick-services-card .start-card-label {
  margin-bottom: 8px;
  opacity: .88;
}
.quick-service-list {
  display: flex !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  gap: 7px !important;
  scroll-snap-type: x proximity;
  overscroll-behavior-inline: contain;
}
.quick-service-list a {
  flex: 0 0 auto !important;
  min-width: max-content !important;
  scroll-snap-align: start;
}

/* Make Popular services unmistakably horizontal and visually cue more content. */
.popular-service-section {
  margin-top: 20px;
  padding: 17px 20px 18px;
}
.popular-service-section::after {
  content: "›";
  position: absolute;
  right: 0;
  bottom: 16px;
  z-index: 5;
  width: 48px;
  height: 94px;
  display: grid;
  place-items: center;
  color: rgba(31,96,70,.72);
  font-size: 28px;
  font-weight: 500;
  background: linear-gradient(90deg, rgba(255,253,249,0), rgba(255,253,249,.94) 58%, rgba(255,253,249,1));
  pointer-events: none;
}
.popular-service-grid {
  grid-auto-columns: clamp(270px, 21vw, 340px);
  gap: 11px;
  padding-right: 40px;
  scroll-behavior: smooth;
}
.popular-service-card {
  min-height: 94px;
  grid-template-columns: 44px minmax(0,1fr);
  column-gap: 12px;
  padding: 13px 15px;
  border-radius: 15px;
}
.popular-service-card i {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  font-size: 22px;
}
.popular-service-card strong { font-size: 14px; }
.popular-service-card span { font-size: 11.5px; }

@media (max-width: 1480px) {
  .topbar {
    grid-template-columns: minmax(0,1fr) max-content;
    grid-template-areas:
      "brand nav"
      "search search";
    row-gap: 9px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .topbar-left { grid-area: brand; }
  .topbar-nav { grid-area: nav; }
  .topbar-search {
    grid-area: search;
    max-width: none;
    width: 100%;
  }

  .start-hero-card {
    min-height: clamp(320px, 28vw, 360px);
    background-position: 61% 50% !important;
  }
  .start-hero-content {
    width: min(64%, 760px);
    padding: 44px 42px;
  }
  .start-hero-content h1 {
    font-size: clamp(34px, 3.5vw, 50px);
  }
  .hero-benefits div {
    padding: 0 12px;
  }
}

@media (max-width: 1100px) {
  .topbar-nav {
    gap: 7px;
  }
  .topbar-nav a {
    padding: 7px 10px;
    font-size: 12px;
  }
  .topbar-nav span {
    font-size: 12px;
  }

  .start-hero-card {
    min-height: 340px;
    background-position: 66% 50% !important;
  }
  .start-hero-content {
    width: 72%;
    padding: 42px 36px;
  }
  .hero-benefits {
    grid-template-columns: repeat(3,minmax(0,1fr));
  }
  .hero-benefits div {
    grid-template-columns: 42px minmax(0,1fr);
    column-gap: 10px;
    padding: 0 10px;
  }
  .hero-benefits i {
    width: 42px;
    height: 42px;
    font-size: 20px;
  }
  .hero-benefits strong { font-size: 13px; }
  .hero-benefits small { font-size: 11px; }

  .popular-service-grid {
    grid-auto-columns: minmax(270px, 36vw);
  }
}

@media (max-width: 860px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-template-areas:
      "brand"
      "nav"
      "search";
    row-gap: 9px;
  }
  .topbar-left,
  .topbar-nav {
    justify-self: stretch;
  }
  .topbar-nav {
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .topbar-nav::-webkit-scrollbar { display: none; }

  .start-hero-card {
    min-height: 0;
    background-position: 70% 50% !important;
  }
  .start-hero-content {
    width: 100%;
    padding: 38px 28px;
    background: linear-gradient(90deg, rgba(5,27,21,.22), rgba(5,27,21,.02));
  }
  .start-hero-content h1 {
    max-width: 640px;
    font-size: clamp(33px, 7vw, 46px);
  }
  .start-hero-content > span {
    max-width: 580px;
  }
  .hero-benefits {
    max-width: 620px;
  }
}

@media (max-width: 680px) {
  .topbar-search {
    min-height: 50px;
    border-radius: 25px;
  }
  .topbar-search-type button {
    min-height: 38px;
    padding-inline: 11px;
  }
  .topbar-search-submit {
    min-height: 38px;
    padding-inline: 13px;
  }
  .topbar-search > span {
    width: 28px;
    flex-basis: 28px;
  }

  .start-hero-card {
    border-radius: 22px;
    background-position: 72% 50% !important;
  }
  .start-hero-content {
    padding: 32px 22px;
  }
  .hero-benefits {
    grid-template-columns: 1fr;
    gap: 13px;
    margin-top: 28px;
  }
  .hero-benefits div {
    padding: 0 !important;
    border-right: 0 !important;
    max-width: 320px;
  }

  .popular-service-section::after {
    height: 90px;
  }
  .popular-service-grid {
    grid-auto-columns: minmax(245px, 82vw);
  }
}
