/* ============================================================
   Service Selector Page
   Scope: .svc-page — all rules contained here

   Golden ratio scale  φ = 1.618  |  half-step = √φ ≈ 1.272
   ─────────────────────────────────────────────────────────
     φ⁻¹   = 0.618rem   tight gaps, minor detail
     φ⁻⁰·⁵ = 0.787rem   secondary / caption text
     φ⁰    = 1rem        base body copy
     φ⁰·⁵  = 1.272rem   card titles, sub-labels
     φ¹    = 1.618rem   subhead, strip titles
     φ¹·⁵  = 2.058rem   available mid-level accent
     φ²    = 2.618rem   page headline
     φ²·⁵  = 3.330rem   large display (available)
     φ³    = 4.236rem   icon badge
   ─────────────────────────────────────────────────────────
   Line-height default = 1.618 (φ itself, ideal for body).
   Display/label line-height = 1.272 (φ⁰·⁵, tighter).
   ============================================================ */

.header-banner-container {
    /* position: relative; */
    display: none;
    /* flex-wrap: wrap;
    top: 0;
    height: 180px;
    overflow: hidden; */
}

a:visited {
    color: unset;
}

.awc-footer {
    margin-top: unset;
}

/* ---- Page shell ---- */
.svc-page {
  display: flex;
  flex-direction: column;
  background: #f7f7f8;
  min-height: calc(100vh - 160px);
  padding: 0;
}

/* ---- Main content area ---- */
.svc-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.618rem 1.618rem;     /* φ² top/bottom, φ¹ sides */
  text-align: center;
}

/* ---- Headline  φ² ---- */
.svc-headline {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 3.330rem;
  font-weight: 500;
  line-height: 1.272;             /* φ⁰·⁵ — tighter for display type */
  color: #2a3582;
  margin: 0 0 0.618rem;           /* φ⁻¹ */
}

/* ---- Subhead  φ¹ ---- */
.svc-subhead {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 1.618rem;            /* φ⁰·⁵ — clear without competing with headline */
  font-weight: 400;
  line-height: 1.618;             /* φ */
  color: #333;
  margin: 0 0 7rem;           /* φ¹·⁵ — medium breath before grid */
  max-width: 72rem;
}

/* ---- Service card grid — single row ---- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  /* replace:  gap: 1.618rem; */
  column-gap: 1.618rem;   /* φ¹ — unchanged horizontally */
  row-gap: 2.618rem;      /* φ² — one full step more vertical breathing room */
  width: 100%;
  max-width: min(95vw, 1320px);
}

/* ---- Individual card ---- */
.svc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;    /* pin icon to top so all icons align across the row */
  aspect-ratio: 1 / 1;
  overflow: hidden;
  padding: 4.236rem 1.618rem 1.618rem;
  background: #ffffff;
  border: 1px solid #d4d6da;
  border-radius: 0.618rem;        /* φ⁻¹ */
  text-decoration: none;
   color: inherit;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  gap: 0.787rem;                  /* φ⁻⁰·⁵ — compact internal rhythm */
}

.svc-card:hover,
.svc-card:focus-visible {
  background: linear-gradient(to top, #2a3582 0%, #3f52c4 100%);
  border-color: #2a3582;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 0 0.618rem 2.618rem rgba(42, 53, 130, 0.28);
}

/* ---- Icon squircle badge  φ³ ---- */
.svc-card-icon {
  width: 4.236rem;                /* φ³ ≈ 68px */
  height: 4.236rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #2a3582;
  border-radius: 22%;             /* squircle — soft corners, not-quite-straight sides */
  transition: background 0.8s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-card-icon i {
  font-size: 2.058rem;            /* φ¹·⁵ */
  line-height: 1;
  color: #ffffff;
}

.svc-card:hover .svc-card-icon,
.svc-card:focus-visible .svc-card-icon {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.svc-card:hover .svc-card-icon i,
.svc-card:focus-visible .svc-card-icon i {
  color: #ffffff;
}
.svc-card-icon {
  margin-top: 4.236rem;   /* φ² — tune independently of card padding */
}
/* ---- Card title  φ⁰·⁵ ---- */
.svc-card-title {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 2.058rem;            /* φ¹·⁵ */
  font-weight: 500;
  letter-spacing: 0.03em;
  line-height: 1.272;             /* φ⁰·⁵ — tight label */
  color: inherit;
  text-align: center;
}

/* ---- Card copy  φ⁰ ---- */
.svc-card-copy {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 1.272rem;            /* φ⁻⁰·⁵ — one half-step below base keeps hierarchy clear */
  line-height: 1.618;             /* φ */
  color: inherit;
  text-align: center;
  opacity: 0.82;
  margin: 0 1.3rem;
  display: -webkit-box;
  /* -webkit-line-clamp: 3; */
  -webkit-box-orient: vertical;
  /* overflow: hidden; */
}

.svc-card:hover .svc-card-copy,
.svc-card:focus-visible .svc-card-copy {
  opacity: 1;
}

/* ---- Card column wrapper — card + optional per-card note ---- */
.svc-card-col {
  display: flex;
  flex-direction: column;
  gap: 0.618rem;                  /* φ⁻¹ — tight gap between card and its note */
}


.svc-card-note {
  color: inherit;
  margin: 0 0.5rem;
}
.svc-card-note a {
  color: inherit;
  color: #276929;
  font-weight: 500;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 50% 100%;
  background-repeat: no-repeat;
  background-size: 0% 1px;
  transition: background-size 0.5s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-card-note a:hover {
  color: #276929;
  background-size: 100% 2px;
}

.svc-card-note a::after {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg) translateY(-0.05em);
  margin-left: 0.4em;
  vertical-align: middle;
  opacity: 0.7;
  transition: opacity 0.5s ease, margin-left 0.2s ease;
}

.svc-card-note a:hover::after {
  opacity: 1;
  margin-left: 0.55em; /* nudges right on hover instead of transform */
}

/* ---- Bottom strip — 3 columns, hugs bottom above footer ---- */
.svc-bottom-header {
  background: #f7f7f8;
  /* border-top: 1px solid #d4d6da; */
  padding: 0.787rem 2.618rem 0;     /* φ⁻⁰·⁵ top, φ² sides, no bottom */
   border-bottom: 1px solid #d4d6da;
       display: flex;
    justify-content: center;
}

.svc-bottom-panel-title {
    font-family: Ubuntu, Arial, sans-serif;
    font-size: 2.058rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    margin-bottom: 0.6rem;
    color: inherit;
}

.svc-bottom {
  display: grid;
  /* grid-template-columns: repeat(3, 1fr); */
   grid-template-columns: repeat(2, 1fr);
  gap: 0;
  background: #ffffff;
  color: inherit;
  margin-top: auto;
}

.svc-bottom-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1.618rem 2.618rem;     /* φ¹ vertical, φ² horizontal */
  gap: 0.618rem;                  /* φ⁻¹ */
  border-right: 1px solid #d4d6da;
  text-decoration: none;
  color: inherit;
  transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-bottom-col:last-child {
  border-right: none;
}

/* Hover: 50% primary blue fill, all text and icon reverse to white */
.svc-bottom-col:hover {
  background: #8B769F ;
  color: #ffffff;
  text-decoration: none;
}

.svc-bottom-col i {
  font-size: 2.058rem;            /* φ¹·⁵ */
  color: #2a3582;
  transition: color 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.svc-bottom-col:hover i {
  color: #ffffff;
}

.svc-bottom-col-title {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 1.618rem;            /* φ¹ */
  font-weight: 500;
  line-height: 1.272;             /* φ⁰·⁵ */
  color: inherit;
}

.svc-bottom-col-text {
  font-family: Ubuntu, Arial, sans-serif;
  font-size: 1rem;                /* φ⁰ */
  line-height: 1.618;             /* φ */
  opacity: 0.82;
  color: inherit;
}

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .svc-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 85vw;
  }
  .svc-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    padding: 1.618rem;
  }
  .svc-card-icon {
    margin-top: 1.5rem;
  }
  .svc-subhead {
    margin: 0 0 2.618rem;
  }
}

@media (max-width: 680px) {
  .svc-headline {
    font-size: 1.618rem;          /* φ¹ — drops two full steps */
  }

  .svc-subhead {
    font-size: 1rem;              /* φ⁰ */
    margin: 0 0 2.618rem;        /* tighten from 7rem — too much vertical waste on small screens */
  }

  .svc-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 32rem;
  }

  .svc-bottom {
    grid-template-columns: 1fr;
  }

  .svc-bottom-col {
    border-right: none;
    border-bottom: 1px solid #d4d6da;
  }

  .svc-bottom-col:last-child {
    border-bottom: none;
  }
}

@media (max-width: 480px) {
  .svc-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
  }

  .svc-card {
    aspect-ratio: unset;          /* cards become natural height at single column */
    padding: 1.618rem;
  }

  .svc-card-icon {
    margin-top: 0;
  }
}