/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; color: #1B2A4A; background: #fff; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; cursor: pointer; }
ul { list-style: none; }

/* ===== VARIABLES ===== */
:root {
  --blue:       #29ABE2;
  --blue-dark:  #1a96cc;
  --navy:       #1B2A4A;
  --navy2:      #243558;
  --navy3:      #0f1e35;
  --gray:       #64748b;
  --light:      #f4f7fb;
  --border:     #dde6f0;
  --radius:     12px;
  --shadow:     0 4px 24px rgba(27,42,74,.10);
  --transition: .3s ease;
}

/* ===== UTILITIES ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-pad { padding: 100px 0; }
.section-tag { color: var(--blue); font-weight: 700; font-size: .82rem; letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 12px; display: block; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 60px; }
.section-header h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; line-height: 1.2; color: var(--navy); }
.section-header h2 span { color: var(--blue); }
.section-sub { color: var(--gray); margin-top: 16px; }

/* ===== BUTTONS ===== */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 50px; font-weight: 700; font-size: .95rem; cursor: pointer; border: none; transition: var(--transition); }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(41,171,226,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.65); }
.btn-outline:hover { background: #fff; color: var(--navy); }

/* ===== NAVBAR ===== */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: #fff; box-shadow: 0 2px 16px rgba(27,42,74,.10); transition: var(--transition); }
.navbar.scrolled { box-shadow: 0 4px 24px rgba(27,42,74,.15); }
.nav-inner { display: flex; align-items: stretch; min-height: 88px; }
.logo { display: flex; align-items: center; padding-right: 24px; cursor: pointer; }
.logo-img { height: 80px; width: auto; object-fit: contain; display: block; }
.logo-img-footer { height: 64px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 0; margin-left: auto; }
.nav-links a { color: var(--navy); font-weight: 600; font-size: .92rem; transition: var(--transition); display: flex; align-items: center; padding: 0 20px; border-bottom: 3px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-quote { padding: 10px 22px; font-size: .88rem; border-radius: 6px; margin-left: 16px; align-self: center; white-space: nowrap; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; margin-left: auto; align-self: center; margin-right: 4px; }
.hamburger span { display: block; width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: var(--transition); }

/* ===== HERO ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('hero_banner.jpg') center center / cover no-repeat;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(8,18,36,.96) 0%, rgba(8,18,36,.85) 45%, rgba(8,18,36,.30) 100%),
    linear-gradient(to top,   rgba(8,18,36,.70) 0%, transparent 50%);
}

/* Inner layout */
.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 56px;
  padding-top: 100px;
  padding-bottom: 80px;
  min-height: 100vh;
}

/* Badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(41,171,226,.12);
  border: 1px solid rgba(41,171,226,.30);
  color: var(--blue);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 8px 18px;
  border-radius: 50px;
  margin-bottom: 28px;
  width: fit-content;
}
.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--blue);
  animation: pulse-dot 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .4; transform: scale(1.4); }
}

/* Heading */
.hero-content { max-width: 680px; }
.hero h1 {
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  margin-bottom: 24px;
  letter-spacing: -.5px;
}
.hero h1 span { color: var(--blue); }

/* Sub text */
.hero-sub {
  color: rgba(255,255,255,.65);
  font-size: 1rem;
  line-height: 1.8;
  max-width: 480px;
  margin-bottom: 40px;
}

/* Buttons */
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* Bottom feature strip */
.hero-features {
  display: flex;
  align-items: center;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 32px;
  max-width: 520px;
}
.hero-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-right: 32px;
  margin-right: 32px;
  border-right: 1px solid rgba(255,255,255,.12);
  color: rgba(255,255,255,.70);
  font-size: .88rem;
  font-weight: 600;
}
.hero-feat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-feat i { color: var(--blue); font-size: 1rem; flex-shrink: 0; }

/* ===== ABOUT ===== */
.about { background: var(--light); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-main img { border-radius: var(--radius); width: 100%; height: 500px; object-fit: cover; }
.about-img-badge { position: absolute; bottom: -24px; right: -24px; background: var(--blue); color: #fff; border-radius: var(--radius); padding: 28px 32px; text-align: center; box-shadow: 0 8px 32px rgba(41,171,226,.4); }
.badge-num { font-size: 3rem; font-weight: 900; line-height: 1; display: block; }
.badge-label { font-size: .78rem; font-weight: 600; opacity: .9; line-height: 1.4; }
.about-content h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.about-content h2 span { color: var(--blue); }
.about-desc { color: var(--gray); margin-bottom: 16px; line-height: 1.75; }
.about-features { display: flex; flex-direction: column; gap: 20px; margin: 28px 0 36px; }
.about-feature { display: flex; align-items: flex-start; gap: 16px; }
.feature-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(41,171,226,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.feature-icon i { color: var(--blue); font-size: 1.1rem; }
.about-feature h4 { font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.about-feature p { color: var(--gray); font-size: .9rem; }

/* ===== SERVICES ===== */
.services { background: #fff; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card { background: var(--light); border-radius: var(--radius); padding: 32px 26px; border: 1px solid var(--border); transition: var(--transition); }
.service-card:hover { background: var(--navy); transform: translateY(-6px); box-shadow: 0 12px 40px rgba(27,42,74,.18); }
.service-card:hover h3, .service-card:hover p { color: #fff; }
.service-card:hover .service-icon { background: var(--blue); }
.service-card:hover .service-icon i { color: #fff; }
.service-card:hover .service-link { color: var(--blue); }
.service-icon { width: 60px; height: 60px; background: rgba(41,171,226,.12); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 22px; transition: var(--transition); }
.service-icon i { color: var(--blue); font-size: 1.4rem; transition: var(--transition); }
.service-card h3 { font-size: 1.05rem; font-weight: 700; color: var(--navy); margin-bottom: 10px; transition: var(--transition); }
.service-card p { color: var(--gray); font-size: .88rem; margin-bottom: 18px; line-height: 1.65; transition: var(--transition); }
.service-link { color: var(--blue); font-weight: 700; font-size: .88rem; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.service-link i { transition: transform var(--transition); }
.service-card:hover .service-link i { transform: translateX(4px); }

/* ===== WHY CAPELLA ===== */
.why { background: var(--light); }
.why-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.why-img img { border-radius: var(--radius); width: 100%; height: 500px; object-fit: cover; }
.why-content h2 { font-size: clamp(1.8rem, 2.5vw, 2.4rem); font-weight: 800; color: var(--navy); line-height: 1.2; margin-bottom: 20px; }
.why-content h2 span { color: var(--blue); }
.why-content > p { color: var(--gray); margin-bottom: 28px; line-height: 1.75; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-bottom: 36px; }
.why-item { display: flex; align-items: center; gap: 10px; color: var(--navy); font-weight: 600; font-size: .92rem; }
.why-item i { color: var(--blue); font-size: 1rem; flex-shrink: 0; }

/* ===== STATS ===== */
.stats { background: var(--navy); padding: 70px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-item { text-align: center; padding: 20px; border-right: 1px solid rgba(255,255,255,.12); }
.stat-item:last-child { border-right: none; }
.stat-num { font-size: 3.5rem; font-weight: 900; color: var(--blue); line-height: 1; }
.stat-plus { font-size: 2rem; font-weight: 900; color: var(--blue); }
.stat-item p { color: rgba(255,255,255,.7); font-weight: 600; margin-top: 8px; font-size: .92rem; }

/* ===== FAQ ===== */
.faq { background: #fff; }
.faq-inner { max-width: 820px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 12px; margin-top: 48px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; background: none; border: none; padding: 22px 28px; text-align: left; font-size: .98rem; font-weight: 600; color: var(--navy); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: var(--transition); font-family: inherit; }
.faq-q i { color: var(--blue); transition: var(--transition); flex-shrink: 0; }
.faq-item.active .faq-q { background: var(--navy); color: #fff; }
.faq-item.active .faq-q i { color: var(--blue); transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.faq-item.active .faq-a { max-height: 300px; }
.faq-a p { padding: 20px 28px; color: var(--gray); line-height: 1.75; }

/* ===== CONTACT ===== */
.contact { background: var(--light); }

/* Contact cards grid */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 16px; }
.contact-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 22px 24px; border: 1.5px solid var(--border); transition: var(--transition); }
.contact-card:hover { border-color: var(--blue); box-shadow: 0 6px 24px rgba(41,171,226,.15); transform: translateY(-3px); }
.cc-icon { width: 48px; height: 48px; min-width: 48px; background: rgba(41,171,226,.12); border-radius: 10px; display: flex; align-items: center; justify-content: center; transition: var(--transition); }
.contact-card:hover .cc-icon { background: var(--blue); }
.cc-icon i { color: var(--blue); font-size: 1.1rem; transition: var(--transition); }
.contact-card:hover .cc-icon i { color: #fff; }
.cc-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cc-label { font-size: .75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.cc-value { font-size: .9rem; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Address bar */
.contact-address { display: flex; align-items: center; gap: 20px; background: var(--navy2); border-radius: var(--radius); padding: 24px 32px; }
.ca-icon { width: 48px; height: 48px; min-width: 48px; background: var(--blue); border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.ca-icon i { color: #fff; font-size: 1.1rem; }
.ca-body { display: flex; flex-direction: column; gap: 3px; }
.ca-label { font-size: .75rem; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.ca-value { font-size: .92rem; font-weight: 500; color: rgba(255,255,255,.8); }

/* ===== FOOTER ===== */
.footer { background: var(--navy3); }
.footer-top { padding: 80px 0 60px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.2fr 1.4fr; gap: 48px; }
.footer-logo { margin-bottom: 0; }
.footer-brand p { color: rgba(255,255,255,.5); font-size: .88rem; margin: 20px 0 28px; line-height: 1.75; }
.footer-contact-icons { display: flex; gap: 10px; flex-wrap: wrap; }
.fci { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; color: rgba(255,255,255,.6); transition: var(--transition); position: relative; }
.fci:hover { background: var(--blue); color: #fff; transform: translateY(-2px); }

/* Tooltip */
.fci::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--navy);
  color: #fff;
  font-size: .75rem;
  font-weight: 500;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.1);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}
.fci::before {
  content: '';
  position: absolute;
  bottom: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  border: 5px solid transparent;
  border-top-color: var(--navy);
  pointer-events: none;
  opacity: 0;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 10;
}
.fci:hover::after, .fci:hover::before { opacity: 1; transform: translateX(-50%) translateY(0); }
.footer-col h4 { color: #fff; font-weight: 700; margin-bottom: 20px; font-size: .95rem; position: relative; padding-bottom: 12px; }
.footer-col h4::after { content: ''; position: absolute; bottom: 0; left: 0; width: 32px; height: 2px; background: var(--blue); border-radius: 2px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul li a { color: rgba(255,255,255,.5); font-size: .88rem; transition: var(--transition); display: flex; align-items: center; gap: 8px; }
.footer-col ul li a i { font-size: .65rem; color: var(--blue); }
.footer-col ul li a:hover { color: var(--blue); padding-left: 4px; }
.footer-contact-list { display: flex; flex-direction: column; gap: 12px; }
.footer-contact-list li { display: flex; align-items: flex-start; gap: 10px; color: rgba(255,255,255,.5); font-size: .88rem; }
.footer-contact-list li i { color: var(--blue); margin-top: 3px; flex-shrink: 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding: 24px 0; text-align: center; }
.footer-bottom p { color: rgba(255,255,255,.35); font-size: .82rem; }

/* ===== BACK TO TOP ===== */
.back-to-top { position: fixed; bottom: 32px; right: 32px; width: 46px; height: 46px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 16px rgba(41,171,226,.4); opacity: 0; pointer-events: none; transition: var(--transition); z-index: 999; }
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { background: var(--blue-dark); transform: translateY(-3px); }

/* ===== SCROLL REVEAL ===== */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.revealed { opacity: 1; transform: translateY(0); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .about-grid, .why-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-img-badge { right: 0; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .why-list { grid-template-columns: 1fr; }
  .contact-cards { grid-template-columns: repeat(2, 1fr); }
  .hero-stats-bar { max-width: 100%; }
}

@media (max-width: 768px) {
  .section-pad { padding: 70px 0; }
  .nav-links { display: none; }
  .nav-quote { display: none; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: #fff; justify-content: center; align-items: center; gap: 32px; z-index: 999; }
  .nav-links.open a { font-size: 1.3rem; color: var(--navy); border-bottom: none; padding: 8px 0; }
  .nav-links.open a:hover { color: var(--blue); }
  .hamburger { display: flex; margin-left: auto; margin-right: 0; z-index: 1000; }
  .hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburger.open span:nth-child(2) { opacity: 0; }
  .hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero h1 { font-size: 2.2rem; }
  .hero-features { flex-direction: column; align-items: flex-start; gap: 16px; }
  .hero-feat { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.10); padding-bottom: 16px; width: 100%; }
  .hero-feat:last-child { border-bottom: none; padding-bottom: 0; }
  .hero-stats-bar { flex-direction: column; gap: 0; }
  .hstat { width: 100%; border-bottom: 1px solid rgba(255,255,255,.1); }
  .hstat-divider { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,.1); padding: 28px; }
  .stat-item:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.1); }
  .stat-item:nth-child(3), .stat-item:nth-child(4) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .about-img-main img, .why-img img { height: 320px; }
  .contact-cards { grid-template-columns: 1fr; }
  .contact-address { flex-direction: column; text-align: center; gap: 12px; }
  .logo-img { height: 80px; }
  .hero-inner { padding-top: 100px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn { justify-content: center; }
}
