/* Bootstrap 5.3 grid — prevent flex children from overflowing */
.row > [class*='col'] {
  min-width: 0;
}

/* Bootstrap 5.3 container-xl overrides */
.container-xl {
  padding-left: 24px;
  padding-right: 24px;
  max-width: 100%;
}

@media (min-width: 1200px) {
  .container-xl {
    max-width: 100%;
    padding-left: 3%;
    padding-right: 3%;
  }
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: #fff;
  border-bottom: 1px solid rgba(33, 152, 190, 0.3);
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 700;
}

.brand:hover {
  text-decoration: none;
}

@keyframes brand-text-flow {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.brand span {
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    var(--color-primary-1) 0%,
    var(--color-accent-light-blue) 25%,
    var(--color-primary-2) 50%,
    var(--color-accent-light-blue) 75%,
    var(--color-primary-1) 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  animation: brand-text-flow 10s linear infinite;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes brand-logo-enter {
  from {
    opacity: 0;
    transform: scale(0.75) rotate(-12deg);
  }
  to {
    opacity: 1;
    transform: scale(1) rotate(0);
  }
}

@keyframes brand-logo-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(33, 152, 190, 0.35);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(33, 152, 190, 0);
  }
}

.brand img {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  object-fit: contain;
  animation:
    brand-logo-enter 0.55s cubic-bezier(0.34, 1.4, 0.64, 1) both,
    brand-logo-pulse 2.5s ease-in-out 0.55s 2;
}

@media (prefers-reduced-motion: reduce) {
  .brand img {
    animation: none;
  }

  .brand span {
    animation: none;
    background: var(--gradient-primary);
    background-size: auto;
  }
}

.footer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 34px;
}

.site-nav a {
  color: var(--color-text-body);
  font-weight: 500;
  font-size: 17px;
  text-decoration: none;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--color-primary-1);
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 26px;
  cursor: pointer;
  color: var(--color-text-dark);
  line-height: 1;
  padding: 4px 8px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--gradient-primary);
  color: #fff;
  border: none;
  border-radius: 65px;
  padding: 12px 32px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: opacity 0.2s;
  text-decoration: none;
}

.btn-primary:hover {
  opacity: 0.9;
  text-decoration: none;
  color: #fff;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  background: #000;
  color: #fff;
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s;
  min-width: 160px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-store:hover {
  opacity: 0.88;
  text-decoration: none;
  color: #fff;
  transform: translateY(-1px);
}

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

.store-label small {
  font-size: 10px;
  font-weight: 400;
  opacity: 0.8;
}

.store-label strong {
  font-size: 15px;
  font-weight: 600;
}

/* ── Cards ── */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: 28px;
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-bg-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 0 32px;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  text-decoration: none;
}

.footer-brand:hover {
  text-decoration: none;
  color: #fff;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 18px;
}

.footer-tagline {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--color-accent-blue);
  text-decoration: none;
}

.footer-email a {
  color: var(--color-accent-blue);
  font-size: 13px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.footer-copy {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  max-width: 100%;
  padding: 0 8px;
}

/* ── Responsive (Bootstrap breakpoints) ── */
@media (max-width: 767.98px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid rgba(33, 152, 190, 0.3);
    padding: 8px 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    z-index: 99;
  }

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

  .site-nav a {
    width: 100%;
    padding: 15px 24px;
    font-size: 17px;
    border-bottom: 1px solid rgba(33, 152, 190, 0.1);
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a:hover {
    background: var(--color-bg-soft);
  }
}
