:root {
  --bahamas-blue: #0072c6;
  --bahamas-teal: #19a99f;
  --bahamas-navy: #02235d;
  --bahamas-gold: #f0bf41;
  --bahamas-ink: #333333;
  --bahamas-muted: #666666;
  --bahamas-border: rgba(0, 114, 198, 0.85);
  --bahamas-panel-shadow: 0 18px 40px -30px rgba(2, 35, 93, 0.6);
  --bahamas-soft-shadow: 0 20px 45px -28px rgba(0, 0, 0, 0.28);
  --bahamas-radius: 18px;
  --container-width: 1240px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "Roboto", Arial, sans-serif;
  color: var(--bahamas-ink);
  background:
    linear-gradient(180deg, rgba(0, 114, 198, 0.03), transparent 180px),
    #ffffff;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.74;
}

button,
input,
textarea {
  font: inherit;
}

svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
  flex: none;
}

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

.container {
  width: min(var(--container-width), calc(100% - 40px));
  margin: 0 auto;
}

.utility-bar {
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #f5f7fa;
}

.utility-inner,
.masthead-inner,
.site-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-inner {
  min-height: 40px;
  gap: 18px;
}

.utility-copy,
.utility-links a {
  margin: 0;
  font-size: 0.82rem;
  color: var(--bahamas-muted);
}

.utility-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.utility-links a:hover {
  color: var(--bahamas-blue);
}

.masthead {
  background: #ffffff;
}

.masthead-inner {
  gap: 24px;
  min-height: 92px;
  padding: 18px 0 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  width: auto;
  height: 64px;
}

.search-shell {
  display: flex;
  align-items: center;
  width: min(420px, 100%);
  border: 1px solid rgba(0, 0, 0, 0.14);
  border-radius: 999px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 22px -20px rgba(0, 0, 0, 0.5);
}

.search-shell input {
  width: 100%;
  padding: 0.9rem 1.1rem;
  border: 0;
  background: transparent;
  outline: none;
  color: var(--bahamas-ink);
}

.search-shell input::placeholder {
  color: #8b8b8b;
}

.search-shell button {
  border: 0;
  padding: 0.9rem 1.2rem;
  background: var(--bahamas-blue);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

.site-nav {
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.site-nav-inner {
  min-height: 52px;
  justify-content: flex-start;
  gap: 10px;
}

.site-nav-link {
  position: relative;
  padding: 0.9rem 1rem;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--bahamas-muted);
}

.site-nav-link:hover,
.site-nav-link.is-active {
  color: var(--bahamas-blue);
}

.site-nav-link.is-active::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 999px;
  background: var(--bahamas-blue);
}

.hero-section {
  padding: 20px 0 0;
}

.hero-frame {
  position: relative;
  overflow: hidden;
  border-radius: var(--bahamas-radius);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(255, 255, 255, 0.7) 100%),
    url("../images/portal-hero.jpg") center center / cover no-repeat;
  box-shadow: var(--bahamas-soft-shadow);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: auto -6% -12% auto;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 169, 159, 0.18), transparent 68%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(250px, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 248px;
  padding: 26px 20px;
}

.hero-home {
  display: flex;
  align-items: flex-start;
}

.home-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.05rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 14px 24px -20px rgba(0, 0, 0, 0.5);
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.9rem;
  color: var(--bahamas-muted);
}

.home-chip svg {
  font-size: 0.95rem;
}

.hero-copy {
  text-align: center;
  align-self: center;
}

.hero-copy h1,
.support-hero-copy h1 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 600;
  color: var(--bahamas-blue);
  letter-spacing: 0.01em;
}

.hero-copy p {
  margin: 0.85rem 0 0;
  font-size: clamp(1.1rem, 1.8vw, 1.5rem);
  font-weight: 300;
  color: #4b4b4b;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  justify-content: center;
}

.hero-button,
.support-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1.2rem;
  border-radius: 12px;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.hero-button:hover,
.support-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 28px -24px rgba(0, 0, 0, 0.9);
  filter: brightness(1.02);
}

.hero-button-secondary {
  min-width: 188px;
  background: rgba(63, 72, 93, 0.94);
  color: #ffffff;
}

.hero-button-accent,
.support-submit {
  min-width: 220px;
  background: var(--bahamas-teal);
  color: #ffffff;
}

.announcement-strip {
  padding: 22px 0 0;
}

.announcement-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0.95rem 1.2rem;
  border: 1px solid rgba(240, 191, 65, 0.7);
  border-left-width: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 250, 236, 0.96), rgba(255, 245, 221, 0.92));
  box-shadow: 0 14px 28px -24px rgba(95, 78, 18, 0.5);
}

.announcement-label {
  flex: none;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #936600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.announcement-card p {
  margin: 0;
  color: #4f4630;
}

.portal-content,
.support-content {
  padding: 22px 0 30px;
}

.content-grid,
.support-grid {
  display: grid;
  gap: 18px;
}

.content-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.panel-card,
.support-card {
  min-height: 470px;
  padding: 22px 20px 18px;
  border: 1px solid var(--bahamas-border);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--bahamas-panel-shadow);
}

.panel-card-header,
.support-card .panel-card-header {
  margin-bottom: 20px;
}

.panel-card-header h2 {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.26rem;
  font-weight: 600;
  color: #111111;
}

.panel-card-header p {
  margin: 0.45rem 0 0;
  color: var(--bahamas-muted);
  font-size: 0.95rem;
}

.link-list {
  display: grid;
  gap: 8px;
}

.link-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 10px;
  border-radius: 12px;
  transition:
    background-color 180ms ease,
    transform 180ms ease;
}

.link-item:hover {
  background: rgba(0, 114, 198, 0.06);
  transform: translateX(2px);
}

.link-item-static {
  cursor: default;
}

.link-item-static:hover {
  background: transparent;
  transform: none;
}

.link-icon,
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.link-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: #ffffff;
  box-shadow: 0 12px 24px -22px rgba(0, 0, 0, 0.7);
}

.link-icon-teal {
  background: linear-gradient(180deg, #27b8af, #0d8e86);
}

.link-icon-blue {
  background: linear-gradient(180deg, #1e88d9, #0468b3);
}

.link-icon svg,
.footer-icon svg {
  width: 20px;
  height: 20px;
}

.link-icon svg path,
.footer-icon svg path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.link-copy {
  display: grid;
  gap: 0.26rem;
}

.link-copy strong {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.35;
}

.link-copy small,
.link-copy span {
  color: var(--bahamas-muted);
  line-height: 1.35;
}

.knowledge-card {
  position: relative;
  min-height: 470px;
  border-radius: 16px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(2, 35, 93, 0.84), rgba(0, 114, 198, 0.72)),
    url("../images/portal-hero.jpg") center center / cover no-repeat;
  box-shadow: var(--bahamas-soft-shadow);
}

.knowledge-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    radial-gradient(circle at top right, rgba(240, 191, 65, 0.26), transparent 42%);
}

.knowledge-card-inner {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 100%;
  padding: 26px 24px;
}

.knowledge-kicker,
.knowledge-card h2,
.knowledge-card p,
.knowledge-card h3,
.knowledge-card li {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  color: #ffffff;
}

.knowledge-kicker {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.knowledge-card h2 {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.12;
}

.knowledge-summary {
  max-width: 30ch;
  font-family: "Roboto", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.88);
}

.knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.knowledge-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.78rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease;
}

.knowledge-action:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.44);
}

.knowledge-action-primary {
  background: var(--bahamas-gold);
  border-color: rgba(240, 191, 65, 0.9);
  color: #182033;
}

.knowledge-action-primary:hover {
  background: #f4c857;
}

.knowledge-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: auto;
}

.knowledge-column {
  padding: 14px 14px 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.knowledge-column h3 {
  margin-bottom: 0.7rem;
  font-size: 0.98rem;
  font-weight: 700;
}

.knowledge-column ul {
  margin: 0;
  padding-left: 1.1rem;
}

.knowledge-column li {
  font-family: "Roboto", Arial, sans-serif;
  font-size: 0.94rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.82);
}

.site-footer {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0)),
    var(--bahamas-navy);
  color: #ffffff;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 24px 0;
}

.footer-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  transition: background-color 180ms ease;
}

.footer-link:hover {
  background: rgba(255, 255, 255, 0.12);
}

.footer-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--bahamas-gold);
  background: rgba(255, 255, 255, 0.06);
}

.footer-link span:last-child {
  font-family: "Montserrat", Arial, sans-serif;
  font-weight: 600;
  line-height: 1.3;
}

.assistant-shell {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: min(500px, calc(100vw - 24px));
}

.assistant-panel {
  width: 100%;
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}

.assistant-shell.is-open .assistant-panel {
  max-height: 340px;
}

.assistant-card {
  margin-bottom: 6px;
  padding: 18px;
  border-radius: 16px 16px 0 0;
  background: #ffffff;
  box-shadow: 6px 12px 35px -16px rgba(0, 0, 0, 0.88);
}

.assistant-kicker,
.section-eyebrow {
  margin: 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--bahamas-blue);
}

.assistant-card h2 {
  margin: 0.5rem 0 0;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1.2rem;
}

.assistant-card p:not(.assistant-kicker) {
  margin: 0.6rem 0 0;
  color: var(--bahamas-muted);
  line-height: 1.55;
}

.assistant-demo {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(2, 35, 93, 0.04), rgba(25, 169, 159, 0.1));
}

.assistant-bubble {
  max-width: 86%;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  line-height: 1.45;
}

.assistant-bubble-incoming {
  background: #ffffff;
  color: var(--bahamas-ink);
  box-shadow: 0 16px 28px -24px rgba(0, 0, 0, 0.4);
}

.assistant-bubble-outgoing {
  justify-self: end;
  background: var(--bahamas-navy);
  color: #ffffff;
}

.assistant-placeholder-note {
  font-size: 0.82rem;
  color: var(--bahamas-muted);
}

.assistant-toggle {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px 12px 0 0;
  background: var(--bahamas-navy);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 6px 12px 35px -16px rgba(0, 0, 0, 0.88);
}

.assistant-arrow {
  font-size: 0.85rem;
  transition: transform 180ms ease;
}

.assistant-shell.is-open .assistant-arrow {
  transform: rotate(180deg);
}

.assistant-label {
  flex: 1;
  text-align: center;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.assistant-toggle img {
  width: auto;
  height: 40px;
}

.support-main {
  padding-bottom: 26px;
}

.support-hero {
  padding: 22px 0 0;
}

.support-hero-inner {
  padding: 38px 24px;
  border-radius: var(--bahamas-radius);
  background:
    linear-gradient(100deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78)),
    url("../images/portal-hero.jpg") center center / cover no-repeat;
  box-shadow: var(--bahamas-soft-shadow);
}

.support-hero-copy {
  max-width: 760px;
}

.support-hero-copy p:last-child {
  margin: 1rem 0 0;
  max-width: 58ch;
  color: var(--bahamas-muted);
  line-height: 1.65;
}

.support-grid {
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.9fr);
}

.support-card {
  min-height: auto;
}

.support-card-form {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 252, 0.92)),
    #ffffff;
}

.support-form {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1d1d1d;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(0, 114, 198, 0.18);
  border-radius: 12px;
  background: #ffffff;
  color: var(--bahamas-ink);
  outline: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: rgba(0, 114, 198, 0.6);
  box-shadow: 0 0 0 4px rgba(0, 114, 198, 0.1);
}

.support-submit {
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(0, 114, 198, 0.05);
}

.info-item strong {
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.info-item span,
.embed-note p:last-child {
  color: var(--bahamas-muted);
  line-height: 1.5;
}

.embed-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(240, 191, 65, 0.12), rgba(25, 169, 159, 0.08));
}

@media (max-width: 1080px) {
  .content-grid,
  .support-grid {
    grid-template-columns: 1fr;
  }

  .panel-card,
  .knowledge-card {
    min-height: auto;
  }

  .knowledge-card {
    min-height: 320px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .masthead-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-shell {
    width: 100%;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    min-height: unset;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    align-items: stretch;
  }

  .announcement-card {
    flex-direction: column;
    align-items: flex-start;
  }

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

@media (max-width: 640px) {
  .container {
    width: min(var(--container-width), calc(100% - 24px));
  }

  .utility-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 0;
  }

  .utility-links {
    gap: 12px;
  }

  .site-nav-inner {
    flex-wrap: wrap;
  }

  .hero-frame,
  .support-hero-inner,
  .panel-card,
  .support-card,
  .knowledge-card,
  .announcement-card {
    border-radius: 14px;
  }

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

  .assistant-shell {
    right: 12px;
    width: calc(100vw - 24px);
  }

  .assistant-label {
    font-size: 0.92rem;
  }
}
