/* ============================================================
   RANKZING — Global Stylesheet
   Tokens → Reset → Typography → Components → Utilities
   ============================================================ */

/* ── Tokens ──────────────────────────────────────────────── */
:root {
  --navy:        #0B1437;
  --navy-mid:    #111D4A;
  --navy-light:  #1A2B6D;
  --blue:        #2563EB;
  --blue-light:  #3B82F6;
  --orange:      #F97316;
  --orange-dark: #EA6B0A;
  --white:       #FFFFFF;
  --off-white:   #F5F7FF;
  --gray-100:    #EEF0F8;
  --gray-300:    #CBD0E8;
  --gray-500:    #8892B0;
  --gray-700:    #4A527A;

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-card: 0 2px 24px rgba(11,20,55,0.10);
  --shadow-nav:  0 2px 32px rgba(11,20,55,0.18);

  --transition: 0.22s cubic-bezier(.4,0,.2,1);

  --container: 1180px;
  --section-v: 96px;
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--navy);
  background: var(--white);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.18;
  color: var(--navy);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.35rem); font-weight: 600; }

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.6rem;
}
.eyebrow--orange { color: var(--orange); }

/* ── Layout Helpers ──────────────────────────────────────── */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
.section {
  padding: var(--section-v) 0;
}
.section--dark {
  background: var(--navy);
  color: var(--white);
}
.section--dark h1,
.section--dark h2,
.section--dark h3 { color: var(--white); }

.section--alt { background: var(--off-white); }

.text-center { text-align: center; }
.text-white  { color: var(--white) !important; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius-md);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(249,115,22,0.32);
}
.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(249,115,22,0.38);
}
.btn--outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.5);
}
.btn--outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
}
.btn--outline-navy {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn--outline-navy:hover {
  background: var(--navy);
  color: var(--white);
}
.btn--sm { padding: 9px 20px; font-size: 0.88rem; }

/* ── Navbar ──────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background: rgba(11,20,55,0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-nav); }

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.navbar__logo img {
    width: 165px;
    height: auto;
    display: block;
}
.navbar__logo-text {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
}
.navbar__logo-text span { color: var(--orange); }

.navbar__menu {
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar__item { position: relative; }

.navbar__link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.82);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar__link:hover,
.navbar__link.active { color: var(--white); background: rgba(255,255,255,0.08); }

.navbar__link .chevron {
  width: 14px; height: 14px;
  stroke: currentColor;
  fill: none;
  transition: transform var(--transition);
}
.navbar__item:hover .chevron { transform: rotate(180deg); }

/* Dropdown */
.navbar__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(11,20,55,0.18);
  border: 1px solid var(--gray-100);
  padding: 8px;
  z-index: 100;
}
.navbar__item:hover .navbar__dropdown { display: block; }
.navbar__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar__dropdown-item:hover { background: var(--off-white); color: var(--blue); }

/* Sub-dropdown (nested) */
.navbar__sub { position: relative; }
.navbar__sub-menu {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 200px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 40px rgba(11,20,55,0.18);
  border: 1px solid var(--gray-100);
  padding: 8px;
}
.navbar__sub:hover .navbar__sub-menu { display: block; }
.navbar__sub-item {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--navy);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.navbar__sub-item:hover { background: var(--off-white); color: var(--blue); }

.navbar__cta { margin-left: 12px; }

.navbar__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.navbar__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.72);
  padding: 72px 0 0;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.3fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer__brand-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.footer__brand-name span { color: var(--orange); }
.footer__logo img {
    width: 240px;
    height: auto;
    display: block;
    margin-bottom: 10px;
}
.footer__tagline { font-size: 0.9rem; line-height: 1.65; margin-bottom: 24px; }

.footer__socials {
  display: flex;
  gap: 10px;
}
.footer__social-link {
  width: 38px; height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: .25s ease;
}
.footer__social-link:hover {
  color: #fff;
  border-color: var(--orange);
  color: var(--orange);
  background: rgba(249,115,22,0.1);
  transform: translateY(-3px);
}
.footer__social-link svg { width: 18px; height: 18px; fill: currentColor; }

.footer__col-title {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--white);
  margin-bottom: 20px;
}
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
}
.footer__link:hover { color: var(--orange); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer__contact-item svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  stroke: var(--orange);
  fill: none;
  margin-top: 4px;
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  flex-wrap: wrap;
  gap: 12px;
}
.footer__bottom-links { display: flex; gap: 24px; }
.footer__bottom-link { color: rgba(255,255,255,0.4); transition: var(--transition); }
.footer__bottom-link:hover { color: var(--white); }

/* ── CTA Banner ──────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--navy-light) 0%, var(--navy) 100%);
  border-top: 1px solid rgba(37,99,235,0.25);
  border-bottom: 1px solid rgba(37,99,235,0.25);
}
.cta-banner__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 72px 0;
  flex-wrap: wrap;
}
.cta-banner__text h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner__text p  { color: rgba(255,255,255,0.68); max-width: 520px; }
.cta-banner__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(11,20,55,0.14);
  border-color: var(--gray-300);
}
.card__icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: var(--off-white);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card__icon svg {
  width: 26px; height: 26px;
  stroke: var(--blue);
  fill: none;
}
.card h3 { margin-bottom: 10px; }
.card p  { font-size: 0.93rem; color: var(--gray-700); line-height: 1.65; }

/* ── Stats ───────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat-item {
  padding: 36px 32px;
  background: rgba(255,255,255,0.04);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
}
.stat-item:last-child { border-right: none; }
.stat-item__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-item__label { font-size: 0.88rem; color: rgba(255,255,255,0.6); font-weight: 500; }

/* ── Process Steps ───────────────────────────────────────── */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.process-step {
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-100);
  background: var(--white);
  position: relative;
}
.process-step__num {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 900;
  color: var(--gray-100);
  line-height: 1;
  margin-bottom: 16px;
}
.process-step h3 { margin-bottom: 8px; }
.process-step p  { font-size: 0.9rem; color: var(--gray-700); }

/* ── Testimonials ────────────────────────────────────────── */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.testimonial-card__stars { color: var(--orange); font-size: 1.05rem; margin-bottom: 16px; }
.testimonial-card__body {
  font-size: 0.95rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-card__author { display: flex; align-items: center; gap: 12px; }
.testimonial-card__avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--navy-light);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  flex-shrink: 0;
}
.testimonial-card__name { font-weight: 700; font-size: 0.9rem; color: var(--navy); }
.testimonial-card__role { font-size: 0.82rem; color: var(--gray-500); }

/* ── Badge / Tag ─────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  font-size: 0.78rem;
  font-weight: 700;
}
.badge--blue   { background: #EBF2FF; color: var(--blue); }
.badge--orange { background: #FEF0E7; color: var(--orange-dark); }

/* ── Section Headings ────────────────────────────────────── */
.section-head { max-width: 640px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { margin-top: 14px; color: var(--gray-700); font-size: 1.05rem; }
.section--dark .section-head p { color: rgba(255,255,255,0.64); }

/* ── Grid Layouts ────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ── Modal / Proposal Form ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11,20,55,0.72);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;          /* overlay itself scrolls if truly tiny screen */
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 28px 32px 24px;   /* tighter padding */
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 32px); /* never taller than viewport */
  overflow-y: auto;           /* form itself scrolls inside box if needed */
  position: relative;
  box-shadow: 0 24px 80px rgba(11,20,55,0.3);
  /* smooth scrollbar */
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
}
.modal-box::-webkit-scrollbar { width: 4px; }
.modal-box::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.modal-box__close {
  position: sticky;           /* stays visible while scrolling */
  top: 0;
  float: right;
  margin: -4px -8px 0 0;
  background: var(--gray-100);
  border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy);
  font-size: 1.1rem;
  transition: var(--transition);
  cursor: pointer;
  z-index: 10;
  flex-shrink: 0;
}
.modal-box__close:hover { background: var(--gray-300); }

.modal-box h3 { font-size: 1.2rem; margin-bottom: 4px; clear: both; }
.modal-box__sub { color: var(--gray-700); margin-bottom: 16px; font-size: 0.88rem; line-height: 1.5; }

/* ── Form layout ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-group { margin-bottom: 10px; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
}
.form-group input,
.form-group textarea {
  width: 100%;
  padding: 9px 13px;          /* slimmer inputs */
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--navy);
  background: var(--white);
  transition: var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(30,100,180,0.12); }
.form-group textarea { resize: vertical; min-height: 72px; }  /* shorter textarea */
.form-submit { width: 100%; margin-top: 6px; justify-content: center; }

/* ── Scroll-to-top ───────────────────────────────────────── */
.scroll-top {
  position: fixed;
  bottom: 28px; right: 28px;
  width: 44px; height: 44px;
  background: var(--orange);
  border: none;
  border-radius: 50%;
  display: none;
  align-items: center; justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 18px rgba(249,115,22,0.4);
  transition: var(--transition);
}
.scroll-top.visible { display: flex; }
.scroll-top:hover { background: var(--orange-dark); transform: translateY(-3px); }
.scroll-top svg { width: 20px; height: 20px; stroke: var(--white); fill: none; }

/* ── WhatsApp Floating Button ────────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; left: 28px;
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center; justify-content: center;
  z-index: 900;
  box-shadow: 0 4px 20px rgba(37,211,102,0.45);
  transition: var(--transition);
  text-decoration: none;
}
.whatsapp-float:hover {
  background: #1ebe5d;
  transform: translateY(-3px) scale(1.08);
  box-shadow: 0 8px 28px rgba(37,211,102,0.55);
}
.whatsapp-float svg {
  width: 28px; height: 28px;
  fill: #ffffff;
}
.whatsapp-float::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.25);
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}
@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.8; }
  70%  { transform: scale(1.4); opacity: 0;   }
  100% { transform: scale(1.4); opacity: 0;   }
}
.whatsapp-float__tip {
  position: absolute;
  left: calc(100% + 12px);
  bottom: 50%;
  transform: translateY(50%);
  background: var(--navy);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  font-family: var(--font-body);
}
.whatsapp-float__tip::before {
  content: '';
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%);
  border: 6px solid transparent;
  border-right-color: var(--navy);
}
.whatsapp-float:hover .whatsapp-float__tip { opacity: 1; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  :root { --section-v: 64px; }

  .navbar__menu { display: none; position: absolute; top: 70px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy); padding: 12px 16px 20px; border-top: 1px solid rgba(255,255,255,0.08);
  }
  .navbar__menu.open { display: flex; }
  .navbar__link { padding: 12px 14px; }
  .navbar__dropdown { position: static; box-shadow: none; border: none; background: rgba(255,255,255,0.06); }
  .navbar__dropdown-item { color: rgba(255,255,255,0.82); }
  .navbar__dropdown-item:hover { background: rgba(255,255,255,0.1); color: var(--white); }
  .navbar__burger { display: flex; }
  .navbar__cta { margin-left: 0; width: 100%; }
  .navbar__cta .btn { width: 100%; justify-content: center; }

  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; text-align: center; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner__inner { flex-direction: column; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .modal-box { padding: 36px 24px; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
