/* ==========================================================================
   Urs Mutual Fund Distributors — stylesheet

   1.  Base
   2.  Utilities, icons & reveal
   3.  Buttons & form controls
   4.  Section scaffolding
   5.  Header & navigation
   6.  Hero & trust strip
   7.  Services
   8.  Investment options
   9.  Our approach (planning)
   10. Client portal
   11. Fund performance
   12. Insurance
   13. Resources, downloads, referral & FAQs
   14. About
   15. Contact
   16. Footer
   17. Dialogs
   ========================================================================== */


/* 1. Base
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(64px + 1rem);
}

/* Laptop screens: scale text and spacing down slightly so pages don't feel zoomed in. */
@media (min-width: 961px) and (max-width: 1536px) {
  html {
    font-size: 93.75%;
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: #1f2a2a;
  background: #fbfaf7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: #152f4c;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

p {
  margin: 0 0 1rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

address {
  font-style: normal;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid #2563eb;
  outline-offset: 3px;
  border-radius: 4px;
}


/* 2. Utilities, icons & reveal
   ========================================================================== */

.container {
  width: 100%;
  max-width: calc(1200px + clamp(1rem, 0.4rem + 2.6vw, 2rem) * 2);
  margin-inline: auto;
  padding-inline: clamp(1rem, 0.4rem + 2.6vw, 2rem);
}

/* Laptop screens: wider side margins so content doesn't run edge to edge. */
@media (min-width: 961px) and (max-width: 1536px) {
  .container {
    max-width: calc(1200px + 8rem);
    padding-inline: 4rem;
  }
}

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

.sprite {
  display: none;
}

.skip-link {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.75rem 1.25rem;
  border-radius: 10px;
  background: #152f4c;
  color: #ffffff;
  font-weight: 600;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: none;
}

/* Interface icons (arrows, menu, contact glyphs). */
.icon {
  width: 1.2em;
  height: 1.2em;
  flex-shrink: 0;
}

/* Coloured duotone icons: the colour comes from the modifier class. */
.duo-icon {
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  color: #0b2a4a;
}

.duo-icon--lg { width: 58px; height: 58px; }
.duo-icon--sm { width: 36px; height: 36px; }
.duo-icon--xs { width: 22px; height: 22px; }

.duo-icon--green  { color: #22a55b; }
.duo-icon--teal   { color: #14a39a; }
.duo-icon--blue   { color: #2f6fe4; }
.duo-icon--sky    { color: #2a9df4; }
.duo-icon--purple { color: #8b5cf6; }
.duo-icon--orange { color: #f08a24; }
.duo-icon--gold   { color: #e9a93a; }
.duo-icon--yellow { color: #f5b520; }
.duo-icon--pink   { color: #ec4899; }
.duo-icon--red    { color: #ef4444; }

/* Reveal on scroll (the class is added by script.js only when motion is allowed). */
.has-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.has-reveal [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}


/* 3. Buttons & form controls
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 46px;
  padding: 0 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1),
    color 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1), transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active,
.btn:disabled {
  transform: none;
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

.btn .icon {
  width: 18px;
  height: 18px;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.btn:hover .icon {
  transform: translateX(2px);
}

.btn--large {
  min-height: 54px;
  padding: 0 2rem;
  font-size: 1rem;
}

.btn--small {
  min-height: 42px;
  padding: 0 1.25rem;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: #ffc155;
  color: #0d2035;
}

.btn--primary:hover {
  background: #f5b03a;
  box-shadow: 0 6px 16px rgba(255, 193, 85, 0.35);
}

.btn--outline {
  border-color: #152f4c;
  background: #ffffff;
  color: #152f4c;
}

.btn--outline:hover {
  background: #152f4c;
  color: #ffffff;
}

.btn--light {
  border-color: #d3cec4;
  background: #ffffff;
  color: #152f4c;
}

.btn--light:hover {
  border-color: #152f4c;
}

/* Dark text on gold keeps contrast above WCAG AA. */
.btn--accent {
  background: #e8a838;
  color: #0d2035;
  box-shadow: 0 6px 16px rgba(232, 168, 56, 0.28);
}

.btn--accent:hover {
  background: #d6952a;
}

/* Login portals: gold for investors, navy for business partners. */
.btn--investor,
.btn--partner {
  gap: 0.5rem;
  letter-spacing: 0.005em;
}

.btn--investor .icon,
.btn--partner .icon {
  width: 16px;
  height: 16px;
}

.btn--investor:hover .icon,
.btn--partner:hover .icon {
  transform: none;
}

.btn--investor {
  background: #ffc155;
  color: #0d2035;
  box-shadow: 0 4px 12px rgba(232, 168, 56, 0.25);
}

.btn--investor:hover {
  background: #f5b03a;
  box-shadow: 0 6px 16px rgba(255, 193, 85, 0.38);
}

.btn--partner {
  border-color: #152f4c;
  background: #152f4c;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(21, 47, 76, 0.18);
}

.btn--partner .icon {
  color: #ffc155;
}

.btn--partner:hover {
  border-color: #0d2035;
  background: #0d2035;
  box-shadow: 0 6px 16px rgba(21, 47, 76, 0.28);
}

/* "Business partner? Partner Login" line under portal call-to-actions. */
.portal-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.9375rem;
  color: #5a6564;
}

.portal-note__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  color: #152f4c;
  text-decoration: underline;
  text-decoration-color: #e8a838;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.portal-note__link .icon {
  width: 16px;
  height: 16px;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.portal-note__link:hover {
  color: #0d2035;
  text-decoration-color: #152f4c;
}

.portal-note__link:hover .icon {
  transform: translateX(2px);
}

.btn.is-loading::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

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

.select {
  appearance: none;
  min-height: 48px;
  padding: 0 3rem 0 1rem;
  border: 1.5px solid #d3cec4;
  border-radius: 10px;
  background: #ffffff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230d3b3c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center / 18px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #152f4c;
  cursor: pointer;
}

.select:focus {
  outline: none;
  border-color: #152f4c;
  box-shadow: 0 0 0 4px rgba(232, 168, 56, 0.3);
}


/* 4. Section scaffolding
   ========================================================================== */

.section {
  padding-block: clamp(3.75rem, 2.5rem + 4vw, 6rem);
}

.section-header {
  display: grid;
  grid-template-columns: 1fr minmax(0, 440px);
  align-items: end;
  gap: 1rem 3rem;
  margin-bottom: 2.5rem;
}

.section-header__eyebrow {
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4470;
}

.section-header__title {
  max-width: 20ch;
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 1.25rem + 1.6vw, 2.375rem);
}

.section-header .section-header__title {
  margin-bottom: 0;
}

.section-header__description {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #5a6564;
}

.section-header__description strong {
  font-weight: 600;
  color: #152f4c;
}

@media (max-width: 860px) {
  .section-header {
    grid-template-columns: 1fr;
    margin-bottom: 2rem;
  }
}


/* 5. Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid #e8e4dc;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  transition: box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(21, 47, 76, 0.07);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 90px;
  transition: min-height 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled .site-header__inner {
  min-height: 64px;
}

@media (max-width: 1536px) {
  .site-header__inner {
    min-height: 76px;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #152f4c;
}

.brand__logo {
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(21, 47, 76, 0.15);
  transition: width 250ms cubic-bezier(0.2, 0.7, 0.2, 1), height 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled .brand__logo {
  width: 42px;
  height: 42px;
}

/* Wide wordmark logo in the header: keep its aspect ratio, no circle crop */
.brand__logo--wide {
  width: auto;
  height: 70px;
  border-radius: 0;
  box-shadow: none;
  mix-blend-mode: multiply; /* blends the PNG's white background into the header */
  transition: height 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-header.is-scrolled .brand__logo--wide {
  width: auto;
  height: 50px;
}

@media (max-width: 480px) {
  .brand__logo--wide {
    height: 42px;
  }

  .site-header.is-scrolled .brand__logo--wide {
    height: 38px;
  }
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand__name {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
}

.brand__tagline {
  margin-top: 2px;
  font-size: 0.8125rem;
  font-weight: 600;
  white-space: nowrap;
}

.brand__sub {
  font-size: 0.6875rem;
  white-space: nowrap;
  color: #5a6564;
}

.brand--light {
  color: #ffffff;
}

.brand--light .brand__sub {
  color: #c6d6d4;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.main-nav__list {
  display: flex;
  gap: 0.25rem;
}

.main-nav__link {
  position: relative;
  display: block;
  padding: 0.5rem 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  color: #1f2a2a;
  transition: color 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.main-nav__link::after {
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: #152f4c;
  transform: scaleX(0);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.main-nav__link:hover,
.main-nav__link.is-active {
  color: #152f4c;
}

.main-nav__link.is-active {
  font-weight: 600;
}

.main-nav__link:hover::after,
.main-nav__link.is-active::after {
  transform: scaleX(1);
}

.main-nav__actions {
  display: flex;
  gap: 0.625rem;
}

/* Narrower desktops: tighten the nav so both login buttons fit beside the links. */
@media (min-width: 1241px) and (max-width: 1400px) {
  .main-nav {
    gap: 1.25rem;
  }

  .main-nav__link {
    padding-inline: 0.6rem;
  }

  .main-nav__actions .btn {
    padding: 0 1rem;
  }
}

.site-header__mobile {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.menu-toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #e1efec;
  color: #152f4c;
}

.menu-toggle .icon {
  width: 22px;
  height: 22px;
}

@media (max-width: 1240px) {
  .site-header__mobile {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 0.75rem clamp(1rem, 0.4rem + 2.6vw, 2rem) 2rem;
    border-bottom: 1px solid #e8e4dc;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(21, 47, 76, 0.08), 0 30px 60px rgba(21, 47, 76, 0.1);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav__list {
    flex-direction: column;
  }

  .main-nav__link {
    padding: 1rem 0.5rem;
    border-bottom: 1px solid #e8e4dc;
    font-size: 1.1875rem;
  }

  .main-nav__link::after {
    left: 0;
    right: auto;
    top: 25%;
    bottom: 25%;
    width: 3px;
    height: auto;
    transform: scaleY(0);
  }

  .main-nav__link:hover::after,
  .main-nav__link.is-active::after {
    transform: scaleY(1);
  }

  .main-nav__link.is-active {
    padding-left: 1rem;
  }

  .main-nav__actions {
    flex-direction: column;
  }

  .main-nav__actions .btn {
    min-height: 54px;
    font-size: 1rem;
  }
}

/* Phones: the header bar keeps Investor Login; both logins are in the open menu. */
@media (max-width: 560px) {
  .site-header__portal--partner {
    display: none;
  }

  .site-header__portal {
    min-height: 40px;
    padding: 0 0.9rem;
    font-size: 0.875rem;
  }
}

@media (max-width: 400px) {
  .site-header__portal .icon {
    display: none;
  }

  .site-header__portal {
    padding: 0 0.75rem;
  }
}

@media (max-width: 350px) {
  .site-header__portal {
    display: none;
  }
}

@media (max-width: 560px) {
  .brand__sub {
    display: none;
  }

  .brand__tagline {
    white-space: normal;
  }
}


/* 6. Hero & trust strip
   ========================================================================== */

.hero-section {
  position: relative;
  padding-top: clamp(3rem, 2rem + 4vw, 5.5rem);
  background: linear-gradient(180deg, #fbf6ee 0%, #fbfaf7 100%);
  overflow-x: clip;
}

/* The illustration sits on the right of the hero and fades into the background. */
.hero-section__media {
  position: absolute;
  top: 60px;
  right: max(2rem, calc((100% - 1200px) / 2 - 60px));
  bottom: 64px;
  width: min(64%, 900px);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%);
  mask-image: linear-gradient(to right, transparent 0%, #000 34%);
}

.hero-section__image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: 100% 100%;
}

.hero-section__inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 400px;
}

.hero-section__content {
  position: relative;
  max-width: 560px;
}

.hero-section__eyebrow {
  margin-bottom: 1rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1d4470;
}

.hero-section__title {
  max-width: 10.5ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.25rem, 1rem + 3vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.hero-section__description {
  max-width: 30em;
  margin-bottom: 2rem;
  font-size: 1.1875rem;
  line-height: 1.55;
  color: #1f2a2a;
}

.hero-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero-section__highlight {
  position: absolute;
  top: 45px;
  left: 800px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
  margin: 0;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 16px rgba(21, 47, 76, 0.07), 0 18px 36px rgba(21, 47, 76, 0.06);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: #152f4c;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 3rem;
  margin-bottom: -44px;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(21, 47, 76, 0.08), 0 30px 60px rgba(21, 47, 76, 0.1);
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #5a6564;
}

.trust-strip__item + .trust-strip__item {
  border-left: 1px solid #e8e4dc;
}

.trust-strip__item strong {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #152f4c;
}

/* Short laptop screens: tighten the hero so it fits above the fold. */
@media (min-width: 961px) and (max-height: 900px) {
  .hero-section {
    padding-top: 2.5rem;
  }

  .hero-section__inner {
    min-height: 340px;
  }

  .hero-section__media {
    top: 40px;
  }

  .trust-strip {
    margin-top: 2rem;
  }
}

/* Phones: hide the coins illustration and the trust strip so the hero is just text and buttons. */
@media (max-width: 767px) {
  .hero-section {
    padding-bottom: 2.5rem;
  }

  .hero-section__media,
  .hero-section > .container:last-child {
    display: none;
  }
}

/* Mid-size screens: keep the illustration clear of the headline and buttons. */
@media (max-width: 1200px) and (min-width: 961px) {
  .hero-section__media {
    bottom: 96px;
    width: 50%;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 25%);
    mask-image: linear-gradient(to right, transparent 0%, #000 25%);
  }

  .hero-section__content {
    max-width: 460px;
  }

  /* Not enough room beside the image here; the image carries the message. */
  .hero-section__highlight {
    display: none;
  }
}

@media (max-width: 960px) {
  .hero-section {
    display: flex;
    flex-direction: column;
    padding-top: 2.5rem;
  }

  .hero-section__inner {
    min-height: 0;
  }

  .hero-section__media {
    position: relative;
    top: auto;
    order: 2;
    width: 100%;
    height: clamp(230px, 56vw, 370px);
    margin-top: 1.5rem;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
    mask-image: linear-gradient(to bottom, transparent 0%, #000 30%);
  }

  .hero-section__image {
    object-position: 50% 100%;
  }

  .hero-section > .container:last-child {
    order: 3;
  }

  .hero-section__highlight {
    display: none;
  }

  .trust-strip {
    grid-template-columns: repeat(2, 1fr);
    margin-top: calc(3rem * -1);
  }

  .trust-strip__item:nth-child(3) {
    border-left: 0;
  }

  .trust-strip__item:nth-child(n + 3) {
    border-top: 1px solid #e8e4dc;
  }
}

@media (max-width: 560px) {
  .hero-section__title {
    max-width: none;
  }

  .hero-section__actions .btn {
    flex: 1 1 100%;
  }

  .trust-strip__item {
    padding: 1rem;
    gap: 0.5rem;
  }

  .trust-strip__item .duo-icon {
    width: 30px;
    height: 30px;
  }
}


/* 7. Services
   ========================================================================== */

.services-section {
  padding-top: calc(44px + clamp(3.75rem, 2.5rem + 4vw, 6rem));
}

/* Phones: the trust strip is hidden, so no extra room is needed for its overlap. */
@media (max-width: 767px) {
  .services-section {
    padding-top: 0.5rem;
  }
}

.services-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid #e8e4dc;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 47, 76, 0.05), 0 4px 12px rgba(21, 47, 76, 0.04);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(21, 47, 76, 0.07), 0 18px 36px rgba(21, 47, 76, 0.06);
}

.service-card__icon {
  margin-bottom: 1.25rem;
}

.service-card__title {
  margin-bottom: 0.5rem;
  font-size: 1.1875rem;
}

.service-card__description {
  flex-grow: 1;
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: #5a6564;
}

.service-card__link,
.resource-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  color: #152f4c;
}

.service-card__link .icon,
.resource-card__link .icon {
  width: 16px;
  height: 16px;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.service-card__link:hover,
.resource-card__link:hover {
  color: #8a5a12;
}

.service-card__link:hover .icon,
.resource-card__link:hover .icon {
  transform: translateX(3px);
}

@media (max-width: 1024px) {
  .services-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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


/* 8. Investment options
   ========================================================================== */

.investments-section {
  background: #eef6f3;
}

.investments-section__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.investment-card {
  display: flex;
  flex: 0 0 calc((100% - 6 * 1rem) / 7);
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  padding: 1.5rem 0.75rem;
  border: 1px solid #e8e4dc;
  border-radius: 14px;
  background: #ffffff;
  text-align: center;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.investment-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(21, 47, 76, 0.07), 0 18px 36px rgba(21, 47, 76, 0.06);
}

.investment-card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
}

@media (max-width: 1100px) {
  .investment-card {
    flex-basis: calc((100% - 3 * 1rem) / 4);
  }
}

@media (max-width: 640px) {
  .investments-section__grid {
    gap: 0.75rem;
  }

  .investment-card {
    flex-basis: calc((100% - 2 * 0.75rem) / 3);
    padding: 1.25rem 0.5rem;
  }

  .investment-card__title {
    font-size: 0.8125rem;
  }
}


/* 9. Our approach (planning)
   ========================================================================== */

.planning-section {
  background: #fbf5ea;
}

.planning-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  align-items: center;
  gap: 3rem;
}

.planning-section__intro .section-header__description {
  margin-bottom: 1.5rem;
}

.planning-section__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.planning-step {
  position: relative;
  padding: 1.25rem;
  border: 1px solid #e8e4dc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 47, 76, 0.05), 0 4px 12px rgba(21, 47, 76, 0.04);
}


/* Chevron between steps. */
.planning-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(2rem / -2 - 5px);
  width: 9px;
  height: 9px;
  border-top: 2px solid #d3cec4;
  border-right: 2px solid #d3cec4;
  transform: translateY(-50%) rotate(45deg);
}

.planning-step__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

.planning-step__number {
  padding: 0.25rem 0.75rem;
  border-radius: 8px;
  background: #e8effd;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #2f6fe4;
}

.planning-step--orange .planning-step__number {
  background: #fdf0dd;
  color: #c46a0c;
}

.planning-step--green .planning-step__number {
  background: #e4f5ea;
  color: #15803d;
}

.planning-step--pink .planning-step__number {
  background: #fde7f0;
  color: #be185d;
}

.planning-step__title {
  margin-bottom: 0.5rem;
  font-size: 1.0625rem;
}

.planning-step__description {
  font-size: 0.875rem;
  line-height: 1.55;
  color: #5a6564;
}

@media (max-width: 1100px) {
  .planning-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .planning-section__steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
  }

  .planning-step::after {
    display: none;
  }
}

@media (max-width: 520px) {
  .planning-section__steps {
    grid-template-columns: 1fr;
  }

  .planning-section__intro .btn {
    width: 100%;
  }
}


/* 10. Client portal
   ========================================================================== */

.client-portal-section {
  position: relative;
  background: #ffffff;
  overflow-x: clip;
}

.client-portal-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: center;
  gap: 3rem;
}

.portal-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem 1.5rem;
  margin: 1.5rem 0 2rem;
}

.portal-features__item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #152f4c;
}

.client-portal-section__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Laptop + phone preview of the dashboard (assets/images/mockup.png). */
.client-portal-section__visual {
  position: relative;
  margin: 0;
}

.client-portal-section__image {
  display: block;
  width: 100%;
  height: auto;
}

.decor-plant {
  position: absolute;
  bottom: 0;
  pointer-events: none;
}

.decor-plant--portal {
  right: -30px;
  width: 150px;
}

@media (max-width: 1320px) {
  .decor-plant--portal {
    display: none;
  }
}

@media (max-width: 1024px) {
  .client-portal-section__inner {
    grid-template-columns: 1fr;
  }

  .client-portal-section__visual {
    max-width: 620px;
  }
}

@media (max-width: 560px) {
  .portal-features {
    grid-template-columns: 1fr;
  }

  .client-portal-section__actions .btn {
    width: 100%;
  }
}


/* 11. Fund performance
   ========================================================================== */

.funds-section__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 360px) auto;
  align-items: end;
  gap: 1rem 2.5rem;
  margin-bottom: 2rem;
}

.funds-section__header .section-header__title {
  margin-bottom: 0;
}

.funds-section__filter .select {
  min-width: 210px;
}

.funds-section__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: stretch;
  gap: 1.5rem;
}

.funds-table {
  overflow-x: auto;
  border: 1px solid #e8e4dc;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 47, 76, 0.05), 0 4px 12px rgba(21, 47, 76, 0.04);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  font-variant-numeric: tabular-nums;
}

.data-table th,
.data-table td {
  padding: 1rem;
  border-bottom: 1px solid #e8e4dc;
  text-align: left;
  white-space: nowrap;
}

.data-table thead th {
  background: #f5f7f6;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #5a6564;
}

.data-table thead small {
  font-size: inherit;
  font-weight: 500;
  text-transform: none;
}

.data-table tbody th {
  font-weight: 600;
  white-space: normal;
  color: #152f4c;
}

.data-table td {
  color: #5a6564;
}

.data-table tbody tr:last-child > * {
  border-bottom: 0;
}

.data-table tbody tr:hover {
  background: #fafbfa;
}

.data-table__num {
  text-align: right !important;
}

.data-table td.data-table__num {
  font-weight: 600;
  color: #15803d;
}

.data-table td.is-down {
  color: #c0392b;
}

.online-card {
  position: relative;
  overflow: hidden;
  padding: 2rem 1.5rem;
  border-radius: 18px;
  background: #fbf5ea;
}

.online-card__title {
  max-width: 11em;
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
}

.online-card__description {
  max-width: 14em;
  margin-bottom: 1.5rem;
  font-size: 0.9375rem;
  color: #5a6564;
}

.online-card__plant {
  position: absolute;
  right: -18px;
  bottom: -12px;
  width: 110px;
  pointer-events: none;
}

.funds-section__disclaimer {
  margin-top: 1.25rem;
  font-size: 0.8125rem;
  color: #5a6564;
}

@media (max-width: 1024px) {
  .funds-section__header {
    grid-template-columns: 1fr;
  }

  .funds-section__layout {
    grid-template-columns: 1fr;
  }

  .online-card__plant {
    width: 90px;
  }
}

/* Small screens: each fund becomes a card with its returns in a row. */
@media (max-width: 760px) {
  .funds-section__filter .select {
    width: 100%;
  }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .data-table,
  .data-table tbody {
    display: block;
  }

  .data-table tbody[hidden] {
    display: none;
  }

  .data-table tr {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.25rem;
    padding: 1rem;
    border-bottom: 1px solid #e8e4dc;
  }

  .data-table th,
  .data-table td {
    padding: 0;
    border: 0;
    white-space: normal;
  }

  .data-table tbody th,
  .data-table td[data-label="Category"] {
    grid-column: 1 / -1;
  }

  .data-table td[data-label="Category"] {
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
  }

  .data-table td.data-table__num {
    padding: 0.5rem 0.25rem;
    border-radius: 8px;
    background: #fbfaf7;
    font-size: 0.8125rem;
    text-align: center !important;
  }

  .data-table td.data-table__num::before {
    content: attr(data-label);
    display: block;
    font-size: 0.6875rem;
    font-weight: 500;
    color: #5a6564;
  }
}


/* 12. Insurance
   ========================================================================== */

.insurance-section {
  padding-top: 0;
}

.insurance-section__panel {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem;
  border: 1px solid #dbe6fb;
  border-radius: 18px;
  background: linear-gradient(90deg, #f3f7ff, #ffffff);
}

.insurance-section__content .section-header__eyebrow {
  margin-bottom: 0.25rem;
}

.insurance-section__title {
  margin-bottom: 0.5rem;
  font-size: 1.375rem;
}

.insurance-section__description {
  max-width: 44em;
  font-size: 0.9375rem;
  color: #5a6564;
}

@media (max-width: 760px) {
  .insurance-section__panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .insurance-section__panel .btn {
    width: 100%;
  }
}


/* 13. Resources, downloads, referral & FAQs
   ========================================================================== */

.resources-section {
  background: #ffffff;
}

.resources-section__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.resource-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.5rem 1.25rem;
  border: 1px solid #e8e4dc;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 47, 76, 0.05), 0 4px 12px rgba(21, 47, 76, 0.04);
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.resource-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(21, 47, 76, 0.07), 0 18px 36px rgba(21, 47, 76, 0.06);
}

.resource-card__icon {
  width: 40px;
  height: 40px;
}

.resource-card__body {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.resource-card__title {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.resource-card__description {
  flex-grow: 1;
  margin-bottom: 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #5a6564;
}

.resources-section__lower {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.downloads-card,
.refer-card,
.faq-list {
  border: 1px solid #e8e4dc;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(21, 47, 76, 0.05), 0 4px 12px rgba(21, 47, 76, 0.04);
}

.downloads-card {
  padding: 1.5rem;
}

.downloads-card__title {
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
}

.download-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
}

.download-item + .download-item {
  border-top: 1px solid #e8e4dc;
}

.download-item__icon {
  width: 32px;
  height: 32px;
}

.download-item__name {
  flex-grow: 1;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #152f4c;
}

.download-item__button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0 1rem;
  border: 1.5px solid #d3cec4;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  color: #152f4c;
  transition: background-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1), border-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1), color 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.download-item__button .icon {
  width: 15px;
  height: 15px;
}

.download-item__button:hover {
  border-color: #152f4c;
  background: #152f4c;
  color: #ffffff;
}

.refer-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 1.5rem 1.5rem 2rem;
  background: linear-gradient(120deg, #ffffff 40%, #f2f6fe);
}

.refer-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 1.1875rem;
}

.refer-card__description {
  margin-bottom: 1.25rem;
  font-size: 0.9375rem;
  color: #5a6564;
}

.refer-card__description strong {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 600;
  color: #152f4c;
}

.faq-list {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
  padding: 1.5rem 2rem;
}

.faq-list__title {
  font-size: 1.1875rem;
}

.faq-item + .faq-item {
  border-top: 1px solid #e8e4dc;
}

.faq-item__question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 0;
  list-style: none;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #152f4c;
  cursor: pointer;
}

.faq-item__question::-webkit-details-marker {
  display: none;
}

.faq-item__question .icon {
  width: 18px;
  height: 18px;
  color: #1d4470;
  transition: transform 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.faq-item[open] .faq-item__question .icon {
  transform: rotate(180deg);
}

.faq-item__answer {
  padding-bottom: 1rem;
  font-size: 0.9375rem;
  color: #5a6564;
}

@media (max-width: 1100px) {
  .resources-section__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .resources-section__lower,
  .faq-list {
    grid-template-columns: 1fr;
  }

  .faq-list {
    gap: 0.75rem;
    padding: 1.5rem;
  }
}

@media (max-width: 560px) {
  .resources-section__grid {
    grid-template-columns: 1fr;
  }

  .refer-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .refer-card__image {
    max-width: 260px;
    margin-inline: auto;
  }
}


/* 14. About
   ========================================================================== */

.about-section__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: 4rem;
}

.about-section__reasons {
  display: grid;
  gap: 1.5rem;
}

.reason {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.reason__title {
  margin-bottom: 0.25rem;
  font-size: 1.0625rem;
}

.reason__description {
  font-size: 0.9375rem;
  color: #5a6564;
}

.reason__description a {
  font-weight: 600;
  color: #152f4c;
  text-decoration-color: #e8a838;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .about-section__inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}


/* 15. Contact
   ========================================================================== */

.contact-section {
  position: relative;
  overflow: hidden;
  background:
    url("../assets/images/waves.svg") center bottom / 100% 70% no-repeat,
    radial-gradient(ellipse 50% 70% at 0% 0%, rgba(29, 68, 112, 0.6), transparent 70%),
    linear-gradient(135deg, #152f4c, #0d2035);
  color: #c6d6d4;
}

.contact-section .section-header__eyebrow {
  color: #e8a838;
}

.contact-section .section-header__title {
  color: #ffffff;
}

.contact-section .section-header__description {
  max-width: 28em;
  color: #c6d6d4;
}

.contact-section__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 4rem;
}

.contact-list {
  display: grid;
  gap: 1rem;
  margin-top: 2rem;
}

.contact-list__item {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 1.0625rem;
  font-weight: 500;
  color: #ffffff;
}

.contact-list__item[hidden] {
  display: none;
}

.contact-list__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #e8a838;
  color: #ffffff;
}

.contact-list__icon .icon {
  width: 20px;
  height: 20px;
}

.contact-list__item a {
  text-decoration: none;
  word-break: break-word;
}

.contact-list__item a:hover {
  text-decoration: underline;
  text-decoration-color: #e8a838;
  text-underline-offset: 4px;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: 2rem;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
  color: #1f2a2a;
}

.contact-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contact-form__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.contact-form__label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #152f4c;
}

.contact-form__label span {
  color: #c0392b;
}

.contact-form__input {
  width: 100%;
  min-height: 48px;
  padding: 0.75rem 1rem;
  border: 1.5px solid #d3cec4;
  border-radius: 10px;
  background-color: #ffffff;
  font-size: 0.9375rem;
  transition: border-color 200ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.contact-form__input:focus {
  outline: none;
  border-color: #152f4c;
  box-shadow: 0 0 0 4px rgba(232, 168, 56, 0.3);
}

.contact-form__input[aria-invalid="true"] {
  border-color: #c0392b;
}

.contact-form__textarea {
  min-height: 110px;
  resize: vertical;
}

.contact-form__error {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c0392b;
}

/* Phones: 16px text stops iOS Safari zooming the page when a field is focused. */
@media (max-width: 760px) {
  .contact-form__input {
    font-size: 1rem;
  }
}

.contact-form__status {
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.9375rem;
}

.contact-form__status--success { background: #e4f5ea; color: #166534; }
.contact-form__status--error   { background: #fde8e8; color: #c0392b; }
.contact-form__status--info    { background: #e8effd; color: #1e3a8a; }

.contact-form__status a {
  font-weight: 700;
}

.decor-plant--contact {
  right: 2%;
  z-index: 0;
  width: 140px;
}

@media (max-width: 1360px) {
  .decor-plant--contact {
    display: none;
  }
}

@media (max-width: 960px) {
  .contact-section__inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 560px) {
  .contact-form {
    padding: 1.5rem 1.25rem;
  }

  .contact-form__row {
    grid-template-columns: 1fr;
  }
}


/* 16. Footer
   ========================================================================== */

.site-footer {
  background: #0d2035;
  color: #c6d6d4;
  font-size: 0.9375rem;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1.1fr 1fr 1.5fr;
  gap: 2rem;
  padding-block: 4rem 2.5rem;
}

.site-footer__description {
  max-width: 24em;
  margin-top: 1.25rem;
}

.social-links {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.social-links__link {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  color: #ffffff;
}

.social-links__link:hover {
  border-color: #e8a838;
  color: #e8a838;
}

.site-footer__heading {
  margin-bottom: 1rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0;
  color: #ffffff;
}

.site-footer__links {
  display: grid;
  gap: 0.5rem;
}

.site-footer__links a {
  text-decoration: none;
  color: #c6d6d4;
  transition: color 200ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.site-footer__links a:hover {
  color: #ffffff;
}

.site-footer__contact li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  word-break: break-word;
}

.site-footer__contact li[hidden] {
  display: none;
}

.site-footer__contact .icon {
  width: 16px;
  height: 16px;
  color: #e8a838;
}

.site-footer__disclaimer {
  padding-block: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

.site-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
}

.site-footer__bottom-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding-block: 1rem;
}

.site-footer__bottom p {
  margin: 0;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 1.25rem;
}

.legal-links__button {
  min-height: 40px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 0.8125rem;
  color: #c6d6d4;
}

.legal-links__button:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 1100px) {
  .site-footer__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.25rem;
  }

  .site-footer__contact {
    grid-column: 1 / -1;
  }
}


/* 17. Dialogs
   ========================================================================== */

.dialog {
  width: min(620px, calc(100% - 2rem));
  max-height: calc(100vh - 2rem);
  padding: 2rem;
  border: 0;
  border-radius: 18px;
  background: #ffffff;
  color: #1f2a2a;
  box-shadow: 0 10px 24px rgba(21, 47, 76, 0.08), 0 30px 60px rgba(21, 47, 76, 0.1);
}

.dialog::backdrop {
  background: rgba(13, 32, 53, 0.6);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.dialog__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.dialog__title {
  font-size: 1.375rem;
}

.dialog__close {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: #e1efec;
  color: #152f4c;
}

.dialog__close .icon {
  width: 20px;
  height: 20px;
}

.dialog__body p {
  font-size: 0.9375rem;
  color: #5a6564;
}

.dialog__body strong {
  color: #152f4c;
}

@media (max-width: 560px) {
  .dialog {
    padding: 1.5rem 1.25rem;
  }
}
