/* ============================================================
   DESKON WASSCE SUPPORT — Landing Page Styles
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: 'Inter', sans-serif;
  color: #111827;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Remove gray tap flash on iOS/Android for all interactive elements */
a, button, .app-card, .social-icon, .nav-toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ================================================================
   HEADER
   ================================================================ */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.06);
  /* iOS notch / Dynamic Island safe area */
  padding-top: env(safe-area-inset-top);
  padding-left: env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

/* --- Logo --- */
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.logo-icon {
  position: relative;
  width: 46px;
  height: 46px;
  background: #0D1F6E;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.35rem;
}

.logo-icon--sm {
  width: 38px;
  height: 38px;
  font-size: 1.1rem;
}

.logo-star {
  position: absolute;
  top: -7px;
  right: -5px;
  color: #F5C518;
  font-size: 0.8rem;
  line-height: 1;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-main {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0D1F6E;
  letter-spacing: 0.04em;
}

.logo-main--sm {
  font-size: 1rem;
}

.logo-sub {
  font-size: 0.6rem;
  font-weight: 600;
  color: #1D56DB;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --- Hamburger --- */
.nav-toggle {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* 44×44 minimum touch target (Apple HIG / Material guidelines) */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 8px;
  transition: background 0.15s;
}

.nav-toggle:active {
  background: #f3f4f6;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2.5px;
  background: #111827;
  border-radius: 2px;
}

/* --- Dropdown --- */
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 1.5rem;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
  min-width: 210px;
  overflow: hidden;
  z-index: 200;
}

.nav-dropdown.open {
  display: block;
}

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1.25rem;
  color: #374151;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  border-bottom: 1px solid #f3f4f6;
  transition: background 0.15s;
}

.nav-dropdown a:last-child {
  border-bottom: none;
}

.nav-dropdown a:hover {
  background: #f9fafb;
}

.nav-dropdown a i {
  color: #9ca3af;
  width: 18px;
  text-align: center;
  font-size: 1rem;
}

/* ================================================================
   HERO
   ================================================================ */
.hero {
  background: linear-gradient(120deg, #EEF3FF 0%, #E6EEFE 100%);
  overflow: hidden;
}

.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 0;
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
}

.hero-text {
  flex: 1;
  padding-bottom: 4rem;
  max-width: 460px;
}

.hero-text h1 {
  font-size: clamp(2.2rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #111827;
  line-height: 1.17;
  margin-bottom: 1.1rem;
}

.hero-accent {
  color: #1D56DB;
}

.hero-sub {
  font-size: 0.97rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1.8rem;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: #1D56DB;
  color: #ffffff;
  padding: 0.875rem 1.85rem;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 1.1rem;
  transition: background 0.2s;
}

.hero-btn:hover {
  background: #1848c8;
}

.hero-btn:active {
  background: #1640b0;
  transform: scale(0.98);
}

.hero-trust {
  font-size: 0.85rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

/* Hero image */
.hero-image-wrap {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(100%, 560px);
  max-width: 560px;
}

.hero-img {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1652 / 952;
  height: auto;
  object-fit: contain;
  border-radius: 16px 16px 0 0;
  display: block;
  position: relative;
  z-index: 2;
  /* Fallback if image is missing */
  background: #c7d8f8;
}

.hero-caption {
  position: absolute;
  top: 2rem;
  right: 90px;
  font-family: 'Caveat', cursive;
  font-size: 1.5rem;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  text-align: center;
  z-index: 3;
  pointer-events: none;
}

/* Ghana flag stripe decoration */
.ghana-flag-deco {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 56px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.flag-red   { flex: 1; background: #CE1126; }
.flag-gold  { flex: 1; background: #FCD116; position: relative; display: flex; align-items: center; justify-content: center; }
.flag-green { flex: 1; background: #006B3F; }

.flag-star-symbol {
  color: #000000;
  font-size: 1.1rem;
  line-height: 1;
}

/* ================================================================
   APPS SECTION
   ================================================================ */
.apps-section {
  background: #ffffff;
  padding: 4.5rem 1.5rem;
}

.apps-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  text-align: center;
  font-size: 1.65rem;
  font-weight: 800;
  color: #111827;
  margin-bottom: 0.5rem;
}

.section-sub {
  text-align: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 2.5rem;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
}

.app-card {
  border: 1.5px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.5rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.app-card:hover {
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.09);
  transform: translateY(-4px);
}

.app-card:active {
  transform: scale(0.97);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
}

.app-icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  color: #ffffff;
  margin-bottom: 0.5rem;
  flex-shrink: 0;
}

.app-icon--green  { background: #22C55E; }
.app-icon--blue   { background: #3B82F6; }
.app-icon--purple { background: #7C3AED; }
.app-icon--orange { background: #F97316; }
.app-icon--slate  { background: #64748B; }

.app-name {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
}

.app-desc {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.65;
  flex-grow: 1;
}

.app-link {
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.35rem;
  display: inline-flex;
  align-items: center;
  /* Ensure tap target height meets 44px guideline */
  min-height: 44px;
  transition: opacity 0.15s;
}

.app-link:hover { opacity: 0.75; }

.app-link--green  { color: #16A34A; }
.app-link--blue   { color: #2563EB; }
.app-link--purple { color: #7C3AED; }
.app-link--orange { color: #EA580C; }
.app-link--gray   { color: #6b7280; }

/* ================================================================
   BANNER
   ================================================================ */
.banner {
  background: #0D1F6E;
  padding: 1.5rem 1.5rem;
}

.banner-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.banner-left {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.banner-icon {
  font-size: 2.1rem;
  color: #ffffff;
  flex-shrink: 0;
}

.banner-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.banner-sub {
  font-size: 0.85rem;
  color: #93c5fd;
}

/* Mini Ghana flag */
.mini-flag {
  width: 66px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.mf-red   { flex: 1; background: #CE1126; }
.mf-gold  { flex: 1; background: #FCD116; display: flex; align-items: center; justify-content: center; }
.mf-gold span { font-size: 0.85rem; color: #000000; line-height: 1; }
.mf-green { flex: 1; background: #006B3F; }

/* ================================================================
   FEATURES
   ================================================================ */
.features {
  background: #0C1D5C;
  padding: 3.5rem 1.5rem;
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.feature {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.feat-icon {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
}

.feature h4 {
  font-size: 0.97rem;
  font-weight: 700;
  color: #ffffff;
}

.feature p {
  font-size: 0.85rem;
  color: #93c5fd;
  line-height: 1.65;
}

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  background: #ffffff;
  border-top: 1px solid #e5e7eb;
  padding: 2.5rem 1.5rem;
  /* iOS home indicator safe area */
  padding-bottom: calc(2.5rem + env(safe-area-inset-bottom));
  padding-left: calc(1.5rem + env(safe-area-inset-left));
  padding-right: calc(1.5rem + env(safe-area-inset-right));
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 2rem;
  align-items: start;
}

.footer-brand .logo-wrap {
  margin-bottom: 0.8rem;
}

.footer-tagline {
  font-size: 0.85rem;
  color: #6b7280;
  line-height: 1.7;
}

.footer-links h5,
.footer-social h5 {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 0.8rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-links a {
  font-size: 0.85rem;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.footer-links a:hover {
  color: #1D56DB;
}

.social-icons {
  display: flex;
  gap: 0.55rem;
}

.social-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  text-decoration: none;
  transition: opacity 0.2s;
}

.social-icon:hover { opacity: 0.82; }
.social-icon--fb { background: #1877F2; }
.social-icon--wa { background: #25D366; }
.social-icon--yt { background: #FF0000; }

.footer-copy {
  text-align: right;
}

.footer-copy p {
  font-size: 0.8rem;
  color: #9ca3af;
  line-height: 1.75;
}

/* ================================================================
   RESPONSIVE
   ================================================================ */

/* ---- Tablet landscape ---- */
@media (max-width: 1024px) {
  .apps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---- Tablet portrait ---- */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    padding: 3rem 1.25rem 0;
    align-items: stretch;
  }

  .hero-text {
    padding-bottom: 2rem;
    max-width: 100%;
  }

  .hero-image-wrap {
    max-width: 100%;
    width: 100%;
  }

  .hero-caption {
    right: 60px;
  }

  .ghana-flag-deco {
    width: 40px;
  }

  .features-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-copy {
    text-align: left;
  }
}

/* ---- Large phone ---- */
@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    text-align: left;
  }
}

/* ---- Phone portrait ---- */
@media (max-width: 480px) {
  /* Nav dropdown: constrain within screen on narrow phones */
  .nav-dropdown {
    left: 1rem;
    right: 1rem;
    width: auto;
    min-width: unset;
    top: calc(100% + 6px);
    border-radius: 16px;
  }

  /* Hero */
  .hero-inner {
    padding: 2.25rem 1.25rem 0;
  }

  .hero-text h1 {
    font-size: 2.1rem;
  }

  /* Full-width CTA button — larger, easier to tap on phone */
  .hero-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .hero-image-wrap {
    width: 100%;
    max-width: 100%;
  }

  .hero-img {
    max-width: 100%;
  }

  /* Apps */
  .apps-section {
    padding: 3rem 1.25rem;
  }

  .section-title {
    font-size: 1.4rem;
  }

  .apps-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .app-card {
    padding: 1.2rem 1rem;
  }

  /* Banner: stack on phone */
  .banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  /* Features */
  .features {
    padding: 2.5rem 1.25rem;
  }

  .features-inner {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

/* ---- Small phone (360px and below) ---- */
@media (max-width: 360px) {
  .hero-text h1 {
    font-size: 1.85rem;
  }

  .apps-grid {
    grid-template-columns: 1fr;
  }

  .features-inner {
    grid-template-columns: 1fr;
  }
}

/* ================================================================
   INFO / LEGAL PAGES
   ================================================================ */
.info-page {
  background: linear-gradient(120deg, #EEF3FF 0%, #E6EEFE 100%);
  min-height: calc(100vh - 80px);
  padding: 2.5rem 1.5rem 3rem;
}

.info-page-inner {
  max-width: 860px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(17, 24, 39, 0.06);
  padding: 2rem;
}

.info-page-inner h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  color: #0d1f6e;
  margin-bottom: 0.85rem;
}

.info-page-inner h2 {
  font-size: 1.05rem;
  color: #111827;
  margin-top: 1.35rem;
  margin-bottom: 0.5rem;
}

.info-page-inner p,
.info-page-inner li {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.8;
}

.info-page-inner ul {
  padding-left: 1.1rem;
}

.info-lead {
  font-size: 1rem;
  color: #374151;
}

.info-meta {
  margin-top: 1.5rem;
  font-size: 0.84rem;
  color: #6b7280;
}

@media (max-width: 640px) {
  .info-page {
    padding: 1.5rem 1rem 2rem;
  }

  .info-page-inner {
    padding: 1.2rem;
    border-radius: 12px;
  }

  .info-page-inner p,
  .info-page-inner li {
    font-size: 0.93rem;
    line-height: 1.75;
  }
}

@media (max-width: 480px) {
  .info-page {
    padding: 1.25rem 0.85rem 1.75rem;
  }

  .info-page-inner {
    padding: 1rem;
  }

  .info-page-inner h2 {
    margin-top: 1.1rem;
  }
}
