/* ═══════════════════════════════════════
   VITAL-IT — style.css
   ═══════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --primary:    hsl(199, 89%, 48%);
  --primary-dark: hsl(199, 89%, 38%);
  --navy:       hsl(222, 47%, 11%);
  --navy-mid:   hsl(220, 40%, 16%);
  --slate-50:   #f8fafc;
  --slate-100:  #f1f5f9;
  --slate-200:  #e2e8f0;
  --slate-300:  #cbd5e1;
  --slate-400:  #94a3b8;
  --slate-500:  #64748b;
  --slate-600:  #475569;
  --slate-700:  #334155;
  --slate-900:  #0f172a;
  --white:      #ffffff;
  --radius:     0.5rem;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.16);
  --font-body:  'Plus Jakarta Sans', sans-serif;
  --font-disp:  'Outfit', sans-serif;
}

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--slate-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-disp);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--slate-900);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
select, input, textarea { font-family: inherit; font-size: 1rem; }

/* ─── Container ─── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius);
  padding: 0.65rem 1.4rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); }
.btn-nav {
  background: var(--primary);
  color: var(--white);
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius);
  font-weight: 600;
}
.btn-nav:hover { background: var(--primary-dark); }
.btn-lg { padding: 0.9rem 1.75rem; font-size: 1rem; }
.btn-ghost-white {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn-ghost-white:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-reset {
  background: transparent;
  color: var(--slate-600);
  border: 1.5px solid var(--slate-200);
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s;
}
.btn-ghost-reset:hover { border-color: var(--slate-400); }

/* ─── Sections ─── */
.section { padding: 6rem 0; }
.bg-white  { background: var(--white); }
.bg-slate  { background: var(--slate-50); }
.bg-navy   { background: var(--navy); position: relative; overflow: hidden; }

.section-header { text-align: center; max-width: 700px; margin: 0 auto 4rem; }
.section-title  { font-size: clamp(1.75rem, 4vw, 2.4rem); font-weight: 700; margin-bottom: 1rem; }
.section-sub    { font-size: 1.1rem; color: var(--slate-500); line-height: 1.75; }
.text-left      { text-align: left; }
.mb-10          { margin-bottom: 2.5rem; }

/* ─── Scroll Reveal ─── */
.reveal, .reveal-left, .reveal-right {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.revealed {
  opacity: 1 !important;
  transform: none !important;
}

/* ─── Fade-in (hero only, immediate) ─── */
.fade-in         { animation: fadeUp 0.6s ease both; }
.delay-1         { animation-delay: 0.1s; }
.delay-2         { animation-delay: 0.22s; }
.delay-3         { animation-delay: 0.35s; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s, box-shadow 0.3s, padding 0.3s;
  padding: 1.25rem 0;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 0.75rem 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}
.nav-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  background: var(--primary);
  color: var(--white);
  border-radius: 0.45rem;
  flex-shrink: 0;
}
.nav-logo-text {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--white);
  transition: color 0.3s;
}
#navbar.scrolled .nav-logo-text { color: var(--navy); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--white); }
#navbar.scrolled .nav-link { color: var(--slate-600); }
#navbar.scrolled .nav-link:hover { color: var(--primary); }

.nav-hamburger {
  display: none;
  padding: 0.25rem;
  color: var(--white);
  transition: color 0.3s;
}
#navbar.scrolled .nav-hamburger { color: var(--navy); }

.mobile-menu {
  background: var(--white);
  border-top: 1px solid var(--slate-100);
  box-shadow: var(--shadow-md);
}
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-nav-link {
  padding: 1rem 0.5rem;
  font-weight: 500;
  color: var(--slate-700);
  border-bottom: 1px solid var(--slate-100);
  transition: color 0.2s;
}
.mobile-nav-link:hover { color: var(--primary); }
.mobile-nav-cta { margin-top: 1rem; text-align: center; justify-content: center; }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: var(--navy);
  padding-top: 6rem;
  position: relative;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; }
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}
.hero-blob-1 {
  width: 700px; height: 700px;
  background: hsla(199, 89%, 48%, 0.12);
  top: -200px; right: -150px;
}
.hero-blob-2 {
  width: 500px; height: 500px;
  background: hsla(220, 70%, 50%, 0.08);
  bottom: -150px; left: -100px;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 60% 60% at 50% 40%, #000 50%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 99px;
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}
.hero-headline {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.08;
  max-width: 14ch;
  margin: 0 auto 1.5rem;
}
.text-gradient {
  background: linear-gradient(90deg, var(--primary), hsl(199, 89%, 68%));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.15rem;
  color: var(--slate-300);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ════════════════════════════════════════
   SERVICES
   ════════════════════════════════════════ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.service-card {
  padding: 2rem;
  border: 1.5px solid var(--slate-200);
  border-radius: 0.75rem;
  background: var(--white);
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.service-card:hover {
  border-color: rgba(14, 165, 233, 0.4);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.service-icon-wrap {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--slate-50);
  border-radius: 0.5rem;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: background 0.25s;
}
.service-card:hover .service-icon-wrap { background: hsla(199, 89%, 48%, 0.1); }
.service-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.6rem; }
.service-desc  { font-size: 0.95rem; color: var(--slate-500); line-height: 1.7; }

/* ════════════════════════════════════════
   WHY US
   ════════════════════════════════════════ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.why-list { display: flex; flex-direction: column; gap: 2rem; }
.why-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.why-check {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.why-item-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.35rem; }
.why-item-desc  { font-size: 0.95rem; color: var(--slate-500); line-height: 1.7; }

.why-visual { display: flex; justify-content: center; align-items: center; }
.why-visual-inner {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--navy);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-end;
  padding: 2rem;
  position: relative;
  overflow: hidden;
}
.why-visual-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--primary) 0%, transparent 60%);
  opacity: 0.08;
}
.why-uptime-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  padding: 1.25rem 1.5rem;
  border-radius: 0.75rem;
  width: 100%;
  position: relative;
  z-index: 1;
}
.uptime-circle {
  width: 56px; height: 56px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--white);
  flex-shrink: 0;
}
.uptime-title { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.uptime-sub   { font-size: 0.8rem; color: var(--slate-400); }

/* ════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════ */
.steps-outer { position: relative; }
.steps-track {
  display: none;
  position: absolute;
  top: 47px;
  left: 10%; right: 10%;
  height: 2px;
  background: var(--slate-100);
}
.steps-track-fill {
  height: 100%;
  background: var(--primary);
  width: 0%;
  transition: width 1.4s ease;
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}
.step { text-align: center; }
.step-circle {
  width: 88px; height: 88px;
  background: var(--white);
  border: 3px solid var(--slate-100);
  box-shadow: var(--shadow-sm);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.5rem;
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--primary);
}
.step-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-desc  { font-size: 0.9rem; color: var(--slate-500); line-height: 1.7; }

/* ════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════ */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}
.testimonial-card {
  background: var(--white);
  border-radius: 0.75rem;
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--primary); font-size: 1.1rem; letter-spacing: 0.1em; margin-bottom: 1.25rem; }
.testimonial-card blockquote {
  font-size: 0.97rem;
  color: var(--slate-700);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 1.5rem;
}
.t-author { display: flex; align-items: center; gap: 0.85rem; margin-top: auto; }
.t-avatar {
  width: 44px; height: 44px;
  background: var(--slate-100);
  color: var(--slate-600);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: 0.9rem; color: var(--slate-900); }
.t-role { font-size: 0.8rem; color: var(--slate-500); }

/* ════════════════════════════════════════
   CONTACT
   ════════════════════════════════════════ */
.contact-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: 500px; height: 500px;
  background: hsla(199, 89%, 48%, 0.18);
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.contact-headline {
  font-size: clamp(1.75rem, 4vw, 2.6rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1.25rem;
  line-height: 1.15;
}
.contact-sub-text {
  color: var(--slate-400);
  font-size: 1rem;
  line-height: 1.75;
  max-width: 440px;
  margin-bottom: 2.5rem;
}
.contact-details { display: flex; flex-direction: column; gap: 1.5rem; }
.c-detail { display: flex; gap: 0.85rem; align-items: flex-start; }
.c-icon {
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.c-label { font-size: 0.8rem; color: var(--slate-400); margin-bottom: 0.2rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; }
.c-value { color: var(--slate-200); font-size: 0.95rem; }
a.c-value:hover { color: var(--primary); }

/* Contact Form Card */
.contact-form-card {
  background: var(--white);
  border-radius: 1rem;
  padding: 2.5rem;
  box-shadow: var(--shadow-lg);
}
.form-card-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 1.75rem;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.35rem; margin-bottom: 1rem; }
.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
}
.req { color: var(--primary); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.9rem;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius);
  background: var(--slate-50);
  color: var(--slate-900);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px hsla(199, 89%, 48%, 0.12);
  background: var(--white);
}
.form-group input.invalid,
.form-group textarea.invalid { border-color: #ef4444; }
.form-group textarea { resize: vertical; }
.field-error {
  font-size: 0.8rem;
  color: #ef4444;
  min-height: 1rem;
}
.global-error { margin-bottom: 0.75rem; font-size: 0.85rem; }

#submit-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--primary);
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
#submit-btn:hover:not(:disabled) { background: var(--primary-dark); transform: translateY(-1px); }
#submit-btn:disabled { opacity: 0.65; cursor: not-allowed; }

/* Success Panel */
.success-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
}
.success-icon-wrap {
  width: 72px; height: 72px;
  background: #dcfce7;
  color: #16a34a;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.5rem;
}
.success-panel h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.success-panel p  { color: var(--slate-600); max-width: 360px; margin-bottom: 1.75rem; line-height: 1.7; }

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.site-footer {
  background: var(--navy);
  color: var(--slate-400);
  padding: 4.5rem 0 0;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.footer-logo-text {
  font-family: var(--font-disp);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
}
.footer-brand p { font-size: 0.9rem; line-height: 1.75; max-width: 340px; }
.footer-col h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}
.footer-col ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
  font-size: 0.9rem;
}
.footer-col ul li svg { flex-shrink: 0; color: var(--primary); margin-top: 3px; }
.footer-col ul a:hover { color: var(--primary); }
.footer-links li { margin-bottom: 0.6rem; }
.footer-links li a { font-size: 0.9rem; transition: color 0.2s; }
.footer-links li a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.5rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--slate-500);
}
.footer-bottom div { display: flex; gap: 1.5rem; }
.footer-bottom a:hover { color: var(--white); }

/* ════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════ */

/* Tablet */
@media (max-width: 1024px) {
  .services-grid     { grid-template-columns: repeat(2, 1fr); }
  .steps-grid        { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .why-grid          { grid-template-columns: 1fr; gap: 3rem; }
  .why-visual        { max-width: 480px; width: 100%; margin: 0 auto; }
  .footer-grid       { grid-template-columns: 1fr 1fr; }
  .footer-brand      { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 768px) {
  .section           { padding: 4.5rem 0; }
  .section-title     { font-size: 1.7rem; }
  .nav-links         { display: none; }
  .nav-hamburger     { display: flex; }
  .services-grid     { grid-template-columns: 1fr; }
  .steps-grid        { grid-template-columns: 1fr 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .contact-grid      { grid-template-columns: 1fr; gap: 2.5rem; }
  .form-row          { grid-template-columns: 1fr; }
  .footer-grid       { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom     { flex-direction: column; gap: 1rem; text-align: center; }
  .hero              { min-height: 85vh; }
  .hero-headline     { font-size: 2.25rem; max-width: none; }
}

@media (max-width: 480px) {
  .steps-grid        { grid-template-columns: 1fr; }
  .hero-actions      { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .contact-form-card { padding: 1.5rem; }
}

/* Desktop: show step track line */
@media (min-width: 1024px) {
  .steps-track { display: block; }
}
