/* ============================================
   JaoTech Gworld | style.css
   Master Stylesheet
   Innovation for a Digital Africa
   ============================================ */


/* ============ 1. CSS VARIABLES (Brand Colors) ============ */
:root {
  /* Primary Brand Colors */
  --navy:        #0D1B3E;   /* Deep navy blue - main brand color */
  --blue:        #1A4B9C;   /* Medium blue - buttons, accents */
  --blue-light:  #2563C8;   /* Lighter blue - hover states */
  --blue-pale:   #E8F0FB;   /* Very light blue - backgrounds */

  /* Neutral Colors */
  --ash:         #B0BAC9;   /* Ash grey - secondary text */
  --ash-light:   #E8ECF2;   /* Light ash - section backgrounds */
  --white:       #FFFFFF;   /* Pure white */
  --black:       #080F1E;   /* Near black - footer */

  /* Text Colors */
  --text-dark:   #1C2A45;   /* Main body text */
  --text-mid:    #3D4F6B;   /* Secondary text */
  --text-light:  #5A6A85;   /* Muted text, captions */

  /* Border & Shadow */
  --border:      #D2DAE8;   /* Default border color */
  --shadow-sm:   0 2px 12px rgba(13, 27, 62, 0.08);
  --shadow-md:   0 8px 32px rgba(13, 27, 62, 0.13);
  --shadow-lg:   0 16px 48px rgba(13, 27, 62, 0.18);

  /* Gradients */
  --grad-main:   linear-gradient(135deg, #0D1B3E 0%, #1A4B9C 60%, #2563C8 100%);
  --grad-light:  linear-gradient(135deg, #E8F0FB 0%, #FFFFFF 100%);

  /* Typography */
  --font-heading: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;

  /* Layout */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --max-width:   1200px;
  --section-pad: 90px 5%;
}


/* ============ 2. RESET & BASE ============ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--white);
  color: var(--text-dark);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Lists */
ul, ol {
  list-style: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--navy);
}


/* ============ 3. REUSABLE LAYOUT ============ */

/* Section container */
.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
}

/* General section padding */
section {
  padding: var(--section-pad);
}

/* Section label (small uppercase text above headings) */
.section-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-pale);
  border: 1px solid #C5D8F5;
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 14px;
}

/* Section heading */
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.18;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

/* Section subtext */
.section-sub {
  font-size: 1rem;
  color: var(--text-light);
  max-width: 580px;
  line-height: 1.75;
  margin-bottom: 50px;
}


/* ============ 4. BUTTONS ============ */

/* Primary button (white background) */
.btn-primary {
  display: inline-block;
  background: var(--white);
  color: var(--navy);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: 2px solid var(--white);
  transition: background 0.25s ease, color 0.25s ease,
              transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--ash-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Blue filled button */
.btn-blue {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 13px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  border: 2px solid var(--blue);
  transition: background 0.25s ease, transform 0.2s ease,
              box-shadow 0.2s ease;
  cursor: pointer;
}

.btn-blue:hover {
  background: var(--navy);
  border-color: var(--navy);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Outline button (transparent background) */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: var(--white);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid rgba(255, 255, 255, 0.45);
  transition: background 0.25s ease, border-color 0.25s ease;
  cursor: pointer;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--white);
}

/* Dark outline button (used on white sections) */
.btn-outline-dark {
  display: inline-block;
  background: transparent;
  color: var(--navy);
  padding: 12px 26px;
  border-radius: var(--radius-sm);
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 600;
  border: 2px solid var(--border);
  transition: border-color 0.25s ease, background 0.25s ease;
  cursor: pointer;
}

.btn-outline-dark:hover {
  border-color: var(--blue);
  background: var(--blue-pale);
  color: var(--blue);
}


/* ============ 5. TOPBAR ============ */
.topbar {
  background: var(--navy);
  color: var(--ash);
  text-align: center;
  padding: 9px 5%;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.topbar a {
  color: #7BC8F8;
  font-weight: 600;
  margin-left: 8px;
  transition: color 0.2s;
}

.topbar a:hover {
  color: var(--white);
}


/* ============ 6. HERO SECTION ============ */
.hero {
  background: var(--grad-main);
  color: var(--white);
  padding: 100px 5% 90px;
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  display: flex;
  align-items: center;
}

/* Decorative background circles */
.hero::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -120px;
  left: -80px;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(74, 144, 217, 0.1);
  pointer-events: none;
}

.hero-content {
  max-width: var(--max-width);
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 1;
  max-width: 680px;
}

/* Hero badge pill */
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 50px;
  padding: 7px 18px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

/* Hero heading */
.hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 800;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.025em;
}

/* Highlighted word in hero heading */
.hero h1 span {
  color: #7BC8F8;
}

/* Hero subtext */
.hero-sub {
  font-size: 1.08rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 520px;
  line-height: 1.75;
  margin-bottom: 38px;
}

/* Hero button group */
.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}


/* ============ 7. TRUST STRIP ============ */
.trust-strip {
  background: var(--ash-light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 30px 5%;
}

.trust-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 13px;
}

.trust-icon {
  width: 46px;
  height: 46px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.trust-item strong {
  font-family: var(--font-heading);
  font-size: 0.92rem;
  color: var(--navy);
  display: block;
}

.trust-item span {
  font-size: 0.78rem;
  color: var(--text-light);
}


/* ============ 8. STATS SECTION ============ */
.stats-section {
  background: var(--navy);
  padding: var(--section-pad);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  max-width: var(--max-width);
  margin: 0 auto;
}

.stat-item {
  background: var(--navy);
  padding: 52px 36px;
  text-align: center;
  transition: background 0.3s ease;
}

.stat-item:hover {
  background: var(--blue);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.4rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 10px;
}

.stat-number span {
  color: #7BC8F8;
  font-size: 2rem;
}

.stat-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.78rem;
}


/* ============ 9. SERVICES SECTION ============ */
#services {
  background: var(--white);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.service-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease,
              box-shadow 0.3s ease,
              transform 0.3s ease;
  cursor: default;
}

/* Animated left border on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--blue);
  border-radius: 0 4px 4px 0;
  transition: height 0.35s ease;
}

.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-md);
  transform: translateY(-5px);
}

.service-card:hover::before {
  height: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--ash-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.55rem;
  margin-bottom: 18px;
  transition: background 0.3s ease;
}

.service-card:hover .service-icon {
  background: var(--blue-pale);
}

.service-card h3 {
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.service-card p {
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.7;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 16px;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap 0.2s ease;
}

.service-link:hover {
  gap: 10px;
}


/* ============ 10. PROCESS SECTION ============ */
.process-section {
  background: var(--ash-light);
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 36px;
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
}

/* Horizontal line connecting steps */
.process-grid::before {
  content: '';
  position: absolute;
  top: 36px;
  left: 17%;
  width: 66%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 74px;
  height: 74px;
  background: var(--white);
  border: 2.5px solid var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue);
  margin: 0 auto 22px;
  transition: background 0.3s ease, color 0.3s ease;
}

.process-step:hover .process-num {
  background: var(--blue);
  color: var(--white);
}

.process-step h3 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 0.86rem;
  color: var(--text-light);
  line-height: 1.7;
}


/* ============ 11. TESTIMONIALS SECTION ============ */
#testimonials {
  background: var(--white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.testimonial-card {
  background: var(--ash-light);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 30px 26px;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.stars {
  color: #F5A623;
  font-size: 0.95rem;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.testimonial-card blockquote {
  font-size: 0.9rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 22px;
  border-left: 3px solid var(--blue);
  padding-left: 14px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 13px;
}

.author-avatar {
  width: 44px;
  height: 44px;
  background: var(--blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}

.author-info strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}

.author-info span {
  font-size: 0.76rem;
  color: var(--text-light);
}


/* ============ 12. FAQ SECTION ============ */
.faq-section {
  background: var(--white);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.faq-item {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open {
  border-color: var(--blue);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--navy);
  text-align: left;
  gap: 14px;
  transition: background 0.2s ease;
}

.faq-question:hover {
  background: var(--ash-light);
}

.faq-icon {
  width: 28px;
  height: 28px;
  background: var(--ash-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--blue);
  flex-shrink: 0;
  transition: transform 0.35s ease,
              background 0.3s ease,
              color 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--blue);
  color: var(--white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.88rem;
  color: var(--text-light);
  line-height: 1.75;
  padding: 0 22px;
}

.faq-item.open .faq-answer {
  max-height: 220px;
  padding: 0 22px 22px;
}


/* ============ 13. CTA BANNER ============ */
.cta-banner {
  background: var(--grad-main);
  color: var(--white);
  text-align: center;
  padding: 90px 5%;
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.cta-banner h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.8);
  max-width: 500px;
  margin: 0 auto 38px;
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}


/* ============ 14. FOOTER ============ */
.footer {
  background: var(--black);
  color: rgba(255, 255, 255, 0.65);
  padding: 70px 5% 30px;
}

.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.4fr;
  gap: 52px;
  margin-bottom: 56px;
}

/* Footer brand column */
.footer-brand p {
  font-size: 0.86rem;
  margin-top: 16px;
  line-height: 1.75;
  max-width: 290px;
}

.footer-logo-name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  display: block;
}

.footer-logo-tagline {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

/* Social icons */
.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

.social-btn {
  width: 38px;
  height: 38px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  transition: background 0.25s ease, color 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--blue);
  color: var(--white);
  border-color: var(--blue);
}

/* Footer columns */
.footer-col h4 {
  font-family: var(--font-heading);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.footer-col ul a {
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s ease;
}

.footer-col ul a:hover {
  color: #7BC8F8;
}

/* Footer contact details */
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.84rem;
}

.footer-contact-item .icon {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Footer bottom bar */
.footer-bottom {
  max-width: var(--max-width);
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.79rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom a {
  color: #7BC8F8;
  transition: color 0.2s;
}

.footer-bottom a:hover {
  color: var(--white);
}


/* ============ 15. SCROLL REVEAL ANIMATION ============ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delay for grid items */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.3s; }
.reveal:nth-child(5) { transition-delay: 0.4s; }
.reveal:nth-child(6) { transition-delay: 0.5s; }