/* ============================================================
   Landing Page – Home / Choose Bio / Tech
   ============================================================ */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Layout ── */
.landing-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem 1.5rem;
  background: #F3EFE3;
  background-color: #F3EFE3;
  transition: background-color .4s ease;
}

/* Kill white backgrounds from Bootstrap/main.css within landing */
.landing-wrapper,
.landing-wrapper * {
  background-color: transparent;
}

.landing-wrapper {
  background-color: #F3EFE3;
}

.landing-wrapper .branch-card {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.landing-wrapper .card-bio {
  background: #F3EFE3 url("/assets/img/bio/bio%20card.png") center/cover no-repeat;
}

.landing-wrapper .card-tech {
  background: #F3EFE3 url("/assets/img/tech/tech%20card.png") center/cover no-repeat;
}

/* ── Logo ── */
.landing-header {
  text-align: center;
  margin-bottom: 10px;
}

.brand-logo {
  position: relative;
  display: inline-block;
}

.brand-logo img {
  width: 190px;
  max-width: 32vw;
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .12));
  transition: opacity 0.5s ease;
}

.logo-bio,
.logo-tech {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

.landing-wrapper:has(.card-bio:hover) .logo-default {
  opacity: 0;
}

.landing-wrapper:has(.card-bio:hover) .logo-bio {
  opacity: 1;
}

.landing-wrapper:has(.card-tech:hover) .logo-default {
  opacity: 0;
}

.landing-wrapper:has(.card-tech:hover) .logo-tech {
  opacity: 1;
}

.landing-tagline {
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 20px;
  color: #4F554F;
  letter-spacing: 0.02em;
  transition: color 0.5s ease;
}

/* ── Hero text ── */
.choose-section {
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding: 30px 0;
}

.choose-title {
  font-size: clamp(38px, 4vw, 58px);
  font-weight: 800;
  color: #123D2B;
  line-height: 1.1;
  transition: color 0.5s ease;
}

.choose-subtitle {
  margin-top: 6px;
  font-size: 20px;
  color: #555B56;
  transition: color 0.5s ease;
}

/* ── Cards section ── */
.cards-section {
  margin-top: 24px;
  width: 100%;
  display: flex;
  justify-content: center;
  padding: 0;
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  max-width: 1080px;
  width: 100%;
}

/* ── Card base ── */
.branch-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 520px;
  min-height: 340px;
  border-radius: 14px;
  background-color: #F3EFE3;
  box-shadow: 0 10px 28px rgba(20, 30, 25, .12);
  overflow: hidden;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
  width: 100%;
}

.branch-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(20, 30, 25, .16);
}

.landing-wrapper:has(.card-bio:hover) {
  background-color: #123D2B;
}

.landing-wrapper:has(.card-tech:hover) {
  background-color: #15586C;
}

.landing-wrapper:has(.card-bio:hover) .choose-title,
.landing-wrapper:has(.card-bio:hover) .landing-tagline {
  color: #D4B875;
}

.landing-wrapper:has(.card-bio:hover) .choose-subtitle {
  color: #F3EFE3;
}

.landing-wrapper:has(.card-tech:hover) .choose-title,
.landing-wrapper:has(.card-tech:hover) .landing-tagline {
  color: #29cc7d;
}

.landing-wrapper:has(.card-tech:hover) .choose-subtitle {
  color: #F3EFE3;
}

/* ── Top border accent ── */
.card-top-border {
  height: 5px;
  width: 100%;
}

.card-bio .card-top-border {
  background: #1F6545;
}

.card-tech .card-top-border {
  background: #15586C;
}

/* ── Card content ── */
.card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 2.2rem 2.2rem 2rem;
  position: relative;
  z-index: 1;
}

/* ── Badge ── */
.card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
}

.badge-bio {
  background: #1F6545;
  color: #F3EFE3;
}

.badge-tech {
  background: #15586C;
  color: #F3EFE3;
}

/* ── Title ── */
.card-title {
  font-size: clamp(1.5rem, 2.5vw, 1.9rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 12px;
}

.text-bio {
  color: #1F6545;
}

.text-tech {
  color: #15586C;
}

/* ── Description ── */
.card-desc {
  font-size: 20px;
  line-height: 1.6;
  color: #4a5550;
  flex: 1;
  margin-bottom: 0;
}

/* ── CTA button ── */
.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
  align-self: flex-start;
}

.cta-bio {
  background: #1F6545;
  color: #F3EFE3;
}

.cta-bio:hover {
  background: #123D2B;
  transform: translateY(-2px);
  color: #F3EFE3;
}

.cta-tech {
  background: #15586C;
  color: #F3EFE3;
}

.cta-tech:hover {
  background: #0E4354;
  transform: translateY(-2px);
  color: #F3EFE3;
}

.card-cta i {
  font-size: 1rem;
  transition: transform .2s ease;
}

.branch-card:hover .card-cta i {
  transform: translateX(3px);
}

/* ── Decorative pattern (pseudo-element) ── */
.branch-card::before {
  content: "";
  position: absolute;
  bottom: -40px;
  right: -40px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  opacity: 0.10;
  z-index: 0;
  transition: opacity .3s ease;
}

.card-bio::before {
  background: #1F6545;
  bottom: -40px;
  left: -40px;
  right: auto;
}

.card-tech::before {
  background: #15586C;
  bottom: -40px;
  right: -40px;
  left: auto;
}

.branch-card:hover::before {
  opacity: 0.16;
}

/* ── Footer ── */
.landing-footer {
  margin-top: auto;
  padding-top: 3rem;
  padding-bottom: 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #9aa09d;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .landing-wrapper {
    padding: 2.5rem 1.2rem 1.5rem;
  }

  .cards-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
  }

  .branch-card {
    max-width: 100%;
    min-height: auto;
  }
}
