/* FullBank — Logo-aligned palette, distinct layout */
:root {
  /* From logo */
  --navy: #06375f;
  --navy-dark: #042a47;
  --teal: #0f898a;
  --teal-dark: #0a6b6c;
  --light: #f5f9f8;
  --white: #ffffff;
  --text: #042a47;
  --muted: #466079;
  --border: #b8d4d6;
  --radius: 6px;
  --font-sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--light);
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

/* —— Header: dark navy bar —— */
.site-header {
  position: sticky;
  top: 0;
  background: var(--navy);
  z-index: 10;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 0 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--white);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
}

.brand:hover {
  color: var(--teal);
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 4px;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  transition: color 0.25s ease;
  position: relative;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: var(--teal);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  color: var(--teal);
}

.nav-links a:hover::after {
  width: 100%;
}

/* —— Hero: split screen (navy left, content right) —— */
.hero {
  display: grid;
  grid-template-columns: 52% 1fr;
  min-height: 72vh;
}

.hero .hero-panel {
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero .hero-panel:first-child {
  background: var(--navy);
  color: var(--white);
}

.hero .hero-panel:first-child .eyebrow {
  color: var(--teal);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.hero .hero-panel:first-child h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 1rem;
}

.hero .hero-panel:first-child .hero-ctas {
  margin-top: 1.5rem;
}

.hero .hero-panel:first-child .btn-primary {
  background: var(--teal);
  border-color: var(--teal);
}

.hero .hero-panel:first-child .btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.hero .hero-panel:first-child .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.5);
}

.hero .hero-panel:first-child .btn-secondary:hover {
  border-color: var(--white);
  color: var(--white);
}

.hero .hero-panel:last-child {
  background: var(--light);
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.7;
}

.hero .hero-panel:last-child .hero-copy {
  max-width: 24em;
}

.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1rem;
}

.hero-logo {
  width: min(100%, 200px);
  height: auto;
  display: block;
  animation: fadeInScale 0.8s ease both;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.hero-panel {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.hero-panel.in-view {
  opacity: 1;
  transform: translateY(0);
}

.eyebrow {
  margin: 0 0 0.5rem;
}

h1 {
  margin: 0;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.2rem;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-secondary {
  background: var(--white);
  color: var(--navy);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--teal);
  color: var(--teal);
}

/* —— Sections: stripe layout (teal accent bar + content) —— */
.section {
  padding: 3.5rem 0;
  position: relative;
}

.section::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 5px;
  background: var(--teal);
}

.section .container {
  margin-left: 2rem;
  margin-right: auto;
  max-width: min(1100px, 92%);
  padding-right: 1rem;
}

.section-alt {
  background: var(--white);
}

.section-alt::before {
  background: var(--navy);
}

.section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.2vw, 2rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.section-copy {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.section-header {
  margin-bottom: 0.5rem;
}

.section.in-view .section-header h2,
.section.in-view .section-header .section-copy {
  animation: fadeInUp 0.6s ease both;
}

.section.in-view .section-header .section-copy {
  animation-delay: 0.08s;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* —— Product families: grid of cards with reveal animation —— */
.cards {
  margin-top: 1rem;
}

.cards-product {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.card-reveal {
  opacity: 0;
  transform: translateY(24px);
}

.card-reveal.in-view {
  animation: cardReveal 0.55s ease forwards;
}

@keyframes cardReveal {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-with-image,
.card-reveal {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  display: flex;
  flex-direction: column;
}

.card-reveal:hover {
  border-color: var(--teal);
  box-shadow: 0 10px 28px rgba(6, 55, 95, 0.12);
  transform: translateY(-4px);
}

.card-body {
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

.card-expandable .card-short {
  margin-bottom: 1rem;
  flex: 1;
}

.card-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  margin: 0;
  border: 1px solid var(--teal);
  border-radius: var(--radius);
  background: transparent;
  color: var(--teal);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  align-self: flex-start;
}

.card-toggle:hover {
  background: var(--teal);
  color: var(--white);
  transform: translateY(-1px);
}

.card-toggle .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.card-expandable.is-open .card-toggle .toggle-icon {
  transform: rotate(180deg);
}

.card-detail {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.25s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.detail-heading {
  font-weight: 600;
  color: var(--navy);
  font-size: 0.95rem;
  margin: 0.85rem 0 0.4rem !important;
}

.detail-heading:first-of-type {
  margin-top: 0 !important;
}

.detail-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

.detail-list li {
  margin-bottom: 0.4rem;
}

.detail-modules {
  margin: 0.4rem 0 0 !important;
  font-size: 0.95rem;
  color: var(--teal);
  font-weight: 600;
}

/* —— Solutions —— */
.solutions-wrap {
  display: block;
}

.solution-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.75rem;
}

.solution-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-left: 4px solid var(--navy);
  border-top: none;
  padding: 1.35rem 1.5rem;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  opacity: 0;
  transform: translateX(-12px);
}

.solution-card.in-view {
  animation: solutionReveal 0.5s ease forwards;
}

.solution-card.in-view:nth-child(1) { animation-delay: 0s; }
.solution-card.in-view:nth-child(2) { animation-delay: 0.07s; }
.solution-card.in-view:nth-child(3) { animation-delay: 0.14s; }
.solution-card.in-view:nth-child(4) { animation-delay: 0.21s; }

@keyframes solutionReveal {
  from {
    opacity: 0;
    transform: translateX(-12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.section-alt .solution-card {
  background: var(--white);
}

.solution-card:first-child {
  border-top: 1px solid var(--border);
  border-radius: var(--radius) var(--radius) 0 0;
}

.solution-card:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

.solution-card:hover {
  border-left-color: var(--teal);
  background: var(--white);
  transform: translateX(4px);
  box-shadow: 0 6px 20px rgba(6, 55, 95, 0.08);
}

.section-alt .solution-card:hover {
  background: var(--light);
}

.solution-head h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.solution-head > p {
  margin: 0 0 0.55rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
}

.solution-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  margin: 0;
  border: 1px solid var(--navy);
  border-radius: var(--radius);
  background: transparent;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.solution-toggle:hover {
  background: var(--navy);
  color: var(--white);
}

.solution-toggle .toggle-icon {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.solution-card.is-open .solution-toggle .toggle-icon {
  transform: rotate(180deg);
}

.solution-detail {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.25s ease;
}

.solution-detail .detail-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 1rem;
}

/* —— Modules: underlined tabs + compact list —— */
.module-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1rem;
  border-bottom: 2px solid var(--border);
}

.tab-btn {
  padding: 0.7rem 1.2rem;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  background: transparent;
  color: var(--muted);
  font-weight: 500;
  font-size: 1rem;
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.tab-btn:hover {
  color: var(--teal);
}

.tab-btn.active {
  color: var(--navy);
  border-bottom-color: var(--teal);
  font-weight: 600;
}

.module-list {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  min-height: 80px;
}

.module-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.module-item:hover {
  border-color: var(--teal);
  background: var(--light);
}

.module-item strong {
  color: var(--navy);
  font-size: 1rem;
}

.module-item span {
  color: var(--muted);
  font-size: 0.98rem;
}

.module-expandable {
  flex-direction: column;
  align-items: stretch;
}

.module-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.module-toggle {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid var(--teal);
  border-radius: 4px;
  background: transparent;
  color: var(--teal);
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.module-toggle:hover {
  background: var(--teal);
  color: var(--white);
}

.module-detail {
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px dashed var(--border);
  animation: fadeIn 0.2s ease;
}

.module-detail p {
  margin: 0.35rem 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.55;
}

.module-detail .label {
  color: var(--navy);
  font-weight: 600;
  margin-right: 0.25rem;
}

/* —— Enroll: form in navy-bordered panel —— */
.enroll-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 2rem;
  align-items: start;
}

.enroll-grid h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 1.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.check-list {
  margin: 0.6rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.check-list li {
  margin-bottom: 0.4rem;
}

.enroll-form {
  background: var(--white);
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  display: grid;
  gap: 1rem;
}

.enroll-form label {
  display: grid;
  gap: 0.4rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 1rem;
}

.enroll-form input,
.enroll-form select,
.enroll-form textarea {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1.05rem;
  color: var(--text);
  background: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.enroll-form input:focus,
.enroll-form select:focus,
.enroll-form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 2px rgba(15, 137, 138, 0.2);
}

.enroll-form input::placeholder,
.enroll-form textarea::placeholder {
  color: var(--muted);
}

.btn-full {
  width: 100%;
  margin-top: 0.25rem;
  background: var(--teal);
  border-color: var(--teal);
  color: var(--white);
}

.btn-full:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-full:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-status {
  margin: 0;
  min-height: 1.25rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--teal);
}

.form-status:not(:empty) {
  padding-top: 0.25rem;
}

/* —— Footer: navy —— */
.site-footer {
  background: var(--navy);
  color: var(--light);
}

.footer-row {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0 1rem;
}

.footer-row p {
  margin: 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
}

.footer-row p:first-child {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--white);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero .hero-panel:first-child {
    padding: 2.5rem 1.5rem;
  }

  .hero .hero-panel:last-child {
    padding: 2rem 1.5rem;
    order: -1;
  }

  .hero .hero-panel:last-child .hero-copy {
    max-width: none;
  }

  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .section::before {
    width: 4px;
  }

  .section .container {
    margin-left: 1.25rem;
  }

  .cards-product {
    grid-template-columns: 1fr;
  }

  .enroll-grid,
  .module-list {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero-ctas {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .footer-row {
    flex-direction: column;
    text-align: center;
    padding: 1.25rem;
  }
}
